mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 19:25:00 +00:00
Add an accessor method to allow clients to test if a given expression
is associated with a SCEV expansion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70556 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -53,6 +53,12 @@ namespace llvm {
|
|||||||
return InsertedValues.count(I);
|
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
|
/// getOrInsertCanonicalInductionVariable - This method returns the
|
||||||
/// canonical induction variable of the specified type for the specified
|
/// canonical induction variable of the specified type for the specified
|
||||||
/// loop (inserting one if there is none). A canonical induction variable
|
/// loop (inserting one if there is none). A canonical induction variable
|
||||||
|
Reference in New Issue
Block a user