[llvm] [RISCV] Generate RISCVISAInfo table from RISCVFeatures.td. (PR #89955)
Pengcheng Wang via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 24 22:22:31 PDT 2024
================
@@ -75,22 +81,48 @@ def ROCKET_RV64 : RISCVProcessorModel<"rocket-rv64",
def ROCKET : RISCVTuneProcessorModel<"rocket",
NoSchedModel>;
-// CHECK: #ifndef PROC
-// CHECK: #define PROC(ENUM, NAME, DEFAULT_MARCH, FAST_UNALIGNED_ACCESS)
-// CHECK: #endif
+// CHECK: #ifdef GET_SUPPORTED_EXTENSIONS
+// CHECK-NEXT: #undef GET_SUPPORTED_EXTENSIONS
+
+// CHECK: static const RISCVSupportedExtension SupportedExtensions[] = {
+// CHECK-NEXT: {"f", {2, 2}},
+// CHECK-NEXT: {"i", {2, 1}},
+// CHECK-NEXT: {"zicsr", {2, 0}},
+// CHECK-NEXT: {"zifencei", {2, 0}},
+// CHECK-NEXT: };
+
+// CHECK: static const RISCVSupportedExtension SupportedExperimentalExtensions[] = {
----------------
wangpc-pp wrote:
Can we add a dummy experimental extension?
https://github.com/llvm/llvm-project/pull/89955
More information about the llvm-commits
mailing list