X-Git-Url: http://plrg.eecs.uci.edu/git/?a=blobdiff_plain;f=utils%2FTableGen%2FTableGen.cpp;h=7bd52b37cf06eaf602f9266d0d10d18ab87d39fb;hb=2082ebe8b3a5db302748828ab4f79a36d239c1d9;hp=2409d37196b6436a0ea1168e36ef31f02ead5b44;hpb=42df6d1396d0335621f648b0e4a6e59f13e868f2;p=oota-llvm.git diff --git a/utils/TableGen/TableGen.cpp b/utils/TableGen/TableGen.cpp index 2409d37196b..7bd52b37cf0 100644 --- a/utils/TableGen/TableGen.cpp +++ b/utils/TableGen/TableGen.cpp @@ -23,12 +23,10 @@ #include "RegisterInfoEmitter.h" #include "InstrInfoEmitter.h" #include "InstrSelectorEmitter.h" -#include "SimpleInstrSelEmitter.h" #include #include #include - -namespace llvm { +using namespace llvm; enum ActionType { PrintRecords, @@ -36,7 +34,7 @@ enum ActionType { GenRegisterEnums, GenRegister, GenRegisterHeader, GenInstrEnums, GenInstrs, GenInstrSelector, PrintEnums, - Parse, GenSimpInstrSel, + Parse }; namespace { @@ -58,13 +56,11 @@ namespace { "Generate instruction descriptions"), clEnumValN(GenInstrSelector, "gen-instr-selector", "Generate an instruction selector"), - clEnumValN(GenSimpInstrSel, "gen-simp-instr-sel", - "Generate a simple instruction selector"), clEnumValN(PrintEnums, "print-enums", "Print enum values for a class"), clEnumValN(Parse, "parse", "Interpret machine code (testing only)"), - 0)); + clEnumValEnd)); cl::opt Class("class", cl::desc("Print Enum list for this class"), @@ -82,10 +78,12 @@ namespace { cl::value_desc("directory"), cl::init("")); } +namespace llvm { + void ParseFile(const std::string &Filename, + const std::string &IncludeDir); +} -void ParseFile(const std::string &Filename, const std::string & IncludeDir); - -RecordKeeper Records; +RecordKeeper llvm::Records; static Init *getBit(Record *R, unsigned BitNo) { const std::vector &V = R->getValues(); @@ -411,10 +409,6 @@ static void ParseMachineCode() { } } -} // End llvm namespace - -using namespace llvm; - int main(int argc, char **argv) { cl::ParseCommandLineOptions(argc, argv); ParseFile(InputFilename, IncludeDir); @@ -471,9 +465,6 @@ int main(int argc, char **argv) { *Out << "\n"; break; } - case GenSimpInstrSel: - SimpleInstrSelEmitter(Records).run(*Out); - break; default: assert(1 && "Invalid Action"); return 1;