|
LLVM
5.0.0
|
#include "Target/AMDGPU/AMDGPUSubtarget.h"
Definition at line 624 of file AMDGPUSubtarget.h.
| SISubtarget::SISubtarget | ( | const Triple & | TT, |
| StringRef | CPU, | ||
| StringRef | FS, | ||
| const TargetMachine & | TM | ||
| ) |
Definition at line 355 of file AMDGPUSubtarget.cpp.
References getRegisterInfo(), getTargetLowering(), and setGISelAccessor().
|
inline |
Definition at line 738 of file AMDGPUSubtarget.h.
References llvm::AMDGPUSubtarget::DebuggerEmitPrologue.
Referenced by debuggerSupported(), llvm::SIFrameLowering::emitEntryFunctionPrologue(), ImplicitBufferPtr(), and llvm::AMDGPUAsmPrinter::runOnMachineFunction().
|
inline |
Definition at line 730 of file AMDGPUSubtarget.h.
References llvm::AMDGPUSubtarget::DebuggerInsertNops.
Referenced by debuggerSupported().
|
inline |
Definition at line 734 of file AMDGPUSubtarget.h.
References llvm::AMDGPUSubtarget::DebuggerReserveRegs.
Referenced by debuggerSupported(), and getReservedNumVGPRs().
|
inline |
Definition at line 725 of file AMDGPUSubtarget.h.
References debuggerEmitPrologue(), debuggerInsertNops(), and debuggerReserveRegs().
|
inlineoverride |
Definition at line 676 of file AMDGPUSubtarget.h.
|
inline |
Definition at line 721 of file AMDGPUSubtarget.h.
References llvm::AMDGPUSubtarget::EnableSIScheduler.
Referenced by overrideSchedPolicy().
|
inline |
Definition at line 772 of file AMDGPUSubtarget.h.
References llvm::AMDGPUSubtarget::getGeneration(), and llvm::AMDGPUSubtarget::GFX9.
|
inline |
Definition at line 792 of file AMDGPUSubtarget.h.
References llvm::AMDGPU::IsaInfo::getAddressableNumSGPRs().
|
inline |
Definition at line 838 of file AMDGPUSubtarget.h.
References llvm::AMDGPU::IsaInfo::getAddressableNumVGPRs().
|
inlineoverride |
Definition at line 647 of file AMDGPUSubtarget.h.
References assert().
|
inlineoverridevirtual |
Implements llvm::AMDGPUSubtarget.
Definition at line 639 of file AMDGPUSubtarget.h.
|
inlineoverridevirtual |
Implements llvm::AMDGPUSubtarget.
Definition at line 635 of file AMDGPUSubtarget.h.
Referenced by llvm::SITargetLowering::AdjustInstrPostInstrSelection(), llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::SIFrameLowering::emitEntryFunctionPrologue(), llvm::SIFrameLowering::emitEpilogue(), emitIndirectDst(), emitIndirectSrc(), llvm::SITargetLowering::EmitInstrWithCustomInserter(), llvm::SIFrameLowering::emitPrologue(), llvm::SIRegisterInfo::materializeFrameBaseRegister(), llvm::SITargetLowering::PostISelFolding(), llvm::SIFrameLowering::processFunctionBeforeFrameFinalized(), llvm::SIRegisterInfo::resolveFrameIndex(), llvm::SIRegisterInfo::restoreSGPR(), llvm::SIRegisterInfo::spillSGPR(), llvm::SITargetLowering::splitKillBlock(), and llvm::SITargetLowering::wrapAddr64Rsrc().
|
inlineoverride |
Definition at line 652 of file AMDGPUSubtarget.h.
References assert().
| unsigned SISubtarget::getKernArgSegmentSize | ( | const MachineFunction & | MF, |
| unsigned | ExplictArgBytes | ||
| ) | const |
Definition at line 395 of file AMDGPUSubtarget.cpp.
References llvm::alignTo(), llvm::AMDGPUSubtarget::getAlignmentForImplicitArgPtr(), and llvm::AMDGPUSubtarget::getImplicitArgNumBytes().
|
inlineoverride |
Definition at line 657 of file AMDGPUSubtarget.h.
References assert().
Definition at line 804 of file AMDGPUSubtarget.h.
References llvm::AMDGPU::IsaInfo::getMaxNumSGPRs().
Referenced by getAllSGPR128(), getAllSGPRs(), getMaxNumSGPRs(), llvm::SIRegisterInfo::getRegPressureLimit(), llvm::SIRegisterInfo::getReservedRegs(), llvm::GCNMaxOccupancySchedStrategy::initialize(), llvm::SIRegisterInfo::reservedPrivateSegmentBufferReg(), and llvm::SIRegisterInfo::reservedPrivateSegmentWaveByteOffsetReg().
| unsigned SISubtarget::getMaxNumSGPRs | ( | const MachineFunction & | MF | ) | const |
MF, or number of SGPRs explicitly requested using "amdgpu-num-sgpr" attribute attached to function MF.Definition at line 464 of file AMDGPUSubtarget.cpp.
References F, llvm::AMDGPU::IsaInfo::FIXED_NUM_SGPRS_FOR_INIT_BUG, llvm::MachineFunction::getFunction(), llvm::MachineFunction::getInfo(), llvm::AMDGPU::getIntegerAttribute(), getMaxNumSGPRs(), getMinNumSGPRs(), llvm::SIMachineFunctionInfo::getNumPreloadedSGPRs(), getReservedNumSGPRs(), llvm::SIMachineFunctionInfo::getWavesPerEU(), llvm::Function::hasFnAttribute(), hasSGPRInitBug(), and fuzzer::min().
|
inline |
Definition at line 685 of file AMDGPUSubtarget.h.
Definition at line 850 of file AMDGPUSubtarget.h.
References llvm::AMDGPU::IsaInfo::getMaxNumVGPRs().
Referenced by getMaxNumVGPRs(), llvm::SIRegisterInfo::getRegPressureLimit(), llvm::SIRegisterInfo::getReservedRegs(), and llvm::GCNMaxOccupancySchedStrategy::initialize().
| unsigned SISubtarget::getMaxNumVGPRs | ( | const MachineFunction & | MF | ) | const |
MF, or number of VGPRs explicitly requested using "amdgpu-num-vgpr" attribute attached to function MF.Definition at line 514 of file AMDGPUSubtarget.cpp.
References F, llvm::MachineFunction::getFunction(), llvm::MachineFunction::getInfo(), llvm::AMDGPU::getIntegerAttribute(), getMaxNumVGPRs(), getMinNumVGPRs(), getReservedNumVGPRs(), llvm::SIMachineFunctionInfo::getWavesPerEU(), and llvm::Function::hasFnAttribute().
Definition at line 798 of file AMDGPUSubtarget.h.
References llvm::AMDGPU::IsaInfo::getMinNumSGPRs().
Referenced by getMaxNumSGPRs().
Definition at line 844 of file AMDGPUSubtarget.h.
References llvm::AMDGPU::IsaInfo::getMinNumVGPRs().
Referenced by getMaxNumVGPRs().
Return the maximum number of waves per SIMD for kernels using SGPRs SGPRs.
Definition at line 405 of file AMDGPUSubtarget.cpp.
References llvm::AMDGPUSubtarget::getGeneration(), and llvm::AMDGPUSubtarget::VOLCANIC_ISLANDS.
Referenced by getMaxWaves(), llvm::GCNRegPressure::getOccupancy(), llvm::GCNRegPressure::less(), and llvm::GCNRegPressure::print().
Return the maximum number of waves per SIMD for kernels using VGPRs VGPRs.
Definition at line 428 of file AMDGPUSubtarget.cpp.
Referenced by getMaxWaves(), llvm::GCNRegPressure::getOccupancy(), llvm::GCNRegPressure::less(), and llvm::GCNRegPressure::print().
|
inlineoverride |
Definition at line 662 of file AMDGPUSubtarget.h.
References assert().
|
inlineoverridevirtual |
Implements llvm::AMDGPUSubtarget.
Definition at line 667 of file AMDGPUSubtarget.h.
References llvm::SIInstrInfo::getRegisterInfo().
Referenced by llvm::SIMachineFunctionInfo::allocateSGPRSpillToVGPR(), llvm::SITargetLowering::finalizeLowering(), llvm::SITargetLowering::LowerFormalArguments(), llvm::SITargetLowering::LowerReturn(), SISubtarget(), and llvm::SITargetLowering::SITargetLowering().
| unsigned SISubtarget::getReservedNumSGPRs | ( | const MachineFunction & | MF | ) | const |
MF. Definition at line 450 of file AMDGPUSubtarget.cpp.
References llvm::AMDGPUSubtarget::getGeneration(), llvm::MachineFunction::getInfo(), llvm::SIMachineFunctionInfo::hasFlatScratchInit(), llvm::AMDGPUSubtarget::isXNACKEnabled(), llvm::AMDGPUSubtarget::SEA_ISLANDS, and llvm::AMDGPUSubtarget::VOLCANIC_ISLANDS.
Referenced by getMaxNumSGPRs().
|
inline |
MF. Definition at line 855 of file AMDGPUSubtarget.h.
References debuggerReserveRegs().
Referenced by getMaxNumVGPRs().
|
inline |
Definition at line 777 of file AMDGPUSubtarget.h.
References llvm::AMDGPU::IsaInfo::getSGPRAllocGranule().
|
inline |
Definition at line 782 of file AMDGPUSubtarget.h.
References llvm::AMDGPU::IsaInfo::getSGPREncodingGranule().
|
inlineoverridevirtual |
Implements llvm::AMDGPUSubtarget.
Definition at line 643 of file AMDGPUSubtarget.h.
Referenced by SISubtarget().
|
inline |
Definition at line 787 of file AMDGPUSubtarget.h.
References llvm::AMDGPU::IsaInfo::getTotalNumSGPRs().
|
inline |
Definition at line 833 of file AMDGPUSubtarget.h.
References llvm::AMDGPU::IsaInfo::getTotalNumVGPRs().
|
inline |
Definition at line 823 of file AMDGPUSubtarget.h.
References llvm::AMDGPU::IsaInfo::getVGPRAllocGranule().
|
inline |
Definition at line 828 of file AMDGPUSubtarget.h.
References llvm::AMDGPU::IsaInfo::getVGPREncodingGranule().
|
inline |
Definition at line 750 of file AMDGPUSubtarget.h.
References llvm::AMDGPUSubtarget::getGeneration(), and llvm::AMDGPUSubtarget::SOUTHERN_ISLANDS.
|
inline |
Definition at line 717 of file AMDGPUSubtarget.h.
References llvm::AMDGPUSubtarget::HasDPP.
|
inline |
Definition at line 713 of file AMDGPUSubtarget.h.
References llvm::AMDGPUSubtarget::HasInv2PiInlineImm.
Referenced by llvm::SIRegisterInfo::eliminateFrameIndex(), and llvm::SIInstrInfo::isInlineConstant().
|
inline |
Definition at line 693 of file AMDGPUSubtarget.h.
References llvm::AMDGPUSubtarget::HasMovrel.
Referenced by useVGPRIndexMode().
|
inline |
Definition at line 758 of file AMDGPUSubtarget.h.
References llvm::AMDGPUSubtarget::getGeneration(), and llvm::AMDGPUSubtarget::GFX9.
|
inline |
Definition at line 705 of file AMDGPUSubtarget.h.
References llvm::AMDGPUSubtarget::getGeneration(), and llvm::AMDGPUSubtarget::VOLCANIC_ISLANDS.
|
inline |
Definition at line 709 of file AMDGPUSubtarget.h.
References llvm::AMDGPUSubtarget::HasScalarStores.
Referenced by llvm::SIInstrInfo::loadRegFromStackSlot(), llvm::SIRegisterInfo::SIRegisterInfo(), and llvm::SIInstrInfo::storeRegToStackSlot().
|
inline |
Definition at line 746 of file AMDGPUSubtarget.h.
References llvm::AMDGPUSubtarget::SGPRInitBug.
Referenced by getMaxNumSGPRs().
|
inline |
Definition at line 689 of file AMDGPUSubtarget.h.
References llvm::AMDGPUSubtarget::HasSMemRealTime.
|
inline |
Definition at line 754 of file AMDGPUSubtarget.h.
References llvm::AMDGPUSubtarget::getGeneration(), and llvm::AMDGPUSubtarget::GFX9.
|
inline |
Definition at line 697 of file AMDGPUSubtarget.h.
References llvm::AMDGPUSubtarget::HasVGPRIndexMode.
Referenced by useVGPRIndexMode().
Definition at line 391 of file AMDGPUSubtarget.cpp.
References llvm::AMDGPUSubtarget::EnableVGPRSpilling, llvm::Function::getCallingConv(), and llvm::AMDGPU::isShader().
Referenced by ImplicitBufferPtr(), llvm::SIInstrInfo::loadRegFromStackSlot(), and llvm::SIInstrInfo::storeRegToStackSlot().
|
inline |
Definition at line 742 of file AMDGPUSubtarget.h.
References llvm::AMDGPUSubtarget::EnableLoadStoreOpt.
|
override |
Definition at line 374 of file AMDGPUSubtarget.cpp.
References enableSIScheduler(), llvm::MachineSchedPolicy::OnlyBottomUp, llvm::MachineSchedPolicy::OnlyTopDown, llvm::MachineSchedPolicy::ShouldTrackLaneMasks, and llvm::MachineSchedPolicy::ShouldTrackPressure.
|
inline |
Definition at line 671 of file AMDGPUSubtarget.h.
Referenced by SISubtarget().
Definition at line 701 of file AMDGPUSubtarget.h.
References hasMovrel(), and hasVGPRIndexMode().
Referenced by emitIndirectDst(), and emitIndirectSrc().
1.8.6