aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Target/TargetInstrInfo.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-28 17:29:57 +0000
committerChris Lattner <sabre@nondot.org>2006-10-28 17:29:57 +0000
commitc24ff8ed12d01a1b1d2fac57876fc7580024ec49 (patch)
tree5e1775b2202dcef18a59a755605d921ea050af79 /include/llvm/Target/TargetInstrInfo.h
parent1c6f01aaa58c1f8666c30465b73b702524fa9553 (diff)
downloadexternal_llvm-c24ff8ed12d01a1b1d2fac57876fc7580024ec49.zip
external_llvm-c24ff8ed12d01a1b1d2fac57876fc7580024ec49.tar.gz
external_llvm-c24ff8ed12d01a1b1d2fac57876fc7580024ec49.tar.bz2
add another target hook for branch folding.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31262 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Target/TargetInstrInfo.h')
-rw-r--r--include/llvm/Target/TargetInstrInfo.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h
index 9e269f3..b0ac41b 100644
--- a/include/llvm/Target/TargetInstrInfo.h
+++ b/include/llvm/Target/TargetInstrInfo.h
@@ -318,6 +318,14 @@ public:
assert(0 && "Target didn't implement TargetInstrInfo::InsertBranch!");
}
+ /// BlockHasNoFallThrough - Return true if the specified block does not
+ /// fall-through into its successor block. This is primarily used when a
+ /// branch is unanalyzable. It is useful for things like unconditional
+ /// indirect branches (jump tables).
+ virtual bool BlockHasNoFallThrough(MachineBasicBlock &MBB) const {
+ return false;
+ }
+
/// ReverseBranchCondition - Reverses the branch condition of the specified
/// condition list, returning false on success and true if it cannot be
/// reversed.