Skip to content

PatternActionRule

A rule which changes one pattern of code to another

Synopsis

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

Base Classes

Name

Description

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.

Member Functions

Name

Description

PatternActionRule [constructor]

Constructor

~PatternActionRule [destructor] [virtual]

Destructor

doRewrite [virtual]

Private Data Members

Non-Member Functions

Name

Description

patact

Create a PatternActionRule

rewrite

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

Created with MrDocs