22 return cast<GlobalVariable>(
23 cast<ConstantAsMetadata>(Entry->
getOperand(0))->getValue());
27 return cast<MDString>(Entry->
getOperand(1))->getString();
30uint32_t FrontendResource::FrontendResource::getResourceKind() {
31 return cast<ConstantInt>(
32 cast<ConstantAsMetadata>(Entry->getOperand(2))->getValue())
36 return cast<ConstantInt>(
37 cast<ConstantAsMetadata>(Entry->
getOperand(3))->getValue())
41 return cast<ConstantInt>(
42 cast<ConstantAsMetadata>(Entry->
getOperand(4))->getValue())
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
Module.h This file contains the declarations for the Module class.
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)
static MDString * get(LLVMContext &Context, StringRef Str)
StringRef - Represent a constant reference to a string, i.e.
LLVMContext & getContext() const
All values hold a context through their type.
FrontendResource(MDNode *E)
uint32_t getResourceIndex()
GlobalVariable * getGlobalVariable()
StringRef getSourceType()
This is an optimization pass for GlobalISel generic memory operations.