[llvm-commits] CVS: llvm/include/llvm/Target/TargetInstrInfo.h

Chris Lattner sabre at nondot.org
Fri Oct 13 13:59:45 PDT 2006



Changes in directory llvm/include/llvm/Target:

TargetInstrInfo.h updated: 1.92 -> 1.93
---
Log message:

allow branch reversal to fail


---
Diffs of the changes:  (+5 -4)

 TargetInstrInfo.h |    9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)


Index: llvm/include/llvm/Target/TargetInstrInfo.h
diff -u llvm/include/llvm/Target/TargetInstrInfo.h:1.92 llvm/include/llvm/Target/TargetInstrInfo.h:1.93
--- llvm/include/llvm/Target/TargetInstrInfo.h:1.92	Fri Oct 13 15:44:01 2006
+++ llvm/include/llvm/Target/TargetInstrInfo.h	Fri Oct 13 15:59:31 2006
@@ -308,10 +308,11 @@
     assert(0 && "Target didn't implement TargetInstrInfo::RemoveBranch!"); 
   }
   
-  /// Reverses the branch condition of the MachineInstr pointed by
-  /// MI. The instruction is replaced and the new MI is returned.
-  virtual void ReverseBranchCondition(std::vector<MachineOperand> &Cond) const {
-    assert(0 && "Target didn't implement ReverseBranchCondition!");
+  /// ReverseBranchCondition - Reverses the branch condition of the specified
+  /// condition list, returning false on success and true if it cannot be
+  /// reversed.
+  virtual bool ReverseBranchCondition(std::vector<MachineOperand> &Cond) const {
+    return true;
   }
   
   /// insertNoop - Insert a noop into the instruction stream at the specified






More information about the llvm-commits mailing list