LLVM
15.0.0git
|
#include "Target/AMDGPU/GCNSubtarget.h"
Public Types | |
enum | TrapHandlerAbi { TrapHandlerAbi::NONE = 0x00, TrapHandlerAbi::AMDHSA = 0x01 } |
enum | TrapID { TrapID::LLVMAMDHSATrap = 0x02, TrapID::LLVMAMDHSADebugTrap = 0x03 } |
![]() | |
enum | Generation { INVALID = 0, R600 = 1, R700 = 2, EVERGREEN = 3, NORTHERN_ISLANDS = 4, SOUTHERN_ISLANDS = 5, SEA_ISLANDS = 6, VOLCANIC_ISLANDS = 7, GFX9 = 8, GFX10 = 9, GFX11 = 10 } |
Static Public Member Functions | |
static bool | hasHalfRate64Ops (const TargetSubtargetInfo &STI) |
![]() | |
static const AMDGPUSubtarget & | get (const MachineFunction &MF) |
static const AMDGPUSubtarget & | get (const TargetMachine &TM, const Function &F) |
Static Public Attributes | |
static const unsigned | MaxWaveScratchSize = (256 * 4) * ((1 << 13) - 1) |
Definition at line 31 of file GCNSubtarget.h.
|
strong |
Enumerator | |
---|---|
NONE | |
AMDHSA |
Definition at line 39 of file GCNSubtarget.h.
|
strong |
Enumerator | |
---|---|
LLVMAMDHSATrap | |
LLVMAMDHSADebugTrap |
Definition at line 44 of file GCNSubtarget.h.
GCNSubtarget::GCNSubtarget | ( | const Triple & | TT, |
StringRef | GPU, | ||
StringRef | FS, | ||
const GCNTargetMachine & | TM | ||
) |
Definition at line 159 of file AMDGPUSubtarget.cpp.
References llvm::AMDGPU::IsaInfo::getMaxWavesPerEU(), getTargetLowering(), llvm::AMDGPUSubtarget::MaxWavesPerEU, and TM.
|
overridedefault |
|
override |
Definition at line 792 of file AMDGPUSubtarget.cpp.
References llvm::TargetSchedModel::computeOperandLatency(), llvm::Data, llvm::tgtok::Def, E, getInstrItineraryData(), llvm::SIInstrInfo::getInstrLatency(), llvm::ilist_node_impl< OptionsT >::getIterator(), llvm::SDep::getKind(), llvm::SDep::getLatency(), llvm::MachineInstr::getParent(), llvm::SDep::getReg(), getRegisterInfo(), llvm::SIInstrInfo::getSchedModel(), I, llvm::MachineBasicBlock::instr_end(), llvm::MachineInstr::isBundle(), llvm::SDep::setLatency(), and TRI.
unsigned GCNSubtarget::computeOccupancy | ( | const Function & | F, |
unsigned | LDSSize = 0 , |
||
unsigned | NumSGPRs = 0 , |
||
unsigned | NumVGPRs = 0 |
||
) | const |
Return occupancy for the given function.
Used LDS and a number of registers if provided. Note, occupancy can be affected by the scratch allocation as well, but we do not have enough information to compute it.
Definition at line 662 of file AMDGPUSubtarget.cpp.
References F, llvm::AMDGPUSubtarget::getMaxWavesPerEU(), llvm::AMDGPUSubtarget::getOccupancyWithLocalMemSize(), getOccupancyWithNumSGPRs(), getOccupancyWithNumVGPRs(), llvm::min(), llvm::AMDGPU::HSAMD::Kernel::CodeProps::Key::NumSGPRs, and llvm::AMDGPU::HSAMD::Kernel::CodeProps::Key::NumVGPRs.
std::unique_ptr< ScheduleDAGMutation > GCNSubtarget::createFillMFMAShadowMutation | ( | const TargetInstrInfo * | TII | ) | const |
Definition at line 967 of file AMDGPUSubtarget.cpp.
|
inline |
Definition at line 607 of file GCNSubtarget.h.
References hasD16LoadStore(), llvm::AMDGPU::IsaInfo::AMDGPUTargetID::isSramEccOnOrAny(), and TargetID.
Referenced by AMDGPUDAGToDAGISel::matchLoadD16FromBuildVector(), and AMDGPUDAGToDAGISel::PreprocessISelDAG().
|
inline |
Definition at line 447 of file GCNSubtarget.h.
References DumpCode.
Referenced by llvm::AMDGPUAsmPrinter::runOnMachineFunction().
|
inlineoverride |
Definition at line 789 of file GCNSubtarget.h.
|
inline |
Definition at line 578 of file GCNSubtarget.h.
References EnableFlatScratch, flatScratchIsArchitected(), and hasFlatScratchInsts().
Referenced by llvm::SITargetLowering::allowsMisalignedMemoryAccessesImpl(), llvm::SIRegisterInfo::buildVGPRSpillLoadStore(), llvm::SIRegisterInfo::eliminateFrameIndex(), getMaxPrivateElementSize(), llvm::SITargetLowering::LowerCall(), llvm::SITargetLowering::LowerFormalArguments(), and llvm::SIRegisterInfo::materializeFrameBaseRegister().
|
inlineoverride |
Definition at line 772 of file GCNSubtarget.h.
|
inline |
Definition at line 912 of file GCNSubtarget.h.
References EnableSIScheduler.
Referenced by overrideSchedPolicy().
|
inlineoverride |
Definition at line 778 of file GCNSubtarget.h.
|
inline |
Definition at line 1072 of file GCNSubtarget.h.
References HasArchitectedFlatScratch.
Referenced by enableFlatScratch().
|
inline |
Definition at line 1066 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX9.
|
inline |
Definition at line 1099 of file GCNSubtarget.h.
References llvm::AMDGPU::IsaInfo::getAddressableNumSGPRs().
|
inline |
Definition at line 1169 of file GCNSubtarget.h.
References llvm::AMDGPU::IsaInfo::getAddressableNumVGPRs().
unsigned GCNSubtarget::getBaseMaxNumSGPRs | ( | const Function & | F, |
std::pair< unsigned, unsigned > | WavesPerEU, | ||
unsigned | PreloadedSGPRs, | ||
unsigned | ReservedNumSGPRs | ||
) | const |
Definition at line 675 of file AMDGPUSubtarget.cpp.
References F, llvm::AMDGPU::IsaInfo::FIXED_NUM_SGPRS_FOR_INIT_BUG, llvm::AMDGPU::getIntegerAttribute(), getMaxNumSGPRs(), getMinNumSGPRs(), hasSGPRInitBug(), and llvm::min().
Referenced by getMaxNumSGPRs().
unsigned GCNSubtarget::getBaseMaxNumVGPRs | ( | const Function & | F, |
std::pair< unsigned, unsigned > | WavesPerEU | ||
) | const |
Definition at line 752 of file AMDGPUSubtarget.cpp.
References F, llvm::AMDGPU::getIntegerAttribute(), getMaxNumVGPRs(), getMinNumVGPRs(), and hasGFX90AInsts().
Referenced by getMaxNumVGPRs().
unsigned GCNSubtarget::getBaseReservedNumSGPRs | ( | const bool | HasFlatScratch | ) | const |
Definition at line 633 of file AMDGPUSubtarget.cpp.
References getGeneration(), llvm::AMDGPUSubtarget::GFX10, HasArchitectedFlatScratch, isXNACKEnabled(), llvm::AMDGPUSubtarget::SEA_ISLANDS, and llvm::AMDGPUSubtarget::VOLCANIC_ISLANDS.
Referenced by getReservedNumSGPRs().
|
inline |
Definition at line 1228 of file GCNSubtarget.h.
References llvm::SIRegisterInfo::getBoolRC(), and getRegisterInfo().
|
inlineoverride |
Definition at line 230 of file GCNSubtarget.h.
unsigned GCNSubtarget::getConstantBusLimit | ( | unsigned | Opcode | ) | const |
Definition at line 180 of file AMDGPUSubtarget.cpp.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX10.
Referenced by llvm::SIRegisterInfo::buildSpillLoadStore(), llvm::SIInstrInfo::convertToThreeAddress(), llvm::SIInstrInfo::FoldImmediate(), llvm::SIInstrInfo::isOperandLegal(), llvm::SIInstrInfo::legalizeOperandsVOP2(), llvm::SIInstrInfo::legalizeOperandsVOP3(), and llvm::SIInstrInfo::verifyInstruction().
|
inlineoverride |
Definition at line 218 of file GCNSubtarget.h.
Referenced by llvm::SIRegisterInfo::getFrameRegister().
|
inline |
Definition at line 265 of file GCNSubtarget.h.
References Gen.
Referenced by flatScratchIsPointer(), getBaseReservedNumSGPRs(), getConstantBusLimit(), llvm::SIInstrInfo::getDefaultRsrcDataFormat(), getOccupancyWithNumSGPRs(), llvm::SIInstrInfo::getScratchRsrcWords23(), getSetRegWaitStates(), has12DWordStoreHazard(), hasAddr64(), hasD16Images(), hasD16LoadStore(), hasDenormModeInst(), hasDPPBroadcasts(), hasDPPWavefrontShifts(), hasFlat(), hasFlatLgkmVMemCountInOrder(), hasFmaakFmamkF32Insts(), hasFractBug(), hasGWSAutoReplay(), hasHardClauses(), hasLdsDirect(), hasLegacyGeometry(), hasMad64_32(), hasMed3_16(), hasMergedShaders(), hasMin3Max3_16(), hasMultiDwordFlatScratchAddressing(), hasOnlyRevVALUShifts(), hasPermLane64(), hasPermLaneX16(), hasReadM0LdsDirectHazard(), hasReadM0LdsDmaHazard(), hasReadM0MovRelInterpHazard(), hasReadM0SendMsgHazard(), hasReadVCCZBug(), hasRFEHazards(), hasScalarCompareEq64(), hasSMRDReadVALUDefHazard(), hasUsableDivScaleConditionOutput(), hasUsableDSOffset(), hasVALUPartialForwardingHazard(), hasVALUTransUseHazard(), hasVMEMReadSGPRVALUDefHazard(), hasVOP3DPP(), initializeSubtargetDependencies(), llvm::SITargetLowering::isLegalAddressingMode(), ldsRequiresM0Init(), llvm::AMDGPULegalizerInfo::legalizeRsqClampIntrinsic(), llvm::SITargetLowering::LowerFormalArguments(), partialVCCWritesUpdateVCCZ(), privateMemoryResourceIsRangeChecked(), llvm::SIInstrInfo::pseudoToMCOpcode(), shouldClusterStores(), llvm::AMDGPU::splitMUBUFOffset(), supportsGetDoorbellID(), supportsMinMaxDenormModes(), vmemWriteNeedsExpWaitcnt(), and zeroesHigh16BitsOfDest().
|
inlineoverride |
Definition at line 234 of file GCNSubtarget.h.
|
inlineoverride |
Definition at line 214 of file GCNSubtarget.h.
Referenced by llvm::SITargetLowering::AddIMGInit(), llvm::SIRegisterInfo::buildSpillLoadStore(), llvm::SITargetLowering::bundleInstWithWaitcnt(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::SITargetLowering::emitGWSMemViolTestLoop(), llvm::SITargetLowering::EmitInstrWithCustomInserter(), llvm::SITargetLowering::getPrefLoopAlignment(), llvm::SITargetLowering::getTgtMemIntrinsic(), llvm::SIRegisterInfo::isFrameOffsetLegal(), llvm::SITargetLowering::isLegalGlobalAddressingMode(), llvm::AMDGPULegalizerInfo::legalizeDSAtomicFPIntrinsic(), llvm::SIRegisterInfo::materializeFrameBaseRegister(), llvm::SIRegisterInfo::needsFrameBaseReg(), llvm::SIRegisterInfo::resolveFrameIndex(), llvm::SIRegisterInfo::restoreSGPR(), llvm::SIRegisterInfo::spillEmergencySGPR(), llvm::SIRegisterInfo::spillSGPR(), llvm::SITargetLowering::splitKillBlock(), and llvm::SITargetLowering::wrapAddr64Rsrc().
|
inlineoverride |
Definition at line 259 of file GCNSubtarget.h.
References InstrItins.
Referenced by adjustSchedDependency().
|
inlineoverride |
Definition at line 238 of file GCNSubtarget.h.
|
inline |
Return the number of high bits known to be zero for a frame index.
Definition at line 270 of file GCNSubtarget.h.
References llvm::countLeadingZeros(), llvm::AMDGPUSubtarget::getWavefrontSizeLog2(), and MaxWaveScratchSize.
Referenced by llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 274 of file GCNSubtarget.h.
References LDSBankCount.
|
inlineoverride |
Definition at line 242 of file GCNSubtarget.h.
|
inlineoverridevirtual |
Implements llvm::AMDGPUSubtarget.
Definition at line 1244 of file GCNSubtarget.h.
References llvm::AMDGPU::IsaInfo::getMaxFlatWorkGroupSize().
unsigned llvm::GCNSubtarget::getMaxLocalMemSizeWithWaveCount | ( | unsigned | WaveCount, |
const Function & | |||
) | const |
Return the amount of LDS that can be used that will not restrict the occupancy lower than WaveCount.
Definition at line 1199 of file GCNSubtarget.h.
References F, and getMaxNumVGPRs().
F
, or number of SGPRs explicitly requested using "amdgpu-num-sgpr" attribute attached to function F
.Definition at line 747 of file AMDGPUSubtarget.cpp.
References F, getBaseMaxNumSGPRs(), getMaxNumPreloadedSGPRs(), getReservedNumSGPRs(), and llvm::AMDGPUSubtarget::getWavesPerEU().
unsigned GCNSubtarget::getMaxNumSGPRs | ( | const MachineFunction & | MF | ) | const |
MF
, or number of SGPRs explicitly requested using "amdgpu-num-sgpr" attribute attached to function MF
.Definition at line 722 of file AMDGPUSubtarget.cpp.
References F, getBaseMaxNumSGPRs(), llvm::MachineFunction::getFunction(), llvm::MachineFunction::getInfo(), llvm::SIMachineFunctionInfo::getNumPreloadedSGPRs(), getReservedNumSGPRs(), and llvm::SIMachineFunctionInfo::getWavesPerEU().
|
inline |
Definition at line 1111 of file GCNSubtarget.h.
References llvm::AMDGPU::IsaInfo::getMaxNumSGPRs().
Referenced by llvm::SIRegisterInfo::getAllSGPR128(), llvm::SIRegisterInfo::getAllSGPR32(), llvm::SIRegisterInfo::getAllSGPR64(), getBaseMaxNumSGPRs(), llvm::SIRegisterInfo::getRegPressureLimit(), llvm::SIRegisterInfo::getReservedRegs(), llvm::SIRegisterInfo::reservedPrivateSegmentBufferReg(), and llvm::GCNScheduleDAGMILive::schedule().
|
inline |
Definition at line 796 of file GCNSubtarget.h.
F
, or number of VGPRs explicitly requested using "amdgpu-num-vgpr" attribute attached to function F
.Definition at line 782 of file AMDGPUSubtarget.cpp.
References F, getBaseMaxNumVGPRs(), and llvm::AMDGPUSubtarget::getWavesPerEU().
unsigned GCNSubtarget::getMaxNumVGPRs | ( | const MachineFunction & | MF | ) | const |
MF
, or number of VGPRs explicitly requested using "amdgpu-num-vgpr" attribute attached to function MF
.Definition at line 786 of file AMDGPUSubtarget.cpp.
References F, getBaseMaxNumVGPRs(), llvm::MachineFunction::getFunction(), llvm::MachineFunction::getInfo(), and llvm::SIMachineFunctionInfo::getWavesPerEU().
|
inline |
Definition at line 1181 of file GCNSubtarget.h.
References llvm::AMDGPU::IsaInfo::getMaxNumVGPRs().
Referenced by getBaseMaxNumVGPRs(), getMaxNumAGPRs(), llvm::SIRegisterInfo::getRegPressureLimit(), llvm::SIRegisterInfo::getReservedRegs(), and llvm::GCNScheduleDAGMILive::schedule().
|
inline |
Definition at line 278 of file GCNSubtarget.h.
References enableFlatScratch(), and MaxPrivateElementSize.
Referenced by llvm::SITargetLowering::canMergeStoresTo(), llvm::GCNTTIImpl::getLoadStoreVecRegBitWidth(), llvm::SIInstrInfo::getScratchRsrcWords23(), and llvm::GCNTTIImpl::isLegalToVectorizeMemChain().
|
inlineoverridevirtual |
FlatWorkGroupSize
. Implements llvm::AMDGPUSubtarget.
Definition at line 1234 of file GCNSubtarget.h.
References llvm::AMDGPU::IsaInfo::getMaxWorkGroupsPerCU().
|
inlineoverridevirtual |
Implements llvm::AMDGPUSubtarget.
Definition at line 1239 of file GCNSubtarget.h.
References llvm::AMDGPU::IsaInfo::getMinFlatWorkGroupSize().
|
inline |
Definition at line 1105 of file GCNSubtarget.h.
References llvm::AMDGPU::IsaInfo::getMinNumSGPRs().
Referenced by getBaseMaxNumSGPRs().
|
inline |
Definition at line 1175 of file GCNSubtarget.h.
References llvm::AMDGPU::IsaInfo::getMinNumVGPRs().
Referenced by getBaseMaxNumVGPRs().
|
inlineoverridevirtual |
Implements llvm::AMDGPUSubtarget.
Definition at line 1257 of file GCNSubtarget.h.
References llvm::AMDGPU::IsaInfo::getMinWavesPerEU().
|
inline |
Definition at line 892 of file GCNSubtarget.h.
References NSAMaxSize.
Referenced by llvm::AMDGPULegalizerInfo::legalizeBVHIntrinsic(), and llvm::AMDGPULegalizerInfo::legalizeImageIntrinsic().
unsigned GCNSubtarget::getOccupancyWithNumSGPRs | ( | unsigned | SGPRs | ) | const |
Return the maximum number of waves per SIMD for kernels using SGPRs
SGPRs.
Definition at line 597 of file AMDGPUSubtarget.cpp.
References getGeneration(), llvm::AMDGPUSubtarget::getMaxWavesPerEU(), llvm::AMDGPUSubtarget::GFX10, and llvm::AMDGPUSubtarget::VOLCANIC_ISLANDS.
Referenced by computeOccupancy().
unsigned GCNSubtarget::getOccupancyWithNumVGPRs | ( | unsigned | VGPRs | ) | const |
Return the maximum number of waves per SIMD for kernels using VGPRs
VGPRs.
Definition at line 623 of file AMDGPUSubtarget.cpp.
References llvm::AMDGPUSubtarget::getMaxWavesPerEU(), getTotalNumVGPRs(), getVGPRAllocGranule(), llvm::max(), and llvm::min().
Referenced by computeOccupancy().
|
override |
Definition at line 961 of file AMDGPUSubtarget.cpp.
|
inlineoverride |
Definition at line 246 of file GCNSubtarget.h.
|
inlineoverride |
Definition at line 226 of file GCNSubtarget.h.
References llvm::SIInstrInfo::getRegisterInfo().
Referenced by adjustSchedDependency(), llvm::SITargetLowering::EmitInstrWithCustomInserter(), llvm::SIInstrInfo::expandPostRAPseudo(), llvm::SITargetLowering::finalizeLowering(), getBoolRC(), llvm::SITargetLowering::getRegClassFor(), llvm::SITargetLowering::getRegisterByName(), llvm::SITargetLowering::isEligibleForTailCallOptimization(), llvm::GCNTTIImpl::isInlineAsmSourceOfDivergence(), llvm::SITargetLowering::isSDNodeSourceOfDivergence(), llvm::SITargetLowering::LowerCall(), llvm::SITargetLowering::LowerFormalArguments(), llvm::AMDGPUCallLowering::lowerFormalArgumentsKernel(), llvm::SITargetLowering::LowerReturn(), llvm::SITargetLowering::passSpecialInputs(), llvm::SITargetLowering::requiresUniformRegister(), and llvm::SITargetLowering::SITargetLowering().
F
. Definition at line 654 of file AMDGPUSubtarget.cpp.
References getBaseReservedNumSGPRs(), and hasFlatAddressSpace().
unsigned GCNSubtarget::getReservedNumSGPRs | ( | const MachineFunction & | MF | ) | const |
MF
. Definition at line 649 of file AMDGPUSubtarget.cpp.
References getBaseReservedNumSGPRs(), llvm::MachineFunction::getInfo(), and llvm::SIMachineFunctionInfo::hasFlatScratchInit().
Referenced by getMaxNumSGPRs().
|
inline |
Definition at line 783 of file GCNSubtarget.h.
References ScalarizeGlobal.
|
inlineoverride |
Definition at line 255 of file GCNSubtarget.h.
References TSInfo.
|
inline |
Number of hazard wait states for s_setreg_b32/s_setreg_imm32_b32.
Definition at line 443 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::SEA_ISLANDS.
|
inline |
Definition at line 1084 of file GCNSubtarget.h.
References llvm::AMDGPU::IsaInfo::getSGPRAllocGranule().
|
inline |
Definition at line 1089 of file GCNSubtarget.h.
References llvm::AMDGPU::IsaInfo::getSGPREncodingGranule().
|
inline |
Definition at line 770 of file GCNSubtarget.h.
References Align.
Referenced by llvm::SITargetLowering::LowerCall().
|
inline |
Definition at line 250 of file GCNSubtarget.h.
References TargetID.
|
inlineoverride |
Definition at line 222 of file GCNSubtarget.h.
Referenced by GCNSubtarget(), llvm::AMDGPULegalizerInfo::getImplicitArgPtr(), llvm::AMDGPULegalizerInfo::legalizeGlobalValue(), and llvm::AMDGPULegalizerInfo::legalizeTrapHsaQueuePtr().
|
inline |
Definition at line 1094 of file GCNSubtarget.h.
References llvm::AMDGPU::IsaInfo::getTotalNumSGPRs().
|
inline |
Definition at line 1164 of file GCNSubtarget.h.
References llvm::AMDGPU::IsaInfo::getTotalNumVGPRs().
Referenced by getOccupancyWithNumVGPRs().
|
inline |
Definition at line 391 of file GCNSubtarget.h.
References AMDHSA, llvm::AMDGPUSubtarget::isAmdHsaOS(), and NONE.
Referenced by llvm::AMDGPULegalizerInfo::legalizeDebugTrapIntrinsic(), and llvm::AMDGPULegalizerInfo::legalizeTrapIntrinsic().
|
inline |
Definition at line 1154 of file GCNSubtarget.h.
References llvm::AMDGPU::IsaInfo::getVGPRAllocGranule().
Referenced by getOccupancyWithNumVGPRs().
|
inline |
Definition at line 1159 of file GCNSubtarget.h.
References llvm::AMDGPU::IsaInfo::getVGPREncodingGranule().
|
inlineoverridevirtual |
FlatWorkGroupSize
. Implements llvm::AMDGPUSubtarget.
Definition at line 1251 of file GCNSubtarget.h.
References llvm::AMDGPU::IsaInfo::getWavesPerEUForWorkGroup().
|
inline |
Definition at line 934 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::SOUTHERN_ISLANDS.
|
inline |
Definition at line 850 of file GCNSubtarget.h.
References Has64BitDPP.
|
inline |
Definition at line 878 of file GCNSubtarget.h.
References hasGFX10A16(), and hasR128A16().
Referenced by llvm::AMDGPULegalizerInfo::legalizeImageIntrinsic().
|
inline |
Definition at line 639 of file GCNSubtarget.h.
References AddNoCarryInsts.
Referenced by llvm::SIInstrInfo::getAddNoCarry(), llvm::SIInstrInfo::getVALUOp(), and llvm::SITargetLowering::SITargetLowering().
|
inline |
Definition at line 317 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::VOLCANIC_ISLANDS.
Referenced by initializeSubtargetDependencies(), and llvm::SITargetLowering::isLegalGlobalAddressingMode().
|
inline |
Definition at line 525 of file GCNSubtarget.h.
References HasApertureRegs.
|
inline |
Definition at line 587 of file GCNSubtarget.h.
References GFX10_BEncoding.
|
inline |
Definition at line 720 of file GCNSubtarget.h.
References HasAtomicFaddNoRtnInsts, and HasAtomicFaddRtnInsts.
Referenced by llvm::SITargetLowering::shouldExpandAtomicRMWInIR().
|
inline |
Definition at line 726 of file GCNSubtarget.h.
References HasAtomicFaddNoRtnInsts.
|
inline |
Definition at line 724 of file GCNSubtarget.h.
References HasAtomicFaddRtnInsts.
|
inline |
Definition at line 728 of file GCNSubtarget.h.
References HasAtomicPkFaddNoRtnInsts.
|
inline |
Definition at line 497 of file GCNSubtarget.h.
References AutoWaitcntBeforeBarrier.
|
inline |
Definition at line 347 of file GCNSubtarget.h.
Referenced by llvm::SITargetLowering::SITargetLowering().
|
inline |
Definition at line 335 of file GCNSubtarget.h.
Referenced by hasBFM(), and llvm::SITargetLowering::SITargetLowering().
|
inline |
Definition at line 339 of file GCNSubtarget.h.
Referenced by llvm::SITargetLowering::SITargetLowering().
|
inline |
Definition at line 343 of file GCNSubtarget.h.
References hasBFE().
|
inline |
Definition at line 371 of file GCNSubtarget.h.
|
inline |
Return true if the target's EXP instruction has the COMPR flag, which affects the meaning of the EN (enable) bits.
Definition at line 1032 of file GCNSubtarget.h.
References GFX11Insts.
|
inline |
Definition at line 611 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::VOLCANIC_ISLANDS.
|
inline |
Definition at line 603 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX9.
Referenced by d16PreservesUnusedBits().
|
inline |
Return true if the target has the S_DELAY_ALU instruction.
Definition at line 1041 of file GCNSubtarget.h.
References GFX11Insts.
|
inline |
Definition at line 461 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX10.
|
inline |
Definition at line 676 of file GCNSubtarget.h.
References HasDLInsts.
Referenced by llvm::SIInstrInfo::getVALUOp(), llvm::SITargetLowering::isFMAFasterThanFMulAndFAdd(), and llvm::SIInstrInfo::moveToVALU().
|
inline |
Definition at line 680 of file GCNSubtarget.h.
References HasDot1Insts.
|
inline |
Definition at line 684 of file GCNSubtarget.h.
References HasDot2Insts.
|
inline |
Definition at line 688 of file GCNSubtarget.h.
References HasDot3Insts.
|
inline |
Definition at line 692 of file GCNSubtarget.h.
References HasDot4Insts.
|
inline |
Definition at line 696 of file GCNSubtarget.h.
References HasDot5Insts.
|
inline |
Definition at line 700 of file GCNSubtarget.h.
References HasDot6Insts.
|
inline |
Definition at line 704 of file GCNSubtarget.h.
References HasDot7Insts.
|
inline |
Definition at line 708 of file GCNSubtarget.h.
References HasDot8Insts.
|
inline |
Definition at line 997 of file GCNSubtarget.h.
References GFX940Insts.
|
inline |
Definition at line 834 of file GCNSubtarget.h.
References HasDPP.
|
inline |
Definition at line 846 of file GCNSubtarget.h.
References HasDPP8.
|
inline |
Definition at line 838 of file GCNSubtarget.h.
References getGeneration(), llvm::AMDGPUSubtarget::GFX10, and HasDPP.
|
inline |
Definition at line 842 of file GCNSubtarget.h.
References getGeneration(), llvm::AMDGPUSubtarget::GFX10, and HasDPP.
|
inline |
Definition at line 476 of file GCNSubtarget.h.
References CIInsts.
Referenced by llvm::SITargetLowering::allowsMisalignedMemoryAccessesImpl().
|
inline |
Definition at line 994 of file GCNSubtarget.h.
References GFX940Insts.
|
inline |
Definition at line 939 of file GCNSubtarget.h.
References CIInsts.
|
inline |
Definition at line 866 of file GCNSubtarget.h.
References HasExtendedImageInsts.
|
inline |
Definition at line 305 of file GCNSubtarget.h.
References FastFMAF32.
Referenced by llvm::GCNTTIImpl::getIntrinsicInstrCost(), and llvm::SITargetLowering::isFMAFasterThanFMulAndFAdd().
|
inline |
Definition at line 355 of file GCNSubtarget.h.
Referenced by llvm::SITargetLowering::SITargetLowering().
|
inline |
Definition at line 351 of file GCNSubtarget.h.
Referenced by llvm::SITargetLowering::SITargetLowering().
|
inline |
Definition at line 321 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::SOUTHERN_ISLANDS.
Referenced by initializeSubtargetDependencies().
|
inline |
Definition at line 545 of file GCNSubtarget.h.
References FlatAddressSpace.
Referenced by getReservedNumSGPRs(), hasFlatScrRegister(), llvm::AMDGPULegalizerInfo::legalizeAddrSpaceCast(), and llvm::SITargetLowering::SITargetLowering().
|
inline |
Definition at line 557 of file GCNSubtarget.h.
References FlatGlobalInsts.
Referenced by llvm::SITargetLowering::isLegalGlobalAddressingMode().
|
inline |
Definition at line 553 of file GCNSubtarget.h.
References FlatInstOffsets.
Referenced by llvm::SIInstrInfo::isLegalFLATOffset(), and llvm::SIInstrInfo::verifyInstruction().
|
inline |
Definition at line 599 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX9.
|
inline |
Definition at line 561 of file GCNSubtarget.h.
References FlatScratchInsts.
Referenced by enableFlatScratch(), and hasFlatScratchSTMode().
|
inline |
Definition at line 568 of file GCNSubtarget.h.
References hasFlatScratchInsts(), hasGFX10_3Insts(), and hasGFX940Insts().
Referenced by llvm::SIRegisterInfo::buildSpillLoadStore(), and llvm::SIRegisterInfo::eliminateFrameIndex().
|
inline |
Definition at line 572 of file GCNSubtarget.h.
References GFX11Insts, and GFX940Insts.
|
inline |
Definition at line 549 of file GCNSubtarget.h.
References hasFlatAddressSpace().
Referenced by llvm::SITargetLowering::getRegisterByName().
|
inline |
Definition at line 595 of file GCNSubtarget.h.
References HasFlatSegmentOffsetBug.
Referenced by llvm::SIInstrInfo::isLegalFLATOffset().
|
inline |
Definition at line 375 of file GCNSubtarget.h.
References FMA.
|
inline |
Definition at line 858 of file GCNSubtarget.h.
References getGeneration(), llvm::AMDGPUSubtarget::GFX10, and hasGFX940Insts().
|
inline |
Definition at line 367 of file GCNSubtarget.h.
References HasFmaMixInsts.
Referenced by llvm::SITargetLowering::isFPExtFoldable().
|
inline |
Definition at line 293 of file GCNSubtarget.h.
References FP64.
Referenced by initializeSubtargetDependencies().
|
inline |
Definition at line 331 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::SOUTHERN_ISLANDS.
Referenced by llvm::AMDGPULegalizerInfo::legalizeFFloor().
|
inline |
Definition at line 313 of file GCNSubtarget.h.
References FullRate64Ops.
|
inline |
Definition at line 880 of file GCNSubtarget.h.
References HasG16.
Referenced by llvm::AMDGPULegalizerInfo::legalizeImageIntrinsic(), and llvm::SIInstrInfo::verifyInstruction().
|
inline |
Definition at line 738 of file GCNSubtarget.h.
References HasGetWaveIdInst.
|
inline |
Definition at line 902 of file GCNSubtarget.h.
References GFX10_3Insts.
Referenced by hasFlatScratchSTMode().
|
inline |
Definition at line 894 of file GCNSubtarget.h.
References GFX10_AEncoding.
Referenced by llvm::AMDGPULegalizerInfo::legalizeBVHIntrinsic().
|
inline |
Definition at line 898 of file GCNSubtarget.h.
References GFX10_BEncoding.
|
inline |
Definition at line 874 of file GCNSubtarget.h.
References HasGFX10A16.
Referenced by hasA16(), and llvm::SIInstrInfo::verifyInstruction().
|
inline |
Definition at line 1012 of file GCNSubtarget.h.
References GFX90AInsts.
Referenced by llvm::SIRegisterInfo::buildSpillLoadStore(), llvm::SIInstrInfo::copyPhysReg(), getBaseMaxNumVGPRs(), llvm::SIRegisterInfo::getCalleeSavedRegs(), llvm::SIRegisterInfo::getCallPreservedMask(), llvm::SIRegisterInfo::getCrossCopyRegClass(), llvm::SIRegisterInfo::getReservedRegs(), llvm::SIInstrInfo::hasVALU32BitEncoding(), llvm::SIInstrInfo::isOperandLegal(), llvm::AMDGPULegalizerInfo::legalizeIntrinsic(), llvm::SIInstrInfo::pseudoToMCOpcode(), llvm::AMDGPUAsmPrinter::runOnMachineFunction(), llvm::GCNScheduleDAGMILive::schedule(), llvm::SITargetLowering::shouldExpandAtomicRMWInIR(), and llvm::SIInstrInfo::verifyInstruction().
|
inline |
Definition at line 1047 of file GCNSubtarget.h.
References GFX940Insts.
Referenced by hasFlatScratchSTMode(), hasFmaakFmamkF32Insts(), llvm::SIInstrInfo::pseudoToMCOpcode(), and llvm::SITargetLowering::shouldExpandAtomicRMWInIR().
|
inline |
Definition at line 583 of file GCNSubtarget.h.
References GFX10_BEncoding.
|
inline |
Definition at line 626 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX9.
|
inline |
Definition at line 631 of file GCNSubtarget.h.
References CIInsts.
|
inline |
Definition at line 309 of file GCNSubtarget.h.
References HalfRate64Ops.
|
static |
|
inline |
Definition at line 1010 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX10.
|
inline |
Definition at line 301 of file GCNSubtarget.h.
References FP64.
|
inline |
Definition at line 888 of file GCNSubtarget.h.
References HasImageGather4D16Bug.
|
inline |
Definition at line 862 of file GCNSubtarget.h.
References HasImageInsts.
|
inline |
Definition at line 886 of file GCNSubtarget.h.
References HasImageStoreD16Bug.
Referenced by llvm::AMDGPULegalizerInfo::handleD16VData().
|
inline |
Definition at line 976 of file GCNSubtarget.h.
References HasInstFwdPrefetchBug.
|
inline |
Definition at line 289 of file GCNSubtarget.h.
References HasIntClamp.
Referenced by llvm::SITargetLowering::SITargetLowering().
|
inline |
Definition at line 984 of file GCNSubtarget.h.
References HasLdsBranchVmemWARHazard.
|
inline |
Definition at line 1016 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX11.
|
inline |
Definition at line 826 of file GCNSubtarget.h.
References GFX8Insts.
Referenced by llvm::SITargetLowering::shouldExpandAtomicRMWInIR().
|
inline |
Definition at line 972 of file GCNSubtarget.h.
References EnableCuMode, and LDSMisalignedBug.
Referenced by llvm::SITargetLowering::allowsMisalignedMemoryAccessesImpl().
|
inline |
Definition at line 1081 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX11.
|
inline |
Definition at line 910 of file GCNSubtarget.h.
References GFX940Insts.
|
inline |
Definition at line 652 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::SEA_ISLANDS.
Referenced by llvm::SITargetLowering::SITargetLowering().
bool GCNSubtarget::hasMadF16 | ( | ) | const |
Definition at line 587 of file AMDGPUSubtarget.cpp.
References llvm::SIInstrInfo::pseudoToMCOpcode().
Referenced by llvm::SITargetLowering::isFMADLegal(), and llvm::SITargetLowering::SITargetLowering().
|
inline |
Definition at line 712 of file GCNSubtarget.h.
References HasMAIInsts.
Referenced by llvm::AMDGPU::HSAMD::MetadataStreamerV3::getHSAKernelProps(), llvm::SIRegisterInfo::getLargestLegalSuperClass(), llvm::SITargetLowering::getRegForInlineAsmConstraint(), llvm::SIRegisterInfo::getReservedRegs(), llvm::SIInstrInfo::isOperandLegal(), and llvm::AMDGPUAsmPrinter::runOnMachineFunction().
|
inline |
Definition at line 359 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX9.
|
inline |
Definition at line 1076 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX9.
|
inline |
Definition at line 930 of file GCNSubtarget.h.
References HasMFMAInlineLiteralBug.
Referenced by llvm::SIInstrInfo::isImmOperandLegal(), and llvm::SIRegisterInfo::opCanUseInlineConstant().
|
inline |
Definition at line 297 of file GCNSubtarget.h.
References MIMG_R128.
|
inline |
Definition at line 363 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX9.
|
inline |
Definition at line 908 of file GCNSubtarget.h.
References GFX940Insts.
Referenced by llvm::SIInstrInfo::copyPhysReg(), llvm::SIInstrInfo::expandMovDPP64(), and llvm::SIInstrInfo::expandPostRAPseudo().
|
inline |
Definition at line 804 of file GCNSubtarget.h.
References HasMovrel.
Referenced by useVGPRIndexMode().
|
inline |
Definition at line 591 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX9.
|
inline |
Definition at line 924 of file GCNSubtarget.h.
References NegativeScratchOffsetBug.
Referenced by llvm::SIInstrInfo::isLegalFLATOffset(), and llvm::SIInstrInfo::splitFlatOffset().
|
inline |
Definition at line 926 of file GCNSubtarget.h.
References NegativeUnalignedScratchOffsetBug.
Referenced by llvm::SIInstrInfo::isLegalFLATOffset(), and llvm::SIInstrInfo::splitFlatOffset().
|
inline |
Definition at line 754 of file GCNSubtarget.h.
References HasNoDataDepHazard.
Referenced by llvm::GCNHazardRecognizer::getHazardType(), and llvm::GCNHazardRecognizer::PreEmitNoopsCommon().
|
inline |
Definition at line 730 of file GCNSubtarget.h.
References HasNoSdstCMPX.
|
inline |
Definition at line 1008 of file GCNSubtarget.h.
References HasNSAClauseBug.
|
inline |
Definition at line 890 of file GCNSubtarget.h.
References HasNSAEncoding.
Referenced by llvm::AMDGPULegalizerInfo::legalizeBVHIntrinsic(), and llvm::AMDGPULegalizerInfo::legalizeImageIntrinsic().
|
inline |
Definition at line 1004 of file GCNSubtarget.h.
References HasNSAtoVMEMBug.
Referenced by llvm::GCNHazardRecognizer::getHazardType(), and llvm::GCNHazardRecognizer::PreEmitNoopsCommon().
|
inline |
Return true if the target's EXP instruction supports the NULL export target.
Definition at line 1036 of file GCNSubtarget.h.
References GFX11Insts.
|
inline |
Definition at line 882 of file GCNSubtarget.h.
References HasOffset3fBug.
Referenced by llvm::SIInstrInfo::getInstSizeInBytes(), and llvm::SIInstrInfo::insertBranch().
|
inline |
Definition at line 327 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::VOLCANIC_ISLANDS.
Referenced by llvm::SIInstrInfo::moveToVALU().
|
inline |
Definition at line 854 of file GCNSubtarget.h.
References HasPackedFP32Ops.
Referenced by llvm::SIInstrInfo::copyPhysReg(), llvm::SIInstrInfo::expandPostRAPseudo(), llvm::GCNTTIImpl::getArithmeticInstrCost(), llvm::GCNTTIImpl::getIntrinsicInstrCost(), llvm::GCNTTIImpl::getMaximumVF(), llvm::GCNTTIImpl::getRegisterBitWidth(), and llvm::SITargetLowering::SITargetLowering().
|
inline |
Definition at line 1043 of file GCNSubtarget.h.
References HasPackedTID.
Referenced by llvm::SITargetLowering::allocateSpecialEntryInputVGPRs().
|
inline |
Definition at line 832 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX11.
|
inline |
Definition at line 829 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX10.
|
inline |
Definition at line 716 of file GCNSubtarget.h.
References HasPkFmacF16Inst.
|
inline |
Definition at line 870 of file GCNSubtarget.h.
References HasR128A16.
Referenced by hasA16(), and llvm::SIInstrInfo::verifyInstruction().
|
inline |
Definition at line 956 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX9.
Referenced by llvm::GCNHazardRecognizer::getHazardType(), and llvm::GCNHazardRecognizer::PreEmitNoopsCommon().
|
inline |
Definition at line 952 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX9.
Referenced by llvm::GCNHazardRecognizer::getHazardType(), and llvm::GCNHazardRecognizer::PreEmitNoopsCommon().
|
inline |
Definition at line 943 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX9.
Referenced by llvm::GCNHazardRecognizer::getHazardType(), and llvm::GCNHazardRecognizer::PreEmitNoopsCommon().
|
inline |
Definition at line 947 of file GCNSubtarget.h.
References getGeneration(), llvm::AMDGPUSubtarget::GFX9, and llvm::AMDGPUSubtarget::VOLCANIC_ISLANDS.
Referenced by llvm::GCNHazardRecognizer::getHazardType(), and llvm::GCNHazardRecognizer::PreEmitNoopsCommon().
|
inline |
Extra wait hazard is needed in some cases before s_cbranch_vccnz/s_cbranch_vccz.
Definition at line 417 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::SEA_ISLANDS.
|
inline |
Definition at line 438 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::VOLCANIC_ISLANDS.
|
inline |
Definition at line 822 of file GCNSubtarget.h.
References HasScalarAtomics.
|
inline |
Definition at line 814 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::VOLCANIC_ISLANDS.
Referenced by llvm::SIInstrInfo::copyPhysReg(), and llvm::AMDGPURegisterBankInfo::getInstrMapping().
|
inline |
Definition at line 574 of file GCNSubtarget.h.
References ScalarFlatScratchInsts.
|
inline |
Definition at line 387 of file GCNSubtarget.h.
References GFX9Insts.
Referenced by llvm::AMDGPURegisterBankInfo::getInstrMapping().
|
inline |
Definition at line 383 of file GCNSubtarget.h.
References GFX9Insts.
|
inline |
Definition at line 818 of file GCNSubtarget.h.
References HasScalarStores.
|
inline |
Definition at line 668 of file GCNSubtarget.h.
References HasSDWAMac.
|
inline |
Definition at line 656 of file GCNSubtarget.h.
References HasSDWAOmod.
Referenced by llvm::SIInstrInfo::verifyInstruction().
|
inline |
Definition at line 672 of file GCNSubtarget.h.
References HasSDWAOutModsVOPC.
Referenced by llvm::SIInstrInfo::verifyInstruction().
|
inline |
Definition at line 660 of file GCNSubtarget.h.
References HasSDWAScalar.
Referenced by llvm::SIInstrInfo::copyPhysReg(), and llvm::SIInstrInfo::verifyInstruction().
|
inline |
Definition at line 664 of file GCNSubtarget.h.
References HasSDWASdst.
Referenced by llvm::SIInstrInfo::verifyInstruction().
|
inline |
Definition at line 920 of file GCNSubtarget.h.
References SGPRInitBug.
Referenced by getBaseMaxNumSGPRs().
|
inline |
Definition at line 746 of file GCNSubtarget.h.
References HasShaderCyclesRegister.
|
inline |
Definition at line 800 of file GCNSubtarget.h.
References HasSMemRealTime.
|
inline |
Definition at line 742 of file GCNSubtarget.h.
References HasSMemTimeInst.
|
inline |
Definition at line 968 of file GCNSubtarget.h.
References HasSMEMtoVectorWriteHazard.
|
inline |
A read of an SGPR by SMRD instruction requires 4 wait states when the SGPR was written by a VALU instruction.
Definition at line 428 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::SOUTHERN_ISLANDS.
|
inline |
Return true if the target has the S_PACK_HL_B32_B16 instruction.
Definition at line 1028 of file GCNSubtarget.h.
References GFX11Insts.
|
inline |
Definition at line 379 of file GCNSubtarget.h.
References GFX9Insts.
|
inline |
Definition at line 990 of file GCNSubtarget.h.
References GFX940Insts.
|
inline |
Definition at line 521 of file GCNSubtarget.h.
References UnalignedAccessMode.
|
inline |
Definition at line 501 of file GCNSubtarget.h.
References UnalignedBufferAccess.
|
inline |
Definition at line 505 of file GCNSubtarget.h.
References UnalignedAccessMode, and UnalignedBufferAccess.
Referenced by llvm::SITargetLowering::allowsMisalignedMemoryAccessesImpl().
|
inline |
Definition at line 509 of file GCNSubtarget.h.
References UnalignedDSAccess.
|
inline |
Definition at line 513 of file GCNSubtarget.h.
References UnalignedAccessMode, and UnalignedDSAccess.
Referenced by llvm::SITargetLowering::allowsMisalignedMemoryAccesses(), and llvm::SITargetLowering::allowsMisalignedMemoryAccessesImpl().
|
inline |
Definition at line 517 of file GCNSubtarget.h.
References UnalignedScratchAccess.
Referenced by llvm::SITargetLowering::allowsMisalignedMemoryAccessesImpl(), and llvm::GCNTTIImpl::isLegalToVectorizeMemChain().
|
inline |
Definition at line 643 of file GCNSubtarget.h.
References HasUnpackedD16VMem.
Referenced by llvm::SITargetLowering::AddIMGInit(), llvm::AMDGPURegisterBankInfo::handleD16VData(), llvm::AMDGPULegalizerInfo::handleD16VData(), llvm::AMDGPULegalizerInfo::legalizeBufferLoad(), llvm::AMDGPULegalizerInfo::legalizeImageIntrinsic(), llvm::SIInstrInfo::pseudoToMCOpcode(), and llvm::SIInstrInfo::verifyInstruction().
|
inline |
Condition output from div_scale is usable.
Definition at line 411 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::SOUTHERN_ISLANDS.
Referenced by llvm::GCNTTIImpl::getArithmeticInstrCost(), and llvm::AMDGPULegalizerInfo::legalizeFDIV64().
|
inline |
True if the offset field of DS instructions works as expected.
On SI, the offset uses a 16-bit adder and does not always wrap properly.
Definition at line 402 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::SEA_ISLANDS.
Referenced by llvm::SITargetLowering::allowsMisalignedMemoryAccessesImpl().
|
inline |
Definition at line 1018 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX11.
|
inline |
Definition at line 1022 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX11.
|
inline |
Definition at line 980 of file GCNSubtarget.h.
References HasVcmpxExecWARHazard.
|
inline |
Definition at line 960 of file GCNSubtarget.h.
References HasVcmpxPermlaneHazard.
|
inline |
Definition at line 1000 of file GCNSubtarget.h.
References GFX940Insts.
|
inline |
Definition at line 808 of file GCNSubtarget.h.
References HasVGPRIndexMode.
Referenced by useVGPRIndexMode().
|
inline |
A read of an SGPR by a VMEM instruction requires 5 wait states when the SGPR was written by a VALU Instruction.
Definition at line 434 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::VOLCANIC_ISLANDS.
|
inline |
Definition at line 964 of file GCNSubtarget.h.
References HasVMEMtoScalarWriteHazard.
|
inline |
Definition at line 1014 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX11.
|
inline |
Definition at line 750 of file GCNSubtarget.h.
References HasVOP3Literal.
Referenced by llvm::SIInstrInfo::isImmOperandLegal(), llvm::SIInstrInfo::isOperandLegal(), llvm::SIInstrInfo::legalizeOperandsVOP3(), and llvm::SIInstrInfo::verifyInstruction().
|
inline |
Definition at line 1038 of file GCNSubtarget.h.
References HasVOPDInsts.
|
inline |
Definition at line 734 of file GCNSubtarget.h.
References HasVscnt.
|
inline |
Have v_trunc_f64, v_ceil_f64, v_rndne_f64.
Definition at line 481 of file GCNSubtarget.h.
References CIInsts.
Referenced by llvm::SITargetLowering::SITargetLowering().
GCNSubtarget & GCNSubtarget::initializeSubtargetDependencies | ( | const Triple & | TT, |
StringRef | GPU, | ||
StringRef | FS | ||
) |
Definition at line 60 of file AMDGPUSubtarget.cpp.
References llvm::Triple::amdgcn, llvm::Triple::AMDHSA, assert(), llvm::dbgs(), FlatForGlobal, llvm::X86AS::FS, Gen, getGeneration(), llvm::AMDGPU::IsaInfo::AMDGPUTargetID::getSramEccSetting(), llvm::AMDGPU::IsaInfo::AMDGPUTargetID::getXnackSetting(), llvm::AMDGPUSubtarget::GFX9, hasAddr64(), hasFlat(), llvm::AMDGPUSubtarget::HasFminFmaxLegacy, hasFP64(), HasMovrel, llvm::AMDGPUSubtarget::HasSMulHi, HasVGPRIndexMode, llvm::AMDGPUSubtarget::INVALID, llvm::AMDGPUSubtarget::isAmdHsaOS(), LDSBankCount, LLVM_DEBUG, llvm::AMDGPUSubtarget::LocalMemorySize, MaxPrivateElementSize, ParseSubtargetFeatures(), llvm::AMDGPUSubtarget::SEA_ISLANDS, llvm::AMDGPU::IsaInfo::AMDGPUTargetID::setTargetIDFromFeaturesString(), llvm::AMDGPUSubtarget::SOUTHERN_ISLANDS, TargetID, llvm::AMDGPUSubtarget::VOLCANIC_ISLANDS, and llvm::AMDGPUSubtarget::WavefrontSizeLog2.
|
inline |
Definition at line 541 of file GCNSubtarget.h.
References EnableCuMode.
Definition at line 648 of file GCNSubtarget.h.
References F, llvm::AMDGPUSubtarget::isMesa3DOS(), and llvm::AMDGPU::isShader().
|
inline |
Definition at line 537 of file GCNSubtarget.h.
References EnableTgSplit.
|
inline |
Definition at line 529 of file GCNSubtarget.h.
References TrapHandler.
Referenced by llvm::AMDGPULegalizerInfo::legalizeDebugTrapIntrinsic(), and llvm::AMDGPULegalizerInfo::legalizeTrapIntrinsic().
|
inline |
Definition at line 1220 of file GCNSubtarget.h.
References llvm::AMDGPUSubtarget::getWavefrontSize().
Referenced by llvm::SIInstrInfo::createPHISourceCopy(), llvm::AMDGPURegisterBankInfo::executeInWaterfallLoop(), llvm::SIInstrInfo::expandPostRAPseudo(), llvm::SIInstrInfo::fixImplicitOperands(), llvm::SIInstrInfo::insertVectorSelect(), llvm::SIInstrInfo::isWave32(), and llvm::SIInstrInfo::moveToVALU().
|
inline |
Definition at line 1224 of file GCNSubtarget.h.
References llvm::AMDGPUSubtarget::getWavefrontSize().
|
inline |
Definition at line 533 of file GCNSubtarget.h.
References llvm::AMDGPU::IsaInfo::AMDGPUTargetID::isXnackOnOrAny(), and TargetID.
Referenced by getBaseReservedNumSGPRs().
|
inline |
Return if most LDS instructions have an m0 use that require m0 to be initialized.
Definition at line 617 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX9.
|
inline |
Definition at line 916 of file GCNSubtarget.h.
References EnableLoadStoreOpt.
|
inline |
Return if operations acting on VGPR tuples require even alignment.
Definition at line 1025 of file GCNSubtarget.h.
References GFX90AInsts.
Referenced by llvm::SITargetLowering::EmitInstrWithCustomInserter(), llvm::SIRegisterInfo::getAGPRClassForBitWidth(), llvm::SIRegisterInfo::getProperlyAlignedRC(), llvm::SIRegisterInfo::getVectorSuperClassForBitWidth(), llvm::SIRegisterInfo::getVGPR64Class(), llvm::SIRegisterInfo::getVGPRClassForBitWidth(), llvm::SIRegisterInfo::isProperlyAlignedRC(), and llvm::SIInstrInfo::verifyInstruction().
|
override |
Definition at line 570 of file AMDGPUSubtarget.cpp.
References enableSIScheduler(), llvm::MachineSchedPolicy::OnlyBottomUp, llvm::MachineSchedPolicy::OnlyTopDown, llvm::MachineSchedPolicy::ShouldTrackLaneMasks, and llvm::MachineSchedPolicy::ShouldTrackPressure.
Referenced by initializeSubtargetDependencies().
|
inline |
Writes to VCC_LO/VCC_HI update the VCCZ flag.
Definition at line 422 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX10.
|
inline |
Definition at line 487 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX9.
|
inline |
Definition at line 782 of file GCNSubtarget.h.
References b, and ScalarizeGlobal.
|
inline |
Definition at line 1266 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX11.
|
inline |
Definition at line 395 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX9.
Referenced by llvm::AMDGPULegalizerInfo::legalizeTrapIntrinsic().
|
inline |
Definition at line 456 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::GFX9.
Referenced by llvm::SITargetLowering::isCanonicalized().
|
inline |
Definition at line 406 of file GCNSubtarget.h.
References EnableUnsafeDSOffsetFolding.
|
override |
Definition at line 595 of file AMDGPUSubtarget.cpp.
References UseAA.
|
inline |
Definition at line 471 of file GCNSubtarget.h.
References CIInsts, and EnableDS128.
Referenced by llvm::SITargetLowering::allowsMisalignedMemoryAccessesImpl().
|
inline |
Definition at line 465 of file GCNSubtarget.h.
References FlatForGlobal.
Referenced by llvm::AMDGPURegisterBankInfo::getInstrMappingForLoad(), llvm::AMDGPURegisterBankInfo::getValueMappingForPtr(), and llvm::SITargetLowering::isLegalGlobalAddressingMode().
|
inline |
Definition at line 493 of file GCNSubtarget.h.
References EnablePRTStrictNull.
Referenced by llvm::SITargetLowering::AddIMGInit().
bool GCNSubtarget::useVGPRIndexMode | ( | ) | const |
Definition at line 591 of file AMDGPUSubtarget.cpp.
References EnableVGPRIndexMode, hasMovrel(), and hasVGPRIndexMode().
Referenced by llvm::SIInstrInfo::expandPostRAPseudo().
|
inline |
Definition at line 758 of file GCNSubtarget.h.
References getGeneration(), and llvm::AMDGPUSubtarget::SEA_ISLANDS.
bool GCNSubtarget::zeroesHigh16BitsOfDest | ( | unsigned | Opcode | ) | const |
Returns if the result of this instruction with a 16-bit result returned in a 32-bit register implicitly zeroes the high 16-bits, rather than preserve the original value.
This list was mostly derived from experimentation.
Definition at line 201 of file AMDGPUSubtarget.cpp.
References getGeneration(), llvm::AMDGPUSubtarget::GFX9, and llvm::AMDGPUSubtarget::VOLCANIC_ISLANDS.
|
protected |
Definition at line 171 of file GCNSubtarget.h.
Referenced by hasAddNoCarry().
|
protected |
Definition at line 74 of file GCNSubtarget.h.
Referenced by hasAutoWaitcntBeforeBarrier().
|
protected |
Definition at line 100 of file GCNSubtarget.h.
Referenced by hasDS96AndDS128(), hasDwordx3LoadStores(), hasGWSSemaReleaseAll(), haveRoundOpsF64(), and useDS128().
|
protected |
Definition at line 94 of file GCNSubtarget.h.
Referenced by dumpCode().
|
protected |
Definition at line 85 of file GCNSubtarget.h.
Referenced by hasLDSMisalignedBug(), and isCuModeEnabled().
|
protected |
Definition at line 92 of file GCNSubtarget.h.
Referenced by useDS128().
|
protected |
Definition at line 170 of file GCNSubtarget.h.
Referenced by enableFlatScratch().
|
protected |
Definition at line 89 of file GCNSubtarget.h.
Referenced by loadStoreOptEnabled().
|
protected |
Definition at line 93 of file GCNSubtarget.h.
Referenced by usePRTStrictNull().
|
protected |
Definition at line 91 of file GCNSubtarget.h.
Referenced by enableSIScheduler().
|
protected |
Definition at line 155 of file GCNSubtarget.h.
|
protected |
Definition at line 84 of file GCNSubtarget.h.
Referenced by isTgSplitEnabled().
|
protected |
Definition at line 90 of file GCNSubtarget.h.
Referenced by unsafeDSOffsetFoldingEnabled().
|
protected |
Definition at line 82 of file GCNSubtarget.h.
|
protected |
Definition at line 68 of file GCNSubtarget.h.
|
protected |
Definition at line 67 of file GCNSubtarget.h.
Referenced by hasFastFMAF32().
|
protected |
Definition at line 195 of file GCNSubtarget.h.
|
protected |
Definition at line 164 of file GCNSubtarget.h.
Referenced by hasFlatAddressSpace().
|
protected |
Definition at line 73 of file GCNSubtarget.h.
Referenced by initializeSubtargetDependencies(), and useFlatForGlobal().
|
protected |
Definition at line 166 of file GCNSubtarget.h.
Referenced by hasFlatGlobalInsts().
|
protected |
Definition at line 165 of file GCNSubtarget.h.
Referenced by hasFlatInstOffsets().
|
protected |
Definition at line 167 of file GCNSubtarget.h.
Referenced by hasFlatScratchInsts().
|
protected |
Definition at line 98 of file GCNSubtarget.h.
Referenced by hasFMA().
|
protected |
Definition at line 97 of file GCNSubtarget.h.
Referenced by hasFP64(), and hasHWFP64().
|
protected |
Definition at line 70 of file GCNSubtarget.h.
Referenced by hasFullRate64Ops().
|
protected |
Definition at line 61 of file GCNSubtarget.h.
Referenced by getGeneration(), and initializeSubtargetDependencies().
|
protected |
Definition at line 107 of file GCNSubtarget.h.
Referenced by hasGFX10_3Insts().
|
protected |
Definition at line 135 of file GCNSubtarget.h.
Referenced by hasGFX10_AEncoding().
|
protected |
Definition at line 136 of file GCNSubtarget.h.
Referenced by hasAtomicCSub(), hasGFX10_BEncoding(), and hasGlobalAddTidInsts().
|
protected |
Definition at line 105 of file GCNSubtarget.h.
|
protected |
Definition at line 106 of file GCNSubtarget.h.
Referenced by hasCompressedExport(), hasDelayAlu(), hasFlatScratchSVSMode(), hasNullExportTarget(), and hasSPackHL().
|
protected |
Definition at line 108 of file GCNSubtarget.h.
|
protected |
Definition at line 101 of file GCNSubtarget.h.
Referenced by hasLDSFPAtomicAdd().
|
protected |
Definition at line 103 of file GCNSubtarget.h.
Referenced by hasGFX90AInsts(), and needsAlignedVGPRs().
|
protected |
Definition at line 104 of file GCNSubtarget.h.
Referenced by hasDOTOpSelHazard(), hasDstSelForwardingHazard(), hasFlatScratchSVSMode(), hasGFX940Insts(), hasLshlAddB64(), hasMovB64(), hasTransForwardingHazard(), and hasVDecCoExecHazard().
|
protected |
Definition at line 102 of file GCNSubtarget.h.
Referenced by hasScalarMulHiInsts(), hasScalarPackInsts(), and hasSwap().
|
protected |
Definition at line 69 of file GCNSubtarget.h.
Referenced by hasHalfRate64Ops().
|
protected |
Definition at line 126 of file GCNSubtarget.h.
Referenced by has64BitDPP().
|
protected |
Definition at line 77 of file GCNSubtarget.h.
Referenced by hasApertureRegs().
|
protected |
Definition at line 169 of file GCNSubtarget.h.
Referenced by flatScratchIsArchitected(), and getBaseReservedNumSGPRs().
|
protected |
Definition at line 149 of file GCNSubtarget.h.
Referenced by hasAtomicFaddInsts(), and hasAtomicFaddNoRtnInsts().
|
protected |
Definition at line 148 of file GCNSubtarget.h.
Referenced by hasAtomicFaddInsts(), and hasAtomicFaddRtnInsts().
|
protected |
Definition at line 150 of file GCNSubtarget.h.
Referenced by hasAtomicPkFaddNoRtnInsts().
|
protected |
Definition at line 137 of file GCNSubtarget.h.
Referenced by hasDLInsts().
|
protected |
Definition at line 138 of file GCNSubtarget.h.
Referenced by hasDot1Insts().
|
protected |
Definition at line 139 of file GCNSubtarget.h.
Referenced by hasDot2Insts().
|
protected |
Definition at line 140 of file GCNSubtarget.h.
Referenced by hasDot3Insts().
|
protected |
Definition at line 141 of file GCNSubtarget.h.
Referenced by hasDot4Insts().
|
protected |
Definition at line 142 of file GCNSubtarget.h.
Referenced by hasDot5Insts().
|
protected |
Definition at line 143 of file GCNSubtarget.h.
Referenced by hasDot6Insts().
|
protected |
Definition at line 144 of file GCNSubtarget.h.
Referenced by hasDot7Insts().
|
protected |
Definition at line 145 of file GCNSubtarget.h.
Referenced by hasDot8Insts().
|
protected |
Definition at line 124 of file GCNSubtarget.h.
Referenced by hasDPP(), hasDPPBroadcasts(), and hasDPPWavefrontShifts().
|
protected |
Definition at line 125 of file GCNSubtarget.h.
Referenced by hasDPP8().
|
protected |
Definition at line 129 of file GCNSubtarget.h.
Referenced by hasExtendedImageInsts().
|
protected |
Definition at line 189 of file GCNSubtarget.h.
Referenced by hasFlatSegmentOffsetBug().
|
protected |
Definition at line 114 of file GCNSubtarget.h.
Referenced by hasFmaMixInsts().
|
protected |
Definition at line 132 of file GCNSubtarget.h.
Referenced by hasG16().
|
protected |
Definition at line 159 of file GCNSubtarget.h.
Referenced by hasGetWaveIdInst().
|
protected |
Definition at line 131 of file GCNSubtarget.h.
Referenced by hasGFX10A16().
|
protected |
Definition at line 191 of file GCNSubtarget.h.
Referenced by hasImageGather4D16Bug().
|
protected |
Definition at line 128 of file GCNSubtarget.h.
Referenced by hasImageInsts().
|
protected |
Definition at line 190 of file GCNSubtarget.h.
Referenced by hasImageStoreD16Bug().
|
protected |
Definition at line 183 of file GCNSubtarget.h.
Referenced by hasInstFwdPrefetchBug().
|
protected |
Definition at line 113 of file GCNSubtarget.h.
Referenced by hasIntClamp().
|
protected |
Definition at line 185 of file GCNSubtarget.h.
Referenced by hasLdsBranchVmemWARHazard().
|
protected |
Definition at line 146 of file GCNSubtarget.h.
Referenced by hasMAIInsts().
|
protected |
Definition at line 174 of file GCNSubtarget.h.
Referenced by hasMFMAInlineLiteralBug().
|
protected |
Definition at line 115 of file GCNSubtarget.h.
Referenced by hasMovrel(), and initializeSubtargetDependencies().
|
protected |
Definition at line 163 of file GCNSubtarget.h.
Referenced by hasNoDataDepHazard().
|
protected |
Definition at line 157 of file GCNSubtarget.h.
Referenced by hasNoSdstCMPX().
|
protected |
Definition at line 187 of file GCNSubtarget.h.
Referenced by hasNSAClauseBug().
|
protected |
Definition at line 133 of file GCNSubtarget.h.
Referenced by hasNSAEncoding().
|
protected |
Definition at line 186 of file GCNSubtarget.h.
Referenced by hasNSAtoVMEMBug().
|
protected |
Definition at line 188 of file GCNSubtarget.h.
Referenced by hasOffset3fBug().
|
protected |
Definition at line 127 of file GCNSubtarget.h.
Referenced by hasPackedFP32Ops().
|
protected |
Definition at line 177 of file GCNSubtarget.h.
Referenced by hasPackedTID().
|
protected |
Definition at line 147 of file GCNSubtarget.h.
Referenced by hasPkFmacF16Inst().
|
protected |
Definition at line 130 of file GCNSubtarget.h.
Referenced by hasR128A16().
|
protected |
Definition at line 118 of file GCNSubtarget.h.
Referenced by hasScalarAtomics().
|
protected |
Definition at line 117 of file GCNSubtarget.h.
Referenced by hasScalarStores().
|
protected |
Definition at line 122 of file GCNSubtarget.h.
Referenced by hasSDWAMac().
|
protected |
Definition at line 119 of file GCNSubtarget.h.
Referenced by hasSDWAOmod().
|
protected |
Definition at line 123 of file GCNSubtarget.h.
Referenced by hasSDWAOutModsVOPC().
|
protected |
Definition at line 120 of file GCNSubtarget.h.
Referenced by hasSDWAScalar().
|
protected |
Definition at line 121 of file GCNSubtarget.h.
Referenced by hasSDWASdst().
|
protected |
Definition at line 161 of file GCNSubtarget.h.
Referenced by hasShaderCyclesRegister().
|
protected |
Definition at line 112 of file GCNSubtarget.h.
Referenced by hasSMemRealTime().
|
protected |
Definition at line 160 of file GCNSubtarget.h.
Referenced by hasSMemTimeInst().
|
protected |
Definition at line 182 of file GCNSubtarget.h.
Referenced by hasSMEMtoVectorWriteHazard().
|
protected |
Definition at line 172 of file GCNSubtarget.h.
Referenced by hasUnpackedD16VMem().
|
protected |
Definition at line 184 of file GCNSubtarget.h.
Referenced by hasVcmpxExecWARHazard().
|
protected |
Definition at line 180 of file GCNSubtarget.h.
Referenced by hasVcmpxPermlaneHazard().
|
protected |
Definition at line 116 of file GCNSubtarget.h.
Referenced by hasVGPRIndexMode(), and initializeSubtargetDependencies().
|
protected |
Definition at line 181 of file GCNSubtarget.h.
Referenced by hasVMEMtoScalarWriteHazard().
|
protected |
Definition at line 162 of file GCNSubtarget.h.
Referenced by hasVOP3Literal().
|
protected |
Definition at line 192 of file GCNSubtarget.h.
Referenced by hasVOPDInsts().
|
protected |
Definition at line 158 of file GCNSubtarget.h.
Referenced by hasVscnt().
|
protected |
Definition at line 62 of file GCNSubtarget.h.
Referenced by getInstrItineraryData().
|
protected |
Definition at line 63 of file GCNSubtarget.h.
Referenced by getLDSBankCount(), and initializeSubtargetDependencies().
|
protected |
Definition at line 173 of file GCNSubtarget.h.
Referenced by hasLDSMisalignedBug().
|
protected |
Definition at line 64 of file GCNSubtarget.h.
Referenced by getMaxPrivateElementSize(), and initializeSubtargetDependencies().
|
static |
Definition at line 205 of file GCNSubtarget.h.
Referenced by getKnownHighZeroBitsForFrameIndex().
|
protected |
Definition at line 99 of file GCNSubtarget.h.
Referenced by hasMIMG_R128().
|
protected |
Definition at line 110 of file GCNSubtarget.h.
Referenced by hasNegativeScratchOffsetBug().
|
protected |
Definition at line 111 of file GCNSubtarget.h.
Referenced by hasNegativeUnalignedScratchOffsetBug().
|
protected |
Definition at line 134 of file GCNSubtarget.h.
Referenced by getNSAMaxSize().
|
protected |
Definition at line 168 of file GCNSubtarget.h.
Referenced by hasScalarFlatScratchInsts().
|
protected |
Definition at line 178 of file GCNSubtarget.h.
Referenced by getScalarizeGlobalBehavior(), and setScalarizeGlobalBehavior().
|
protected |
Definition at line 109 of file GCNSubtarget.h.
Referenced by hasSGPRInitBug().
|
protected |
Definition at line 151 of file GCNSubtarget.h.
|
protected |
Definition at line 78 of file GCNSubtarget.h.
|
protected |
Definition at line 60 of file GCNSubtarget.h.
Referenced by d16PreservesUnusedBits(), getTargetID(), initializeSubtargetDependencies(), and isXNACKEnabled().
|
protected |
Definition at line 59 of file GCNSubtarget.h.
|
protected |
Definition at line 86 of file GCNSubtarget.h.
Referenced by isTrapHandlerEnabled().
|
protected |
Definition at line 197 of file GCNSubtarget.h.
Referenced by getSelectionDAGInfo().
|
protected |
Definition at line 76 of file GCNSubtarget.h.
Referenced by hasUnalignedAccessMode(), hasUnalignedBufferAccessEnabled(), and hasUnalignedDSAccessEnabled().
|
protected |
Definition at line 175 of file GCNSubtarget.h.
Referenced by hasUnalignedBufferAccess(), and hasUnalignedBufferAccessEnabled().
|
protected |
Definition at line 176 of file GCNSubtarget.h.
Referenced by hasUnalignedDSAccess(), and hasUnalignedDSAccessEnabled().
|
protected |
Definition at line 75 of file GCNSubtarget.h.
Referenced by hasUnalignedScratchAccess().