llvm::DISubprogram::get

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);
» more...

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);
» more...

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);
» more...

Return Value

  • A uniqued tuple metadata node with operands MDs.
  • The metadata node (uniqued, distinct, or temporary as requested); getIfExists may return nullptr.

Parameters

NameDescription
ContextLLVM context that owns the node.
MDsOperand metadata.
ScopeParent lexical or type scope.
NameSource-level name.
LinkageNameMangled linkage name.
FileSource file metadata.
LineSource line number.
TypeType metadata.
ScopeLineThe scope line.
ContainingTypeContaining type for this subprogram.
VirtualIndexVtable index.
ThisAdjustmentThis-adjustment for a thunk.
FlagsFlags bitfield.
SPFlagsSubprogram DISPFlags bitfield.
UnitCompile unit owning the subprogram.
TemplateParamsTemplate parameter list.
DeclarationSubprogram declaration this definition refers to.
RetainedNodesNodes retained for this subprogram.
ThrownTypesException types this subprogram may throw.
AnnotationsAnnotation metadata tuple.
TargetFuncNameTarget-specific function name.
UsesKeyInstructionsThe uses key instructions.