21 return cast<GlobalVariable>(
22 cast<ConstantAsMetadata>(Entry->
getOperand(0))->getValue());
26 return static_cast<ResourceKind
>(
28 cast<ConstantAsMetadata>(Entry->
getOperand(1))->getValue())
32 return static_cast<ElementType
>(
34 cast<ConstantAsMetadata>(Entry->
getOperand(2))->getValue())
38 return cast<ConstantInt>(
39 cast<ConstantAsMetadata>(Entry->
getOperand(3))->getValue())
43 return cast<ConstantInt>(
44 cast<ConstantAsMetadata>(Entry->
getOperand(4))->getValue())
48 return cast<ConstantInt>(
49 cast<ConstantAsMetadata>(Entry->
getOperand(5))->getValue())
58 ElementType ElTy,
bool IsROV,
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
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.