[llvm-branch-commits] [RISCV] Generate profiles from RISCVProfiles.td (PR #90187)
Pengcheng Wang via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Apr 26 08:37:06 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]>;
----------------
wangpc-pp wrote:
We don't handle implications in TableGen, it is in `RISCVISAInfo` where we parse the march string. But yeah, I added `F` which implies `Zicsr`.
https://github.com/llvm/llvm-project/pull/90187
More information about the llvm-branch-commits
mailing list