summaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorMisha Brukman <brukman+llvm@gmail.com>2004-03-02 00:20:32 +0000
committerMisha Brukman <brukman+llvm@gmail.com>2004-03-02 00:20:32 +0000
commit7ace0409aa5e193a55c5679b07ca439b70c5adc3 (patch)
tree985dc9dbd93347a57dbe425b9f5e5a34c3de416e /include/llvm
parent38b8fd107816b94df1cd5b89123964103498767c (diff)
downloadexternal_llvm-7ace0409aa5e193a55c5679b07ca439b70c5adc3.zip
external_llvm-7ace0409aa5e193a55c5679b07ca439b70c5adc3.tar.gz
external_llvm-7ace0409aa5e193a55c5679b07ca439b70c5adc3.tar.bz2
Add prototype for ExtractCodeRegion()
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12069 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Transforms/Utils/FunctionUtils.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/Transforms/Utils/FunctionUtils.h b/include/llvm/Transforms/Utils/FunctionUtils.h
index 27fe7cc..9ea1e28 100644
--- a/include/llvm/Transforms/Utils/FunctionUtils.h
+++ b/include/llvm/Transforms/Utils/FunctionUtils.h
@@ -7,7 +7,7 @@
//
//===----------------------------------------------------------------------===//
//
-// This family of functions perform manipulations on functions.
+// This family of transformations manipulate LLVM functions.
//
//===----------------------------------------------------------------------===//
@@ -19,6 +19,10 @@ namespace llvm {
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);