docc 0.8.3 (0d44999b)
C++ API Reference
Loading...
Searching...
No Matches
loop_peeling.h
Go to the documentation of this file.
1#pragma once
2
4
5namespace sdfg {
6namespace transformations {
7
32 bool predicate_;
33
34public:
41 explicit LoopPeeling(structured_control_flow::StructuredLoop& loop, bool predicate = false);
42
43 virtual std::string name() const override;
44
45 virtual bool
47
48 virtual void apply(builder::StructuredSDFGBuilder& builder, analysis::AnalysisManager& analysis_manager) override;
49
50 virtual void to_json(nlohmann::json& j) const override;
51
53};
54
55} // namespace transformations
56} // 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
static LoopPeeling 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.
virtual std::string name() const override
Get the name of this transformation.
virtual void apply(builder::StructuredSDFGBuilder &builder, analysis::AnalysisManager &analysis_manager) override
Apply this transformation to the SDFG.
LoopPeeling(structured_control_flow::StructuredLoop &loop, bool predicate=false)
Construct a loop peeling transformation.
virtual void to_json(nlohmann::json &j) const override
Serialize this transformation to JSON.
Base class for all SDFG transformations.
Definition transformation.h:25
Definition function_builder.h:10
Definition loop_parallelization.h:8
Definition analysis.h:7