LLVM: lib/Target/AMDGPU/AMDGPUAttributor.cpp File Reference (original) (raw)

#include "[AMDGPU.h](AMDGPU%5F8h%5Fsource.html)"
#include "[GCNSubtarget.h](GCNSubtarget%5F8h%5Fsource.html)"
#include "[Utils/AMDGPUBaseInfo.h](AMDGPUBaseInfo%5F8h%5Fsource.html)"
#include "llvm/IR/IntrinsicsAMDGPU.h"
#include "llvm/IR/IntrinsicsR600.h"
#include "[llvm/Target/TargetMachine.h](llvm%5F2Target%5F2TargetMachine%5F8h%5Fsource.html)"
#include "[llvm/Transforms/IPO/Attributor.h](Attributor%5F8h%5Fsource.html)"
#include "AMDGPUAttributes.def"

Go to the source code of this file.

Macros
#define DEBUG_TYPE "amdgpu-attributor"
#define AMDGPU_ATTRIBUTE(Name, Str)
#define AMDGPU_ATTRIBUTE(Name, Str)
#define AMDGPU_ATTRIBUTE(Name, Str)
Enumerations
enum ImplicitArgumentPositions { LAST_ARG_POS }
enum ImplicitArgumentMask { UNKNOWN_INTRINSIC = 0 , ALL_ARGUMENT_MASK = (1 << LAST_ARG_POS) - 1 , NOT_IMPLICIT_INPUT }
Functions
static ImplicitArgumentMask intrinsicToAttrMask (Intrinsic::ID ID, bool &NonKernelOnly, bool &NeedsImplicit, bool HasApertureRegs, bool SupportsGetDoorBellID, unsigned CodeObjectVersion)
static bool castRequiresQueuePtr (unsigned SrcAS)
static bool isDSAddress (const Constant *C)
static bool hasSanitizerAttributes (const Function &F)
Returns true if sanitizer attributes are present on a function.
Variables
static cl::opt< unsigned > IndirectCallSpecializationThreshold ("amdgpu-indirect-call-specialization-threshold", cl::desc("A threshold controls whether an indirect call will be specialized"), cl::init(3))
static constexpr std::pair< ImplicitArgumentMask, StringLiteral > ImplicitAttrs []

AMDGPU_ATTRIBUTE [1/3]

#define AMDGPU_ATTRIBUTE ( Name,
Str )

AMDGPU_ATTRIBUTE [2/3]

#define AMDGPU_ATTRIBUTE ( Name,
Str )

AMDGPU_ATTRIBUTE [3/3]

#define AMDGPU_ATTRIBUTE ( Name,
Str )

DEBUG_TYPE

#define DEBUG_TYPE "amdgpu-attributor"

ImplicitArgumentMask

Enumerator
UNKNOWN_INTRINSIC
ALL_ARGUMENT_MASK
NOT_IMPLICIT_INPUT

Definition at line 40 of file AMDGPUAttributor.cpp.

ImplicitArgumentPositions

castRequiresQueuePtr()

hasSanitizerAttributes()

Returns true if sanitizer attributes are present on a function.

Definition at line 136 of file AMDGPUAttributor.cpp.

References F.

intrinsicToAttrMask()

isDSAddress()

ImplicitAttrs

IndirectCallSpecializationThreshold

cl::opt< unsigned > IndirectCallSpecializationThreshold("amdgpu-indirect-call-specialization-threshold", cl::desc( "A threshold controls whether an indirect call will be specialized"), cl::init(3)) ( "amdgpu-indirect-call-specialization-threshold" , cl::desc( "A threshold controls whether an indirect call will be specialized") , cl::init(3) ) static