OSDN Git Service

Add machine independant printer interface
authorChris Lattner <sabre@nondot.org>
Sun, 17 Nov 2002 22:54:55 +0000 (22:54 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 17 Nov 2002 22:54:55 +0000 (22:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4729 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/MachineInstrInfo.h
include/llvm/Target/TargetInstrInfo.h

index 2b2cec3..5c694f6 100644 (file)
@@ -94,6 +94,12 @@ public:
     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;
   }
index 2b2cec3..5c694f6 100644 (file)
@@ -94,6 +94,12 @@ public:
     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;
   }