llvm::NamedMDNode

A tuple of MDNodes.

Synopsis

Declared in <llvm/IR/Metadata.h>

class NamedMDNode
    : public ilist_node<NamedMDNode>

Description

Despite its name, a NamedMDNode isn't itself an MDNode.

NamedMDNodes are named module-level entities that contain lists of MDNodes.

It is illegal for a NamedMDNode to appear as an operand of an MDNode.

Base Classes

NameDescription
ilist_node<NamedMDNode>An intrusive list node.

Type Aliases

NameDescription
const_op_iterator Const iterator over this named metadata's MDNode operands.
op_iterator Iterator over this named metadata's MDNode operands.

Member Functions

NameDescription
NamedMDNode [constructor] [deleted]Named metadata nodes are not copyable.
~NamedMDNode [destructor]Destroy this named metadata node and drop all operand references.
addOperand Append M as an operand of this named metadata.
clearOperands Drop all references to this node's operands.
dropAllReferences Remove all uses and clear node vector.
dump Dump this named metadata to stderr.
eraseFromParent Drop all references and remove the node from parent module.
getName Return the name of this named metadata.
getNumOperands Return the number of operands.
getOperand Return the operand at index i.
getParent Get the module that holds this named metadata collection.
op_begin op_begin overloads
op_end op_end overloads
operands operands overloads
print print overloads
setOperand Set the operand at index I to New.

Friends

NameDescription
llvm::ModuleTop-level container for LLVM IR objects in a translation unit.
llvm::LLVMContextImplPrivate implementation details of LLVMContext.

Non-Member Functions

NameDescription
unwrapOpaque C API conversions for NamedMDNode (see CBindingWrapping.h).
wrapWrap a NamedMDNode as an opaque LLVMNamedMDNodeRef.