summaryrefslogtreecommitdiff
path: root/include/llvm/Analysis/ScalarEvolution.h
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2012-01-07 00:27:31 +0000
committerAndrew Trick <atrick@apple.com>2012-01-07 00:27:31 +0000
commitf8fd841a4bb7a59f81cf4642169e8251e039acfe (patch)
treeeee8c31311fd12826e6c40bbfb12f3c233fbaf71 /include/llvm/Analysis/ScalarEvolution.h
parent4bf76e0e28c2cc358e1106b64cad2fa59714df53 (diff)
downloadllvm-f8fd841a4bb7a59f81cf4642169e8251e039acfe.tar.gz
llvm-f8fd841a4bb7a59f81cf4642169e8251e039acfe.tar.bz2
llvm-f8fd841a4bb7a59f81cf4642169e8251e039acfe.tar.xz
Expose isNonConstantNegative to users of ScalarEvolution.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@147700 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/ScalarEvolution.h')
-rw-r--r--include/llvm/Analysis/ScalarEvolution.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/Analysis/ScalarEvolution.h b/include/llvm/Analysis/ScalarEvolution.h
index 8661787fb9..dd3c80860e 100644
--- a/include/llvm/Analysis/ScalarEvolution.h
+++ b/include/llvm/Analysis/ScalarEvolution.h
@@ -119,6 +119,10 @@ namespace llvm {
///
bool isAllOnesValue() const;
+ /// isNonConstantNegative - Return true if the specified scev is negated,
+ /// but not a constant.
+ bool isNonConstantNegative() const;
+
/// print - Print out the internal representation of this scalar to the
/// specified stream. This should really only be used for debugging
/// purposes.