mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-04 05:17:07 +00:00 
			
		
		
		
	git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140172 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			46 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			46 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
//===-- Transform/Utils/FunctionUtils.h - Function Utils --------*- C++ -*-===//
 | 
						|
//
 | 
						|
//                     The LLVM Compiler Infrastructure
 | 
						|
//
 | 
						|
// This file is distributed under the University of Illinois Open Source
 | 
						|
// License. See LICENSE.TXT for details.
 | 
						|
//
 | 
						|
//===----------------------------------------------------------------------===//
 | 
						|
//
 | 
						|
// This family of transformations manipulate LLVM functions.
 | 
						|
//
 | 
						|
//===----------------------------------------------------------------------===//
 | 
						|
 | 
						|
#ifndef LLVM_TRANSFORMS_UTILS_FUNCTION_H
 | 
						|
#define LLVM_TRANSFORMS_UTILS_FUNCTION_H
 | 
						|
 | 
						|
#include "llvm/ADT/ArrayRef.h"
 | 
						|
#include <vector>
 | 
						|
 | 
						|
namespace llvm {
 | 
						|
  class BasicBlock;
 | 
						|
  class DominatorTree;
 | 
						|
  class Function;
 | 
						|
  class Loop;
 | 
						|
 | 
						|
  /// ExtractCodeRegion - Rip out a sequence of basic blocks into a new
 | 
						|
  /// function.
 | 
						|
  ///
 | 
						|
  Function* ExtractCodeRegion(DominatorTree& DT,
 | 
						|
                              ArrayRef<BasicBlock*> code,
 | 
						|
                              bool AggregateArgs = false);
 | 
						|
 | 
						|
  /// ExtractLoop - Rip out a natural loop into a new function.
 | 
						|
  ///
 | 
						|
  Function* ExtractLoop(DominatorTree& DT, Loop *L,
 | 
						|
                        bool AggregateArgs = false);
 | 
						|
 | 
						|
  /// ExtractBasicBlock - Rip out a basic block (and the associated landing pad)
 | 
						|
  /// into a new function.
 | 
						|
  ///
 | 
						|
  Function* ExtractBasicBlock(ArrayRef<BasicBlock*> BBs,
 | 
						|
                              bool AggregateArgs = false);
 | 
						|
}
 | 
						|
 | 
						|
#endif
 |