rewrite¶
Rewrite a node and its children recursively using a rule. Iterate until no more changes can be made.
Synopsis¶
Declared in <src/midend/programTransformation/finiteDifferencing/patternRewrite.h>
[[visibility("default")]]
void
rewrite(
RewriteRule* rule,
SgNode*& top); Parameters¶
| Name | Description |
|---|---|
| rule | A replacement must detach the old node and attach a distinct new tree to its former parent. rewrite deletes the displaced tree after traversal. |
| top | This class represents the base class for all IR nodes within Sage III. |
Created with MrDocs