LLVM API Documentation

Public Types | Public Member Functions | Public Attributes
llvm::BlockFrequencyInfoImplBase::Weight Struct Reference

Unscaled probability weight. More...

#include <BlockFrequencyInfoImpl.h>

Collaboration diagram for llvm::BlockFrequencyInfoImplBase::Weight:
Collaboration graph
[legend]

List of all members.

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

Detailed Description

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 319 of file BlockFrequencyInfoImpl.h.


Member Enumeration Documentation

Enumerator:
Local 
Exit 
Backedge 

Definition at line 320 of file BlockFrequencyInfoImpl.h.


Constructor & Destructor Documentation

Definition at line 324 of file BlockFrequencyInfoImpl.h.

llvm::BlockFrequencyInfoImplBase::Weight::Weight ( DistType  Type,
BlockNode  TargetNode,
uint64_t  Amount 
) [inline]

Definition at line 325 of file BlockFrequencyInfoImpl.h.


Member Data Documentation


The documentation for this struct was generated from the following file: