LLVM  6.0.0svn
Public Member Functions | Public Attributes | List of all members
llvm::MachineTraceMetrics::FixedBlockInfo Struct Reference

Per-basic block information that doesn't depend on the trace through the block. More...

#include "llvm/CodeGen/MachineTraceMetrics.h"

Collaboration diagram for llvm::MachineTraceMetrics::FixedBlockInfo:
Collaboration graph
[legend]

Public Member Functions

 FixedBlockInfo ()=default
 
bool hasResources () const
 Returns true when resource information for this block has been computed. More...
 
void invalidate ()
 Invalidate resource information. More...
 

Public Attributes

unsigned InstrCount = ~0u
 The number of non-trivial instructions in the block. More...
 
bool HasCalls = false
 True when the block contains calls. More...
 

Detailed Description

Per-basic block information that doesn't depend on the trace through the block.

Definition at line 113 of file MachineTraceMetrics.h.

Constructor & Destructor Documentation

◆ FixedBlockInfo()

llvm::MachineTraceMetrics::FixedBlockInfo::FixedBlockInfo ( )
default

Member Function Documentation

◆ hasResources()

bool llvm::MachineTraceMetrics::FixedBlockInfo::hasResources ( ) const
inline

Returns true when resource information for this block has been computed.

Definition at line 124 of file MachineTraceMetrics.h.

Referenced by llvm::MachineTraceMetrics::getResources().

◆ invalidate()

void llvm::MachineTraceMetrics::FixedBlockInfo::invalidate ( )
inline

Invalidate resource information.

Definition at line 127 of file MachineTraceMetrics.h.

Member Data Documentation

◆ HasCalls

bool llvm::MachineTraceMetrics::FixedBlockInfo::HasCalls = false

True when the block contains calls.

Definition at line 119 of file MachineTraceMetrics.h.

Referenced by llvm::MachineTraceMetrics::getResources().

◆ InstrCount

unsigned llvm::MachineTraceMetrics::FixedBlockInfo::InstrCount = ~0u

The number of non-trivial instructions in the block.

Doesn't count PHI and COPY instructions that are likely to be removed.

Definition at line 116 of file MachineTraceMetrics.h.

Referenced by llvm::MachineTraceMetrics::Ensemble::getLoopFor(), llvm::MachineTraceMetrics::getResources(), and isExitingLoop().


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