Add, and start using, the CodeGenInstruction class. This class represents
[oota-llvm.git] / utils / TableGen / InstrInfoEmitter.h
index 2a6b063debd7159f58214783bb94e9a54f3d4e4b..87a140b43aaa6cdb6e92512282645f30dbc8984f 100644 (file)
@@ -22,6 +22,7 @@ namespace llvm {
 class StringInit;
 class IntInit;
 class ListInit;
+class CodeGenInstruction;
 
 class InstrInfoEmitter : public TableGenBackend {
   RecordKeeper &Records;
@@ -36,7 +37,8 @@ public:
 private:
   void printDefList(ListInit *LI, const std::string &Name,
                     std::ostream &OS) const;
-  void emitRecord(Record *R, unsigned Num, Record *InstrInfo, std::ostream &OS);
+  void emitRecord(const CodeGenInstruction &Inst, unsigned Num,
+                  Record *InstrInfo, std::ostream &OS);
   void emitShiftedValue(Record *R, StringInit *Val, IntInit *Shift,
                         std::ostream &OS);
 };