|
LLVM
5.0.0
|
This class keeps track of the SPI_SP_INPUT_ADDR config register, which tells the hardware which interpolation parameters to load. More...
#include "Target/AMDGPU/SIMachineFunctionInfo.h"
Classes | |
| struct | SpilledReg |
Friends | |
| class | SIRegisterInfo |
Additional Inherited Members | |
Static Public Member Functions inherited from llvm::MachineFunctionInfo | |
| template<typename Ty > | |
| static Ty * | create (BumpPtrAllocator &Allocator, MachineFunction &MF) |
| Factory function: default behavior is to call new using the supplied allocator. More... | |
This class keeps track of the SPI_SP_INPUT_ADDR config register, which tells the hardware which interpolation parameters to load.
Definition at line 80 of file SIMachineFunctionInfo.h.
| SIMachineFunctionInfo::SIMachineFunctionInfo | ( | const MachineFunction & | MF | ) |
Definition at line 23 of file SIMachineFunctionInfo.cpp.
| unsigned SIMachineFunctionInfo::addDispatchID | ( | const SIRegisterInfo & | TRI | ) |
Definition at line 213 of file SIMachineFunctionInfo.cpp.
Referenced by allocateHSAUserSGPRs(), and llvm::AMDGPUCallLowering::lowerFormalArguments().
| unsigned SIMachineFunctionInfo::addDispatchPtr | ( | const SIRegisterInfo & | TRI | ) |
Definition at line 192 of file SIMachineFunctionInfo.cpp.
Referenced by allocateHSAUserSGPRs(), and llvm::AMDGPUCallLowering::lowerFormalArguments().
| unsigned SIMachineFunctionInfo::addFlatScratchInit | ( | const SIRegisterInfo & | TRI | ) |
Definition at line 220 of file SIMachineFunctionInfo.cpp.
Referenced by allocateHSAUserSGPRs(), and llvm::AMDGPUCallLowering::lowerFormalArguments().
| unsigned SIMachineFunctionInfo::addImplicitBufferPtr | ( | const SIRegisterInfo & | TRI | ) |
Definition at line 227 of file SIMachineFunctionInfo.cpp.
Referenced by allocateHSAUserSGPRs().
| unsigned SIMachineFunctionInfo::addKernargSegmentPtr | ( | const SIRegisterInfo & | TRI | ) |
Definition at line 206 of file SIMachineFunctionInfo.cpp.
Referenced by allocateHSAUserSGPRs(), and llvm::AMDGPUCallLowering::lowerFormalArguments().
| unsigned SIMachineFunctionInfo::addPrivateSegmentBuffer | ( | const SIRegisterInfo & | TRI | ) |
Definition at line 184 of file SIMachineFunctionInfo.cpp.
Referenced by allocateHSAUserSGPRs(), and llvm::AMDGPUCallLowering::lowerFormalArguments().
|
inline |
Definition at line 271 of file SIMachineFunctionInfo.h.
Referenced by allocateSystemSGPRs().
| unsigned SIMachineFunctionInfo::addQueuePtr | ( | const SIRegisterInfo & | TRI | ) |
Definition at line 199 of file SIMachineFunctionInfo.cpp.
Referenced by allocateHSAUserSGPRs(), and llvm::AMDGPUCallLowering::lowerFormalArguments().
|
inline |
Definition at line 443 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIRegisterInfo::spillSGPR().
|
inline |
Definition at line 447 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIRegisterInfo::eliminateFrameIndex().
|
inline |
Definition at line 247 of file SIMachineFunctionInfo.h.
Referenced by allocateSystemSGPRs().
|
inline |
Definition at line 253 of file SIMachineFunctionInfo.h.
Referenced by allocateSystemSGPRs().
|
inline |
Definition at line 259 of file SIMachineFunctionInfo.h.
Referenced by allocateSystemSGPRs().
|
inline |
Definition at line 265 of file SIMachineFunctionInfo.h.
Referenced by allocateSystemSGPRs().
| bool SIMachineFunctionInfo::allocateSGPRSpillToVGPR | ( | MachineFunction & | MF, |
| int | FI | ||
| ) |
Reserve a slice of a VGPR to support spilling for FrameIndex FI.
Definition at line 235 of file SIMachineFunctionInfo.cpp.
References assert(), llvm::SmallVectorTemplateCommon< T, typename >::back(), llvm::MachineFunction::getFrameInfo(), llvm::MachineFrameInfo::getObjectSize(), llvm::MachineFunction::getRegInfo(), llvm::SISubtarget::getRegisterInfo(), llvm::MachineFunction::getSubtarget(), llvm::AMDGPUSubtarget::getWavefrontSize(), I, MRI, llvm::SmallVectorTemplateBase< T, isPodLike >::push_back(), llvm::AMDGPU::CodeObject::Kernel::Arg::Key::Size, and llvm::ARM_MB::ST.
Referenced by llvm::SIFrameLowering::processFunctionBeforeFrameFinalized().
|
inline |
Definition at line 571 of file SIMachineFunctionInfo.h.
|
inline |
Dim's work group ID. Definition at line 512 of file SIMachineFunctionInfo.h.
References assert().
|
inline |
Dim's work item ID. Definition at line 524 of file SIMachineFunctionInfo.h.
References assert().
Definition at line 481 of file SIMachineFunctionInfo.h.
|
inline |
Definition at line 380 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::SIFrameLowering::emitPrologue(), llvm::SITargetLowering::finalizeLowering(), llvm::SIRegisterInfo::getReservedRegs(), llvm::SIInstrInfo::loadRegFromStackSlot(), llvm::SITargetLowering::LowerFormalArguments(), llvm::SIRegisterInfo::restoreSGPR(), llvm::SIRegisterInfo::spillSGPR(), and llvm::SIInstrInfo::storeRegToStackSlot().
|
inline |
Definition at line 575 of file SIMachineFunctionInfo.h.
Referenced by llvm::SITargetLowering::EmitInstrWithCustomInserter().
|
inline |
Definition at line 407 of file SIMachineFunctionInfo.h.
|
inline |
Definition at line 567 of file SIMachineFunctionInfo.h.
|
inline |
Definition at line 491 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIInstrInfo::calculateLDSSpillAddress().
|
inline |
Definition at line 507 of file SIMachineFunctionInfo.h.
|
inline |
Definition at line 486 of file SIMachineFunctionInfo.h.
|
inline |
Definition at line 502 of file SIMachineFunctionInfo.h.
|
inline |
Definition at line 357 of file SIMachineFunctionInfo.h.
Referenced by llvm::SISubtarget::getMaxNumSGPRs().
|
inline |
Definition at line 435 of file SIMachineFunctionInfo.h.
|
inline |
Definition at line 439 of file SIMachineFunctionInfo.h.
|
inline |
Definition at line 353 of file SIMachineFunctionInfo.h.
|
inline |
Definition at line 361 of file SIMachineFunctionInfo.h.
Referenced by allocateSystemSGPRs().
|
inline |
Definition at line 451 of file SIMachineFunctionInfo.h.
Referenced by llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 455 of file SIMachineFunctionInfo.h.
|
inline |
Definition at line 403 of file SIMachineFunctionInfo.h.
|
inline |
Returns the physical register reserved for use as the resource descriptor for scratch accesses.
Definition at line 367 of file SIMachineFunctionInfo.h.
Referenced by llvm::SITargetLowering::finalizeLowering(), llvm::SIRegisterInfo::getReservedRegs(), llvm::SIInstrInfo::loadRegFromStackSlot(), llvm::SITargetLowering::LowerFormalArguments(), llvm::SIRegisterInfo::restoreSGPR(), llvm::SIRegisterInfo::spillSGPR(), and llvm::SIInstrInfo::storeRegToStackSlot().
|
inline |
Definition at line 376 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIRegisterInfo::eliminateFrameIndex(), llvm::SITargetLowering::finalizeLowering(), llvm::SIRegisterInfo::getReservedRegs(), and llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 224 of file SIMachineFunctionInfo.h.
References I, and llvm::makeArrayRef().
Referenced by llvm::SIRegisterInfo::restoreSGPR(), and llvm::SIRegisterInfo::spillSGPR().
|
inline |
Definition at line 392 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIFrameLowering::emitEpilogue(), llvm::SIFrameLowering::emitPrologue(), llvm::SITargetLowering::finalizeLowering(), and llvm::SIRegisterInfo::getReservedRegs().
|
inline |
Definition at line 234 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIInstrInfo::calculateLDSSpillAddress().
Definition at line 497 of file SIMachineFunctionInfo.h.
Referenced by llvm::SISubtarget::getMaxNumSGPRs(), and llvm::SISubtarget::getMaxNumVGPRs().
Dim's work group ID. Definition at line 536 of file SIMachineFunctionInfo.h.
References assert(), hasWorkGroupIDX(), hasWorkGroupIDY(), hasWorkGroupIDZ(), and llvm_unreachable().
Dim' work item ID. Definition at line 552 of file SIMachineFunctionInfo.h.
References assert(), hasWorkItemIDX(), hasWorkItemIDY(), hasWorkItemIDZ(), and llvm_unreachable().
|
inline |
Definition at line 233 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIInstrInfo::calculateLDSSpillAddress().
|
inline |
Definition at line 297 of file SIMachineFunctionInfo.h.
Referenced by allocateHSAUserSGPRs(), llvm::SIRegisterInfo::getPreloadedValue(), and llvm::AMDGPUCallLowering::lowerFormalArguments().
|
inline |
Definition at line 285 of file SIMachineFunctionInfo.h.
Referenced by allocateHSAUserSGPRs(), llvm::SIRegisterInfo::getPreloadedValue(), llvm::AMDGPUCallLowering::lowerFormalArguments(), and llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 301 of file SIMachineFunctionInfo.h.
Referenced by allocateHSAUserSGPRs(), llvm::SIRegisterInfo::getPreloadedValue(), llvm::SISubtarget::getReservedNumSGPRs(), llvm::AMDGPUCallLowering::lowerFormalArguments(), and llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 305 of file SIMachineFunctionInfo.h.
|
inline |
Definition at line 309 of file SIMachineFunctionInfo.h.
|
inline |
Definition at line 313 of file SIMachineFunctionInfo.h.
|
inline |
Definition at line 349 of file SIMachineFunctionInfo.h.
Referenced by allocateHSAUserSGPRs(), and llvm::SIRegisterInfo::getPreloadedValue().
|
inline |
Definition at line 293 of file SIMachineFunctionInfo.h.
Referenced by allocateHSAUserSGPRs(), llvm::SIRegisterInfo::getPreloadedValue(), llvm::AMDGPUCallLowering::lowerFormalArguments(), and llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 427 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIFrameLowering::processFunctionBeforeFrameFinalized().
|
inline |
Definition at line 281 of file SIMachineFunctionInfo.h.
Referenced by allocateHSAUserSGPRs(), llvm::SIRegisterInfo::getPreloadedValue(), and llvm::AMDGPUCallLowering::lowerFormalArguments().
|
inline |
Definition at line 333 of file SIMachineFunctionInfo.h.
Referenced by allocateSystemSGPRs().
|
inline |
Definition at line 289 of file SIMachineFunctionInfo.h.
Referenced by allocateHSAUserSGPRs(), llvm::SIRegisterInfo::getPreloadedValue(), and llvm::AMDGPUCallLowering::lowerFormalArguments().
|
inline |
Definition at line 411 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIFrameLowering::processFunctionBeforeFrameFinalized().
|
inline |
Definition at line 419 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIFrameLowering::processFunctionBeforeFrameFinalized().
|
inline |
Definition at line 317 of file SIMachineFunctionInfo.h.
Referenced by allocateSystemSGPRs(), llvm::SIRegisterInfo::getPreloadedValue(), getWorkGroupIDSGPR(), and llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 321 of file SIMachineFunctionInfo.h.
Referenced by allocateSystemSGPRs(), llvm::SIRegisterInfo::getPreloadedValue(), getWorkGroupIDSGPR(), and llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 325 of file SIMachineFunctionInfo.h.
Referenced by allocateSystemSGPRs(), llvm::SIRegisterInfo::getPreloadedValue(), getWorkGroupIDSGPR(), and llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 329 of file SIMachineFunctionInfo.h.
Referenced by allocateSystemSGPRs(), and llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 337 of file SIMachineFunctionInfo.h.
Referenced by allocateSpecialInputVGPRs(), llvm::SIRegisterInfo::getPreloadedValue(), getWorkItemIDVGPR(), and llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 341 of file SIMachineFunctionInfo.h.
Referenced by allocateSpecialInputVGPRs(), llvm::SIRegisterInfo::getPreloadedValue(), getWorkItemIDVGPR(), and llvm::SITargetLowering::LowerFormalArguments().
|
inline |
Definition at line 345 of file SIMachineFunctionInfo.h.
Referenced by allocateSpecialInputVGPRs(), llvm::SIRegisterInfo::getPreloadedValue(), getWorkItemIDVGPR(), and llvm::SITargetLowering::LowerFormalArguments().
Definition at line 459 of file SIMachineFunctionInfo.h.
Referenced by llvm::SITargetLowering::LowerFormalArguments(), and processShaderInputArgs().
|
inline |
Definition at line 463 of file SIMachineFunctionInfo.h.
Referenced by llvm::SITargetLowering::LowerFormalArguments(), and processShaderInputArgs().
|
inline |
Definition at line 467 of file SIMachineFunctionInfo.h.
Referenced by llvm::SITargetLowering::LowerFormalArguments(), and processShaderInputArgs().
| void SIMachineFunctionInfo::removeSGPRToVGPRFrameIndices | ( | MachineFrameInfo & | MFI | ) |
Definition at line 287 of file SIMachineFunctionInfo.cpp.
References llvm::MachineFrameInfo::RemoveStackObject().
Referenced by llvm::SIFrameLowering::processFunctionBeforeFrameFinalized().
|
inline |
Definition at line 471 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIInstrInfo::insertReturn(), and llvm::SITargetLowering::LowerReturn().
|
inline |
Sets stack object index for Dim's work group ID to ObjectIdx.
Definition at line 518 of file SIMachineFunctionInfo.h.
References assert().
|
inline |
Sets stack object index for Dim's work item ID to ObjectIdx.
Definition at line 530 of file SIMachineFunctionInfo.h.
References assert().
Definition at line 431 of file SIMachineFunctionInfo.h.
Referenced by reservePrivateMemoryRegs().
Definition at line 415 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIInstrInfo::storeRegToStackSlot().
Definition at line 423 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIInstrInfo::storeRegToStackSlot().
|
inline |
Definition at line 475 of file SIMachineFunctionInfo.h.
Referenced by llvm::SITargetLowering::LowerReturn().
|
inline |
Definition at line 277 of file SIMachineFunctionInfo.h.
Referenced by allocateSystemSGPRs().
|
inline |
Definition at line 371 of file SIMachineFunctionInfo.h.
References assert().
Referenced by reservePrivateMemoryRegs().
|
inline |
Definition at line 396 of file SIMachineFunctionInfo.h.
References assert(), and llvm::AMDGPUMachineFunction::isEntryFunction().
Referenced by reservePrivateMemoryRegs().
|
inline |
Definition at line 384 of file SIMachineFunctionInfo.h.
Referenced by llvm::SITargetLowering::finalizeLowering().
|
inline |
Definition at line 235 of file SIMachineFunctionInfo.h.
Referenced by llvm::SIInstrInfo::calculateLDSSpillAddress().
|
friend |
Definition at line 82 of file SIMachineFunctionInfo.h.
1.8.6