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 75 of file PassInstrumentation.h.
using llvm::PassInstrumentationCallbacks::AfterAnalysisFunc = void(StringRef, Any) |
Definition at line 93 of file PassInstrumentation.h.
using llvm::PassInstrumentationCallbacks::AfterPassFunc = void(StringRef, Any, const PreservedAnalyses &) |
Definition at line 90 of file PassInstrumentation.h.
using llvm::PassInstrumentationCallbacks::AfterPassInvalidatedFunc = void(StringRef, const PreservedAnalyses &) |
Definition at line 91 of file PassInstrumentation.h.
Definition at line 95 of file PassInstrumentation.h.
Definition at line 94 of file PassInstrumentation.h.
using llvm::PassInstrumentationCallbacks::BeforeAnalysisFunc = void(StringRef, Any) |
Definition at line 92 of file PassInstrumentation.h.
Definition at line 89 of file PassInstrumentation.h.
Definition at line 87 of file PassInstrumentation.h.
Definition at line 88 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 24 of file PassInstrumentation.cpp.
References PassName.
Get the pass name for a given pass class name.
Definition at line 30 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 142 of file PassInstrumentation.h.
References llvm::CallingConv::C.
Referenced by llvm::TimePassesHandler::registerCallbacks(), llvm::PrintPassInstrumentation::registerCallbacks(), and llvm::TimeProfilingPassesHandler::registerCallbacks().
|
inline |
Definition at line 120 of file PassInstrumentation.h.
References llvm::CallingConv::C.
Referenced by llvm::DroppedVariableStatsIR::registerCallbacks(), 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 128 of file PassInstrumentation.h.
References llvm::CallingConv::C.
Referenced by llvm::DroppedVariableStatsIR::registerCallbacks(), llvm::TimePassesHandler::registerCallbacks(), llvm::PrintIRInstrumentation::registerCallbacks(), llvm::PrintPassInstrumentation::registerCallbacks(), llvm::TimeProfilingPassesHandler::registerCallbacks(), llvm::PreservedCFGCheckerInstrumentation::registerCallbacks(), and llvm::ChangeReporter< IRUnitT >::registerRequiredCallbacks().
|
inline |
Definition at line 156 of file PassInstrumentation.h.
References llvm::CallingConv::C.
Referenced by llvm::PrintPassInstrumentation::registerCallbacks().
|
inline |
Definition at line 151 of file PassInstrumentation.h.
References llvm::CallingConv::C.
Referenced by llvm::PrintPassInstrumentation::registerCallbacks().
|
inline |
Definition at line 137 of file PassInstrumentation.h.
References llvm::CallingConv::C.
Referenced by llvm::TimePassesHandler::registerCallbacks(), llvm::PrintPassInstrumentation::registerCallbacks(), and llvm::TimeProfilingPassesHandler::registerCallbacks().
|
inline |
Definition at line 115 of file PassInstrumentation.h.
References llvm::CallingConv::C.
Referenced by llvm::DroppedVariableStatsIR::registerCallbacks(), 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 110 of file PassInstrumentation.h.
References llvm::CallingConv::C.
Referenced by llvm::PrintPassInstrumentation::registerCallbacks().
|
inline |
Definition at line 161 of file PassInstrumentation.h.
References llvm::CallingConv::C.
Referenced by llvm::PassBuilder::PassBuilder().
|
inline |
Definition at line 105 of file PassInstrumentation.h.
References llvm::CallingConv::C.
Referenced by llvm::OptNoneInstrumentation::registerCallbacks(), llvm::OptPassGateInstrumentation::registerCallbacks(), and llvm::registerCodeGenCallback().
|
friend |
Definition at line 171 of file PassInstrumentation.h.