Merge branch 'gallium-userbuf'
[mesa.git] / src / gallium / drivers / radeon / AMDGPUISelLowering.cpp
1 //===-- AMDGPUISelLowering.cpp - AMDGPU Common DAG lowering functions -----===//
2 //
3 // The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This is the parent TargetLowering class for hardware code gen targets.
11 //
12 //===----------------------------------------------------------------------===//
13
14 #include "AMDGPUISelLowering.h"
15 #include "AMDGPUUtil.h"
16 #include "llvm/CodeGen/MachineRegisterInfo.h"
17
18 using namespace llvm;
19
20 AMDGPUTargetLowering::AMDGPUTargetLowering(TargetMachine &TM) :
21 AMDILTargetLowering(TM)
22 {
23 }
24
25 void AMDGPUTargetLowering::addLiveIn(MachineInstr * MI,
26 MachineFunction * MF, MachineRegisterInfo & MRI,
27 const struct TargetInstrInfo * TII, unsigned reg) const
28 {
29 AMDGPU::utilAddLiveIn(MF, MRI, TII, reg, MI->getOperand(0).getReg());
30 }
31