LLVM: llvm::BlockFrequencyInfoImplBase::Distribution Struct Reference (original) (raw)
Distribution of unscaled probability weight. More...
#include "[llvm/Analysis/BlockFrequencyInfoImpl.h](BlockFrequencyInfoImpl%5F8h%5Fsource.html)"
| Public Member Functions | |
|---|---|
| Distribution ()=default | |
| void | addLocal (const BlockNode &Node, uint64_t Amount) |
| void | addExit (const BlockNode &Node, uint64_t Amount) |
| void | addBackedge (const BlockNode &Node, uint64_t Amount) |
| void | normalize () |
| Normalize the distribution. |
| Public Attributes | |
|---|---|
| WeightList | Weights |
| Individual successor weights. | |
| uint64_t | Total = 0 |
| Sum of all weights. | |
| bool | DidOverflow = false |
| Whether Total did overflow. |
Distribution of unscaled probability weight.
Distribution of unscaled probability weight to a set of successors.
This class collates the successor edge weights for later processing.
DidOverflow indicates whether Total did overflow while adding to the distribution. It should never overflow twice.
Definition at line 382 of file BlockFrequencyInfoImpl.h.
◆ WeightList
| llvm::BlockFrequencyInfoImplBase::Distribution::Distribution ( ) | default |
|---|
◆ addBackedge()
◆ addExit()
◆ addLocal()
◆ normalize()
| void Distribution::normalize | ( | ) |
|---|
◆ DidOverflow
bool llvm::BlockFrequencyInfoImplBase::Distribution::DidOverflow = false
◆ Total
uint64_t llvm::BlockFrequencyInfoImplBase::Distribution::Total = 0
◆ Weights
WeightList llvm::BlockFrequencyInfoImplBase::Distribution::Weights
The documentation for this struct was generated from the following files:
- include/llvm/Analysis/BlockFrequencyInfoImpl.h
- lib/Analysis/BlockFrequencyInfoImpl.cpp