27fe7cc1001859c21b822d1b5094311c65930c56
[oota-llvm.git] / include / llvm / Transforms / Utils / FunctionUtils.h
1 //===-- Transform/Utils/FunctionUtils.h - Function Utils --------*- C++ -*-===//
2 // 
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
7 // 
8 //===----------------------------------------------------------------------===//
9 //
10 // This family of functions perform manipulations on functions.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #ifndef LLVM_TRANSFORMS_UTILS_FUNCTION_H
15 #define LLVM_TRANSFORMS_UTILS_FUNCTION_H
16
17 namespace llvm {
18
19 class Function;
20 class Loop;
21
22 /// ExtractLoop - rip out a natural loop into a new function
23 ///
24 Function* ExtractLoop(Loop *L);
25
26 /// ExtractBasicBlock - rip out a basic block into a new function
27 ///
28 Function* ExtractBasicBlock(BasicBlock *BB);
29
30 }
31
32 #endif