llvm::Instruction::extractProfTotalWeight

Retrieve total raw weight values of a branch.

Synopsis

Declared in <llvm/IR/Instruction.h>

bool
extractProfTotalWeight(uint64_t& TotalVal) const;

Description

Returns true on success with profile total weights filled in. Returns false if no metadata was found.

Return Value

True if profile total weight metadata was found.

Parameters

NameDescription
TotalValOn success, set to the total profile weight.