summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2005-01-08 17:21:40 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2005-01-08 17:21:40 +0000
commit677babc4d4ea5a2f5c84d05410692370a0ecea16 (patch)
tree278d2b3ce2afde1ef763d4c405b9894a4b288032 /llvm/lib/Transforms/IPO
parent2a6db3c351426828450bcbad50f9851144793e55 (diff)
downloadbcm5719-llvm-677babc4d4ea5a2f5c84d05410692370a0ecea16.tar.gz
bcm5719-llvm-677babc4d4ea5a2f5c84d05410692370a0ecea16.zip
Add more missing createXxxPass functions.
llvm-svn: 19370
Diffstat (limited to 'llvm/lib/Transforms/IPO')
-rw-r--r--llvm/lib/Transforms/IPO/LoopExtractor.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/IPO/LoopExtractor.cpp b/llvm/lib/Transforms/IPO/LoopExtractor.cpp
index 1bdb5c272a6..638820e3986 100644
--- a/llvm/lib/Transforms/IPO/LoopExtractor.cpp
+++ b/llvm/lib/Transforms/IPO/LoopExtractor.cpp
@@ -58,6 +58,11 @@ namespace {
Y("loop-extract-single", "Extract at most one loop into a new function");
} // End anonymous namespace
+// createLoopExtractorPass - This pass extracts all natural loops from the
+// program into a function if it can.
+//
+ModulePass *llvm::createLoopExtractorPass() { return new LoopExtractor(); }
+
bool LoopExtractor::runOnFunction(Function &F) {
LoopInfo &LI = getAnalysis<LoopInfo>();
OpenPOWER on IntegriCloud