90 void dispatch_library_node(
231 CodegenOutput& out, std::vector<DispatchInput>& inputs, std::vector<DispatchOutput>& outputs
Definition structured_sdfg.h:30
Definition arg_capture_plan.h:36
AssignmentDispatcher(LanguageExtension &language_extension, StructuredSDFG &sdfg, analysis::AnalysisManager &analysis_manager, structured_control_flow::AssignmentBlock &node, InstrumentationPlan &instrumentation_plan, ArgCapturePlan &arg_capture_plan)
void dispatch_node(PrettyPrinter &main_stream, PrettyPrinter &globals_stream, CodeSnippetFactory &library_snippet_factory) override
BlockDispatcher(LanguageExtension &language_extension, StructuredSDFG &sdfg, analysis::AnalysisManager &analysis_manager, structured_control_flow::Block &node, InstrumentationPlan &instrumentation_plan, ArgCapturePlan &arg_capture_plan)
void dispatch_node(PrettyPrinter &main_stream, PrettyPrinter &globals_stream, CodeSnippetFactory &library_snippet_factory) override
Originally started out as a handler for additional source files, like hardware-accelerator kernels th...
Definition code_snippet_factory.h:69
DataFlowDispatcher(LanguageExtension &language_extension, const Function &function, const data_flow::DataFlowGraph &data_flow_graph, const InstrumentationPlan &instrumentation_plan)
void dispatch(PrettyPrinter &stream, PrettyPrinter &globals_stream, CodeSnippetFactory &library_snippet_factory)
Definition instrumentation_info.h:37
Definition instrumentation_plan.h:26
Definition language_extension.h:39
const data_flow::DataFlowGraph & data_flow_graph_
Containing dataflow graph.
Definition block_dispatcher.h:167
const Function & function_
Function context.
Definition block_dispatcher.h:166
virtual InstrumentationInfo instrumentation_info() const
Get instrumentation information for this node.
void pre_allocate_output(CodegenOutput &out, DispatchOutput &output, const std::string &var_name) const
Declare a variable of the type of the output and with the name "var_name".
virtual bool begin_node(PrettyPrinter &stream)
Begin code generation for the node.
Definition block_dispatcher.h:192
virtual void end_node(PrettyPrinter &stream, bool has_declaration)
End code generation for the node.
Definition block_dispatcher.h:201
void register_output(DispatchOutput &output, const std::string &result_identifier) const
The dispatcher as created an output that is identified by [result_identifier].
virtual void dispatch_code(PrettyPrinter &stream, PrettyPrinter &globals_stream, CodeSnippetFactory &library_snippet_factory)
Generate the operation-specific code.
Definition block_dispatcher.h:227
const data_flow::LibraryNode & node_
Library node being dispatched.
Definition block_dispatcher.h:168
virtual void dispatch_code_with_edges(CodegenOutput &out, std::vector< DispatchInput > &inputs, std::vector< DispatchOutput > &outputs)
LibraryNodeDispatcher(LanguageExtension &language_extension, const Function &function, const data_flow::DataFlowGraph &data_flow_graph, const data_flow::LibraryNode &node)
Construct a library node dispatcher.
LanguageExtension & language_extension_
Language extension for code generation.
Definition block_dispatcher.h:165
virtual void dispatch(PrettyPrinter &stream, PrettyPrinter &globals_stream, CodeSnippetFactory &library_snippet_factory)
Dispatch the library node to code.
virtual ~LibraryNodeDispatcher()=default
void copy_output(CodegenOutput &out, const DispatchOutput &output, const data_flow::Memlet &oedge) const
This is a temporary & hopefully short-lived workaround.
void require_locally_modifiable_var(CodegenOutput &out, DispatchInput &input) const
Ensure that [input] points to a local copy that can be changed without modifying the actual source of...
NodeDispatcher(LanguageExtension &language_extension, StructuredSDFG &sdfg, analysis::AnalysisManager &analysis_manager, structured_control_flow::ControlFlowNode &node, InstrumentationPlan &instrumentation_plan, ArgCapturePlan &arg_capture_plan)
Definition data_flow_graph.h:29
Base class for all library nodes in the dataflow graph.
Definition library_node.h:106
Edge in the dataflow graph representing data movement.
Definition memlet.h:131
Simple computational operation in the dataflow graph.
Definition tasklet.h:348
A control flow node representing a basic block with dataflow computations.
Definition block.h:42
Library node definitions for calling functions beyond simple instructions.
Definition argument_registry.h:10
Dispatcher base class for code generation from control flow nodes.
Definition block_dispatcher.h:108
CodeSnippetFactory & library_snippet_factory
Definition block_dispatcher.h:111
LanguageExtension & language_extension
Definition block_dispatcher.h:112
PrettyPrinter & stream
Definition block_dispatcher.h:109
PrettyPrinter & globals_stream
Definition block_dispatcher.h:110
Definition block_dispatcher.h:129
DispatchOutput(const std::string *local_name, std::unique_ptr< types::IType > out_type, bool used)
Definition block_dispatcher.h:134
std::unique_ptr< types::IType > out_type
Definition block_dispatcher.h:131
bool used
Definition block_dispatcher.h:132
const std::string * local_name
Definition block_dispatcher.h:130