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 () | |
| LLVM_ABI SwitchInst::CaseIt | removeCase (SwitchInst::CaseIt I) |
| Delegate the call to the underlying SwitchInst::removeCase() and remove correspondent branch weight. | |
| LLVM_ABI void | replaceDefaultDest (SwitchInst::CaseIt I) |
| Replace the default destination by given case. | |
| LLVM_ABI 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. | |
| LLVM_ABI Instruction::InstListType::iterator | eraseFromParent () |
| Delegate the call to the underlying SwitchInst::eraseFromParent() and mark this object to not touch the underlying SwitchInst in destructor. | |
| LLVM_ABI void | setSuccessorWeight (unsigned idx, CaseWeightOpt W) |
| LLVM_ABI CaseWeightOpt | getSuccessorWeight (unsigned idx) |
| Protected Member Functions | |
|---|---|
| LLVM_ABI void | init () |
A wrapper class to simplify modification of SwitchInst cases along with their prof branch_weights metadata.
Definition at line 3534 of file Instructions.h.
◆ CaseWeightOpt
| llvm::SwitchInstProfUpdateWrapper::SwitchInstProfUpdateWrapper ( SwitchInst & SI) | inline |
|---|
◆ ~SwitchInstProfUpdateWrapper()
| llvm::SwitchInstProfUpdateWrapper::~SwitchInstProfUpdateWrapper ( ) | inline |
|---|
◆ addCase()
◆ eraseFromParent()
◆ getSuccessorWeight() [1/2]
◆ getSuccessorWeight() [2/2]
| SwitchInstProfUpdateWrapper::CaseWeightOpt SwitchInstProfUpdateWrapper::getSuccessorWeight | ( | unsigned | idx | ) |
|---|
◆ 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()
◆ replaceDefaultDest()
◆ setSuccessorWeight()
| void SwitchInstProfUpdateWrapper::setSuccessorWeight | ( | unsigned | idx, |
|---|---|---|---|
| SwitchInstProfUpdateWrapper::CaseWeightOpt | W ) |
The documentation for this class was generated from the following files:
- include/llvm/IR/Instructions.h
- lib/IR/Instructions.cpp