LLVM 19.0.0git
Public Member Functions | Public Attributes | List of all members
llvm::ILPValue Struct Reference

Represent the ILP of the subDAG rooted at a DAG node. More...

#include "llvm/CodeGen/ScheduleDFS.h"

Public Member Functions

 ILPValue (unsigned count, unsigned length)
 
bool operator< (ILPValue RHS) const
 
bool operator> (ILPValue RHS) const
 
bool operator<= (ILPValue RHS) const
 
bool operator>= (ILPValue RHS) const
 
void print (raw_ostream &OS) const
 
void dump () const
 

Public Attributes

unsigned InstrCount
 
unsigned Length
 Length may either correspond to depth or height, depending on direction, and cycles or nodes depending on context.
 

Detailed Description

Represent the ILP of the subDAG rooted at a DAG node.

ILPValues summarize the DAG subtree rooted at each node. ILPValues are valid for all nodes regardless of their subtree membership.

When computed using bottom-up DFS, this metric assumes that the DAG is a forest of trees with roots at the bottom of the schedule branching upward.

Definition at line 34 of file ScheduleDFS.h.

Constructor & Destructor Documentation

◆ ILPValue()

llvm::ILPValue::ILPValue ( unsigned  count,
unsigned  length 
)
inline

Definition at line 40 of file ScheduleDFS.h.

Member Function Documentation

◆ dump()

LLVM_DUMP_METHOD void ILPValue::dump ( ) const

Definition at line 1531 of file ScheduleDAGInstrs.cpp.

References llvm::dbgs().

◆ operator<()

bool llvm::ILPValue::operator< ( ILPValue  RHS) const
inline

Definition at line 44 of file ScheduleDFS.h.

References InstrCount, Length, and RHS.

◆ operator<=()

bool llvm::ILPValue::operator<= ( ILPValue  RHS) const
inline

Definition at line 51 of file ScheduleDFS.h.

References InstrCount, Length, and RHS.

◆ operator>()

bool llvm::ILPValue::operator> ( ILPValue  RHS) const
inline

Definition at line 48 of file ScheduleDFS.h.

References RHS.

◆ operator>=()

bool llvm::ILPValue::operator>= ( ILPValue  RHS) const
inline

Definition at line 55 of file ScheduleDFS.h.

References RHS.

◆ print()

LLVM_DUMP_METHOD void ILPValue::print ( raw_ostream OS) const

Definition at line 1523 of file ScheduleDAGInstrs.cpp.

References llvm::format(), InstrCount, llvm::Length, and OS.

Referenced by llvm::operator<<().

Member Data Documentation

◆ InstrCount

unsigned llvm::ILPValue::InstrCount

Definition at line 35 of file ScheduleDFS.h.

Referenced by operator<(), and operator<=().

◆ Length

unsigned llvm::ILPValue::Length

Length may either correspond to depth or height, depending on direction, and cycles or nodes depending on context.

Definition at line 38 of file ScheduleDFS.h.

Referenced by operator<(), and operator<=().


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