A state in a Stateful DataFlow Graph (SDFG).
More...
#include <sdfg/control_flow/state.h>
A state in a Stateful DataFlow Graph (SDFG).
States are the fundamental building blocks of an SDFG control-flow graph. Each state represents a computational stage and contains a data-flow graph describing the computations performed when the state is executed.
SDFGs can be constructed in two ways:
- Control-Flow Approach: Using State nodes connected by InterstateEdge edges (this is the approach using this class). This creates a general directed graph that can contain cycles.
- Structured Control-Flow Approach: Using structured_control_flow elements (e.g., For, While, IfElse) which yield an acyclic StructuredSDFG.
- See also
- InterstateEdge for transitions between states
-
data_flow::DataFlowGraph for the computational graph within a state
◆ State() [1/2]
| sdfg::control_flow::State::State |
( |
size_t | element_id, |
|
|
const DebugInfo & | debug_info, |
|
|
const graph::Vertex | vertex ) |
|
protected |
◆ State() [2/2]
| sdfg::control_flow::State::State |
( |
const State & | state | ) |
|
|
delete |
◆ classof()
| bool sdfg::control_flow::State::classof |
( |
const Element & | element | ) |
|
|
inlinestatic |
◆ dataflow() [1/2]
Returns the data-flow graph of this state (mutable version).
- Returns
- Mutable reference to the data-flow graph containing computational nodes
◆ dataflow() [2/2]
Returns the data-flow graph of this state (const version).
- Returns
- Const reference to the data-flow graph containing computational nodes
◆ operator=()
| State & sdfg::control_flow::State::operator= |
( |
const State & | | ) |
|
|
delete |
◆ replace()
Replaces symbolic expressions in the state's data-flow graph.
- Parameters
-
| old_expression | The expression to replace |
| new_expression | The replacement expression |
Implements sdfg::Element.
◆ type_id()
| ElementType sdfg::control_flow::State::type_id |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ validate()
| void sdfg::control_flow::State::validate |
( |
const Function & | function | ) |
const |
|
overridevirtual |
Validates the state within the context of a function.
- Parameters
-
| function | The function containing this state |
- Exceptions
-
Implements sdfg::Element.
◆ vertex()
Returns the graph vertex representing this state.
- Returns
- The graph vertex associated with this state
◆ sdfg::builder::SDFGBuilder
The documentation for this class was generated from the following file:
- sdfg/include/sdfg/control_flow/state.h