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

Name

Description

ilist_node<NamedMDNode>

An intrusive list node.

Type Aliases

Name

Description

const_op_iterator

Const iterator over this named metadata's MDNode operands.

op_iterator

Iterator over this named metadata's MDNode operands.

Member Functions

Name

Description

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

Name

Description

llvm::Module

Top‐level container for LLVM IR objects in a translation unit.

llvm::LLVMContextImpl

Private implementation details of LLVMContext.

Non-Member Functions

Name

Description

unwrap

Opaque C API conversions for NamedMDNode (see CBindingWrapping.h).

wrap

Wrap a NamedMDNode as an opaque LLVMNamedMDNodeRef.

Created with MrDocs