|
LLVM
4.0.0
|
Unscaled probability weight. More...
#include <BlockFrequencyInfoImpl.h>
Public Types | |
| enum | DistType { Local, Exit, Backedge } |
Public Member Functions | |
| Weight () | |
| Weight (DistType Type, BlockNode TargetNode, uint64_t Amount) | |
Public Attributes | |
| DistType | Type |
| BlockNode | TargetNode |
| uint64_t | Amount |
Unscaled probability weight.
Probability weight for an edge in the graph (including the successor/target node).
All edges in the original function are 32-bit. However, exit edges from loop packages are taken from 64-bit exit masses, so we need 64-bits of space in general.
In addition to the raw weight amount, Weight stores the type of the edge in the current context (i.e., the context of the loop being processed). Is this a local edge within the loop, an exit from the loop, or a backedge to the loop header?
Definition at line 334 of file BlockFrequencyInfoImpl.h.
| Enumerator | |
|---|---|
| Local | |
| Exit | |
| Backedge | |
Definition at line 335 of file BlockFrequencyInfoImpl.h.
|
inline |
Definition at line 339 of file BlockFrequencyInfoImpl.h.
|
inline |
Definition at line 340 of file BlockFrequencyInfoImpl.h.
| uint64_t llvm::BlockFrequencyInfoImplBase::Weight::Amount |
Definition at line 338 of file BlockFrequencyInfoImpl.h.
Referenced by llvm::BlockFrequencyInfoImplBase::adjustLoopHeaderMass(), and llvm::BlockFrequencyInfoImplBase::distributeMass().
| BlockNode llvm::BlockFrequencyInfoImplBase::Weight::TargetNode |
Definition at line 337 of file BlockFrequencyInfoImpl.h.
Referenced by llvm::BlockFrequencyInfoImplBase::adjustLoopHeaderMass(), and llvm::BlockFrequencyInfoImplBase::distributeMass().
| DistType llvm::BlockFrequencyInfoImplBase::Weight::Type |
Definition at line 336 of file BlockFrequencyInfoImpl.h.
Referenced by llvm::BlockFrequencyInfoImplBase::adjustLoopHeaderMass(), and llvm::BlockFrequencyInfoImplBase::distributeMass().
1.8.6