OpenASIP  2.0
Public Member Functions | Public Attributes | List of all members
ProgramDependenceGraph::BackFilter< GraphType > Struct Template Reference

Filter away back edges. More...

Collaboration diagram for ProgramDependenceGraph::BackFilter< GraphType >:
Collaboration graph

Public Member Functions

 BackFilter ()
 
 BackFilter (GraphType graph)
 
template<typename Edge >
bool operator() (const Edge &e) const
 

Public Attributes

GraphType graph_
 

Detailed Description

template<typename GraphType>
struct ProgramDependenceGraph::BackFilter< GraphType >

Filter away back edges.

Definition at line 136 of file ProgramDependenceGraph.hh.

Constructor & Destructor Documentation

◆ BackFilter() [1/2]

template<typename GraphType >
ProgramDependenceGraph::BackFilter< GraphType >::BackFilter ( )
inline

Definition at line 137 of file ProgramDependenceGraph.hh.

137 { }

◆ BackFilter() [2/2]

template<typename GraphType >
ProgramDependenceGraph::BackFilter< GraphType >::BackFilter ( GraphType  graph)
inline

Definition at line 138 of file ProgramDependenceGraph.hh.

138 : graph_(graph) { }

Member Function Documentation

◆ operator()()

template<typename GraphType >
template<typename Edge >
bool ProgramDependenceGraph::BackFilter< GraphType >::operator() ( const Edge e) const
inline

Definition at line 140 of file ProgramDependenceGraph.hh.

140  {
141  return !(graph_[e]->isLoopCloseEdge() ||
142  (graph_[e]->isDataDependence() &&
143  graph_[e]->dataDependenceEdge().isBackEdge()));
144  }

References ProgramDependenceGraph::BackFilter< GraphType >::graph_.

Member Data Documentation

◆ graph_

template<typename GraphType >
GraphType ProgramDependenceGraph::BackFilter< GraphType >::graph_

The documentation for this struct was generated from the following file:
ProgramDependenceGraph::BackFilter::graph_
GraphType graph_
Definition: ProgramDependenceGraph.hh:145