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

Filter control dependence edges only. More...

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

Public Member Functions

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

Public Attributes

GraphType graph_
 

Detailed Description

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

Filter control dependence edges only.

Definition at line 84 of file ProgramDependenceGraph.hh.

Constructor & Destructor Documentation

◆ CDGFilter() [1/2]

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

Definition at line 85 of file ProgramDependenceGraph.hh.

85 { }

◆ CDGFilter() [2/2]

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

Definition at line 86 of file ProgramDependenceGraph.hh.

86 : graph_(graph) { }

Member Function Documentation

◆ operator()()

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

Definition at line 88 of file ProgramDependenceGraph.hh.

88  {
89  return graph_[e]->isControlDependence()
90  || graph_[e]->isArtificialControlDependence();
91  }

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

Member Data Documentation

◆ graph_

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

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