llvm::parseMDNode

Parse a metadata node reference from Src.

Synopsis

Declared in <llvm/CodeGen/MIRParser/MIParser.h>

bool
parseMDNode(
    PerFunctionMIParsingState& PFS,
    MDNode*& Node,
    StringRef Src,
    SMDiagnostic& Error);

Return Value

true if an error occurred.

Parameters

NameDescription
PFS- Per-function parsing state with machine metadata slots.
Node- Set to the referenced metadata node on success.
Src- Source text containing the metadata node reference.
Error- Diagnostic filled in when parsing fails.