llvm.org GIT mirror llvm / 3f78134
Add an instruction selector emitter skeleton git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7629 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 16 years ago
2 changed file(s) with 14 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
1414 #include "CodeEmitterGen.h"
1515 #include "RegisterInfoEmitter.h"
1616 #include "InstrInfoEmitter.h"
17 #include "InstrSelectorEmitter.h"
1718 #include
1819 #include
1920
2122 PrintRecords,
2223 GenEmitter,
2324 GenRegisterEnums, GenRegister, GenRegisterHeader,
24 GenInstrEnums, GenInstrs,
25 GenInstrEnums, GenInstrs, GenInstrSelector,
2526 PrintEnums,
2627 Parse,
2728 };
4344 "Generate enum values for instructions"),
4445 clEnumValN(GenInstrs, "gen-instr-desc",
4546 "Generate instruction descriptions"),
47 clEnumValN(GenInstrSelector, "gen-instr-selector",
48 "Generate an instruction selector"),
4649 clEnumValN(PrintEnums, "print-enums",
4750 "Print enum values for a class"),
4851 clEnumValN(Parse, "parse",
439442 case GenInstrs:
440443 InstrInfoEmitter(Records).run(*Out);
441444 break;
442
445 case GenInstrSelector:
446 InstrSelectorEmitter(Records).run(*Out);
447 break;
443448 case PrintEnums:
444449 std::vector Recs = Records.getAllDerivedDefinitions(Class);
445450 for (unsigned i = 0, e = Recs.size(); i != e; ++i)
1414 #include "CodeEmitterGen.h"
1515 #include "RegisterInfoEmitter.h"
1616 #include "InstrInfoEmitter.h"
17 #include "InstrSelectorEmitter.h"
1718 #include
1819 #include
1920
2122 PrintRecords,
2223 GenEmitter,
2324 GenRegisterEnums, GenRegister, GenRegisterHeader,
24 GenInstrEnums, GenInstrs,
25 GenInstrEnums, GenInstrs, GenInstrSelector,
2526 PrintEnums,
2627 Parse,
2728 };
4344 "Generate enum values for instructions"),
4445 clEnumValN(GenInstrs, "gen-instr-desc",
4546 "Generate instruction descriptions"),
47 clEnumValN(GenInstrSelector, "gen-instr-selector",
48 "Generate an instruction selector"),
4649 clEnumValN(PrintEnums, "print-enums",
4750 "Print enum values for a class"),
4851 clEnumValN(Parse, "parse",
439442 case GenInstrs:
440443 InstrInfoEmitter(Records).run(*Out);
441444 break;
442
445 case GenInstrSelector:
446 InstrSelectorEmitter(Records).run(*Out);
447 break;
443448 case PrintEnums:
444449 std::vector Recs = Records.getAllDerivedDefinitions(Class);
445450 for (unsigned i = 0, e = Recs.size(); i != e; ++i)