Skip to content

RewriteRule

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.

Synopsis

Declared in <src/midend/programTransformation/finiteDifferencing/patternRewrite.h>

class RewriteRule;

Member Functions

Name

Description

~RewriteRule [destructor] [virtual]

Destructor

doRewrite [virtual]

Non-Member Functions

Name

Description

getAlgebraicRules

A standard set of algebraic rules for simple optimizations

getFiniteDifferencingRules

A standard set of algebraic and finite‐differencing rules

rewrite

Rewrite a node and its children recursively using a rule. Iterate until no more changes can be made.

Derived Classes

Name

Description

PatternActionRule

A rule which changes one pattern of code to another

RewriteRuleCombiner

Combine several rules into one, doing the constituents in order

Created with MrDocs