[llvm-commits] CVS: llvm/utils/TableGen/TableGen.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue Aug 5 23:49:01 PDT 2003
Changes in directory llvm/utils/TableGen:
TableGen.cpp updated: 1.17 -> 1.18
---
Log message:
Add an instruction selector emitter skeleton
---
Diffs of the changes:
Index: llvm/utils/TableGen/TableGen.cpp
diff -u llvm/utils/TableGen/TableGen.cpp:1.17 llvm/utils/TableGen/TableGen.cpp:1.18
--- llvm/utils/TableGen/TableGen.cpp:1.17 Sun Aug 3 16:58:28 2003
+++ llvm/utils/TableGen/TableGen.cpp Tue Aug 5 23:47:56 2003
@@ -15,6 +15,7 @@
#include "CodeEmitterGen.h"
#include "RegisterInfoEmitter.h"
#include "InstrInfoEmitter.h"
+#include "InstrSelectorEmitter.h"
#include <algorithm>
#include <fstream>
@@ -22,7 +23,7 @@
PrintRecords,
GenEmitter,
GenRegisterEnums, GenRegister, GenRegisterHeader,
- GenInstrEnums, GenInstrs,
+ GenInstrEnums, GenInstrs, GenInstrSelector,
PrintEnums,
Parse,
};
@@ -44,6 +45,8 @@
"Generate enum values for instructions"),
clEnumValN(GenInstrs, "gen-instr-desc",
"Generate instruction descriptions"),
+ clEnumValN(GenInstrSelector, "gen-instr-selector",
+ "Generate an instruction selector"),
clEnumValN(PrintEnums, "print-enums",
"Print enum values for a class"),
clEnumValN(Parse, "parse",
@@ -440,7 +443,9 @@
case GenInstrs:
InstrInfoEmitter(Records).run(*Out);
break;
-
+ case GenInstrSelector:
+ InstrSelectorEmitter(Records).run(*Out);
+ break;
case PrintEnums:
std::vector<Record*> Recs = Records.getAllDerivedDefinitions(Class);
for (unsigned i = 0, e = Recs.size(); i != e; ++i)
More information about the llvm-commits
mailing list