LLVM API Documentation

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
llvm::MachineTraceMetrics::FixedBlockInfo Struct Reference

#include <MachineTraceMetrics.h>

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

Public Member Functions

 FixedBlockInfo ()
 
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
 
bool HasCalls
 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 90 of file MachineTraceMetrics.h.

Constructor & Destructor Documentation

llvm::MachineTraceMetrics::FixedBlockInfo::FixedBlockInfo ( )
inline

Definition at line 98 of file MachineTraceMetrics.h.

Member Function Documentation

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

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

Definition at line 101 of file MachineTraceMetrics.h.

References InstrCount.

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

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

Invalidate resource information.

Definition at line 104 of file MachineTraceMetrics.h.

References InstrCount.

Member Data Documentation

bool llvm::MachineTraceMetrics::FixedBlockInfo::HasCalls

True when the block contains calls.

Definition at line 96 of file MachineTraceMetrics.h.

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

unsigned llvm::MachineTraceMetrics::FixedBlockInfo::InstrCount

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 93 of file MachineTraceMetrics.h.

Referenced by llvm::MachineTraceMetrics::getResources(), hasResources(), and invalidate().


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