//===-- Transform/Utils/FunctionUtils.h - Function Utils --------*- C++ -*-===//
// 
//                     The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
// 
//===----------------------------------------------------------------------===//
//
// This family of functions perform manipulations on functions.
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_TRANSFORMS_UTILS_FUNCTION_H
#define LLVM_TRANSFORMS_UTILS_FUNCTION_H

namespace llvm {

class Function;
class Loop;

/// ExtractLoop - rip out a natural loop into a new function
///
Function* ExtractLoop(Loop *L);

}

#endif

//===-- Transform/Utils/FunctionUtils.h - Function Utils --------*- C++ -*-===//
// 
//                     The LLVM Compiler Infrastructure
//
// This file was developed by the LLVM research group and is distributed under
// the University of Illinois Open Source License. See LICENSE.TXT for details.
// 
//===----------------------------------------------------------------------===//
//
// This family of functions perform manipulations on functions.
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_TRANSFORMS_UTILS_FUNCTION_H
#define LLVM_TRANSFORMS_UTILS_FUNCTION_H

namespace llvm {

class Function;
class Loop;

/// 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);

}

#endif

Add ability to extract a single basic block into a new function.
Add ability to extract a single basic block into a new function.


git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@12052 91177308-0d34-0410-b5e6-96231b3b80d8
