LLVM 22.0.0git
|
This pass mainly lowers early terminate pseudo instructions. More...
#include "AMDGPU.h"
#include "GCNSubtarget.h"
#include "MCTargetDesc/AMDGPUMCTargetDesc.h"
#include "SIMachineFunctionInfo.h"
#include "llvm/CodeGen/MachineDominators.h"
#include "llvm/CodeGen/MachinePassManager.h"
#include "llvm/InitializePasses.h"
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.
#define DEBUG_TYPE "si-late-branch-lowering" |
Definition at line 24 of file SILateBranchLowering.cpp.
|
static |
Definition at line 131 of file SILateBranchLowering.cpp.
References llvm::MachineInstrBuilder::add(), and llvm::MachineInstrBuilder::addReg().
|
static |
Definition at line 80 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 | ( | SILateBranchLoweringLegacy | , |
DEBUG_TYPE | , | ||
"SI insert s_cbranch_execz instructions" | , | ||
false | , | ||
false | ) |
References DEBUG_TYPE, and INITIALIZE_PASS_DEPENDENCY.
|
static |
Definition at line 116 of file SILateBranchLowering.cpp.
References llvm::DominatorTreeBase< NodeT, IsPostDom >::applyUpdates(), MBB, MI, llvm::SmallVectorTemplateBase< T, bool >::push_back(), and llvm::MachineBasicBlock::successors().
DEBUG_TYPE |
Definition at line 75 of file SILateBranchLowering.cpp.
SI insert s_cbranch_execz false |
Definition at line 76 of file SILateBranchLowering.cpp.
SI insert s_cbranch_execz instructions |
Definition at line 76 of file SILateBranchLowering.cpp.