LLVM 24.0.0git
AMDGPUCoExecSchedStrategy.cpp File Reference

Coexecution-focused scheduling strategy for AMDGPU. More...

Go to the source code of this file.

Macros

#define DEBUG_TYPE   "machine-scheduler"

Functions

static SUnit * pickOnlyChoice (SchedBoundary &Zone)
static CoExecInfo buildMFMACoExecInfo (unsigned SALU, unsigned Mem, unsigned VALU, unsigned MFMA, unsigned PkF32, unsigned Window)
 Build MFMA co-exec rules from the first stage at which SALU, memory (DS and VMEM), VALU, the next MFMA and packed F32 VALU may issue.

Variables

static constexpr unsigned DefaultCoExecVGPRThresholdPercent = 100

Detailed Description

Coexecution-focused scheduling strategy for AMDGPU.

Definition in file AMDGPUCoExecSchedStrategy.cpp.

Macro Definition Documentation

◆ DEBUG_TYPE

#define DEBUG_TYPE   "machine-scheduler"

Definition at line 23 of file AMDGPUCoExecSchedStrategy.cpp.

Function Documentation

◆ buildMFMACoExecInfo()

CoExecInfo buildMFMACoExecInfo ( unsigned SALU,
unsigned Mem,
unsigned VALU,
unsigned MFMA,
unsigned PkF32,
unsigned Window )
static

Build MFMA co-exec rules from the first stage at which SALU, memory (DS and VMEM), VALU, the next MFMA and packed F32 VALU may issue.

MFMA slots are cumulative: each slot allows what the previous one did and possibly more.

Definition at line 54 of file AMDGPUCoExecSchedStrategy.cpp.

References assert(), llvm::AMDGPU::DS, I, llvm::AMDGPU::CoExecSlotInfo::Mask, llvm::AMDGPU::MaxCoExecStages, MFMA, llvm::AMDGPU::None, llvm::AMDGPU::CoExecInfo::Pattern, llvm::AMDGPU::PK_F32, llvm::AMDGPU::SALU, llvm::AMDGPU::CoExecInfo::Slots, llvm::AMDGPU::CoExecInfo::TotalWindow, llvm::AMDGPU::TRANS, llvm::AMDGPU::VALU, llvm::AMDGPU::VMEM, and llvm::AMDGPU::WMMA.

Referenced by llvm::AMDGPU::getMFMACoExecInfo().

◆ pickOnlyChoice()

Variable Documentation

◆ DefaultCoExecVGPRThresholdPercent

unsigned DefaultCoExecVGPRThresholdPercent = 100
staticconstexpr