llvm::DIFile::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 DIFile with the given operands.

static
DIFile*
get(
    LLVMContext& Context,
    StringRef Filename,
    StringRef Directory,
    std::optional<ChecksumInfo<StringRef>> CS = std::nullopt,
    std::optional<StringRef> Source = std::nullopt);
» more...

Get or create a DIFile with the given operands.

static
DIFile*
get(
    LLVMContext& Context,
    MDString* Filename,
    MDString* Directory,
    std::optional<ChecksumInfo<MDString*>> CS = std::nullopt,
    MDString* Source = nullptr);
» 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.
FilenameSource filename.
DirectorySource directory.
CSOptional file checksum.
SourceOptional embedded source text.