mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
add new --gen-instr-desc option
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7545 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0969c5bdf2
commit
15de32d706
@ -22,7 +22,7 @@ enum ActionType {
|
||||
PrintRecords,
|
||||
GenEmitter,
|
||||
GenRegisterEnums, GenRegister, GenRegisterHeader,
|
||||
GenInstrEnums,
|
||||
GenInstrEnums, GenInstrs,
|
||||
PrintEnums,
|
||||
Parse,
|
||||
};
|
||||
@ -42,6 +42,8 @@ namespace {
|
||||
"Generate a register info description header"),
|
||||
clEnumValN(GenInstrEnums, "gen-instr-enums",
|
||||
"Generate enum values for instructions"),
|
||||
clEnumValN(GenInstrs, "gen-instr-desc",
|
||||
"Generate instruction descriptions"),
|
||||
clEnumValN(PrintEnums, "print-enums",
|
||||
"Print enum values for a class"),
|
||||
clEnumValN(Parse, "parse",
|
||||
@ -435,6 +437,9 @@ int main(int argc, char **argv) {
|
||||
case GenInstrEnums:
|
||||
InstrInfoEmitter(Records).runEnums(*Out);
|
||||
break;
|
||||
case GenInstrs:
|
||||
InstrInfoEmitter(Records).run(*Out);
|
||||
break;
|
||||
|
||||
case PrintEnums:
|
||||
std::vector<Record*> Recs = Records.getAllDerivedDefinitions(Class);
|
||||
|
@ -22,7 +22,7 @@ enum ActionType {
|
||||
PrintRecords,
|
||||
GenEmitter,
|
||||
GenRegisterEnums, GenRegister, GenRegisterHeader,
|
||||
GenInstrEnums,
|
||||
GenInstrEnums, GenInstrs,
|
||||
PrintEnums,
|
||||
Parse,
|
||||
};
|
||||
@ -42,6 +42,8 @@ namespace {
|
||||
"Generate a register info description header"),
|
||||
clEnumValN(GenInstrEnums, "gen-instr-enums",
|
||||
"Generate enum values for instructions"),
|
||||
clEnumValN(GenInstrs, "gen-instr-desc",
|
||||
"Generate instruction descriptions"),
|
||||
clEnumValN(PrintEnums, "print-enums",
|
||||
"Print enum values for a class"),
|
||||
clEnumValN(Parse, "parse",
|
||||
@ -435,6 +437,9 @@ int main(int argc, char **argv) {
|
||||
case GenInstrEnums:
|
||||
InstrInfoEmitter(Records).runEnums(*Out);
|
||||
break;
|
||||
case GenInstrs:
|
||||
InstrInfoEmitter(Records).run(*Out);
|
||||
break;
|
||||
|
||||
case PrintEnums:
|
||||
std::vector<Record*> Recs = Records.getAllDerivedDefinitions(Class);
|
||||
|
Loading…
Reference in New Issue
Block a user