LLVM  12.0.0git
Classes | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
llvm::PMTopLevelManager Class Referenceabstract

PMTopLevelManager manages LastUser info and collects common APIs used by top level pass managers. More...

#include "llvm/IR/LegacyPassManagers.h"

Inheritance diagram for llvm::PMTopLevelManager:
Inheritance graph
Collaboration diagram for llvm::PMTopLevelManager:
Collaboration graph

Public Member Functions

void schedulePass (Pass *P)
 Schedule pass P for execution. More...
void setLastUser (ArrayRef< Pass *> AnalysisPasses, Pass *P)
 Set pass P as the last user of the given analysis passes. More...
void collectLastUses (SmallVectorImpl< Pass *> &LastUses, Pass *P)
 Collect passes whose last user is P. More...
PassfindAnalysisPass (AnalysisID AID)
 Find the pass that implements Analysis AID. More...
const PassInfofindAnalysisPassInfo (AnalysisID AID) const
 Retrieve the PassInfo for an analysis. More...
AnalysisUsagefindAnalysisUsage (Pass *P)
 Find analysis usage information for the pass P. More...
virtual ~PMTopLevelManager ()
 Destructor. More...
void addImmutablePass (ImmutablePass *P)
 Add immutable pass and initialize it. More...
SmallVectorImpl< ImmutablePass * > & getImmutablePasses ()
void addPassManager (PMDataManager *Manager)
void addIndirectPassManager (PMDataManager *Manager)
void dumpPasses () const
void dumpArguments () const

Public Attributes

PMStack activeStack

Protected Member Functions

 PMTopLevelManager (PMDataManager *PMDM)
 Initialize top level manager. Create first pass manager. More...
unsigned getNumContainedManagers () const
void initializeAllAnalysisInfo ()

Protected Attributes

SmallVector< PMDataManager *, 8 > PassManagers
 Collection of pass managers. More...

Detailed Description

PMTopLevelManager manages LastUser info and collects common APIs used by top level pass managers.

Definition at line 160 of file LegacyPassManagers.h.

Constructor & Destructor Documentation

◆ PMTopLevelManager()

PMTopLevelManager::PMTopLevelManager ( PMDataManager PMDM)

Initialize top level manager. Create first pass manager.

Definition at line 630 of file LegacyPassManager.cpp.

References llvm::PMDataManager::setTopLevelManager().

◆ ~PMTopLevelManager()

PMTopLevelManager::~PMTopLevelManager ( )


Definition at line 940 of file LegacyPassManager.cpp.

References P.

Member Function Documentation

◆ addImmutablePass()

void PMTopLevelManager::addImmutablePass ( ImmutablePass P)

Add immutable pass and initialize it.

Definition at line 871 of file LegacyPassManager.cpp.

References assert(), llvm::PassInfo::getInterfacesImplemented(), llvm::Pass::getPassID(), llvm::ImmutablePass::initializePass(), and P.

◆ addIndirectPassManager()

void llvm::PMTopLevelManager::addIndirectPassManager ( PMDataManager Manager)

◆ addPassManager()

void llvm::PMTopLevelManager::addPassManager ( PMDataManager Manager)

Definition at line 206 of file LegacyPassManagers.h.

◆ collectLastUses()

void PMTopLevelManager::collectLastUses ( SmallVectorImpl< Pass *> &  LastUses,
Pass P 

◆ dumpArguments()

void PMTopLevelManager::dumpArguments ( ) const

Definition at line 908 of file LegacyPassManager.cpp.

References Arguments, assert(), llvm::dbgs(), and P.

Referenced by llvm::PMDataManager::addLowerLevelRequiredPass().

◆ dumpPasses()

void PMTopLevelManager::dumpPasses ( ) const

Definition at line 890 of file LegacyPassManager.cpp.

References llvm::numbers::e.

Referenced by llvm::PMDataManager::addLowerLevelRequiredPass().

◆ findAnalysisPass()

Pass * PMTopLevelManager::findAnalysisPass ( AnalysisID  AID)

Find the pass that implements Analysis AID.

Search immutable passes and all pass managers. If desired pass is not found then return NULL.

Definition at line 841 of file LegacyPassManager.cpp.

References P.

Referenced by llvm::PMDataManager::findAnalysisPass().

◆ findAnalysisPassInfo()

const PassInfo * PMTopLevelManager::findAnalysisPassInfo ( AnalysisID  AID) const

◆ findAnalysisUsage()

AnalysisUsage * PMTopLevelManager::findAnalysisUsage ( Pass P)

◆ getImmutablePasses()

SmallVectorImpl<ImmutablePass *>& llvm::PMTopLevelManager::getImmutablePasses ( )

Definition at line 202 of file LegacyPassManagers.h.

◆ getNumContainedManagers()

unsigned llvm::PMTopLevelManager::getNumContainedManagers ( ) const

Definition at line 164 of file LegacyPassManagers.h.

References P.

◆ initializeAllAnalysisInfo()

void PMTopLevelManager::initializeAllAnalysisInfo ( )

◆ schedulePass()

void PMTopLevelManager::schedulePass ( Pass P)

◆ setLastUser()

void PMTopLevelManager::setLastUser ( ArrayRef< Pass *>  AnalysisPasses,
Pass P 

Member Data Documentation

◆ activeStack

PMStack llvm::PMTopLevelManager::activeStack

◆ PassManagers

SmallVector<PMDataManager *, 8> llvm::PMTopLevelManager::PassManagers

Collection of pass managers.

Definition at line 225 of file LegacyPassManagers.h.

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