Added LLVM copyright header (for lack of a better term).
[oota-llvm.git] / include / llvm / CodeGen / InstrSelectionSupport.h
1 //===-- llvm/CodeGen/InstrSelectionSupport.h --------------------*- C++ -*-===//
2 // 
3 //                     The LLVM Compiler Infrastructure
4 //
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.
7 // 
8 //===----------------------------------------------------------------------===//
9 //
10 //  Target-independent instruction selection code.  See SparcInstrSelection.cpp
11 //  for usage.
12 //      
13 //===----------------------------------------------------------------------===//
14
15 #ifndef LLVM_CODEGEN_INSTR_SELECTION_SUPPORT_H
16 #define LLVM_CODEGEN_INSTR_SELECTION_SUPPORT_H
17
18 #include "llvm/CodeGen/MachineInstr.h"
19 #include "Support/DataTypes.h"
20 class InstructionNode;
21 class TargetMachine;
22 class Instruction;
23
24 //---------------------------------------------------------------------------
25 // Function: ChooseRegOrImmed
26 // 
27 // Purpose:
28 // 
29 //---------------------------------------------------------------------------
30
31 MachineOperand::MachineOperandType ChooseRegOrImmed(
32                                          Value* val,
33                                          MachineOpCode opCode,
34                                          const TargetMachine& targetMachine,
35                                          bool canUseImmed,
36                                          unsigned& getMachineRegNum,
37                                          int64_t& getImmedValue);
38
39 MachineOperand::MachineOperandType ChooseRegOrImmed(int64_t intValue,
40                                          bool isSigned,
41                                          MachineOpCode opCode,
42                                          const TargetMachine& target,
43                                          bool canUseImmed,
44                                          unsigned& getMachineRegNum,
45                                          int64_t& getImmedValue);
46
47 #endif