Skip to content

Commit f09f99e

Browse files
committed
[RISCV] Add RISCVTuneProcessorModel to 'generic' CPU. NFC
Remove hardcode GENERIC cpu from RISCVTargetDefEmitter.cpp.
1 parent c69efcd commit f09f99e

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

llvm/lib/Target/RISCV/RISCVProcessors.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def GENERIC_RV64 : RISCVProcessorModel<"generic-rv64",
6666
GenericTuneInfo;
6767
// Support generic for compatibility with other targets. The triple will be used
6868
// to change to the appropriate rv32/rv64 version.
69-
def : ProcessorModel<"generic", NoSchedModel, []>, GenericTuneInfo;
69+
def GENERIC : RISCVTuneProcessorModel<"generic", NoSchedModel>, GenericTuneInfo;
7070

7171
def ROCKET_RV32 : RISCVProcessorModel<"rocket-rv32",
7272
RocketModel,

llvm/utils/TableGen/RISCVTargetDefEmitter.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ static void EmitRISCVTargetDef(RecordKeeper &RK, raw_ostream &OS) {
8282
OS << "#ifndef TUNE_PROC\n"
8383
<< "#define TUNE_PROC(ENUM, NAME)\n"
8484
<< "#endif\n\n";
85-
OS << "TUNE_PROC(GENERIC, \"generic\")\n";
8685

8786
for (const Record *Rec :
8887
RK.getAllDerivedDefinitions("RISCVTuneProcessorModel")) {

0 commit comments

Comments
 (0)