Compute Library
 21.08
IGraphMutator Class Referenceabstract

Graph mutator interface. More...

#include <IGraphMutator.h>

Public Types

enum  MutationType { IR, Backend }
 Mutation type. More...
 

Public Member Functions

virtual ~IGraphMutator ()=default
 Virtual Destructor. More...
 
virtual void mutate (Graph &g)=0
 Walk the graph and perform a specific mutation. More...
 
virtual MutationType type () const =0
 Returns mutation type. More...
 
virtual const char * name ()=0
 Returns mutator name. More...
 

Detailed Description

Graph mutator interface.

Definition at line 35 of file IGraphMutator.h.

Member Enumeration Documentation

◆ MutationType

enum MutationType
strong

Mutation type.

Enumerator
IR 
Backend 

IR specific mutation.

Backend specific mutation

Definition at line 39 of file IGraphMutator.h.

40  {
41  IR, /** IR specific mutation */
42  Backend /** Backend specific mutation */
43  };

Constructor & Destructor Documentation

◆ ~IGraphMutator()

virtual ~IGraphMutator ( )
virtualdefault

Virtual Destructor.

Member Function Documentation

◆ mutate()

virtual void mutate ( Graph g)
pure virtual

◆ name()

◆ type()

virtual MutationType type ( ) const
pure virtual

The documentation for this class was generated from the following file: