OSDN Git Service

add a hook to insert a noop
authorChris Lattner <sabre@nondot.org>
Sun, 5 Mar 2006 23:48:51 +0000 (23:48 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 5 Mar 2006 23:48:51 +0000 (23:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26560 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetInstrInfo.h

index 29ec213..36f4b55 100644 (file)
@@ -273,6 +273,13 @@ public:
     return MI;
   }
   
+  /// insertNoop - Insert a noop into the instruction stream at the specified
+  /// point.
+  virtual void insertNoop(MachineBasicBlock &MBB, 
+                          MachineBasicBlock::iterator MI) const {
+    assert(0 && "Target didn't implement insertNoop!");
+    abort();
+  }
 
   //-------------------------------------------------------------------------
   // Code generation support for creating individual machine instructions