[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


================
@@ -758,6 +758,14 @@ class TypeInfoGen<list<LLVMType> RetTypes, list<LLVMType> ParamTypes> {
 //  * ParamTypes is a list containing the parameter types expected for the
 //    intrinsic.
 //  * Properties can be set to describe the behavior of the intrinsic.
+//  * TargetFeatures is a target feature expression required by the intrinsic.
+//    The empty string means no target features are required. The expression
+//    uses feature names from the target's subtarget feature table. Comma means
+//    AND, | means OR, and parentheses group expressions. The special value
----------------
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