mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-03 14:21:30 +00:00 
			
		
		
		
	The RegionInfo pass detects single entry single exit regions in a function, where a region is defined as any subgraph that is connected to the remaining graph at only two spots. Furthermore an hierarchical region tree is built. Use it by calling "opt -regions analyze" or "opt -view-regions". git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109089 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			27 lines
		
	
	
		
			863 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			863 B
		
	
	
	
		
			C++
		
	
	
	
	
	
//===-- RegionPrinter.h - Region printer external interface -----*- C++ -*-===//
 | 
						|
//
 | 
						|
//                     The LLVM Compiler Infrastructure
 | 
						|
//
 | 
						|
// This file is distributed under the University of Illinois Open Source
 | 
						|
// License. See LICENSE.TXT for details.
 | 
						|
//
 | 
						|
//===----------------------------------------------------------------------===//
 | 
						|
//
 | 
						|
// This file defines external functions that can be called to explicitly
 | 
						|
// instantiate the region printer.
 | 
						|
//
 | 
						|
//===----------------------------------------------------------------------===//
 | 
						|
 | 
						|
#ifndef LLVM_ANALYSIS_REGIONPRINTER_H
 | 
						|
#define LLVM_ANALYSIS_REGIONPRINTER_H
 | 
						|
 | 
						|
namespace llvm {
 | 
						|
  class FunctionPass;
 | 
						|
  FunctionPass *createRegionViewerPass();
 | 
						|
  FunctionPass *createRegionOnlyViewerPass();
 | 
						|
  FunctionPass *createRegionPrinterPass();
 | 
						|
  FunctionPass *createRegionOnlyPrinterPass();
 | 
						|
} // End llvm namespace
 | 
						|
 | 
						|
#endif
 |