e7a79f8e21529804def11a98483186d8e0d946bd
1 //===-- SIISelLowering.h - TODO: Add brief description -------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // TODO: Add full description
12 //===----------------------------------------------------------------------===//
14 #ifndef SIISELLOWERING_H
15 #define SIISELLOWERING_H
17 #include "AMDGPUISelLowering.h"
18 #include "SIInstrInfo.h"
22 class SITargetLowering
: public AMDGPUTargetLowering
24 const SIInstrInfo
* TII
;
26 void AppendS_WAITCNT(MachineInstr
*MI
, MachineBasicBlock
&BB
,
27 MachineBasicBlock::iterator I
) const;
28 void LowerSI_INTERP(MachineInstr
*MI
, MachineBasicBlock
&BB
,
29 MachineBasicBlock::iterator I
, MachineRegisterInfo
& MRI
) const;
30 void LowerSI_INTERP_CONST(MachineInstr
*MI
, MachineBasicBlock
&BB
,
31 MachineBasicBlock::iterator I
) const;
32 void LowerSI_V_CNDLT(MachineInstr
*MI
, MachineBasicBlock
&BB
,
33 MachineBasicBlock::iterator I
, MachineRegisterInfo
& MRI
) const;
34 void lowerUSE_SGPR(MachineInstr
*MI
, MachineFunction
* MF
,
35 MachineRegisterInfo
& MRI
) const;
37 SITargetLowering(TargetMachine
&tm
);
38 virtual MachineBasicBlock
* EmitInstrWithCustomInserter(MachineInstr
* MI
,
39 MachineBasicBlock
* BB
) const;
42 } // End namespace llvm
44 #endif //SIISELLOWERING_H