1 //===- InstrInfoEmitter.h - Generate a Instruction Set Desc. ----*- C++ -*-===//
3 // This tablegen backend is responsible for emitting a description of the target
4 // instruction set for the code generator.
6 //===----------------------------------------------------------------------===//
8 #ifndef INSTRINFO_EMITTER_H
9 #define INSTRINFO_EMITTER_H
14 class InstrInfoEmitter {
15 RecordKeeper &Records;
17 InstrInfoEmitter(RecordKeeper &R) : Records(R) {}
19 // run - Output the instruction set description, returning true on failure.
20 void run(std::ostream &o);
22 // runEnums - Print out enum values for all of the instructions.
23 void runEnums(std::ostream &o);