LLVM 20.0.0git
|
#include "Target/AMDGPU/AMDGPUArgumentUsageInfo.h"
Public Types | |
enum | PreloadedValue { PRIVATE_SEGMENT_BUFFER = 0 , DISPATCH_PTR = 1 , QUEUE_PTR = 2 , KERNARG_SEGMENT_PTR = 3 , DISPATCH_ID = 4 , FLAT_SCRATCH_INIT = 5 , LDS_KERNEL_ID = 6 , WORKGROUP_ID_X = 10 , WORKGROUP_ID_Y = 11 , WORKGROUP_ID_Z = 12 , PRIVATE_SEGMENT_WAVE_BYTE_OFFSET = 14 , IMPLICIT_BUFFER_PTR = 15 , IMPLICIT_ARG_PTR = 16 , PRIVATE_SEGMENT_SIZE = 17 , WORKITEM_ID_X = 18 , WORKITEM_ID_Y = 19 , WORKITEM_ID_Z = 20 , FIRST_VGPR_VALUE = WORKITEM_ID_X } |
Public Member Functions | |
std::tuple< const ArgDescriptor *, const TargetRegisterClass *, LLT > | getPreloadedValue (PreloadedValue Value) const |
Static Public Member Functions | |
static AMDGPUFunctionArgInfo | fixedABILayout () |
Definition at line 102 of file AMDGPUArgumentUsageInfo.h.
Definition at line 104 of file AMDGPUArgumentUsageInfo.h.
|
static |
Definition at line 154 of file AMDGPUArgumentUsageInfo.cpp.
References llvm::ArgDescriptor::createRegister(), DispatchID, DispatchPtr, ImplicitArgPtr, LDSKernelId, PrivateSegmentBuffer, QueuePtr, WorkGroupIDX, WorkGroupIDY, WorkGroupIDZ, WorkItemIDX, WorkItemIDY, and WorkItemIDZ.
std::tuple< const ArgDescriptor *, const TargetRegisterClass *, LLT > AMDGPUFunctionArgInfo::getPreloadedValue | ( | AMDGPUFunctionArgInfo::PreloadedValue | Value | ) | const |
Definition at line 90 of file AMDGPUArgumentUsageInfo.cpp.
References llvm::AMDGPUAS::CONSTANT_ADDRESS, DISPATCH_ID, DISPATCH_PTR, DispatchID, DispatchPtr, llvm::LLT::fixed_vector(), FLAT_SCRATCH_INIT, FlatScratchInit, IMPLICIT_ARG_PTR, IMPLICIT_BUFFER_PTR, ImplicitArgPtr, ImplicitBufferPtr, KERNARG_SEGMENT_PTR, KernargSegmentPtr, LDS_KERNEL_ID, LDSKernelId, llvm_unreachable, llvm::LLT::pointer(), PRIVATE_SEGMENT_BUFFER, PRIVATE_SEGMENT_SIZE, PRIVATE_SEGMENT_WAVE_BYTE_OFFSET, PrivateSegmentBuffer, PrivateSegmentSize, PrivateSegmentWaveByteOffset, QUEUE_PTR, QueuePtr, llvm::LLT::scalar(), WORKGROUP_ID_X, WORKGROUP_ID_Y, WORKGROUP_ID_Z, WorkGroupIDX, WorkGroupIDY, WorkGroupIDZ, WORKITEM_ID_X, WORKITEM_ID_Y, WORKITEM_ID_Z, WorkItemIDX, WorkItemIDY, and WorkItemIDZ.
Referenced by llvm::SITargetLowering::passSpecialInputs(), and llvm::AMDGPUCallLowering::passSpecialInputs().
ArgDescriptor llvm::AMDGPUFunctionArgInfo::DispatchID |
Definition at line 137 of file AMDGPUArgumentUsageInfo.h.
Referenced by fixedABILayout(), getPreloadedValue(), and llvm::GCNTargetMachine::parseMachineFunctionInfo().
ArgDescriptor llvm::AMDGPUFunctionArgInfo::DispatchPtr |
Definition at line 134 of file AMDGPUArgumentUsageInfo.h.
Referenced by fixedABILayout(), getPreloadedValue(), and llvm::GCNTargetMachine::parseMachineFunctionInfo().
ArgDescriptor llvm::AMDGPUFunctionArgInfo::FlatScratchInit |
Definition at line 138 of file AMDGPUArgumentUsageInfo.h.
Referenced by getPreloadedValue(), and llvm::GCNTargetMachine::parseMachineFunctionInfo().
ArgDescriptor llvm::AMDGPUFunctionArgInfo::ImplicitArgPtr |
Definition at line 151 of file AMDGPUArgumentUsageInfo.h.
Referenced by fixedABILayout(), getPreloadedValue(), and llvm::GCNTargetMachine::parseMachineFunctionInfo().
ArgDescriptor llvm::AMDGPUFunctionArgInfo::ImplicitBufferPtr |
Definition at line 154 of file AMDGPUArgumentUsageInfo.h.
Referenced by getPreloadedValue(), and llvm::GCNTargetMachine::parseMachineFunctionInfo().
ArgDescriptor llvm::AMDGPUFunctionArgInfo::KernargSegmentPtr |
Definition at line 136 of file AMDGPUArgumentUsageInfo.h.
Referenced by getPreloadedValue(), and llvm::GCNTargetMachine::parseMachineFunctionInfo().
ArgDescriptor llvm::AMDGPUFunctionArgInfo::LDSKernelId |
Definition at line 140 of file AMDGPUArgumentUsageInfo.h.
Referenced by fixedABILayout(), getPreloadedValue(), and llvm::GCNTargetMachine::parseMachineFunctionInfo().
SmallDenseMap<int, KernArgPreloadDescriptor> llvm::AMDGPUFunctionArgInfo::PreloadKernArgs {} |
Definition at line 163 of file AMDGPUArgumentUsageInfo.h.
ArgDescriptor llvm::AMDGPUFunctionArgInfo::PrivateSegmentBuffer |
Definition at line 133 of file AMDGPUArgumentUsageInfo.h.
Referenced by fixedABILayout(), getPreloadedValue(), and llvm::GCNTargetMachine::parseMachineFunctionInfo().
ArgDescriptor llvm::AMDGPUFunctionArgInfo::PrivateSegmentSize |
Definition at line 139 of file AMDGPUArgumentUsageInfo.h.
Referenced by getPreloadedValue(), and llvm::GCNTargetMachine::parseMachineFunctionInfo().
ArgDescriptor llvm::AMDGPUFunctionArgInfo::PrivateSegmentWaveByteOffset |
Definition at line 147 of file AMDGPUArgumentUsageInfo.h.
Referenced by getPreloadedValue(), and llvm::GCNTargetMachine::parseMachineFunctionInfo().
ArgDescriptor llvm::AMDGPUFunctionArgInfo::QueuePtr |
Definition at line 135 of file AMDGPUArgumentUsageInfo.h.
Referenced by fixedABILayout(), getPreloadedValue(), and llvm::GCNTargetMachine::parseMachineFunctionInfo().
ArgDescriptor llvm::AMDGPUFunctionArgInfo::WorkGroupIDX |
Definition at line 143 of file AMDGPUArgumentUsageInfo.h.
Referenced by fixedABILayout(), getPreloadedValue(), and llvm::GCNTargetMachine::parseMachineFunctionInfo().
ArgDescriptor llvm::AMDGPUFunctionArgInfo::WorkGroupIDY |
Definition at line 144 of file AMDGPUArgumentUsageInfo.h.
Referenced by fixedABILayout(), getPreloadedValue(), and llvm::GCNTargetMachine::parseMachineFunctionInfo().
ArgDescriptor llvm::AMDGPUFunctionArgInfo::WorkGroupIDZ |
Definition at line 145 of file AMDGPUArgumentUsageInfo.h.
Referenced by fixedABILayout(), getPreloadedValue(), and llvm::GCNTargetMachine::parseMachineFunctionInfo().
ArgDescriptor llvm::AMDGPUFunctionArgInfo::WorkGroupInfo |
Definition at line 146 of file AMDGPUArgumentUsageInfo.h.
Referenced by llvm::GCNTargetMachine::parseMachineFunctionInfo().
ArgDescriptor llvm::AMDGPUFunctionArgInfo::WorkItemIDX |
Definition at line 158 of file AMDGPUArgumentUsageInfo.h.
Referenced by fixedABILayout(), getPreloadedValue(), llvm::GCNTargetMachine::parseMachineFunctionInfo(), llvm::SITargetLowering::passSpecialInputs(), and llvm::AMDGPUCallLowering::passSpecialInputs().
ArgDescriptor llvm::AMDGPUFunctionArgInfo::WorkItemIDY |
Definition at line 159 of file AMDGPUArgumentUsageInfo.h.
Referenced by fixedABILayout(), getPreloadedValue(), llvm::GCNTargetMachine::parseMachineFunctionInfo(), llvm::SITargetLowering::passSpecialInputs(), and llvm::AMDGPUCallLowering::passSpecialInputs().
ArgDescriptor llvm::AMDGPUFunctionArgInfo::WorkItemIDZ |
Definition at line 160 of file AMDGPUArgumentUsageInfo.h.
Referenced by fixedABILayout(), getPreloadedValue(), llvm::GCNTargetMachine::parseMachineFunctionInfo(), llvm::SITargetLowering::passSpecialInputs(), and llvm::AMDGPUCallLowering::passSpecialInputs().