aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetInstrInfo.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-13 20:59:31 +0000
committerChris Lattner <sabre@nondot.org>2006-10-13 20:59:31 +0000
commit5f1e4dbdf77de6887441af20857967a3d24c01ab (patch)
tree1473bfd2fc0545a7e5940f5ff484a96637ce8f1a /include/llvm/Target/TargetInstrInfo.h
parent1ccc47ec386e6726ca76955b0e739328a49a65c5 (diff)
downloadexternal_llvm-5f1e4dbdf77de6887441af20857967a3d24c01ab.zip
external_llvm-5f1e4dbdf77de6887441af20857967a3d24c01ab.tar.gz
external_llvm-5f1e4dbdf77de6887441af20857967a3d24c01ab.tar.bz2
allow branch reversal to fail
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30943 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetInstrInfo.h')
-rw-r--r--include/llvm/Target/TargetInstrInfo.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h
index e311957..bfe6ad7 100644
--- a/include/llvm/Target/TargetInstrInfo.h
+++ b/include/llvm/Target/TargetInstrInfo.h
@@ -308,10 +308,11 @@ public:
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