diff options
| author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-03-02 00:57:39 +0000 |
|---|---|---|
| committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2016-03-02 00:57:39 +0000 |
| commit | b765b633cb63ca172cda12eb1cc2e323de871106 (patch) | |
| tree | 54498bf203c1f28f7ab2b49414819e5e90830883 /llvm/include | |
| parent | ca5e90f83cb0aba71717c0f590b7d92b1362bdd4 (diff) | |
| download | bcm5719-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.h | 6 |
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); |

