LLVM  6.0.0svn
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
llvm::BlockFrequencyInfoImplBase::BlockNode Struct Reference

Representative of a block. More...

#include "llvm/Analysis/BlockFrequencyInfoImpl.h"

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

Public Types

using IndexType = uint32_t
 

Public Member Functions

 BlockNode ()=default
 
 BlockNode (IndexType Index)
 
bool operator== (const BlockNode &X) const
 
bool operator!= (const BlockNode &X) const
 
bool operator<= (const BlockNode &X) const
 
bool operator>= (const BlockNode &X) const
 
bool operator< (const BlockNode &X) const
 
bool operator> (const BlockNode &X) const
 
bool isValid () const
 

Static Public Member Functions

static size_t getMaxIndex ()
 

Public Attributes

IndexType Index = std::numeric_limits<uint32_t>::max()
 

Detailed Description

Representative of a block.

This is a simple wrapper around an index into the reverse-post-order traversal of the blocks.

Unlike a block pointer, its order has meaning (location in the topological sort) and it's class is the same regardless of block type.

Definition at line 185 of file BlockFrequencyInfoImpl.h.

Member Typedef Documentation

◆ IndexType

Definition at line 186 of file BlockFrequencyInfoImpl.h.

Constructor & Destructor Documentation

◆ BlockNode() [1/2]

llvm::BlockFrequencyInfoImplBase::BlockNode::BlockNode ( )
default

◆ BlockNode() [2/2]

llvm::BlockFrequencyInfoImplBase::BlockNode::BlockNode ( IndexType  Index)
inline

Definition at line 191 of file BlockFrequencyInfoImpl.h.

Member Function Documentation

◆ getMaxIndex()

static size_t llvm::BlockFrequencyInfoImplBase::BlockNode::getMaxIndex ( )
inlinestatic

Definition at line 202 of file BlockFrequencyInfoImpl.h.

References llvm::max().

◆ isValid()

bool llvm::BlockFrequencyInfoImplBase::BlockNode::isValid ( ) const
inline

◆ operator!=()

bool llvm::BlockFrequencyInfoImplBase::BlockNode::operator!= ( const BlockNode X) const
inline

Definition at line 194 of file BlockFrequencyInfoImpl.h.

References Index.

◆ operator<()

bool llvm::BlockFrequencyInfoImplBase::BlockNode::operator< ( const BlockNode X) const
inline

Definition at line 197 of file BlockFrequencyInfoImpl.h.

References Index.

◆ operator<=()

bool llvm::BlockFrequencyInfoImplBase::BlockNode::operator<= ( const BlockNode X) const
inline

Definition at line 195 of file BlockFrequencyInfoImpl.h.

References Index.

◆ operator==()

bool llvm::BlockFrequencyInfoImplBase::BlockNode::operator== ( const BlockNode X) const
inline

Definition at line 193 of file BlockFrequencyInfoImpl.h.

References Index.

◆ operator>()

bool llvm::BlockFrequencyInfoImplBase::BlockNode::operator> ( const BlockNode X) const
inline

Definition at line 198 of file BlockFrequencyInfoImpl.h.

References Index.

◆ operator>=()

bool llvm::BlockFrequencyInfoImplBase::BlockNode::operator>= ( const BlockNode X) const
inline

Definition at line 196 of file BlockFrequencyInfoImpl.h.

References Index.

Member Data Documentation

◆ Index

IndexType llvm::BlockFrequencyInfoImplBase::BlockNode::Index = std::numeric_limits<uint32_t>::max()

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