mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-31 08:16:47 +00:00 
			
		
		
		
	git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148465 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			47 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| //===-- CodeGen/MachineInstBundle.h - MI bundle utilities -------*- C++ -*-===//
 | |
| //
 | |
| //                     The LLVM Compiler Infrastructure
 | |
| //
 | |
| // This file is distributed under the University of Illinois Open Source
 | |
| // License. See LICENSE.TXT for details.
 | |
| //
 | |
| //===----------------------------------------------------------------------===//
 | |
| //
 | |
| // This file provide utility functions to manipulate machine instruction
 | |
| // bundles.
 | |
| //
 | |
| //===----------------------------------------------------------------------===//
 | |
| 
 | |
| #ifndef LLVM_CODEGEN_MACHINEINSTRBUNDLE_H
 | |
| #define LLVM_CODEGEN_MACHINEINSTRBUNDLE_H
 | |
| 
 | |
| #include "llvm/CodeGen/MachineBasicBlock.h"
 | |
| 
 | |
| namespace llvm {
 | |
| 
 | |
| /// finalizeBundle - Finalize a machine instruction bundle which includes
 | |
| /// a sequence of instructions starting from FirstMI to LastMI (exclusive).
 | |
| /// This routine adds a BUNDLE instruction to represent the bundle, it adds
 | |
| /// IsInternalRead markers to MachineOperands which are defined inside the
 | |
| /// bundle, and it copies externally visible defs and uses to the BUNDLE
 | |
| /// instruction.
 | |
| void finalizeBundle(MachineBasicBlock &MBB,
 | |
|                     MachineBasicBlock::instr_iterator FirstMI,
 | |
|                     MachineBasicBlock::instr_iterator LastMI);
 | |
|   
 | |
| /// finalizeBundle - Same functionality as the previous finalizeBundle except
 | |
| /// the last instruction in the bundle is not provided as an input. This is
 | |
| /// used in cases where bundles are pre-determined by marking instructions
 | |
| /// with 'InsideBundle' marker. It returns the MBB instruction iterator that
 | |
| /// points to the end of the bundle.
 | |
| MachineBasicBlock::instr_iterator finalizeBundle(MachineBasicBlock &MBB,
 | |
|                     MachineBasicBlock::instr_iterator FirstMI);
 | |
| 
 | |
| /// finalizeBundles - Finalize instruction bundles in the specified
 | |
| /// MachineFunction. Return true if any bundles are finalized.
 | |
| bool finalizeBundles(MachineFunction &MF);
 | |
| 
 | |
| } // End llvm namespace
 | |
| 
 | |
| #endif
 |