docc 0.8.3 (0d44999b)
C++ API Reference
Loading...
Searching...
No Matches
loop_parallelization.h
Go to the documentation of this file.
1#pragma once
2
6
7namespace sdfg {
8namespace transformations {
9
20 structured_control_flow::Map* map_ = nullptr;
21
22public:
24
25 virtual std::string name() const override;
26
27 virtual bool
29
30 virtual void apply(builder::StructuredSDFGBuilder& builder, analysis::AnalysisManager& analysis_manager) override;
31
32 virtual void to_json(nlohmann::json& j) const override;
33
35
38};
39
40} // namespace transformations
41} // namespace sdfg
Definition analysis.h:53
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
Represents a traditional for-loop with sequential execution.
Definition for.h:43
Represents a parallel map loop with configurable scheduling.
Definition map.h:47
virtual bool can_be_applied(builder::StructuredSDFGBuilder &builder, analysis::AnalysisManager &analysis_manager) override
Check if this transformation can be safely applied.
virtual void to_json(nlohmann::json &j) const override
Serialize this transformation to JSON.
virtual void apply(builder::StructuredSDFGBuilder &builder, analysis::AnalysisManager &analysis_manager) override
Apply this transformation to the SDFG.
structured_control_flow::Map * map() const
The created Map (only valid after apply).
virtual std::string name() const override
Get the name of this transformation.
static LoopParallelization from_json(builder::StructuredSDFGBuilder &builder, const nlohmann::json &j)
LoopParallelization(structured_control_flow::For &loop)
Base class for all SDFG transformations.
Definition transformation.h:25
Definition function_builder.h:10
Definition loop_parallelization.h:8
Definition analysis.h:7