41 std::unique_ptr<Sequence> root_;
45 static constexpr size_t REQUIRED_ELEMENT_IDS = 2;
48 While(
const While& node) =
delete;
99 static constexpr size_t REQUIRED_ELEMENT_IDS = 1;
134 static constexpr size_t REQUIRED_ELEMENT_IDS = 1;
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.
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
static bool classof(const Element &element)
Definition while.h:106
void validate(const Function &function) const override
Validates the element.
bool accept(visitor::ActualStructuredSDFGVisitor &visitor) override
void replace(const symbolic::ExpressionMapping &replacements) override
void replace(const symbolic::Expression old_expression, const symbolic::Expression new_expression) override
ElementType type_id() const override
Returns the type of the element.
Definition while.h:102
void validate(const Function &function) const override
Validates the element.
bool accept(visitor::ActualStructuredSDFGVisitor &visitor) override
ElementType type_id() const override
Returns the type of the element.
Definition while.h:137
void replace(const symbolic::ExpressionMapping &replacements) override
void replace(const symbolic::Expression old_expression, const symbolic::Expression new_expression) override
static bool classof(const Element &element)
Definition while.h:141
ControlFlowNode(size_t element_id, const DebugInfo &debug_info, ControlFlowNode *parent)
Protected constructor for control flow nodes with parent.
A sequential container of control flow nodes.
Definition sequence.h:52
void replace(const symbolic::Expression old_expression, const symbolic::Expression new_expression) override
Replace occurrences of an expression in the loop body.
While & operator=(const While &)=delete
ElementType type_id() const override
Returns the type of the element.
Definition while.h:51
void replace(const symbolic::ExpressionMapping &replacements) override
void validate(const Function &function) const override
Validates the element.
While(const While &node)=delete
Sequence & root()
Access the loop body sequence (non-const version).
bool accept(visitor::ActualStructuredSDFGVisitor &visitor) override
const Sequence & root() const
Access the loop body sequence (const version).
static bool classof(const Element &element)
Definition while.h:55
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::map_basic_basic ExpressionMapping
Definition symbolic.h:109
Definition function_builder.h:10
Definition language_extension.h:18
Definition control_flow_node.h:16
ElementType
Definition element.h:72
@ While
Definition element.h:85
@ Continue
Definition element.h:86
@ Break
Definition element.h:87
Symbolic system for integer-based symbol analysis.