|
docc 0.8.3 (0d44999b)
C++ API Reference
|
Default (sequential) code generator for structured_control_flow::Reduce. More...
#include <sdfg/codegen/dispatchers/reduce_dispatcher.h>
Additional Inherited Members | |
| Protected Member Functions inherited from sdfg::codegen::NodeDispatcher | |
| virtual bool | begin_node (PrettyPrinter &stream) |
| virtual void | end_node (PrettyPrinter &stream, bool has_declaration) |
| Protected Attributes inherited from sdfg::codegen::NodeDispatcher | |
| LanguageExtension & | language_extension_ |
| StructuredSDFG & | sdfg_ |
| InstrumentationPlan & | instrumentation_plan_ |
| ArgCapturePlan & | arg_capture_plan_ |
| analysis::AnalysisManager & | analysis_manager_ |
Default (sequential) code generator for structured_control_flow::Reduce.
A Reduce loop is semantically a sequential loop whose body combines values into an accumulator. Lowering it like a plain sequential for-loop is always correct because the combine and accumulator remain in the body.
| sdfg::codegen::SequentialReduceDispatcher::SequentialReduceDispatcher | ( | LanguageExtension & | language_extension, |
| StructuredSDFG & | sdfg, | ||
| analysis::AnalysisManager & | analysis_manager, | ||
| structured_control_flow::Reduce & | node, | ||
| InstrumentationPlan & | instrumentation_plan, | ||
| ArgCapturePlan & | arg_capture_plan ) |
|
overridevirtual |
Implements sdfg::codegen::NodeDispatcher.
|
overridevirtual |
Bad design.
We already have fields in this class and have to bind an instance to a single node. Just set a field to sth. of the instrumentation plan where the node can register more details. But this is a breaking change
Reimplemented from sdfg::codegen::NodeDispatcher.