diff options
Diffstat (limited to 'support/tools/TableGen/InstrInfoEmitter.h')
-rw-r--r-- | support/tools/TableGen/InstrInfoEmitter.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/support/tools/TableGen/InstrInfoEmitter.h b/support/tools/TableGen/InstrInfoEmitter.h new file mode 100644 index 0000000..bf7e675 --- /dev/null +++ b/support/tools/TableGen/InstrInfoEmitter.h @@ -0,0 +1,26 @@ +//===- InstrInfoEmitter.h - Generate a Instruction Set Desc. ----*- C++ -*-===// +// +// This tablegen backend is responsible for emitting a description of the target +// instruction set for the code generator. +// +//===----------------------------------------------------------------------===// + +#ifndef INSTRINFO_EMITTER_H +#define INSTRINFO_EMITTER_H + +#include <iosfwd> +class RecordKeeper; + +class InstrInfoEmitter { + RecordKeeper &Records; +public: + InstrInfoEmitter(RecordKeeper &R) : Records(R) {} + + // run - Output the instruction set description, returning true on failure. + void run(std::ostream &o); + + // runEnums - Print out enum values for all of the instructions. + void runEnums(std::ostream &o); +}; + +#endif |