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

Pierre van Houtryve via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 12 04:29:00 PDT 2026


================
@@ -87,6 +87,9 @@ class LLVM_ABI TargetSubtargetInfo : public MCSubtargetInfo {
 
   virtual bool isXRaySupported() const { return false; }
 
+  /// Return true if the target intrinsic is supported by this subtarget.
----------------
Pierre-vh wrote:

If using doxygen style comments, the right syntax is `\returns` I believe (same in other places)

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


More information about the llvm-commits mailing list