summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2016-03-02 00:57:39 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2016-03-02 00:57:39 +0000
commitb765b633cb63ca172cda12eb1cc2e323de871106 (patch)
tree54498bf203c1f28f7ab2b49414819e5e90830883 /llvm/include
parentca5e90f83cb0aba71717c0f590b7d92b1362bdd4 (diff)
downloadbcm5719-llvm-b765b633cb63ca172cda12eb1cc2e323de871106.tar.gz
bcm5719-llvm-b765b633cb63ca172cda12eb1cc2e323de871106.zip
[SCEV] Extract out a getRangeForAffineAR; NFC
Pure code-motion change. Will be used later in making getRange more clever. llvm-svn: 262437
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Analysis/ScalarEvolution.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/include/llvm/Analysis/ScalarEvolution.h b/llvm/include/llvm/Analysis/ScalarEvolution.h
index 5975d3b95f0..9e5bb00e6bb 100644
--- a/llvm/include/llvm/Analysis/ScalarEvolution.h
+++ b/llvm/include/llvm/Analysis/ScalarEvolution.h
@@ -666,6 +666,12 @@ namespace llvm {
/// Determine the range for a particular SCEV.
ConstantRange getRange(const SCEV *S, RangeSignHint Hint);
+ /// Determines the range for the affine SCEVAddRecExpr {\p Start,+,\p Stop}.
+ /// Helper for \c getRange.
+ ConstantRange getRangeForAffineAR(const SCEV *Start, const SCEV *Stop,
+ const SCEV *MaxBECount,
+ unsigned BitWidth);
+
/// We know that there is no SCEV for the specified value. Analyze the
/// expression.
const SCEV *createSCEV(Value *V);
OpenPOWER on IntegriCloud