Skip to content

RewriteRule

A replacement must detach the old node and attach a distinct new tree to its former parent. rewrite deletes the displaced tree after traversal.

Synopsis

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

class RewriteRule;

Member Functions

Name Description
~RewriteRule
virtual ~RewriteRule(); [destructor] [virtual]
Destructor
doRewrite
virtual bool doRewrite(SgNode*& n) const = 0; [virtual]

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