diff options
author | Jeff Cohen <jeffc@jolt-lang.org> | 2005-01-08 17:21:40 +0000 |
---|---|---|
committer | Jeff Cohen <jeffc@jolt-lang.org> | 2005-01-08 17:21:40 +0000 |
commit | bf65268def058af3e1d35aba233d5f0fd5a80fce (patch) | |
tree | cf66144272a7f92e35ddc38263646c7f9e43560a /lib/Transforms/IPO/LoopExtractor.cpp | |
parent | ae0aacb8331e1227abea6601e531a10d0e65fdca (diff) | |
download | llvm-bf65268def058af3e1d35aba233d5f0fd5a80fce.tar.gz llvm-bf65268def058af3e1d35aba233d5f0fd5a80fce.tar.bz2 llvm-bf65268def058af3e1d35aba233d5f0fd5a80fce.tar.xz |
Add more missing createXxxPass functions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19370 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/LoopExtractor.cpp')
-rw-r--r-- | lib/Transforms/IPO/LoopExtractor.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Transforms/IPO/LoopExtractor.cpp b/lib/Transforms/IPO/LoopExtractor.cpp index 1bdb5c272a..638820e398 100644 --- a/lib/Transforms/IPO/LoopExtractor.cpp +++ b/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>(); |