22 IsKernel(MF.getFunction()->getCallingConv() == CallingConv::
AMDGPU_KERNEL ||
23 MF.getFunction()->getCallingConv() == CallingConv::
SPIR_KERNEL) {
30 auto Entry = LocalMemoryObjects.insert(std::make_pair(&GV, 0));
32 return Entry.first->second;
43 Entry.first->second =
Offset;
A parsed version of the target data layout string in and methods for querying it. ...
unsigned allocateLDSGlobal(const DataLayout &DL, const GlobalValue &GV)
AMDGPU specific subclass of TargetSubtarget.
AMDGPUMachineFunction(const MachineFunction &MF)
Type * getValueType() const
uint64_t alignTo(uint64_t Value, uint64_t Align, uint64_t Skew=0)
Returns the next integer (mod 2**64) that is greater than or equal to Value and is a multiple of Alig...
MachineFunctionInfo - This class can be derived from and used by targets to hold private target-speci...
Calling convention for AMDGPU code object kernels.
unsigned getABITypeAlignment(Type *Ty) const
Returns the minimum ABI-required alignment for the specified type.
uint64_t getTypeAllocSize(Type *Ty) const
Returns the offset in bytes between successive objects of the specified type, including alignment pad...
SPIR_KERNEL - Calling convention for SPIR kernel functions.
unsigned getAlignment() const