54 std::unique_ptr<data_flow::DataFlowNode>
82 std::vector<codegen::DispatchInput>& inputs,
83 std::vector<codegen::DispatchOutput>& outputs
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 instrumentation_info.h:37
Definition language_extension.h:39
Base class for library node code generation dispatchers.
Definition block_dispatcher.h:163
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).
BLAS_Precision precision() const
Get the precision/data type.
BLASNode(size_t element_id, const DebugInfo &debug_info, const graph::Vertex vertex, data_flow::DataFlowGraph &parent, const data_flow::LibraryNodeCode &code, const std::vector< std::string > &outputs, const std::vector< std::string > &inputs, const data_flow::ImplementationType &implementation_type, const BLAS_Precision &precision)
Construct a BLAS node.
void dispatch_code_with_edges(codegen::CodegenOutput &out, std::vector< codegen::DispatchInput > &inputs, std::vector< codegen::DispatchOutput > &outputs) override
codegen::InstrumentationInfo instrumentation_info() const override
Get instrumentation information for this node.
DotNodeDispatcher_BLAS(codegen::LanguageExtension &language_extension, const Function &function, const data_flow::DataFlowGraph &data_flow_graph, const DotNode &node)
data_flow::LibraryNode & deserialize(const nlohmann::json &j, builder::StructuredSDFGBuilder &builder, structured_control_flow::Block &parent) override
Deserialize a library node from JSON.
nlohmann::json serialize(const data_flow::LibraryNode &library_node) override
Serialize a library node to JSON.
BLAS_Layout layout() const
symbolic::Expression flop() const override
Calculate floating point operations for this node.
symbolic::Expression n() const
void replace(const symbolic::Expression old_expression, const symbolic::Expression new_expression) override
symbolic::SymbolSet symbols() const override
Get all symbols used in this node.
std::unique_ptr< data_flow::DataFlowNode > clone(size_t element_id, const graph::Vertex vertex, data_flow::DataFlowGraph &parent) const override
Clone this node for graph transformations.
passes::LibNodeExpander::ExpandOutcome expand(passes::LibNodeExpander::ExpandContext &context, structured_control_flow::Block &block) override
Expand this node into its internal operations.
void replace(const symbolic::ExpressionMapping &replacements) override
data_flow::PointerAccessType pointer_access_type(int input_idx) const override
Describes what a pointer is used for.
void validate(const Function &function) const override
Validate the code node's configuration.
symbolic::Expression incy() const
symbolic::Expression incx() const
DotNode(size_t element_id, const DebugInfo &debug_info, const graph::Vertex vertex, data_flow::DataFlowGraph &parent, const data_flow::ImplementationType &implementation_type, const BLAS_Precision &precision, symbolic::Expression n, symbolic::Expression incx=symbolic::integer(1), symbolic::Expression incy=symbolic::integer(1))
Definition lib_node_expander.h:122
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
Integer integer(int64_t value)
Creates an integer constant.
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
Mathematical library node base class with expansion support.
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
std::unique_ptr< PointerAccessMeta, PtrAccessDeleter > PointerAccessType
Definition pointer_metadata.h:32
boost::graph_traits< Graph >::vertex_descriptor Vertex
Definition graph.h:25
Definition batched_gemm_node.h:13
BLAS_Precision
Precision/data type for BLAS operations.
Definition blas_node.h:52
data_flow::LibraryNodeCode LibraryNodeType_DOT("DOT")
BLAS_Layout
Memory layout for BLAS matrices.
Definition blas_node.h:127
Definition batched_gemm_node.h:12
Definition block_dispatcher.h:108
Definition lib_node_expander.h:12