1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 03:33:20 +01:00

Add an accessor method to allow clients to test if a given expression

is associated with a SCEV expansion.

llvm-svn: 70556
This commit is contained in:
Dan Gohman 2009-05-01 17:08:34 +00:00
parent bdc33dc988
commit daa3a9f38c

View File

@ -53,6 +53,12 @@ namespace llvm {
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