LLVM 20.0.0git
|
Per-basic block information that doesn't depend on the trace through the block. More...
#include "llvm/CodeGen/MachineTraceMetrics.h"
Public Member Functions | |
FixedBlockInfo ()=default | |
bool | hasResources () const |
Returns true when resource information for this block has been computed. | |
void | invalidate () |
Invalidate resource information. | |
Public Attributes | |
unsigned | InstrCount = ~0u |
The number of non-trivial instructions in the block. | |
bool | HasCalls = false |
True when the block contains calls. | |
Per-basic block information that doesn't depend on the trace through the block.
Definition at line 128 of file MachineTraceMetrics.h.
|
default |
|
inline |
Returns true when resource information for this block has been computed.
Definition at line 139 of file MachineTraceMetrics.h.
References InstrCount.
Referenced by llvm::MachineTraceMetrics::getResources().
|
inline |
Invalidate resource information.
Definition at line 142 of file MachineTraceMetrics.h.
References InstrCount.
bool llvm::MachineTraceMetrics::FixedBlockInfo::HasCalls = false |
True when the block contains calls.
Definition at line 134 of file MachineTraceMetrics.h.
Referenced by llvm::MachineTraceMetrics::getResources().
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 131 of file MachineTraceMetrics.h.
Referenced by llvm::MachineTraceMetrics::getResources(), hasResources(), and invalidate().