10 #ifndef LLVM_LIB_TARGET_AMDGPU_AMDGPUMACHINEFUNCTION_H
11 #define LLVM_LIB_TARGET_AMDGPU_AMDGPUMACHINEFUNCTION_H
24 unsigned MaxKernArgAlign;
31 unsigned ABIArgOffset;
37 bool NoSignedZerosFPMath;
44 KernArgSize =
alignTo(KernArgSize, Align);
46 uint64_t Result = KernArgSize;
49 MaxKernArgAlign =
std::max(Align, MaxKernArgAlign);
58 return MaxKernArgAlign;
62 ABIArgOffset = NewOffset;
74 return IsEntryFunction;
78 return NoSignedZerosFPMath;
A parsed version of the target data layout string in and methods for querying it. ...
unsigned allocateLDSGlobal(const DataLayout &DL, const GlobalValue &GV)
GCNRegPressure max(const GCNRegPressure &P1, const GCNRegPressure &P2)
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
bool hasNoSignedZerosFPMath() const
constexpr bool isPowerOf2_32(uint32_t Value)
Return true if the argument is a power of two > 0.
uint64_t getKernArgSize() const
bool isEntryFunction() const
constexpr char Size[]
Key for Kernel::Arg::Metadata::mSize.
constexpr char Align[]
Key for Kernel::Arg::Metadata::mAlign.
void setABIArgOffset(unsigned NewOffset)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())