LLVM 20.0.0git
|
#include "llvm/Passes/StandardInstrumentations.h"
Public Member Functions | |
virtual | ~ChangeReporter () |
void | saveIRBeforePass (Any IR, StringRef PassID, StringRef PassName) |
void | handleIRAfterPass (Any IR, StringRef PassID, StringRef PassName) |
void | handleInvalidatedPass (StringRef PassID) |
Protected Member Functions | |
ChangeReporter (bool RunInVerboseMode) | |
void | registerRequiredCallbacks (PassInstrumentationCallbacks &PIC) |
virtual void | handleInitialIR (Any IR)=0 |
virtual void | generateIRRepresentation (Any IR, StringRef PassID, IRUnitT &Output)=0 |
virtual void | omitAfter (StringRef PassID, std::string &Name)=0 |
virtual void | handleAfter (StringRef PassID, std::string &Name, const IRUnitT &Before, const IRUnitT &After, Any)=0 |
virtual void | handleInvalidated (StringRef PassID)=0 |
virtual void | handleFiltered (StringRef PassID, std::string &Name)=0 |
virtual void | handleIgnored (StringRef PassID, std::string &Name)=0 |
Protected Attributes | |
std::vector< IRUnitT > | BeforeStack |
bool | InitialIR = true |
const bool | VerboseMode |
Definition at line 199 of file StandardInstrumentations.h.
|
inlineprotected |
Definition at line 201 of file StandardInstrumentations.h.
|
virtual |
Definition at line 388 of file StandardInstrumentations.cpp.
References assert().
|
protectedpure virtual |
Implemented in llvm::DotCfgChangeReporter.
|
protectedpure virtual |
Implemented in llvm::DotCfgChangeReporter.
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
|
protectedpure virtual |
Definition at line 446 of file StandardInstrumentations.cpp.
References assert().
void ChangeReporter::handleIRAfterPass | ( | Any | IR, |
StringRef | PassID, | ||
StringRef | PassName | ||
) |
Definition at line 416 of file StandardInstrumentations.cpp.
References After, assert(), Before, IR, isInteresting(), Name, and PassName.
|
protectedpure virtual |
|
protected |
Definition at line 459 of file StandardInstrumentations.cpp.
References llvm::PassInstrumentationCallbacks::getPassNameForClassName(), IR, P, PIC, llvm::PassInstrumentationCallbacks::registerAfterPassCallback(), llvm::PassInstrumentationCallbacks::registerAfterPassInvalidatedCallback(), and llvm::PassInstrumentationCallbacks::registerBeforeNonSkippedPassCallback().
Referenced by llvm::IRChangedPrinter::registerCallbacks(), and llvm::IRChangedTester::registerCallbacks().
void ChangeReporter::saveIRBeforePass | ( | Any | IR, |
StringRef | PassID, | ||
StringRef | PassName | ||
) |
Definition at line 393 of file StandardInstrumentations.cpp.
References IR, isInteresting(), and PassName.
|
protected |
Definition at line 237 of file StandardInstrumentations.h.
|
protected |
Definition at line 239 of file StandardInstrumentations.h.
|
protected |
Definition at line 242 of file StandardInstrumentations.h.