Add an isOne() utility function to ScalarEvolution, similar to isZero()

and similar to ConstantInt's isOne().


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@72003 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman
2009-05-18 15:22:39 +00:00
parent 04623272d2
commit 70a1fe7048
2 changed files with 10 additions and 1 deletions

View File

@ -77,6 +77,10 @@ namespace llvm {
///
bool isZero() const;
/// isOne - Return true if the expression is a constant one.
///
bool isOne() const;
/// replaceSymbolicValuesWithConcrete - If this SCEV internally references
/// the symbolic value "Sym", construct and return a new SCEV that produces
/// the same value, but which uses the concrete value Conc instead of the