Add a method
authorChris Lattner <sabre@nondot.org>
Thu, 22 Apr 2004 14:56:51 +0000 (14:56 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 22 Apr 2004 14:56:51 +0000 (14:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13105 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/ScalarEvolution.h

index dc651dbdc3478c0150f9c2efe1ef905c1530a468..c5a892ced228b0ac023a03b74b8af83df0303ebb 100644 (file)
@@ -250,6 +250,14 @@ namespace llvm {
     /// starts at zero and steps by one on each iteration.
     Value *GetOrInsertCanonicalInductionVariable(const Loop *L, const Type *Ty);
 
+
+    /// addInsertedValue - Remember the specified instruction as being the
+    /// canonical form for the specified SCEV.
+    void addInsertedValue(Instruction *I, SCEV *S) {
+      InsertedExpressions[S] = I;
+      InsertedInstructions.insert(I);
+    }
+
     /// ExpandCodeFor - Insert code to directly compute the specified SCEV
     /// expression into the program.  The inserted code is inserted into the
     /// specified block.