diff options
author | Chris Lattner <sabre@nondot.org> | 2009-10-10 23:41:48 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-10-10 23:41:48 +0000 |
commit | 0bef562ea253878ee92a1eaf6db05b0c2edfa74c (patch) | |
tree | cf9ef80b3762d10e1886b63274e7debe89d30854 /include/llvm/Transforms/Utils/SSAUpdater.h | |
parent | f5a1fb6b247611b92d9dec9476202b477661dbe8 (diff) | |
download | external_llvm-0bef562ea253878ee92a1eaf6db05b0c2edfa74c.zip external_llvm-0bef562ea253878ee92a1eaf6db05b0c2edfa74c.tar.gz external_llvm-0bef562ea253878ee92a1eaf6db05b0c2edfa74c.tar.bz2 |
add a simple helper method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83745 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Transforms/Utils/SSAUpdater.h')
-rw-r--r-- | include/llvm/Transforms/Utils/SSAUpdater.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Transforms/Utils/SSAUpdater.h b/include/llvm/Transforms/Utils/SSAUpdater.h index c697d04..11b90d4 100644 --- a/include/llvm/Transforms/Utils/SSAUpdater.h +++ b/include/llvm/Transforms/Utils/SSAUpdater.h @@ -60,6 +60,10 @@ public: /// AddAvailableValue - Indicate that a rewritten value is available at the /// end of the specified block with the specified value. void AddAvailableValue(BasicBlock *BB, Value *V); + + /// HasValueForBlock - Return true if the SSAUpdater already has a value for + /// the specified block. + bool HasValueForBlock(BasicBlock *BB) const; /// GetValueAtEndOfBlock - Construct SSA form, materializing a value that is /// live at the end of the specified block. |