SageInterface::CheckedCanonicalLoopPlan¶
Immutable, fully checked description of one transformable C/C++ loop.
Synopsis¶
Declared in <SageIII/sageInterface/sageInterface.h>
class CheckedCanonicalLoopPlan; Description¶
Construction validates exact reciprocal ownership for every header/body edge, an acyclic structural owner chain, a side-effect-free and loop- invariant bound/stride surface, a positive nonzero constant stride magnitude, and the absence of induction-variable mutation or escape from the body. Every reference is a borrowed snapshot; transformation commits revalidate the snapshot before changing the AST. Only the checked factory can construct a plan.
Member Functions¶
| Name | Description |
|---|---|
CheckedCanonicalLoopPlanCheckedCanonicalLoopPlan() = delete; [constructor] | Constructors |
operator=CheckedCanonicalLoopPlan& operator=(CheckedCanonicalLoopPlan const& other) = delete; | Assignment operators |
bodySgStatement& body() const noexcept; | |
forInitSgForInitStatement& forInit() const noexcept; | |
hasInclusiveBoundbool hasInclusiveBound() const noexcept; | |
incrementExpressionSgExpression& incrementExpression() const noexcept; | |
inductionSgInitializedName& induction() const noexcept; | |
inductionIsUnsignedbool inductionIsUnsigned() const noexcept; | |
inductionSymbolSgVariableSymbol& inductionSymbol() const noexcept; | |
inductionTypeSgType& inductionType() const noexcept; | |
inductionWidthunsigned int inductionWidth() const noexcept; | |
initializerSgStatement& initializer() const noexcept; | |
initializerIsDeclarationbool initializerIsDeclaration() const noexcept; | |
isIncreasingbool isIncreasing() const noexcept; | |
loopSgForStatement& loop() const noexcept; | |
lowerBoundSgExpression& lowerBound() const noexcept; | |
strideCheckedCanonicalLoopStride const& stride() const noexcept; | |
structuralOwnerSgNode& structuralOwner() const noexcept; | |
testExpressionSgExpression& testExpression() const noexcept; | |
testStatementSgStatement& testStatement() const noexcept; | |
upperBoundSgExpression& upperBound() const noexcept; |
Private Member Functions¶
| Name |
|---|
CheckedCanonicalLoopPlanCheckedCanonicalLoopPlan( SgForStatement& loop, SgNode& structural_owner, SgForInitStatement& for_init, SgStatement& initializer, SgStatement& test_statement, SgExpression& test_expression, SgExpression& increment_expression, SgStatement& body, SgInitializedName& induction, SgVariableSymbol& induction_symbol, SgType& induction_type, SgExpression& lower_bound, SgExpression& upper_bound, std::optional<std::reference_wrapper<SgExpression>> explicit_stride, unsigned long long positive_stride_value, unsigned int induction_width, bool induction_is_unsigned, bool increasing, bool inclusive, bool initializer_is_declaration) noexcept; [constructor] |
Private Data Members¶
Friends¶
| Name | Description |
|---|---|
SageInterface::requireCheckedCanonicalLoopPlan | Build a checked loop plan without modifying or allocating into the AST. |
Created with MrDocs