getIfExists overloads

Synopses

Declared in <llvm/IR/Metadata.h>

Return an existing uniqued tuple for MDs, or null if none.

Get or create a DILabel with the given operands.

static
DILabel*
getIfExists(
    LLVMContext& Context,
    DILocalScope* Scope,
    StringRef Name,
    DIFile* File,
    unsigned int Line,
    unsigned int Column,
    bool IsArtificial,
    std::optional<unsigned int> CoroSuspendIdx);

Get or create a DILabel with the given operands.

static
DILabel*
getIfExists(
    LLVMContext& Context,
    Metadata* Scope,
    MDString* Name,
    Metadata* File,
    unsigned int Line,
    unsigned int Column,
    bool IsArtificial,
    std::optional<unsigned int> CoroSuspendIdx);

Return Value

  • An existing uniqued tuple for MDs, or null.

  • 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.

File

Source file metadata.

Line

Source line number.

Column

Source column number.

IsArtificial

Whether the label is artificial.

CoroSuspendIdx

Coroutine suspend index, if applicable.

Created with MrDocs