llvm::MDNode::getMergedProfMetadata

Merge !prof metadata from two instructions. Currently only implemented with direct callsites with branch weights.

Synopsis

Declared in <llvm/IR/Metadata.h>

static
MDNode*
getMergedProfMetadata(
    MDNode* A,
    MDNode* B,
    Instruction const* AInstr,
    Instruction const* BInstr);

Return Value

Merged !prof metadata from A and B.

Parameters

NameDescription
AFirst prof metadata node.
BSecond prof metadata node.
AInstrInstruction associated with A.
BInstrInstruction associated with B.