docc 0.8.3 (0d44999b)
C++ API Reference
Loading...
Searching...
No Matches
loop_split.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace sdfg {
6namespace transformations {
7
36class LoopSplit : public Transformation {
38 symbolic::Expression split_point_;
39
40public:
47
48 virtual std::string name() const override;
49
50 virtual bool
52
53 virtual void apply(builder::StructuredSDFGBuilder& builder, analysis::AnalysisManager& analysis_manager) override;
54
55 virtual void to_json(nlohmann::json& j) const override;
56
57 static LoopSplit from_json(builder::StructuredSDFGBuilder& builder, const nlohmann::json& j);
58};
59
60} // namespace transformations
61} // 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
Base class for structured loop constructs.
Definition structured_loop.h:244
virtual void to_json(nlohmann::json &j) const override
Serialize this transformation to JSON.
LoopSplit(structured_control_flow::StructuredLoop &loop, const symbolic::Expression &split_point)
Construct a loop split transformation.
virtual void apply(builder::StructuredSDFGBuilder &builder, analysis::AnalysisManager &analysis_manager) override
Apply this transformation to the SDFG.
virtual std::string name() const override
Get the name of this transformation.
static LoopSplit from_json(builder::StructuredSDFGBuilder &builder, const nlohmann::json &j)
virtual bool can_be_applied(builder::StructuredSDFGBuilder &builder, analysis::AnalysisManager &analysis_manager) override
Check if this transformation can be safely applied.
Base class for all SDFG transformations.
Definition transformation.h:25
SymEngine::RCP< const SymEngine::Basic > Expression
Reference-counted pointer to a symbolic expression (SymEngine Basic).
Definition symbolic.h:83
Definition function_builder.h:10
Definition loop_parallelization.h:8
Definition analysis.h:7