Implement insertGoto and reverseBranchCondition for the X86.
[oota-llvm.git] / lib / Target / X86 / X86InstrInfo.h
index 5b3ddd06abc32e7d619b0fd5ebb148c0b8d18347..eb920d67d87a504e2b55175b165a2c79b771f8a7 100644 (file)
@@ -203,6 +203,16 @@ public:
                            unsigned& sourceReg,
                            unsigned& destReg) const;
 
+  /// Insert a goto (unconditional branch) sequence to TMBB, at the
+  /// end of MBB
+  virtual void insertGoto(MachineBasicBlock& MBB,
+                          MachineBasicBlock& TMBB) const;
+
+  /// Reverses the branch condition of the MachineInstr pointed by
+  /// MI. The instruction is replaced and the new MI is returned.
+  virtual MachineBasicBlock::iterator
+  reverseBranchCondition(MachineBasicBlock::iterator MI) const;
+
   // getBaseOpcodeFor - This function returns the "base" X86 opcode for the
   // specified opcode number.
   //