docc 0.8.3 (0d44999b)
C++ API Reference
Loading...
Searching...
No Matches
for.h
Go to the documentation of this file.
1#pragma once
2
3#include <memory>
4
9
10namespace sdfg {
11
12namespace builder {
14}
15
17
43class For : public StructuredLoop {
45
46private:
47 For(size_t element_id,
48 const DebugInfo& debug_info,
49 ControlFlowNode* parent,
54
55 static constexpr size_t REQUIRED_ELEMENT_IDS = StructuredLoop::REQUIRED_ELEMENT_IDS;
56
57public:
58 For(const For& node) = delete;
59 For& operator=(const For&) = delete;
60
61 ElementType type_id() const override {
62 return ElementType::For;
63 }
64
65 static bool classof(const Element& element) {
66 return element.type_id() == ElementType::For;
67 }
68
70
71 void validate(const Function& function) const override;
72};
73
74} // namespace structured_control_flow
75} // namespace sdfg
Definition element.h:30
Element(size_t element_id, const DebugInfo &debug_info)
size_t element_id() const
const DebugInfo & debug_info() const
virtual ElementType type_id() const =0
Returns the type of the element.
Definition function.h:43
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 all structured control flow nodes in a StructuredSDFG.
Definition control_flow_node.h:44
bool accept(visitor::ActualStructuredSDFGVisitor &visitor) override
For & operator=(const For &)=delete
ElementType type_id() const override
Returns the type of the element.
Definition for.h:61
static bool classof(const Element &element)
Definition for.h:65
void validate(const Function &function) const override
Validates the element.
For(const For &node)=delete
const symbolic::Expression update() const
Get the update expression for the induction variable.
const symbolic::Symbol indvar() const
Get the induction variable (loop counter) symbol.
const symbolic::Expression init() const
Get the initialization expression for the induction variable.
static constexpr size_t REQUIRED_ELEMENT_IDS
Definition structured_loop.h:281
StructuredLoop(size_t element_id, const DebugInfo &debug_info, ControlFlowNode *parent, symbolic::Symbol indvar, symbolic::Expression init, symbolic::Expression update, symbolic::Condition condition, const ScheduleType &schedule_type=ScheduleType_Sequential::create())
const symbolic::Condition condition() const
Get the loop continuation condition.
Visitor for Structured SDFG (not a builder).
Definition structured_sdfg_visitor.h:71
SymEngine::RCP< const SymEngine::Basic > Expression
Reference-counted pointer to a symbolic expression (SymEngine Basic).
Definition symbolic.h:83
SymEngine::RCP< const SymEngine::Symbol > Symbol
Reference-counted pointer to a SymEngine Symbol.
Definition symbolic.h:71
SymEngine::RCP< const SymEngine::Boolean > Condition
Reference-counted pointer to a boolean condition expression.
Definition symbolic.h:86
Definition function_builder.h:10
Definition language_extension.h:18
Definition control_flow_node.h:16
Definition analysis.h:7
ElementType
Definition element.h:72
@ For
Definition element.h:88
Symbolic system for integer-based symbol analysis.