Skip to content

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]]
void
rewrite(
    RewriteRule* rule,
    SgNode*& top);

Parameters

Name

Description

rule

Definition of a rewrite rule on a given SgNode. The rule modifies the node and/or its children in‐place, and then returns true for success or false for failure.

top

This class represents the base class for all IR nodes within Sage III.

Created with MrDocs