LLVM: llvm::SwitchInstProfUpdateWrapper Class Reference (original) (raw)

A wrapper class to simplify modification of SwitchInst cases along with their prof branch_weights metadata. More...

#include "[llvm/IR/Instructions.h](Instructions%5F8h%5Fsource.html)"

Public Member Functions
SwitchInst * operator-> ()
SwitchInst & operator* ()
operator SwitchInst * ()
SwitchInstProfUpdateWrapper (SwitchInst &SI)
~SwitchInstProfUpdateWrapper ()
SwitchInst::CaseIt removeCase (SwitchInst::CaseIt I)
Delegate the call to the underlying SwitchInst::removeCase() and remove correspondent branch weight.
void addCase (ConstantInt *OnVal, BasicBlock *Dest, CaseWeightOpt W)
Delegate the call to the underlying SwitchInst::addCase() and set the specified branch weight for the added case.
Instruction::InstListType::iterator eraseFromParent ()
Delegate the call to the underlying SwitchInst::eraseFromParent() and mark this object to not touch the underlying SwitchInst in destructor.
void setSuccessorWeight (unsigned idx, CaseWeightOpt W)
CaseWeightOpt getSuccessorWeight (unsigned idx)

A wrapper class to simplify modification of SwitchInst cases along with their prof branch_weights metadata.

Definition at line 3492 of file Instructions.h.

CaseWeightOpt

llvm::SwitchInstProfUpdateWrapper::SwitchInstProfUpdateWrapper ( SwitchInst & SI) inline

~SwitchInstProfUpdateWrapper()

llvm::SwitchInstProfUpdateWrapper::~SwitchInstProfUpdateWrapper ( ) inline

addCase()

buildProfBranchWeightsMD()

MDNode * SwitchInstProfUpdateWrapper::buildProfBranchWeightsMD ( ) protected

eraseFromParent()

getSuccessorWeight() [1/2]

getSuccessorWeight() [2/2]

init()

void SwitchInstProfUpdateWrapper::init ( ) protected

operator SwitchInst *()

llvm::SwitchInstProfUpdateWrapper::operator SwitchInst * ( ) inline

operator*()

SwitchInst & llvm::SwitchInstProfUpdateWrapper::operator* ( ) inline

operator->()

SwitchInst * llvm::SwitchInstProfUpdateWrapper::operator-> ( ) inline

removeCase()

setSuccessorWeight()


The documentation for this class was generated from the following files: