mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-10-30 16:17:05 +00:00 
			
		
		
		
	git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9903 91177308-0d34-0410-b5e6-96231b3b80d8
		
			
				
	
	
		
			53 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			53 lines
		
	
	
		
			1.9 KiB
		
	
	
	
		
			C++
		
	
	
	
	
	
| //===-- llvm/CodeGen/InstrSelectionSupport.h --------------------*- 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.
 | |
| // 
 | |
| //===----------------------------------------------------------------------===//
 | |
| //
 | |
| //  Target-independent instruction selection code.  See SparcInstrSelection.cpp
 | |
| //  for usage.
 | |
| //      
 | |
| //===----------------------------------------------------------------------===//
 | |
| 
 | |
| #ifndef LLVM_CODEGEN_INSTR_SELECTION_SUPPORT_H
 | |
| #define LLVM_CODEGEN_INSTR_SELECTION_SUPPORT_H
 | |
| 
 | |
| #include "llvm/CodeGen/MachineInstr.h"
 | |
| #include "Support/DataTypes.h"
 | |
| 
 | |
| namespace llvm {
 | |
| 
 | |
| class InstructionNode;
 | |
| class TargetMachine;
 | |
| class Instruction;
 | |
| 
 | |
| //---------------------------------------------------------------------------
 | |
| // Function: ChooseRegOrImmed
 | |
| // 
 | |
| // Purpose:
 | |
| // 
 | |
| //---------------------------------------------------------------------------
 | |
| 
 | |
| MachineOperand::MachineOperandType ChooseRegOrImmed(
 | |
|                                          Value* val,
 | |
|                                          MachineOpCode opCode,
 | |
|                                          const TargetMachine& targetMachine,
 | |
|                                          bool canUseImmed,
 | |
|                                          unsigned& getMachineRegNum,
 | |
|                                          int64_t& getImmedValue);
 | |
| 
 | |
| MachineOperand::MachineOperandType ChooseRegOrImmed(int64_t intValue,
 | |
|                                          bool isSigned,
 | |
|                                          MachineOpCode opCode,
 | |
|                                          const TargetMachine& target,
 | |
|                                          bool canUseImmed,
 | |
|                                          unsigned& getMachineRegNum,
 | |
|                                          int64_t& getImmedValue);
 | |
| 
 | |
| } // End llvm namespace
 | |
| 
 | |
| #endif
 |