diff options
Diffstat (limited to 'support/tools/TableGen/InstrInfoEmitter.h')
-rw-r--r-- | support/tools/TableGen/InstrInfoEmitter.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/support/tools/TableGen/InstrInfoEmitter.h b/support/tools/TableGen/InstrInfoEmitter.h index bf7e675..0415f04 100644 --- a/support/tools/TableGen/InstrInfoEmitter.h +++ b/support/tools/TableGen/InstrInfoEmitter.h @@ -10,6 +10,9 @@ #include <iosfwd> class RecordKeeper; +class Record; +class StringInit; +class IntInit; class InstrInfoEmitter { RecordKeeper &Records; @@ -17,10 +20,14 @@ public: InstrInfoEmitter(RecordKeeper &R) : Records(R) {} // run - Output the instruction set description, returning true on failure. - void run(std::ostream &o); + void run(std::ostream &OS); // runEnums - Print out enum values for all of the instructions. - void runEnums(std::ostream &o); + void runEnums(std::ostream &OS); +private: + void emitRecord(Record *R, unsigned Num, Record *InstrInfo, std::ostream &OS); + void emitShiftedValue(Record *R, StringInit *Val, IntInit *Shift, + std::ostream &OS); }; #endif |