10 #ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUMACHINEFUNCTION_H
11 #define LLVM_LIB_TARGET_AMDGPU_AMDGPUMACHINEFUNCTION_H
24 unsigned MaxKernArgAlign;
31 unsigned ABIArgOffset;
40 KernArgSize =
alignTo(KernArgSize, Align);
42 uint64_t Result = KernArgSize;
45 MaxKernArgAlign = std::max(Align, MaxKernArgAlign);
54 return MaxKernArgAlign;
58 ABIArgOffset = NewOffset;
A parsed version of the target data layout string in and methods for querying it. ...
unsigned allocateLDSGlobal(const DataLayout &DL, const GlobalValue &GV)
AMDGPUMachineFunction(const MachineFunction &MF)
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...
uint64_t allocateKernArg(uint64_t Size, unsigned Align)
unsigned getABIArgOffset() const
unsigned getLDSSize() const
unsigned getMaxKernArgAlign() const
constexpr bool isPowerOf2_32(uint32_t Value)
isPowerOf2_32 - This function returns true if the argument is a power of two > 0. ...
uint64_t getKernArgSize() const
void setABIArgOffset(unsigned NewOffset)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())