[clang] [llvm] [RFC][CodeGen] Add generic target feature checks for intrinsics (PR #201470)

Jay Foad via cfe-commits cfe-commits at lists.llvm.org
Thu Jun 25 02:11:23 PDT 2026


================
@@ -800,6 +809,14 @@ class MSBuiltin<string name> {
   string MSBuiltinName = name;
 }
 
+/// RequiresTargetFeatures - If this intrinsic requires target features,
+/// this specifies the required feature expression using feature names from the
+/// target's subtarget feature table. The expression grammar matches Clang
+/// builtins: comma means AND, | means OR, and parentheses group expressions.
----------------
jayfoad wrote:

Should state the relative precedence of `,` and `|`.

https://github.com/llvm/llvm-project/pull/201470


More information about the cfe-commits mailing list