summaryrefslogtreecommitdiff
path: root/include/llvm/Transforms/Utils
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-03-18 03:47:46 +0000
committerChris Lattner <sabre@nondot.org>2004-03-18 03:47:46 +0000
commit268316ee1439a6a531f666944705b8cc3d1e761b (patch)
treeae649260f111764bb53618e63b3e9575d3737864 /include/llvm/Transforms/Utils
parent33e197b7778c92acc732c3255dc8fbb99923e8cc (diff)
downloadllvm-268316ee1439a6a531f666944705b8cc3d1e761b.tar.gz
llvm-268316ee1439a6a531f666944705b8cc3d1e761b.tar.bz2
llvm-268316ee1439a6a531f666944705b8cc3d1e761b.tar.xz
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/llvm/Transforms/Utils')
-rw-r--r--include/llvm/Transforms/Utils/FunctionUtils.h32
1 files changed, 16 insertions, 16 deletions
diff --git a/include/llvm/Transforms/Utils/FunctionUtils.h b/include/llvm/Transforms/Utils/FunctionUtils.h
index cbc8c446d0..22b6495915 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