[llvm-commits] CVS: llvm/include/llvm/Analysis/ScalarEvolution.h

Chris Lattner lattner at cs.uiuc.edu
Thu Apr 22 09:57:01 PDT 2004


Changes in directory llvm/include/llvm/Analysis:

ScalarEvolution.h updated: 1.2 -> 1.3

---
Log message:

Add a method


---
Diffs of the changes:  (+8 -0)

Index: llvm/include/llvm/Analysis/ScalarEvolution.h
diff -u llvm/include/llvm/Analysis/ScalarEvolution.h:1.2 llvm/include/llvm/Analysis/ScalarEvolution.h:1.3
--- llvm/include/llvm/Analysis/ScalarEvolution.h:1.2	Fri Apr  2 14:46:26 2004
+++ llvm/include/llvm/Analysis/ScalarEvolution.h	Thu Apr 22 09:56:51 2004
@@ -250,6 +250,14 @@
     /// 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.





More information about the llvm-commits mailing list