[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:24 PDT 2026


================
@@ -159,6 +159,11 @@ class LLVM_ABI MCSubtargetInfo {
   /// the provided string, ignoring all other features.
   bool checkFeatures(StringRef FS) const;
 
+  /// Check whether the current subtarget satisfies a target feature expression.
+  /// The expression uses feature names from the target's subtarget feature
+  /// table. 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