get overloads
Synopses
Declared in <llvm/IR/Metadata.h>
Return a uniqued tuple metadata node with operands MDs.
static
MDTuple*
get(
LLVMContext& Context,
ArrayRef<Metadata*> MDs);
Get or create a DISubprogram with the given operands.
static
DISubprogram*
get(
LLVMContext& Context,
DIScope* Scope,
StringRef Name,
StringRef LinkageName,
DIFile* File,
unsigned int Line,
DISubroutineType* Type,
unsigned int ScopeLine,
DIType* ContainingType,
unsigned int VirtualIndex,
int ThisAdjustment,
DIFlags Flags,
DISPFlags SPFlags,
DICompileUnit* Unit,
DITemplateParameterArray TemplateParams = nullptr,
DISubprogram* Declaration = nullptr,
MDNodeArray RetainedNodes = nullptr,
DITypeArray ThrownTypes = nullptr,
DINodeArray Annotations = nullptr,
StringRef TargetFuncName = "",
bool UsesKeyInstructions = false);
Get or create a DISubprogram with the given operands.
static
DISubprogram*
get(
LLVMContext& Context,
Metadata* Scope,
MDString* Name,
MDString* LinkageName,
Metadata* File,
unsigned int Line,
Metadata* Type,
unsigned int ScopeLine,
Metadata* ContainingType,
unsigned int VirtualIndex,
int ThisAdjustment,
DIFlags Flags,
DISPFlags SPFlags,
Metadata* Unit,
Metadata* TemplateParams = nullptr,
Metadata* Declaration = nullptr,
Metadata* RetainedNodes = nullptr,
Metadata* ThrownTypes = nullptr,
Metadata* Annotations = nullptr,
MDString* TargetFuncName = nullptr,
bool UsesKeyInstructions = false);
Return Value
-
A uniqued tuple metadata node with operands
MDs. -
The metadata node (uniqued, distinct, or temporary as requested); getIfExists may return nullptr.
Parameters
Name |
Description |
Context |
LLVM context that owns the node. |
MDs |
Operand metadata. |
Scope |
Parent lexical or type scope. |
Name |
Source‐level name. |
LinkageName |
Mangled linkage name. |
File |
Source file metadata. |
Line |
Source line number. |
Type |
Type metadata. |
ScopeLine |
The scope line. |
ContainingType |
Containing type for this subprogram. |
VirtualIndex |
Vtable index. |
ThisAdjustment |
This‐adjustment for a thunk. |
Flags |
Flags bitfield. |
SPFlags |
Subprogram DISPFlags bitfield. |
Unit |
Compile unit owning the subprogram. |
TemplateParams |
Template parameter list. |
Declaration |
Subprogram declaration this definition refers to. |
RetainedNodes |
Nodes retained for this subprogram. |
ThrownTypes |
Exception types this subprogram may throw. |
Annotations |
Annotation metadata tuple. |
TargetFuncName |
Target‐specific function name. |
UsesKeyInstructions |
The uses key instructions. |
Created with MrDocs