[llvm-commits] CVS: llvm/include/llvm/Target/MachineInstrInfo.h
Chris Lattner
lattner at cs.uiuc.edu
Sun Nov 17 16:56:01 PST 2002
Changes in directory llvm/include/llvm/Target:
MachineInstrInfo.h updated: 1.33 -> 1.34
---
Log message:
Add machine independant printer interface
---
Diffs of the changes:
Index: llvm/include/llvm/Target/MachineInstrInfo.h
diff -u llvm/include/llvm/Target/MachineInstrInfo.h:1.33 llvm/include/llvm/Target/MachineInstrInfo.h:1.34
--- llvm/include/llvm/Target/MachineInstrInfo.h:1.33 Tue Oct 29 19:06:53 2002
+++ llvm/include/llvm/Target/MachineInstrInfo.h Sun Nov 17 16:54:55 2002
@@ -94,6 +94,12 @@
return desc[opCode];
}
+ /// print - Print out the specified machine instruction in the appropriate
+ /// target specific assembly language. If this method is not overridden, the
+ /// default implementation uses the crummy machine independant printer.
+ ///
+ virtual void print(const MachineInstr *MI, std::ostream &O) const;
+
const char *getName(MachineOpCode opCode) const {
return get(opCode).Name;
}
More information about the llvm-commits
mailing list