[llvm] [RISCV] Generate RISCVISAInfo table from RISCVFeatures.td. (PR #89955)

Pengcheng Wang via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 24 21:32:03 PDT 2024


================
@@ -101,5 +197,10 @@ static void EmitRISCVTargetDef(RecordKeeper &RK, raw_ostream &OS) {
   OS << "\n#undef TUNE_PROC\n";
 }
 
+static void EmitRISCVTargetDef(RecordKeeper &RK, raw_ostream &OS) {
+  emitRISCVExtensions(RK, OS);
+  emitRISCVProcs(RK, OS);
+}
+
 static TableGen::Emitter::Opt X("gen-riscv-target-def", EmitRISCVTargetDef,
                                 "Generate the list of CPU for RISCV");
----------------
wangpc-pp wrote:

This help info is not correct now, and maybe there are more places (like comments in line 9-10) to reword.

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


More information about the llvm-commits mailing list