diff options
author | Sebastian Pop <spop@codeaurora.org> | 2014-05-09 22:45:07 +0000 |
---|---|---|
committer | Sebastian Pop <spop@codeaurora.org> | 2014-05-09 22:45:07 +0000 |
commit | 754e940865aaf63be79dcb921572eff4b1042c7c (patch) | |
tree | 57bdd2961c38da67991cbf245a1f32140724857a /include/llvm/Analysis/ScalarEvolution.h | |
parent | f255eb964370acb26813504a4cb680040ffae517 (diff) | |
download | llvm-754e940865aaf63be79dcb921572eff4b1042c7c.tar.gz llvm-754e940865aaf63be79dcb921572eff4b1042c7c.tar.bz2 llvm-754e940865aaf63be79dcb921572eff4b1042c7c.tar.xz |
move findArrayDimensions to ScalarEvolution
we do not use the information from SCEVAddRecExpr to compute the shape of the array,
so a better place for this function is in ScalarEvolution.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@208456 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/ScalarEvolution.h')
-rw-r--r-- | include/llvm/Analysis/ScalarEvolution.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Analysis/ScalarEvolution.h b/include/llvm/Analysis/ScalarEvolution.h index 1e086fbd70..4db8686bae 100644 --- a/include/llvm/Analysis/ScalarEvolution.h +++ b/include/llvm/Analysis/ScalarEvolution.h @@ -894,6 +894,11 @@ namespace llvm { /// indirect operand. bool hasOperand(const SCEV *S, const SCEV *Op) const; + /// Compute the array dimensions Sizes from the set of Terms extracted from + /// the memory access function of this SCEVAddRecExpr. + void findArrayDimensions(SmallVectorImpl<const SCEV *> &Terms, + SmallVectorImpl<const SCEV *> &Sizes) const; + bool runOnFunction(Function &F) override; void releaseMemory() override; void getAnalysisUsage(AnalysisUsage &AU) const override; |