1 //===-- llvm/CodeGen/InstrSelectionSupport.h --------------------*- C++ -*-===//
3 // Target-independent instruction selection code. See SparcInstrSelection.cpp
6 //===----------------------------------------------------------------------===//
8 #ifndef LLVM_CODEGEN_INSTR_SELECTION_SUPPORT_H
9 #define LLVM_CODEGEN_INSTR_SELECTION_SUPPORT_H
11 #include "llvm/CodeGen/MachineInstr.h"
12 #include "Support/DataTypes.h"
13 class InstructionNode;
17 //---------------------------------------------------------------------------
18 // Function: ChooseRegOrImmed
22 //---------------------------------------------------------------------------
24 MachineOperand::MachineOperandType ChooseRegOrImmed(
27 const TargetMachine& targetMachine,
29 unsigned& getMachineRegNum,
30 int64_t& getImmedValue);
32 MachineOperand::MachineOperandType ChooseRegOrImmed(int64_t intValue,
35 const TargetMachine& target,
37 unsigned& getMachineRegNum,
38 int64_t& getImmedValue);