19 ExplicitKernArgSize(0),
23 NoSignedZerosFPMath(MF.getTarget().Options.NoSignedZerosFPMath),
47 auto Entry = LocalMemoryObjects.insert(std::make_pair(&GV, 0));
49 return Entry.first->second;
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.
This class represents lattice values for constants.
AMDGPUMachineFunction(const MachineFunction &MF)
MachineFunctionInfo - This class can be derived from and used by targets to hold private target-speci...
static const AMDGPUSubtarget & get(const MachineFunction &MF)
SPIR_KERNEL - Calling convention for SPIR kernel functions.
bool isStringAttribute() const
Return true if the attribute is a string (target-dependent) attribute.
unsigned getAlignment() const
static Function * getFunction(Constant *C)
TypeSize getTypeAllocSize(Type *Ty) const
Returns the offset in bytes between successive objects of the specified type, including alignment pad...
bool isEntryFunctionCC(CallingConv::ID CC)
uint64_t ExplicitKernArgSize
This struct is a compact representation of a valid (non-zero power of two) alignment.
unsigned LDSSize
Number of bytes in the LDS that are being used.
CallingConv::ID getCallingConv() const
getCallingConv()/setCallingConv(CC) - These method get and set the calling convention of this functio...
unsigned getABITypeAlignment(Type *Ty) const
Returns the minimum ABI-required alignment for the specified type.
const Function & getFunction() const
Return the LLVM function that this machine code represents.
uint64_t alignTo(uint64_t Size, Align A)
Returns a multiple of A needed to store Size bytes.
StringRef getValueAsString() const
Return the attribute's value as a string.
uint64_t getExplicitKernArgSize(const Function &F, Align &MaxAlign) const
Type * getValueType() const
Attribute getFnAttribute(Attribute::AttrKind Kind) const
Return the attribute for the given attribute kind.
Calling convention for AMDGPU code object kernels.
Analyzes if a function potentially memory bound and if a kernel kernel may benefit from limiting numb...