llvm::BlockFrequencyInfoImplBase::Weight

Unscaled probability weight.

Synopsis

Declared in <llvm/Analysis/BlockFrequencyInfoImpl.h>

struct Weight;

Description

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?

Enums

NameDescription
DistType Classification of an edge relative to the loop being processed.

Member Functions

NameDescription
Weight [constructor]Constructors

Data Members

NameDescription
Amount Unscaled probability weight of the edge.
TargetNode Successor block this weight targets.
Type Edge kind in the current loop context.