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 | 835a75968678ae65e948cd0c1888d7eb1ca115d1 (patch) | |
tree | b0d4c190b358581f0122d58b5698dbbd47f15024 /llvm | |
parent | cee3404d0aefbe0b4837ec7b2904cb460943f86f (diff) | |
download | bcm5719-llvm-835a75968678ae65e948cd0c1888d7eb1ca115d1.tar.gz bcm5719-llvm-835a75968678ae65e948cd0c1888d7eb1ca115d1.zip |
The code extractor needs dominator information, so we provide it.
llvm-svn: 12482
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/Transforms/Utils/FunctionUtils.h | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/llvm/include/llvm/Transforms/Utils/FunctionUtils.h b/llvm/include/llvm/Transforms/Utils/FunctionUtils.h index cbc8c446d07..22b64959155 100644 --- a/llvm/include/llvm/Transforms/Utils/FunctionUtils.h +++ b/llvm/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 |