|
LLVM 24.0.0git
|
Add a counted replay pseudo after affected async barrier arrivals. More...
#include "AMDGPU.h"#include "GCNSubtarget.h"#include "SIMachineFunctionInfo.h"#include "llvm/ADT/SmallVector.h"#include "llvm/CodeGen/MachineFunctionPass.h"#include "llvm/CodeGen/MachineInstrBuilder.h"#include "llvm/CodeGen/MachineRegisterInfo.h"#include "llvm/Support/ErrorHandling.h"Go to the source code of this file.
Macros | |
| #define | DEBUG_TYPE "si-insert-async-barrier-arrive-workaround" |
Functions | |
| static bool | insertAsyncBarrierArriveWorkaround (MachineFunction &MF) |
Add a counted replay pseudo after affected async barrier arrivals.
MC emission saves EXEC, clears it for the dummy load, and restores it. Run after scheduling to keep the pseudo after its arrival, and before wait-count analysis so it accounts for the added async load.
Definition in file SIInsertAsyncBarrierArriveWorkaround.cpp.
| #define DEBUG_TYPE "si-insert-async-barrier-arrive-workaround" |
Definition at line 28 of file SIInsertAsyncBarrierArriveWorkaround.cpp.
|
static |
Definition at line 30 of file SIInsertAsyncBarrierArriveWorkaround.cpp.
References llvm::MachineInstrBuilder::addImm(), llvm::MachineInstrBuilder::addReg(), llvm::BuildMI(), DL, llvm::SmallVectorTemplateCommon< T, typename >::empty(), llvm::MachineFunction::getInfo(), llvm::MachineFunction::getRegInfo(), llvm::SIMachineFunctionInfo::getSGPRForEXECCopy(), llvm::MachineFunction::getSubtarget(), llvm::ImplicitDefine, MBB, MI, MRI, llvm::SmallVectorTemplateBase< T, bool >::push_back(), llvm::reportFatalUsageError(), TII, and llvm::Undef.
Referenced by llvm::SIInsertAsyncBarrierArriveWorkaroundPass::run().