llvm::MDBuilder::createTBAAStructTypeNode

Return metadata for a TBAA struct node in the type DAG with the given name, a list of pairs (offset, field type in the type DAG).

Synopsis

Declared in <llvm/IR/MDBuilder.h>

MDNode*
createTBAAStructTypeNode(
    StringRef Name,
    ArrayRef<std::pair<MDNode*, uint64_t>> Fields);

Return Value

TBAA struct type metadata node.

Parameters

NameDescription
NameName of the TBAA struct type node.
FieldsPairs of field type nodes and their offsets.