22 return cast<GlobalVariable>(
23 cast<ConstantAsMetadata>(Entry->
getOperand(0))->getValue());
27 return static_cast<ResourceKind
>(
29 cast<ConstantAsMetadata>(Entry->
getOperand(1))->getValue())
33 return static_cast<ElementType
>(
35 cast<ConstantAsMetadata>(Entry->
getOperand(2))->getValue())
39 return cast<ConstantInt>(
40 cast<ConstantAsMetadata>(Entry->
getOperand(3))->getValue())
44 return cast<ConstantInt>(
45 cast<ConstantAsMetadata>(Entry->
getOperand(4))->getValue())
49 return cast<ConstantInt>(
50 cast<ConstantAsMetadata>(Entry->
getOperand(5))->getValue())
59 ElementType ElTy,
bool IsROV,
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
Module.h This file contains the declarations for the Module class.
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
This provides a uniform API for creating instructions and inserting them into a basic block: either a...
const MDOperand & getOperand(unsigned I) const
static MDTuple * get(LLVMContext &Context, ArrayRef< Metadata * > MDs)
unsigned getNumOperands() const
Return number of MDNode operands.
LLVMContext & getContext() const
All values hold a context through their type.
uint32_t getResourceIndex()
GlobalVariable * getGlobalVariable()
FrontendResource(MDNode *E)
ElementType getElementType()
ResourceKind getResourceKind()
This is an optimization pass for GlobalISel generic memory operations.