LLVM  14.0.0git
Public Types | Public Member Functions | Friends | List of all members
llvm::PassInstrumentationCallbacks Class Reference

This class manages callbacks registration, as well as provides a way for PassInstrumentation to pass control to the registered callbacks. More...

#include "llvm/IR/PassInstrumentation.h"

Public Types

using BeforePassFunc = bool(StringRef, Any)
 
using BeforeSkippedPassFunc = void(StringRef, Any)
 
using BeforeNonSkippedPassFunc = void(StringRef, Any)
 
using AfterPassFunc = void(StringRef, Any, const PreservedAnalyses &)
 
using AfterPassInvalidatedFunc = void(StringRef, const PreservedAnalyses &)
 
using BeforeAnalysisFunc = void(StringRef, Any)
 
using AfterAnalysisFunc = void(StringRef, Any)
 
using AnalysisInvalidatedFunc = void(StringRef, Any)
 
using AnalysesClearedFunc = void(StringRef)
 

Public Member Functions

 PassInstrumentationCallbacks ()
 
 PassInstrumentationCallbacks (const PassInstrumentationCallbacks &)=delete
 Copying PassInstrumentationCallbacks is not intended. More...
 
void operator= (const PassInstrumentationCallbacks &)=delete
 
template<typename CallableT >
void registerShouldRunOptionalPassCallback (CallableT C)
 
template<typename CallableT >
void registerBeforeSkippedPassCallback (CallableT C)
 
template<typename CallableT >
void registerBeforeNonSkippedPassCallback (CallableT C)
 
template<typename CallableT >
void registerAfterPassCallback (CallableT C)
 
template<typename CallableT >
void registerAfterPassInvalidatedCallback (CallableT C)
 
template<typename CallableT >
void registerBeforeAnalysisCallback (CallableT C)
 
template<typename CallableT >
void registerAfterAnalysisCallback (CallableT C)
 
template<typename CallableT >
void registerAnalysisInvalidatedCallback (CallableT C)
 
template<typename CallableT >
void registerAnalysesClearedCallback (CallableT C)
 
void addClassToPassName (StringRef ClassName, StringRef PassName)
 Add a class name to pass name mapping for use by pass instrumentation. More...
 
StringRef getPassNameForClassName (StringRef ClassName)
 Get the pass name for a given pass class name. More...
 

Friends

class PassInstrumentation
 

Detailed Description

This class manages callbacks registration, as well as provides a way for PassInstrumentation to pass control to the registered callbacks.

Definition at line 66 of file PassInstrumentation.h.

Member Typedef Documentation

◆ AfterAnalysisFunc

Definition at line 84 of file PassInstrumentation.h.

◆ AfterPassFunc

Definition at line 81 of file PassInstrumentation.h.

◆ AfterPassInvalidatedFunc

Definition at line 82 of file PassInstrumentation.h.

◆ AnalysesClearedFunc

Definition at line 86 of file PassInstrumentation.h.

◆ AnalysisInvalidatedFunc

Definition at line 85 of file PassInstrumentation.h.

◆ BeforeAnalysisFunc

Definition at line 83 of file PassInstrumentation.h.

◆ BeforeNonSkippedPassFunc

Definition at line 80 of file PassInstrumentation.h.

◆ BeforePassFunc

Definition at line 78 of file PassInstrumentation.h.

◆ BeforeSkippedPassFunc

Definition at line 79 of file PassInstrumentation.h.

Constructor & Destructor Documentation

◆ PassInstrumentationCallbacks() [1/2]

llvm::PassInstrumentationCallbacks::PassInstrumentationCallbacks ( )
inline

Definition at line 89 of file PassInstrumentation.h.

◆ PassInstrumentationCallbacks() [2/2]

llvm::PassInstrumentationCallbacks::PassInstrumentationCallbacks ( const PassInstrumentationCallbacks )
delete

Copying PassInstrumentationCallbacks is not intended.

Member Function Documentation

◆ addClassToPassName()

void llvm::PassInstrumentationCallbacks::addClassToPassName ( StringRef  ClassName,
StringRef  PassName 
)

Add a class name to pass name mapping for use by pass instrumentation.

Definition at line 20 of file PassInstrumentation.cpp.

References llvm::empty(), and PassName.

◆ getPassNameForClassName()

StringRef llvm::PassInstrumentationCallbacks::getPassNameForClassName ( StringRef  ClassName)

Get the pass name for a given pass class name.

Definition at line 27 of file PassInstrumentation.cpp.

◆ operator=()

void llvm::PassInstrumentationCallbacks::operator= ( const PassInstrumentationCallbacks )
delete

◆ registerAfterAnalysisCallback()

template<typename CallableT >
void llvm::PassInstrumentationCallbacks::registerAfterAnalysisCallback ( CallableT  C)
inline

◆ registerAfterPassCallback()

template<typename CallableT >
void llvm::PassInstrumentationCallbacks::registerAfterPassCallback ( CallableT  C)
inline

◆ registerAfterPassInvalidatedCallback()

template<typename CallableT >
void llvm::PassInstrumentationCallbacks::registerAfterPassInvalidatedCallback ( CallableT  C)
inline

◆ registerAnalysesClearedCallback()

template<typename CallableT >
void llvm::PassInstrumentationCallbacks::registerAnalysesClearedCallback ( CallableT  C)
inline

◆ registerAnalysisInvalidatedCallback()

template<typename CallableT >
void llvm::PassInstrumentationCallbacks::registerAnalysisInvalidatedCallback ( CallableT  C)
inline

◆ registerBeforeAnalysisCallback()

template<typename CallableT >
void llvm::PassInstrumentationCallbacks::registerBeforeAnalysisCallback ( CallableT  C)
inline

◆ registerBeforeNonSkippedPassCallback()

template<typename CallableT >
void llvm::PassInstrumentationCallbacks::registerBeforeNonSkippedPassCallback ( CallableT  C)
inline

◆ registerBeforeSkippedPassCallback()

template<typename CallableT >
void llvm::PassInstrumentationCallbacks::registerBeforeSkippedPassCallback ( CallableT  C)
inline

◆ registerShouldRunOptionalPassCallback()

template<typename CallableT >
void llvm::PassInstrumentationCallbacks::registerShouldRunOptionalPassCallback ( CallableT  C)
inline

Friends And Related Function Documentation

◆ PassInstrumentation

friend class PassInstrumentation
friend

Definition at line 145 of file PassInstrumentation.h.


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