1 //===-- llvm/CodeGen/InstrSelectionSupport.h --------------------*- C++ -*-===//
3 // The LLVM Compiler Infrastructure
5 // This file was developed by the LLVM research group and is distributed under
6 // the University of Illinois Open Source License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // Target-independent instruction selection code. See SparcInstrSelection.cpp
13 //===----------------------------------------------------------------------===//
15 #ifndef LLVM_CODEGEN_INSTR_SELECTION_SUPPORT_H
16 #define LLVM_CODEGEN_INSTR_SELECTION_SUPPORT_H
18 #include "llvm/CodeGen/MachineInstr.h"
19 #include "Support/DataTypes.h"
20 class InstructionNode;
24 //---------------------------------------------------------------------------
25 // Function: ChooseRegOrImmed
29 //---------------------------------------------------------------------------
31 MachineOperand::MachineOperandType ChooseRegOrImmed(
34 const TargetMachine& targetMachine,
36 unsigned& getMachineRegNum,
37 int64_t& getImmedValue);
39 MachineOperand::MachineOperandType ChooseRegOrImmed(int64_t intValue,
42 const TargetMachine& target,
44 unsigned& getMachineRegNum,
45 int64_t& getImmedValue);