summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-09 23:36:18 +0000
committerChris Lattner <sabre@nondot.org>2005-08-09 23:36:18 +0000
commit27631a30eb1c5cb1c5190531b10a147f058d6ff1 (patch)
tree1162a30b85d86080c7c464ea8ab2301daeb2b292
parentbd8625b062c468ccd62b713993a45e8dd40e67a7 (diff)
downloadexternal_llvm-27631a30eb1c5cb1c5190531b10a147f058d6ff1.zip
external_llvm-27631a30eb1c5cb1c5190531b10a147f058d6ff1.tar.gz
external_llvm-27631a30eb1c5cb1c5190531b10a147f058d6ff1.tar.bz2
add two helper methods
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22735 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Analysis/ScalarEvolution.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/llvm/Analysis/ScalarEvolution.h b/include/llvm/Analysis/ScalarEvolution.h
index ba1b5ef..74d3162 100644
--- a/include/llvm/Analysis/ScalarEvolution.h
+++ b/include/llvm/Analysis/ScalarEvolution.h
@@ -195,6 +195,14 @@ namespace llvm {
/// specified expression.
SCEVHandle getSCEV(Value *V) const;
+ /// hasSCEV - Return true if the SCEV for this value has already been
+ /// computed.
+ bool hasSCEV(Value *V) const;
+
+ /// setSCEV - Insert the specified SCEV into the map of current SCEVs for
+ /// the specified value.
+ void setSCEV(Value *V, const SCEVHandle &H);
+
/// getSCEVAtScope - Return a SCEV expression handle for the specified value
/// at the specified scope in the program. The L value specifies a loop
/// nest to evaluate the expression at, where null is the top-level or a