llir-opt  0.0.1
Low-Level Post-Link Optimiser for OCaml and C
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Pass Class Referenceabstract

#include <core/pass.h>

Inheritance diagram for Pass:
Inheritance graph
[legend]
Collaboration diagram for Pass:
Collaboration graph
[legend]

Public Member Functions

 Pass (PassManager *passManager)
 
virtual ~Pass ()
 
virtual bool Run (Prog &prog)=0
 
virtual const char * GetPassName () const =0
 
template<typename T >
T * getAnalysis ()
 Returns an available analysis.
 

Protected Member Functions

const PassConfigGetConfig () const
 Returns a reference to the configuration.
 
const TargetGetTarget () const
 Returns a reference to the target.
 

Protected Attributes

PassManagerpassManager_
 Pass manager scheduling this pass.
 

Detailed Description

Abstract base class for program-altering passes.

Constructor & Destructor Documentation

◆ Pass()

Pass::Pass ( PassManager passManager)

Pass initialisation.

◆ ~Pass()

Pass::~Pass ( )
virtual

Pass cleanup.

Member Function Documentation

◆ GetPassName()

virtual const char* Pass::GetPassName ( ) const
pure virtual

◆ Run()

virtual bool Pass::Run ( Prog prog)
pure virtual

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