Add declarations for insertGoto and reverseBranchCondition.
authorAlkis Evlogimenos <alkis@evlogimenos.com>
Sat, 31 Jul 2004 08:52:30 +0000 (08:52 +0000)
committerAlkis Evlogimenos <alkis@evlogimenos.com>
Sat, 31 Jul 2004 08:52:30 +0000 (08:52 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15358 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetInstrInfo.h

index 06142c77e3b29e072953e367bda3944d3328ef2f..90b7356b0db91d84d018dff6adc3199261fd1793 100644 (file)
@@ -14,6 +14,7 @@
 #ifndef LLVM_TARGET_TARGETINSTRINFO_H
 #define LLVM_TARGET_TARGETINSTRINFO_H
 
+#include "llvm/CodeGen/MachineBasicBlock.h"
 #include "Support/DataTypes.h"
 #include <vector>
 #include <cassert>
@@ -156,8 +157,21 @@ public:
     return false;
   }
 
+  //
+  // Insert a goto (unconditional branch) sequence to MBB, right
+  // before MBBI
+  virtual void insertGoto(const MachineBasicBlock& MBB,
+                          const MachineBasicBlock::iterator MBBI) const {
+    assert(0 && "Target didn't implement insertGoto!");
+  }
 
-
+  //
+  // Reverses the branch condition of the MachineInstr pointed by
+  // MI. The instruction is replaced and the new MI is returned.
+  virtual MachineBasicBlock::iterator
+  reverseBranchCondition(const MachineBasicBlock::iterator MI) const {
+    assert(0 && "Target didn't implement reverseBranchCondition!");
+  }
 
   //-------------------------------------------------------------------------
   // Code generation support for creating individual machine instructions