[clang] [RISCV] Make RequiredExtensions for intrinsics scalable to more than 32 extensions. NFC (PR #132895)

Pengcheng Wang via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 25 00:51:51 PDT 2025


================
@@ -519,6 +517,9 @@ struct RVVIntrinsicRecord {
   // e.g. vadd
   const char *OverloadedName;
 
+  // Required target features for this intrinsic.
+  uint32_t RequiredExtensions[(RVV_REQ_NUM + 31) / 32];
----------------
wangpc-pp wrote:

I wonder if we can use `FeatureBitset` here and reuse extension enums so that we don't need to define `RVVRequire`.

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


More information about the cfe-commits mailing list