LLVM: lib/Target/AMDGPU/SILateBranchLowering.cpp File Reference (original) (raw)

This pass mainly lowers early terminate pseudo instructions. More...

Go to the source code of this file.

Macros
#define DEBUG_TYPE "si-late-branch-lowering"
Functions
INITIALIZE_PASS_BEGIN (SILateBranchLoweringLegacy, DEBUG_TYPE, "SI insert s_cbranch_execz instructions", false, false) INITIALIZE_PASS_END(SILateBranchLoweringLegacy
static void generateEndPgm (MachineBasicBlock &MBB, MachineBasicBlock::iterator I, DebugLoc DL, const SIInstrInfo *TII, MachineFunction &MF)
static void splitBlock (MachineBasicBlock &MBB, MachineInstr &MI, MachineDominatorTree *MDT)
static void copyOpWithoutRegFlags (MachineInstrBuilder &MIB, MachineOperand &Op)
Variables
DEBUG_TYPE
SI insert s_cbranch_execz instructions
SI insert s_cbranch_execz false

This pass mainly lowers early terminate pseudo instructions.

Definition in file SILateBranchLowering.cpp.

DEBUG_TYPE

#define DEBUG_TYPE "si-late-branch-lowering"

copyOpWithoutRegFlags()

generateEndPgm()

Definition at line 83 of file SILateBranchLowering.cpp.

References llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addReg(), llvm::CallingConv::AMDGPU_PS, llvm::BuildMI(), const, DL, llvm::AMDGPU::Exp::ET_MRT0, llvm::AMDGPU::Exp::ET_MRTZ, llvm::AMDGPU::Exp::ET_NULL, F, generateEndPgm(), llvm::AMDGPU::getHasColorExport(), llvm::AMDGPU::getHasDepthExport(), I, llvm::AMDGPU::isGFX10Plus(), MBB, TII, and llvm::RegState::Undef.

Referenced by generateEndPgm().

INITIALIZE_PASS_BEGIN()

INITIALIZE_PASS_BEGIN ( SILateBranchLoweringLegacy ,
DEBUG_TYPE ,
"SI insert s_cbranch_execz instructions" ,
false ,
false )

splitBlock()

DEBUG_TYPE

false

SI insert s_cbranch_execz false

instructions

SI insert s_cbranch_execz instructions