28 std::unique_ptr<DataFlowNode>
37 size_t keep_outstanding_;
38 size_t loads_per_group_;
52 return keep_outstanding_;
56 return loads_per_group_;
67 std::unique_ptr<DataFlowNode>
81 const nlohmann::json& j,
91 const nlohmann::json& j,
Dispatchers for dataflow blocks and library nodes.
size_t element_id() const
const DebugInfo & debug_info() const
Note: Even though the class references unique_ptr, it will never delete an SDFG it has a reference to...
Definition structured_sdfg_builder.h:44
Definition data_flow_graph.h:29
graph::Vertex vertex() const
Get the graph vertex for this node.
Base class for all library nodes in the dataflow graph.
Definition library_node.h:106
const ImplementationType & implementation_type() const
Get the implementation type (const).
Base class for library node serialization.
Definition json_serializer.h:195
A control flow node representing a basic block with dataflow computations.
Definition block.h:42
Definition pipeline_node.h:77
nlohmann::json serialize(const sdfg::data_flow::LibraryNode &library_node) override
Serialize a library node to JSON.
data_flow::LibraryNode & deserialize(const nlohmann::json &j, sdfg::builder::StructuredSDFGBuilder &builder, sdfg::structured_control_flow::Block &parent) override
Deserialize a library node from JSON.
void replace(const symbolic::ExpressionMapping &replacements) override
PipelineCommitNode(size_t element_id, const DebugInfo &debug_info, const graph::Vertex vertex, data_flow::DataFlowGraph &parent, const data_flow::ImplementationType &implementation_type)
void replace(const symbolic::Expression old_expression, const symbolic::Expression new_expression) override
void validate(const Function &function) const override
Validate the code node's configuration.
symbolic::SymbolSet symbols() const override
Get all symbols used in this node.
std::unique_ptr< DataFlowNode > clone(size_t element_id, const graph::Vertex vertex, data_flow::DataFlowGraph &parent) const override
Clone this node for graph transformations.
Definition pipeline_node.h:87
nlohmann::json serialize(const sdfg::data_flow::LibraryNode &library_node) override
Serialize a library node to JSON.
data_flow::LibraryNode & deserialize(const nlohmann::json &j, sdfg::builder::StructuredSDFGBuilder &builder, sdfg::structured_control_flow::Block &parent) override
Deserialize a library node from JSON.
void set_loads_per_group(size_t loads_per_group)
Definition pipeline_node.h:59
std::unique_ptr< DataFlowNode > clone(size_t element_id, const graph::Vertex vertex, data_flow::DataFlowGraph &parent) const override
Clone this node for graph transformations.
void validate(const Function &function) const override
Validate the code node's configuration.
PipelineWaitNode(size_t element_id, const DebugInfo &debug_info, const graph::Vertex vertex, data_flow::DataFlowGraph &parent, const data_flow::ImplementationType &implementation_type, size_t keep_outstanding, size_t loads_per_group=1)
void replace(const symbolic::ExpressionMapping &replacements) override
size_t keep_outstanding() const
Definition pipeline_node.h:51
size_t loads_per_group() const
Definition pipeline_node.h:55
symbolic::SymbolSet symbols() const override
Get all symbols used in this node.
void replace(const symbolic::Expression old_expression, const symbolic::Expression new_expression) override
SymEngine::RCP< const SymEngine::Basic > Expression
Reference-counted pointer to a symbolic expression (SymEngine Basic).
Definition symbolic.h:83
std::set< Symbol, SymEngine::RCPBasicKeyLess > SymbolSet
Ordered set of symbols.
Definition symbolic.h:95
SymEngine::map_basic_basic ExpressionMapping
Definition symbolic.h:109
Library node definitions for calling functions beyond simple instructions.
Definition function_builder.h:10
StringEnum ImplementationType
Implementation type identifier for library nodes.
Definition library_node.h:75
StringEnum LibraryNodeCode
Definition library_node.h:65
boost::graph_traits< Graph >::vertex_descriptor Vertex
Definition graph.h:25
Definition gpu_tile_target.h:13
data_flow::LibraryNodeCode LibraryNodeType_PipelineWait
Definition pipeline_node.h:12
data_flow::LibraryNodeCode LibraryNodeType_PipelineCommit
Definition pipeline_node.h:11