llvm::SwitchInstProfUpdateWrapper::setSuccessorWeight

Set the profile weight of successor idx.

Synopsis

Declared in <llvm/IR/Instructions.h>

void
setSuccessorWeight(
    unsigned int idx,
    CaseWeightOpt W);

Parameters

NameDescription
idxSuccessor index (0 = default).
WOptional profile weight; nullopt clears the weight.