|
LLVM 24.0.0git
|
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, IRUnitRef) |
| using | BeforeSkippedPassFunc = void(StringRef, IRUnitRef) |
| using | BeforeNonSkippedPassFunc = void(StringRef, IRUnitRef) |
| using | AfterPassFunc = void(StringRef, IRUnitRef, const PreservedAnalyses &) |
| using | AfterPassInvalidatedFunc = void(StringRef, const PreservedAnalyses &) |
| using | BeforeAnalysisFunc = void(StringRef, IRUnitRef) |
| using | AfterAnalysisFunc = void(StringRef, IRUnitRef) |
| using | AnalysisInvalidatedFunc = void(StringRef, IRUnitRef) |
| using | AnalysesClearedFunc = void(StringRef) |
Public Member Functions | |
| PassInstrumentationCallbacks ()=default | |
| PassInstrumentationCallbacks (const PassInstrumentationCallbacks &)=delete | |
| Copying PassInstrumentationCallbacks is not intended. | |
| 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, bool ToFront=false) |
| template<typename CallableT> | |
| void | registerAfterPassInvalidatedCallback (CallableT C, bool ToFront=false) |
| template<typename CallableT> | |
| void | registerBeforeAnalysisCallback (CallableT C) |
| template<typename CallableT> | |
| void | registerAfterAnalysisCallback (CallableT C, bool ToFront=false) |
| template<typename CallableT> | |
| void | registerAnalysisInvalidatedCallback (CallableT C) |
| template<typename CallableT> | |
| void | registerAnalysesClearedCallback (CallableT C) |
| template<typename CallableT> | |
| void | registerClassToPassNameCallback (CallableT C) |
| LLVM_ABI void | addClassToPassName (StringRef ClassName, StringRef PassName) |
| Add a class name to pass name mapping for use by pass instrumentation. | |
| LLVM_ABI StringRef | getPassNameForClassName (StringRef ClassName) |
| Get the pass name for a given pass class name. Empty if no match found. | |
Friends | |
| class | PassInstrumentation |
This class manages callbacks registration, as well as provides a way for PassInstrumentation to pass control to the registered callbacks.
Definition at line 67 of file PassInstrumentation.h.
Definition at line 85 of file PassInstrumentation.h.
| using llvm::PassInstrumentationCallbacks::AfterPassFunc = void(StringRef, IRUnitRef, const PreservedAnalyses &) |
Definition at line 82 of file PassInstrumentation.h.
| using llvm::PassInstrumentationCallbacks::AfterPassInvalidatedFunc = void(StringRef, const PreservedAnalyses &) |
Definition at line 83 of file PassInstrumentation.h.
Definition at line 87 of file PassInstrumentation.h.
Definition at line 86 of file PassInstrumentation.h.
Definition at line 84 of file PassInstrumentation.h.
Definition at line 81 of file PassInstrumentation.h.
Definition at line 79 of file PassInstrumentation.h.
Definition at line 80 of file PassInstrumentation.h.
|
default |
Referenced by operator=(), and PassInstrumentationCallbacks().
|
delete |
Copying PassInstrumentationCallbacks is not intended.
References PassInstrumentationCallbacks().
Add a class name to pass name mapping for use by pass instrumentation.
Definition at line 20 of file PassInstrumentation.cpp.
Get the pass name for a given pass class name. Empty if no match found.
Definition at line 27 of file PassInstrumentation.cpp.
References llvm::StringRef::find().
|
delete |
References PassInstrumentationCallbacks().
|
inline |
Definition at line 134 of file PassInstrumentation.h.
References C().
|
inline |
Definition at line 112 of file PassInstrumentation.h.
References C().
|
inline |
Definition at line 120 of file PassInstrumentation.h.
References C().
|
inline |
Definition at line 148 of file PassInstrumentation.h.
References C().
|
inline |
Definition at line 143 of file PassInstrumentation.h.
References C().
|
inline |
Definition at line 129 of file PassInstrumentation.h.
References C().
|
inline |
Definition at line 107 of file PassInstrumentation.h.
References C().
Referenced by llvm::PrintIRInstrumentation::registerCallbacks().
|
inline |
Definition at line 102 of file PassInstrumentation.h.
References C().
|
inline |
Definition at line 153 of file PassInstrumentation.h.
References C().
|
inline |
Definition at line 97 of file PassInstrumentation.h.
References C().
|
friend |
Definition at line 163 of file PassInstrumentation.h.
References PassInstrumentation.
Referenced by PassInstrumentation.