summaryrefslogtreecommitdiffstats
path: root/llvm/include
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2015-10-22 21:21:32 +0000
committerJustin Bogner <mail@justinbogner.com>2015-10-22 21:21:32 +0000
commit35e46cdd04a4aecc2dd06f092ec23cf116beadad (patch)
treebff6b9c6e66481e2b1192a2b64e69463fd75e891 /llvm/include
parentbb90685aefcc1fae7153c77d4f73f546e91c9e98 (diff)
downloadbcm5719-llvm-35e46cdd04a4aecc2dd06f092ec23cf116beadad.tar.gz
bcm5719-llvm-35e46cdd04a4aecc2dd06f092ec23cf116beadad.zip
LoopPass: Simplify the API for adding a new loop. NFC
The insertLoop() API is only used to add new loops, and has confusing ownership semantics. Simplify it by replacing it with addLoop(). llvm-svn: 251064
Diffstat (limited to 'llvm/include')
-rw-r--r--llvm/include/llvm/Analysis/LoopPass.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/llvm/include/llvm/Analysis/LoopPass.h b/llvm/include/llvm/Analysis/LoopPass.h
index 8650000fcfb..e57bcc292c3 100644
--- a/llvm/include/llvm/Analysis/LoopPass.h
+++ b/llvm/include/llvm/Analysis/LoopPass.h
@@ -130,12 +130,9 @@ public:
// Delete loop from the loop queue and loop nest (LoopInfo).
void deleteLoopFromQueue(Loop *L);
- // Insert loop into the loop queue and add it as a child of the
- // given parent.
- void insertLoop(Loop *L, Loop *ParentLoop);
-
- // Insert a loop into the loop queue.
- void insertLoopIntoQueue(Loop *L);
+ // Add a new loop into the loop queue as a child of the given parent, or at
+ // the top level if \c ParentLoop is null.
+ Loop &addLoop(Loop *ParentLoop);
// Reoptimize this loop. LPPassManager will re-insert this loop into the
// queue. This allows LoopPass to change loop nest for the loop. This
OpenPOWER on IntegriCloud