LLVM 20.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, 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 ()=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) |
void | addClassToPassName (StringRef ClassName, StringRef PassName) |
Add a class name to pass name mapping for use by pass instrumentation. | |
StringRef | getPassNameForClassName (StringRef ClassName) |
Get the pass name for a given pass class name. | |
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.
using llvm::PassInstrumentationCallbacks::AfterAnalysisFunc = void(StringRef, Any) |
Definition at line 85 of file PassInstrumentation.h.
using llvm::PassInstrumentationCallbacks::AfterPassFunc = void(StringRef, Any, 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.
using llvm::PassInstrumentationCallbacks::BeforeAnalysisFunc = void(StringRef, Any) |
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 |
|
delete |
Copying PassInstrumentationCallbacks is not intended.
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 PassName.
Get the pass name for a given pass class name.
Definition at line 26 of file PassInstrumentation.cpp.
References llvm::SmallVectorBase< Size_T >::empty().
Referenced by llvm::PassInstrumentation::getPassNameForClassName(), llvm::PrintCrashIRInstrumentation::registerCallbacks(), llvm::ChangeReporter< IRUnitT >::registerRequiredCallbacks(), and runNewPMPasses().
|
delete |
|
inline |
Definition at line 134 of file PassInstrumentation.h.
References llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::CallingConv::C, llvm::SmallVectorImpl< T >::emplace_back(), and llvm::SmallVectorImpl< T >::insert().
Referenced by llvm::TimePassesHandler::registerCallbacks(), llvm::PrintPassInstrumentation::registerCallbacks(), and llvm::TimeProfilingPassesHandler::registerCallbacks().
|
inline |
Definition at line 112 of file PassInstrumentation.h.
References llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::CallingConv::C, llvm::SmallVectorImpl< T >::emplace_back(), and llvm::SmallVectorImpl< T >::insert().
Referenced by llvm::TimePassesHandler::registerCallbacks(), llvm::PrintIRInstrumentation::registerCallbacks(), llvm::PrintPassInstrumentation::registerCallbacks(), llvm::TimeProfilingPassesHandler::registerCallbacks(), llvm::PseudoProbeVerifier::registerCallbacks(), llvm::PreservedCFGCheckerInstrumentation::registerCallbacks(), llvm::DebugifyEachInstrumentation::registerCallbacks(), llvm::VerifyInstrumentation::registerCallbacks(), and llvm::ChangeReporter< IRUnitT >::registerRequiredCallbacks().
|
inline |
Definition at line 120 of file PassInstrumentation.h.
References llvm::SmallVectorTemplateCommon< T, typename >::begin(), llvm::CallingConv::C, llvm::SmallVectorImpl< T >::emplace_back(), and llvm::SmallVectorImpl< T >::insert().
Referenced by llvm::TimePassesHandler::registerCallbacks(), llvm::PrintIRInstrumentation::registerCallbacks(), llvm::PrintPassInstrumentation::registerCallbacks(), llvm::TimeProfilingPassesHandler::registerCallbacks(), llvm::PreservedCFGCheckerInstrumentation::registerCallbacks(), and llvm::ChangeReporter< IRUnitT >::registerRequiredCallbacks().
|
inline |
Definition at line 148 of file PassInstrumentation.h.
References llvm::CallingConv::C, and llvm::SmallVectorImpl< T >::emplace_back().
Referenced by llvm::PrintPassInstrumentation::registerCallbacks().
|
inline |
Definition at line 143 of file PassInstrumentation.h.
References llvm::CallingConv::C, and llvm::SmallVectorImpl< T >::emplace_back().
Referenced by llvm::PrintPassInstrumentation::registerCallbacks().
|
inline |
Definition at line 129 of file PassInstrumentation.h.
References llvm::CallingConv::C, and llvm::SmallVectorImpl< T >::emplace_back().
Referenced by llvm::TimePassesHandler::registerCallbacks(), llvm::PrintPassInstrumentation::registerCallbacks(), and llvm::TimeProfilingPassesHandler::registerCallbacks().
|
inline |
Definition at line 107 of file PassInstrumentation.h.
References llvm::CallingConv::C, and llvm::SmallVectorImpl< T >::emplace_back().
Referenced by llvm::TimePassesHandler::registerCallbacks(), llvm::PrintIRInstrumentation::registerCallbacks(), llvm::PrintPassInstrumentation::registerCallbacks(), llvm::TimeProfilingPassesHandler::registerCallbacks(), llvm::PrintCrashIRInstrumentation::registerCallbacks(), llvm::PreservedCFGCheckerInstrumentation::registerCallbacks(), llvm::DebugifyEachInstrumentation::registerCallbacks(), and llvm::ChangeReporter< IRUnitT >::registerRequiredCallbacks().
|
inline |
Definition at line 102 of file PassInstrumentation.h.
References llvm::CallingConv::C, and llvm::SmallVectorImpl< T >::emplace_back().
Referenced by llvm::PrintPassInstrumentation::registerCallbacks().
|
inline |
Definition at line 153 of file PassInstrumentation.h.
References llvm::CallingConv::C, and llvm::SmallVectorImpl< T >::emplace_back().
Referenced by llvm::PassBuilder::PassBuilder().
|
inline |
Definition at line 97 of file PassInstrumentation.h.
References llvm::CallingConv::C, and llvm::SmallVectorImpl< T >::emplace_back().
Referenced by llvm::OptNoneInstrumentation::registerCallbacks(), llvm::OptPassGateInstrumentation::registerCallbacks(), and llvm::registerCodeGenCallback().
|
friend |
Definition at line 163 of file PassInstrumentation.h.