[llvm-commits] [llvm] r70556 - /llvm/trunk/include/llvm/Analysis/ScalarEvolutionExpander.h

Dan Gohman gohman at apple.com
Fri May 1 10:08:34 PDT 2009


Author: djg
Date: Fri May  1 12:08:34 2009
New Revision: 70556

URL: http://llvm.org/viewvc/llvm-project?rev=70556&view=rev
Log:
Add an accessor method to allow clients to test if a given expression
is associated with a SCEV expansion.

Modified:
    llvm/trunk/include/llvm/Analysis/ScalarEvolutionExpander.h

Modified: llvm/trunk/include/llvm/Analysis/ScalarEvolutionExpander.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/ScalarEvolutionExpander.h?rev=70556&r1=70555&r2=70556&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Analysis/ScalarEvolutionExpander.h (original)
+++ llvm/trunk/include/llvm/Analysis/ScalarEvolutionExpander.h Fri May  1 12:08:34 2009
@@ -53,6 +53,12 @@
       return InsertedValues.count(I);
     }
 
+    /// isInsertedExpression - Return true if the the code rewriter has a
+    /// Value* recorded for the given expression.
+    bool isInsertedExpression(const SCEV *S) const {
+      return InsertedExpressions.count(S);
+    }
+
     /// getOrInsertCanonicalInductionVariable - This method returns the
     /// canonical induction variable of the specified type for the specified
     /// loop (inserting one if there is none).  A canonical induction variable





More information about the llvm-commits mailing list