LLVM 20.0.0git
|
#include "GCNHazardRecognizer.h"
#include "GCNSubtarget.h"
#include "MCTargetDesc/AMDGPUMCTargetDesc.h"
#include "SIMachineFunctionInfo.h"
#include "llvm/CodeGen/MachineFrameInfo.h"
#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/ScheduleDAG.h"
#include "llvm/TargetParser/TargetParser.h"
Go to the source code of this file.
Typedefs | |
using | HazardFnResult = enum { HazardFound, HazardExpired, NoHazardFound } |
using | IsExpiredFn = function_ref< bool(const MachineInstr &, int WaitStates)> |
using | GetNumWaitStatesFn = function_ref< unsigned int(const MachineInstr &)> |
Variables | |
static cl::opt< unsigned, false, MFMAPaddingRatioParser > | MFMAPaddingRatio ("amdgpu-mfma-padding-ratio", cl::init(0), cl::Hidden, cl::desc("Fill a percentage of the latency between " "neighboring MFMA with s_nops.")) |
using GetNumWaitStatesFn = function_ref<unsigned int(const MachineInstr &)> |
Definition at line 453 of file GCNHazardRecognizer.cpp.
using HazardFnResult = enum { HazardFound, HazardExpired, NoHazardFound } |
Definition at line 450 of file GCNHazardRecognizer.cpp.
using IsExpiredFn = function_ref<bool(const MachineInstr &, int WaitStates)> |
Definition at line 452 of file GCNHazardRecognizer.cpp.
|
static |
Definition at line 600 of file GCNHazardRecognizer.cpp.
References addRegUnits(), and TRI.
|
static |
Definition at line 594 of file GCNHazardRecognizer.cpp.
References llvm::BitVector::set(), and TRI.
Referenced by addRegsToSet().
|
static |
Definition at line 613 of file GCNHazardRecognizer.cpp.
References llvm::SIInstrInfo::isSMRD(), and MI.
|
static |
Definition at line 617 of file GCNHazardRecognizer.cpp.
References llvm::SIInstrInfo::isFLAT(), llvm::SIInstrInfo::isVMEM(), and MI.
|
static |
Definition at line 2901 of file GCNHazardRecognizer.cpp.
References llvm::MachineInstrBuilder::addImm(), llvm::MachineBasicBlock::begin(), llvm::BuildMI(), llvm::MachineBasicBlock::end(), llvm::MachineFunction::front(), and TII.
|
static |
Definition at line 178 of file GCNHazardRecognizer.cpp.
References llvm::AMDGPU::EncodingFields< Fields >::decode(), llvm::MachineOperand::getImm(), and TII.
|
static |
Definition at line 500 of file GCNHazardRecognizer.cpp.
References getWaitStatesSince(), I, llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::insert(), llvm::MachineBasicBlock::instr_rend(), MBB, and llvm::MachineBasicBlock::predecessors().
Referenced by getWaitStatesSince().
|
static |
Definition at line 536 of file GCNHazardRecognizer.cpp.
References getWaitStatesSince(), and MI.
|
static |
Definition at line 2152 of file GCNHazardRecognizer.cpp.
|
static |
Definition at line 2161 of file GCNHazardRecognizer.cpp.
|
static |
Definition at line 2440 of file GCNHazardRecognizer.cpp.
|
static |
Definition at line 2416 of file GCNHazardRecognizer.cpp.
|
static |
Definition at line 2143 of file GCNHazardRecognizer.cpp.
|
static |
Definition at line 2169 of file GCNHazardRecognizer.cpp.
|
static |
Definition at line 2432 of file GCNHazardRecognizer.cpp.
|
static |
Definition at line 2424 of file GCNHazardRecognizer.cpp.
|
static |
Definition at line 458 of file GCNHazardRecognizer.cpp.
References hasHazard(), I, llvm::detail::DenseSetImpl< ValueT, MapTy, ValueInfoT >::insert(), llvm::MachineBasicBlock::instr_rend(), MBB, and llvm::MachineBasicBlock::predecessors().
Referenced by hasHazard().
|
static |
Definition at line 263 of file GCNHazardRecognizer.cpp.
References llvm::MachineInstrBuilder::addImm(), llvm::BuildMI(), MI, and TII.
Definition at line 119 of file GCNHazardRecognizer.cpp.
References llvm::AMDGPU::getMAIIsDGEMM().
Referenced by isXDL().
Definition at line 80 of file GCNHazardRecognizer.cpp.
Referenced by llvm::GCNHazardRecognizer::getHazardType(), and llvm::GCNHazardRecognizer::PreEmitNoopsCommon().
|
static |
Definition at line 173 of file GCNHazardRecognizer.cpp.
References llvm::SIInstrInfo::isFLAT(), llvm::SIInstrInfo::isMUBUF(), llvm::SIInstrInfo::isVALU(), and MI.
Referenced by llvm::GCNHazardRecognizer::getHazardType(), and llvm::GCNHazardRecognizer::PreEmitNoopsCommon().
|
static |
Definition at line 164 of file GCNHazardRecognizer.cpp.
References MI.
Definition at line 103 of file GCNHazardRecognizer.cpp.
Referenced by llvm::GCNHazardRecognizer::getHazardType(), and llvm::GCNHazardRecognizer::PreEmitNoopsCommon().
Definition at line 99 of file GCNHazardRecognizer.cpp.
Referenced by llvm::GCNHazardRecognizer::getHazardType(), and llvm::GCNHazardRecognizer::PreEmitNoopsCommon().
|
static |
Definition at line 138 of file GCNHazardRecognizer.cpp.
References llvm::AMDGPU::getNamedOperandIdx(), MI, and TII.
Referenced by llvm::GCNHazardRecognizer::getHazardType(), and llvm::GCNHazardRecognizer::PreEmitNoopsCommon().
Definition at line 84 of file GCNHazardRecognizer.cpp.
Referenced by llvm::GCNHazardRecognizer::getHazardType(), and llvm::GCNHazardRecognizer::PreEmitNoopsCommon().
Definition at line 107 of file GCNHazardRecognizer.cpp.
Referenced by llvm::GCNHazardRecognizer::getHazardType(), and llvm::GCNHazardRecognizer::PreEmitNoopsCommon().
Definition at line 88 of file GCNHazardRecognizer.cpp.
Referenced by llvm::GCNHazardRecognizer::getHazardType(), and llvm::GCNHazardRecognizer::PreEmitNoopsCommon().
|
static |
Definition at line 1345 of file GCNHazardRecognizer.cpp.
References I.
|
static |
Definition at line 123 of file GCNHazardRecognizer.cpp.
References llvm::AMDGPU::getMAIIsGFX940XDL(), isDGEMM(), llvm::SIInstrInfo::isMAI(), and MI.
|
static |
Definition at line 1324 of file GCNHazardRecognizer.cpp.
References llvm::SIInstrInfo::isDS(), llvm::SIInstrInfo::isSegmentSpecificFLAT(), llvm::SIInstrInfo::isVMEM(), MBB, and MI.
Referenced by llvm::GCNHazardRecognizer::GCNHazardRecognizer().
|
static |