Polly 19.0.0git
Protected Member Functions | Private Member Functions | Private Attributes | List of all members
polly::ScopPass Class Referenceabstract

ScopPass - This class adapts the RegionPass interface to allow convenient creation of passes that operate on the Polly IR. More...

#include <ScopPass.h>

Inheritance diagram for polly::ScopPass:
Inheritance graph
[legend]

Protected Member Functions

 ScopPass (char &ID)
 
virtual bool runOnScop (Scop &S)=0
 runOnScop - This method must be overloaded to perform the desired Polyhedral transformation or analysis.
 
virtual void printScop (raw_ostream &OS, Scop &S) const
 Print method for SCoPs.
 
void getAnalysisUsage (AnalysisUsage &AU) const override
 getAnalysisUsage - Subclasses that override getAnalysisUsage must call this.
 

Private Member Functions

bool runOnRegion (Region *R, RGPassManager &RGM) override
 
void print (raw_ostream &OS, const Module *) const override
 

Private Attributes

ScopS
 

Detailed Description

ScopPass - This class adapts the RegionPass interface to allow convenient creation of passes that operate on the Polly IR.

Instead of overriding runOnRegion, subclasses override runOnScop.

Definition at line 161 of file ScopPass.h.

Constructor & Destructor Documentation

◆ ScopPass()

polly::ScopPass::ScopPass ( char &  ID)
inlineexplicitprotected

Definition at line 165 of file ScopPass.h.

Member Function Documentation

◆ getAnalysisUsage()

void ScopPass::getAnalysisUsage ( AnalysisUsage &  AU) const
overrideprotected

getAnalysisUsage - Subclasses that override getAnalysisUsage must call this.

Definition at line 44 of file ScopPass.cpp.

Referenced by polly::IslAstInfoWrapperPass::getAnalysisUsage(), false::SimplifyPrinterLegacyPass::getAnalysisUsage(), and INITIALIZE_PASS_END().

◆ print()

void ScopPass::print ( raw_ostream &  OS,
const Module *  M 
) const
overrideprivate

Definition at line 39 of file ScopPass.cpp.

References printScop().

◆ printScop()

virtual void polly::ScopPass::printScop ( raw_ostream &  OS,
Scop S 
) const
inlineprotectedvirtual

Print method for SCoPs.

Reimplemented in polly::DependenceInfo, and polly::IslAstInfoWrapperPass.

Definition at line 173 of file ScopPass.h.

Referenced by print().

◆ runOnRegion()

bool ScopPass::runOnRegion ( Region *  R,
RGPassManager &  RGM 
)
overrideprivate

Definition at line 27 of file ScopPass.cpp.

References runOnScop().

◆ runOnScop()

virtual bool polly::ScopPass::runOnScop ( Scop S)
protectedpure virtual

runOnScop - This method must be overloaded to perform the desired Polyhedral transformation or analysis.

Implemented in polly::IslAstInfoWrapperPass, polly::DependenceInfo, and false::SimplifyPrinterLegacyPass.

Referenced by runOnRegion().

Member Data Documentation

◆ S

Scop* polly::ScopPass::S
private

Definition at line 162 of file ScopPass.h.


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