32 #define DEBUG_TYPE "amdgpu-aa" 39 "AMDGPU Address space based Alias Analysis",
false,
true)
102 if (GV->isConstant())
104 }
else if (
const Argument *
Arg = dyn_cast<Argument>(Base)) {
123 unsigned ArgNo =
Arg->getArgNo();
Calling convention used for Mesa/AMDPAL hull shaders (= tessellation control shaders).
This class represents an incoming formal argument to a Function.
This class represents lattice values for constants.
This class stores info we want to provide to or retain within an alias query.
The two locations do not alias at all.
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - This function should be overriden by passes that need analysis information to do t...
unsigned getPointerAddressSpace() const
Get the address space of this pointer or pointer vector type.
block Block Frequency true
AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB, AAQueryInfo &AAQI)
Calling convention used for AMDPAL vertex shader if tessellation is in use.
Calling convention used for Mesa/AMDPAL geometry shaders.
amdgpu aa AMDGPU Address space based Alias Analysis Wrapper
SPIR_KERNEL - Calling convention for SPIR kernel functions.
bool pointsToConstantMemory(const MemoryLocation &Loc, AAQueryInfo &AAQI, bool OrLocal)
This file contains the simple types necessary to represent the attributes associated with functions a...
bool hasParamAttribute(unsigned ArgNo, Attribute::AttrKind Kind) const
check if an attributes is in the list of attributes.
Address space for 32-bit constant memory.
Type * getType() const
All values are typed, get the type of this value.
AliasResult
The possible results of an alias query.
Calling convention used for Mesa/AMDPAL compute shaders.
static AliasResult getAliasResult(unsigned AS1, unsigned AS2)
AliasResult alias(const MemoryLocation &LocA, const MemoryLocation &LocB, AAQueryInfo &AAQI)
bool pointsToConstantMemory(const MemoryLocation &Loc, AAQueryInfo &AAQI, bool OrLocal)
Represent the analysis usage information of a pass.
Legacy wrapper pass to provide the AMDGPUAAResult object.
amdgpu Simplify well known AMD library false FunctionCallee Value * Arg
Value * GetUnderlyingObject(Value *V, const DataLayout &DL, unsigned MaxLookup=6)
This method strips off any GEP address adjustments and pointer casts from the specified value...
This is the AMGPU address space based alias analysis pass.
The two locations may or may not alias. This is the least precise result.
const Value * Ptr
The address of the start of the location.
Representation for a specific memory location.
ImmutablePass class - This class is used to provide information that does not need to be run...
CallingConv::ID getCallingConv() const
getCallingConv()/setCallingConv(CC) - These method get and set the calling convention of this functio...
Calling convention used for Mesa/AMDPAL pixel shaders.
ImmutablePass * createAMDGPUAAWrapperPass()
static const AliasResult ASAliasRules[8][8]
void setPreservesAll()
Set by analyses that do not transform their input at all.
INITIALIZE_PASS(AMDGPUAAWrapperPass, "amdgpu-aa", "AMDGPU Address space based Alias Analysis", false, true) INITIALIZE_PASS(AMDGPUExternalAAWrapper
This file provides utility analysis objects describing memory locations.
Calling convention used for Mesa vertex shaders, or AMDPAL last shader stage before rasterization (ve...
ImmutablePass * createAMDGPUExternalAAWrapperPass()
LLVM Value Representation.
Calling convention for AMDGPU code object kernels.
Address space for constant memory (VTX2).
Calling convention used for AMDPAL shader stage before geometry shader if geometry is in use...