diff options
author | Chris Lattner <sabre@nondot.org> | 2003-10-05 19:27:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-10-05 19:27:59 +0000 |
commit | f5bd1b7a8e141df5bfebdd9749c1e11bc4607766 (patch) | |
tree | 79b60f4661c49df6b0576c9d064c90f31ae575ba /llvm/utils/TableGen/CodeEmitterGen.h | |
parent | 5f0c08e9cfe2d8a1233c0e92ac2dea62b4dc40b0 (diff) | |
download | bcm5719-llvm-f5bd1b7a8e141df5bfebdd9749c1e11bc4607766.tar.gz bcm5719-llvm-f5bd1b7a8e141df5bfebdd9749c1e11bc4607766.zip |
Move support/tools/* back into utils
llvm-svn: 8875
Diffstat (limited to 'llvm/utils/TableGen/CodeEmitterGen.h')
-rw-r--r-- | llvm/utils/TableGen/CodeEmitterGen.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/llvm/utils/TableGen/CodeEmitterGen.h b/llvm/utils/TableGen/CodeEmitterGen.h new file mode 100644 index 00000000000..4b87da5067e --- /dev/null +++ b/llvm/utils/TableGen/CodeEmitterGen.h @@ -0,0 +1,24 @@ +//===- CodeEmitterGen.h - Code Emitter Generator ----------------*- C++ -*-===// +// +// FIXME: document +// +//===----------------------------------------------------------------------===// + +#ifndef CODEMITTERGEN_H +#define CODEMITTERGEN_H + +#include "TableGenBackend.h" + +class CodeEmitterGen : public TableGenBackend { + RecordKeeper &Records; +public: + CodeEmitterGen(RecordKeeper &R) : Records(R) {} + + // run - Output the code emitter + void run(std::ostream &o); +private: + void emitMachineOpEmitter(std::ostream &o, const std::string &Namespace); + void emitGetValueBit(std::ostream &o, const std::string &Namespace); +}; + +#endif |