diff options
| author | Johannes Doerfert <doerfert@cs.uni-saarland.de> | 2014-10-02 15:32:17 +0000 |
|---|---|---|
| committer | Johannes Doerfert <doerfert@cs.uni-saarland.de> | 2014-10-02 15:32:17 +0000 |
| commit | 51d1c74d78913adc409fb0727341d1f7637428bf (patch) | |
| tree | 1a6967c59fad53cfc1dc265b94cb4eed73fec93a /polly/lib/CodeGen/IRBuilder.cpp | |
| parent | ecdf263c070297ca24eeaf892cda8fa843a05889 (diff) | |
| download | bcm5719-llvm-51d1c74d78913adc409fb0727341d1f7637428bf.tar.gz bcm5719-llvm-51d1c74d78913adc409fb0727341d1f7637428bf.zip | |
[Refactor] Rename LoopAnnotator to ScopAnnotator
The LoopAnnotator doesn't annotate only loops any more, thus it is
called ScopAnnotator from now on.
This also removes unnecessary polly:: namespace tags.
llvm-svn: 218878
Diffstat (limited to 'polly/lib/CodeGen/IRBuilder.cpp')
| -rw-r--r-- | polly/lib/CodeGen/IRBuilder.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/polly/lib/CodeGen/IRBuilder.cpp b/polly/lib/CodeGen/IRBuilder.cpp index d01dca0df0a..b7e03decf3f 100644 --- a/polly/lib/CodeGen/IRBuilder.cpp +++ b/polly/lib/CodeGen/IRBuilder.cpp @@ -46,9 +46,9 @@ static MDNode *getID(LLVMContext &Ctx, Value *arg0 = nullptr, return ID; } -LoopAnnotator::LoopAnnotator() : SE(nullptr), AliasScopeDomain(nullptr) {} +ScopAnnotator::ScopAnnotator() : SE(nullptr), AliasScopeDomain(nullptr) {} -void LoopAnnotator::buildAliasScopes(Scop &S) { +void ScopAnnotator::buildAliasScopes(Scop &S) { SE = S.getSE(); LLVMContext &Ctx = SE->getContext(); @@ -83,7 +83,7 @@ void LoopAnnotator::buildAliasScopes(Scop &S) { } } -void polly::LoopAnnotator::pushLoop(Loop *L, bool IsParallel) { +void ScopAnnotator::pushLoop(Loop *L, bool IsParallel) { ActiveLoops.push_back(L); if (!IsParallel) @@ -98,7 +98,7 @@ void polly::LoopAnnotator::pushLoop(Loop *L, bool IsParallel) { ParallelLoops.push_back(Ids); } -void polly::LoopAnnotator::popLoop(bool IsParallel) { +void ScopAnnotator::popLoop(bool IsParallel) { ActiveLoops.pop_back(); if (!IsParallel) return; @@ -107,8 +107,8 @@ void polly::LoopAnnotator::popLoop(bool IsParallel) { ParallelLoops.pop_back(); } -void polly::LoopAnnotator::annotateLoopLatch(BranchInst *B, Loop *L, - bool IsParallel) const { +void ScopAnnotator::annotateLoopLatch(BranchInst *B, Loop *L, + bool IsParallel) const { if (!IsParallel) return; @@ -118,7 +118,7 @@ void polly::LoopAnnotator::annotateLoopLatch(BranchInst *B, Loop *L, B->setMetadata("llvm.loop", Id); } -void polly::LoopAnnotator::annotate(Instruction *Inst) { +void ScopAnnotator::annotate(Instruction *Inst) { if (!Inst->mayReadOrWriteMemory()) return; |

