diff options
| author | NAKAMURA Takumi <geek4civic@gmail.com> | 2023-02-19 14:30:14 +0900 |
|---|---|---|
| committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2023-03-21 16:21:27 +0900 |
| commit | 9c93e728bfb8079c1de51e5481168c4083038c2a (patch) | |
| tree | df8c22ac5fe9dce20a9ce8ed9c96522e5e1cfd34 /llvm/utils/TableGen/CodeEmitterGen.cpp | |
| parent | a7e2b749b551dc39fe2840af21759796ccaeb78f (diff) | |
llvm-tblgen: Rewrite emitters to use `TableGen::Emitter`
Each emitter became self-contained since it has the registration of option.
Differential Revision: https://reviews.llvm.org/D144351
Diffstat (limited to 'llvm/utils/TableGen/CodeEmitterGen.cpp')
| -rw-r--r-- | llvm/utils/TableGen/CodeEmitterGen.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/llvm/utils/TableGen/CodeEmitterGen.cpp b/llvm/utils/TableGen/CodeEmitterGen.cpp index 4bbc26018617..66ef71a90a93 100644 --- a/llvm/utils/TableGen/CodeEmitterGen.cpp +++ b/llvm/utils/TableGen/CodeEmitterGen.cpp @@ -16,7 +16,6 @@ #include "CodeGenInstruction.h" #include "CodeGenTarget.h" #include "InfoByHwMode.h" -#include "TableGenBackends.h" #include "VarLenCodeEmitterGen.h" #include "llvm/ADT/APInt.h" #include "llvm/ADT/ArrayRef.h" @@ -504,10 +503,5 @@ void CodeEmitterGen::run(raw_ostream &o) { } // end anonymous namespace -namespace llvm { - -void EmitCodeEmitter(RecordKeeper &RK, raw_ostream &OS) { - CodeEmitterGen(RK).run(OS); -} - -} // end namespace llvm +static TableGen::Emitter::OptClass<CodeEmitterGen> + X("gen-emitter", "Generate machine code emitter"); |
