aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-11-12 01:29:10 +0000
committerChris Lattner <sabre@nondot.org>2009-11-12 01:29:10 +0000
commit38392bbeb81233d0b342ad33166fc82ad922bc34 (patch)
tree99e205af22f02230682a5513f79ff41fd1c171d3 /include
parentf035ce58bcf66c45d7a956668ae950f1eeeb8b20 (diff)
downloadexternal_llvm-38392bbeb81233d0b342ad33166fc82ad922bc34.zip
external_llvm-38392bbeb81233d0b342ad33166fc82ad922bc34.tar.gz
external_llvm-38392bbeb81233d0b342ad33166fc82ad922bc34.tar.bz2
expose edge information and switch j-t to use it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86920 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/LazyValueInfo.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Analysis/LazyValueInfo.h b/include/llvm/Analysis/LazyValueInfo.h
index 0553e9e..d346696 100644
--- a/include/llvm/Analysis/LazyValueInfo.h
+++ b/include/llvm/Analysis/LazyValueInfo.h
@@ -47,6 +47,10 @@ public:
/// getConstant - Determine whether the specified value is known to be a
/// constant at the end of the specified block. Return null if not.
Constant *getConstant(Value *V, BasicBlock *BB);
+
+ /// getConstantOnEdge - Determine whether the specified value is known to be a
+ /// constant on the specified edge. Return null if not.
+ Constant *getConstantOnEdge(Value *V, BasicBlock *FromBB, BasicBlock *ToBB);
// Implementation boilerplate.