llvm::setIrrLoopHeaderMetadata

Attach irreducible-loop header weight metadata to an instruction.

Synopsis

Declared in <llvm/Transforms/Instrumentation/PGOInstrumentation.h>

void
setIrrLoopHeaderMetadata(
    Module* M,
    Instruction* TI,
    uint64_t Count);

Parameters

NameDescription
MModule providing the LLVM context for metadata construction.
TIInstruction (typically a loop header terminator) to annotate.
CountProfile weight for the irreducible loop header.