class SwitchInstProfUpdateWrapper

Declaration

class SwitchInstProfUpdateWrapper { /* full declaration omitted */ };

Declared at: llvm/include/llvm/IR/Instructions.h:3471

Method Overview

Methods

SwitchInstProfUpdateWrapper(llvm::SwitchInst& SI)

Declared at: llvm/include/llvm/IR/Instructions.h:3489

Parameters

llvm::SwitchInst& SI

void addCase(llvm::ConstantInt* OnVal,
             llvm::BasicBlock* Dest,
             llvm::SwitchInstProfUpdateWrapper::
                 CaseWeightOpt W)

Description

Delegate the call to the underlying SwitchInst::addCase() and set the specified branch weight for the added case.

Declared at: llvm/include/llvm/IR/Instructions.h:3502

Parameters

llvm::ConstantInt* OnVal
llvm::BasicBlock* Dest
llvm::SwitchInstProfUpdateWrapper::CaseWeightOpt W

llvm::MDNode* buildProfBranchWeightsMD()

Declared at: llvm/include/llvm/IR/Instructions.h:3479

int eraseFromParent()

Declared at: llvm/include/llvm/IR/Instructions.h:3506

static llvm::MDNode* getProfBranchWeightsMD(
    const llvm::SwitchInst& SI)

Declared at: llvm/include/llvm/IR/Instructions.h:3477

Parameters

const llvm::SwitchInst& SI

llvm::SwitchInstProfUpdateWrapper::CaseWeightOpt
getSuccessorWeight(unsigned int idx)

Declared at: llvm/include/llvm/IR/Instructions.h:3509

Parameters

unsigned int idx

static llvm::SwitchInstProfUpdateWrapper::
    CaseWeightOpt
    getSuccessorWeight(const llvm::SwitchInst& SI,
                       unsigned int idx)

Declared at: llvm/include/llvm/IR/Instructions.h:3511

Parameters

const llvm::SwitchInst& SI
unsigned int idx

void init()

Declared at: llvm/include/llvm/IR/Instructions.h:3481

llvm::SwitchInst* operator llvm::SwitchInst*()

Declared at: llvm/include/llvm/IR/Instructions.h:3487

SwitchInst::CaseIt removeCase(
    SwitchInst::CaseIt I)

Description

Delegate the call to the underlying SwitchInst::removeCase() and remove correspondent branch weight.

Declared at: llvm/include/llvm/IR/Instructions.h:3498

Parameters

SwitchInst::CaseIt I

void setSuccessorWeight(
    unsigned int idx,
    llvm::SwitchInstProfUpdateWrapper::
        CaseWeightOpt W)

Declared at: llvm/include/llvm/IR/Instructions.h:3508

Parameters

unsigned int idx
llvm::SwitchInstProfUpdateWrapper::CaseWeightOpt W

~SwitchInstProfUpdateWrapper()

Declared at: llvm/include/llvm/IR/Instructions.h:3491