CIRCT 24.0.0git
Loading...
Searching...
No Matches
circt::scheduling::detail::DependenceIterator Class Reference

An iterator to transparently surface an operation's def-use dependences from the SSA subgraph (induced by the registered operations), as well as auxiliary, operation-to-operation dependences explicitly provided by the client. More...

#include <DependenceIterator.h>

Inheritance diagram for circt::scheduling::detail::DependenceIterator:
Collaboration diagram for circt::scheduling::detail::DependenceIterator:

Public Member Functions

 DependenceIterator (Problem &problem, Operation *op, bool end=false)
 Construct an iterator over the op's def-use dependences (i.e.
bool operator== (const DependenceIterator &other) const
const Dependence & operator* () const
DependenceIterator & operator++ ()

Private Member Functions

void findNextDependence ()

Private Attributes

Problem & problem
Operation * op
unsigned operandIdx
unsigned auxPredIdx
llvm::SmallSetVector< Operation *, 4 > * auxPreds
Dependence dep

Detailed Description

An iterator to transparently surface an operation's def-use dependences from the SSA subgraph (induced by the registered operations), as well as auxiliary, operation-to-operation dependences explicitly provided by the client.

Definition at line 87 of file DependenceIterator.h.

Constructor & Destructor Documentation

◆ DependenceIterator()

DependenceIterator::DependenceIterator ( Problem & problem,
Operation * op,
bool end = false )

Construct an iterator over the op's def-use dependences (i.e.

result values of other operations registered in the scheduling problem, which are used by one of op's operands), and over auxiliary dependences (i.e. from other operation to op).

Definition at line 524 of file Problems.cpp.

References auxPredIdx, auxPreds, dep, findNextDependence(), op, operandIdx, and problem.

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

Member Function Documentation

◆ findNextDependence()

void DependenceIterator::findNextDependence ( )
private

Definition at line 536 of file Problems.cpp.

References auxPredIdx, auxPreds, dep, op, operandIdx, and problem.

Referenced by DependenceIterator(), and operator++().

◆ operator*()

const Dependence & circt::scheduling::detail::DependenceIterator::operator* ( ) const
inline

Definition at line 101 of file DependenceIterator.h.

References dep.

◆ operator++()

DependenceIterator & circt::scheduling::detail::DependenceIterator::operator++ ( )
inline

Definition at line 103 of file DependenceIterator.h.

References DependenceIterator(), and findNextDependence().

◆ operator==()

bool circt::scheduling::detail::DependenceIterator::operator== ( const DependenceIterator & other) const
inline

Definition at line 97 of file DependenceIterator.h.

References dep, and DependenceIterator().

Member Data Documentation

◆ auxPredIdx

unsigned circt::scheduling::detail::DependenceIterator::auxPredIdx
private

Definition at line 115 of file DependenceIterator.h.

Referenced by DependenceIterator(), and findNextDependence().

◆ auxPreds

llvm::SmallSetVector<Operation *, 4>* circt::scheduling::detail::DependenceIterator::auxPreds
private

Definition at line 116 of file DependenceIterator.h.

Referenced by DependenceIterator(), and findNextDependence().

◆ dep

Dependence circt::scheduling::detail::DependenceIterator::dep
private

◆ op

Operation* circt::scheduling::detail::DependenceIterator::op
private

Definition at line 112 of file DependenceIterator.h.

Referenced by DependenceIterator(), and findNextDependence().

◆ operandIdx

unsigned circt::scheduling::detail::DependenceIterator::operandIdx
private

Definition at line 114 of file DependenceIterator.h.

Referenced by DependenceIterator(), and findNextDependence().

◆ problem

Problem& circt::scheduling::detail::DependenceIterator::problem
private

Definition at line 111 of file DependenceIterator.h.

Referenced by DependenceIterator(), and findNextDependence().


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