From 15de32d706287e1457ab26b74d731f5367083b99 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 3 Aug 2003 21:58:28 +0000 Subject: [PATCH] add new --gen-instr-desc option git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7545 91177308-0d34-0410-b5e6-96231b3b80d8 --- support/tools/TableGen/TableGen.cpp | 7 ++++++- utils/TableGen/TableGen.cpp | 7 ++++++- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/support/tools/TableGen/TableGen.cpp b/support/tools/TableGen/TableGen.cpp index 990e2b3b359..8a22c54e472 100644 --- a/support/tools/TableGen/TableGen.cpp +++ b/support/tools/TableGen/TableGen.cpp @@ -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 Recs = Records.getAllDerivedDefinitions(Class); diff --git a/utils/TableGen/TableGen.cpp b/utils/TableGen/TableGen.cpp index 990e2b3b359..8a22c54e472 100644 --- a/utils/TableGen/TableGen.cpp +++ b/utils/TableGen/TableGen.cpp @@ -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 Recs = Records.getAllDerivedDefinitions(Class);