add two helper methods
authorChris Lattner <sabre@nondot.org>
Tue, 9 Aug 2005 23:36:18 +0000 (23:36 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 9 Aug 2005 23:36:18 +0000 (23:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22735 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/ScalarEvolution.h

index ba1b5eff88b6b5929639a0f50ec2f8db9af5f934..74d3162254448c04bff0117c3a0e26aa0a736e00 100644 (file)
@@ -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