diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2020-07-26 19:36:28 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2020-07-26 19:36:28 +0000 | 
| commit | cfca06d7963fa0909f90483b42a6d7d194d01e08 (patch) | |
| tree | 209fb2a2d68f8f277793fc8df46c753d31bc853b /llvm/utils/TableGen/TableGen.cpp | |
| parent | 706b4fc47bbc608932d3b491ae19a3b9cde9497b (diff) | |
Notes
Diffstat (limited to 'llvm/utils/TableGen/TableGen.cpp')
| -rw-r--r-- | llvm/utils/TableGen/TableGen.cpp | 26 | 
1 files changed, 25 insertions, 1 deletions
diff --git a/llvm/utils/TableGen/TableGen.cpp b/llvm/utils/TableGen/TableGen.cpp index bdb963c15d32..8015a58471ca 100644 --- a/llvm/utils/TableGen/TableGen.cpp +++ b/llvm/utils/TableGen/TableGen.cpp @@ -54,12 +54,21 @@ enum ActionType {    GenRegisterBank,    GenExegesis,    GenAutomata, +  GenDirectivesEnumDecl, +  GenDirectivesEnumImpl, +  GenDirectivesEnumGen,  };  namespace llvm {  /// Storage for TimeRegionsOpt as a global so that backends aren't required to  /// include CommandLine.h  bool TimeRegions = false; +cl::opt<bool> EmitLongStrLiterals( +    "long-string-literals", +    cl::desc("when emitting large string tables, prefer string literals over " +             "comma-separated char literals. This can be a readability and " +             "compile-time performance win, but upsets some compilers"), +    cl::Hidden, cl::init(true));  } // end namespace llvm  namespace { @@ -122,7 +131,13 @@ cl::opt<ActionType> Action(                     "Generate registers bank descriptions"),          clEnumValN(GenExegesis, "gen-exegesis",                     "Generate llvm-exegesis tables"), -        clEnumValN(GenAutomata, "gen-automata", "Generate generic automata"))); +        clEnumValN(GenAutomata, "gen-automata", "Generate generic automata"), +        clEnumValN(GenDirectivesEnumDecl, "gen-directive-decl", +                   "Generate directive related declaration code (header file)"), +        clEnumValN(GenDirectivesEnumImpl, "gen-directive-impl", +                   "Generate directive related implementation code"), +        clEnumValN(GenDirectivesEnumGen, "gen-directive-gen", +                   "Generate directive related implementation code part")));  cl::OptionCategory PrintEnumsCat("Options for -print-enums");  cl::opt<std::string> Class("class", cl::desc("Print Enum list for this class"), @@ -247,6 +262,15 @@ bool LLVMTableGenMain(raw_ostream &OS, RecordKeeper &Records) {    case GenAutomata:      EmitAutomata(Records, OS);      break; +  case GenDirectivesEnumDecl: +    EmitDirectivesDecl(Records, OS); +    break; +  case GenDirectivesEnumImpl: +    EmitDirectivesImpl(Records, OS); +    break; +  case GenDirectivesEnumGen: +    EmitDirectivesGen(Records, OS); +    break;    }    return false;  | 
