diff options
author | Chris Lattner <sabre@nondot.org> | 2004-03-18 03:47:46 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-03-18 03:47:46 +0000 |
commit | 268316ee1439a6a531f666944705b8cc3d1e761b (patch) | |
tree | ae649260f111764bb53618e63b3e9575d3737864 /include | |
parent | 33e197b7778c92acc732c3255dc8fbb99923e8cc (diff) | |
download | external_llvm-268316ee1439a6a531f666944705b8cc3d1e761b.zip external_llvm-268316ee1439a6a531f666944705b8cc3d1e761b.tar.gz external_llvm-268316ee1439a6a531f666944705b8cc3d1e761b.tar.bz2 |
The code extractor needs dominator information, so we provide it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12482 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Transforms/Utils/FunctionUtils.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/include/llvm/Transforms/Utils/FunctionUtils.h b/include/llvm/Transforms/Utils/FunctionUtils.h index cbc8c44..22b6495 100644 --- a/include/llvm/Transforms/Utils/FunctionUtils.h +++ b/include/llvm/Transforms/Utils/FunctionUtils.h @@ -17,23 +17,23 @@ #include <vector> namespace llvm { - class BasicBlock; -class Function; -class Loop; - -/// ExtractCodeRegion - rip out a sequence of basic blocks into a new function -/// -Function* ExtractCodeRegion(const std::vector<BasicBlock*> &code); - -/// ExtractLoop - rip out a natural loop into a new function -/// -Function* ExtractLoop(Loop *L); - -/// ExtractBasicBlock - rip out a basic block into a new function -/// -Function* ExtractBasicBlock(BasicBlock *BB); - + class DominatorSet; + class Function; + class Loop; + + /// ExtractCodeRegion - rip out a sequence of basic blocks into a new function + /// + Function* ExtractCodeRegion(DominatorSet &DS, + const std::vector<BasicBlock*> &code); + + /// ExtractLoop - rip out a natural loop into a new function + /// + Function* ExtractLoop(DominatorSet &DS, Loop *L); + + /// ExtractBasicBlock - rip out a basic block into a new function + /// + Function* ExtractBasicBlock(BasicBlock *BB); } #endif |