[llvm-branch-commits] [RISCV] Generate profiles from RISCVProfiles.td (PR #90187)

Alex Bradbury via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Apr 26 06:24:10 PDT 2024


================
@@ -51,6 +51,14 @@ def Feature64Bit
 def FeatureDummy
     : SubtargetFeature<"dummy", "Dummy", "true", "Dummy">;
 
+class RISCVProfile<string name, list<SubtargetFeature> features>
+    : SubtargetFeature<name, "RISCVProfile", NAME,
+                       "RISC-V " # name # " profile", features>;
+
+def RVI20U32 : RISCVProfile<"rvi20u32", [Feature32Bit, FeatureStdExtI]>;
+def RVI20U64 : RISCVProfile<"rvi20u64", [Feature64Bit, FeatureStdExtI]>;
----------------
asb wrote:

It might be worth having a test with at least one extension implication (e.g. D, which should pull in F).

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


More information about the llvm-branch-commits mailing list