LLVM 20.0.0git
Public Member Functions | Protected Member Functions | List of all members
llvm::IRChangedTester Class Reference

#include "llvm/Passes/StandardInstrumentations.h"

Inheritance diagram for llvm::IRChangedTester:
Inheritance graph
[legend]

Public Member Functions

 IRChangedTester ()
 
 ~IRChangedTester () override
 
void registerCallbacks (PassInstrumentationCallbacks &PIC)
 
- Public Member Functions inherited from llvm::IRChangedPrinter
 IRChangedPrinter (bool VerboseMode)
 
 ~IRChangedPrinter () override
 
void registerCallbacks (PassInstrumentationCallbacks &PIC)
 
- Public Member Functions inherited from llvm::ChangeReporter< IRUnitT >
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

void handleIR (const std::string &IR, StringRef PassID)
 
void handleInitialIR (Any IR) override
 
void omitAfter (StringRef PassID, std::string &Name) override
 
void handleInvalidated (StringRef PassID) override
 
void handleFiltered (StringRef PassID, std::string &Name) override
 
void handleIgnored (StringRef PassID, std::string &Name) override
 
void handleAfter (StringRef PassID, std::string &Name, const std::string &Before, const std::string &After, Any) override
 
- Protected Member Functions inherited from llvm::IRChangedPrinter
void generateIRRepresentation (Any IR, StringRef PassID, std::string &Output) override
 
void handleAfter (StringRef PassID, std::string &Name, const std::string &Before, const std::string &After, Any) override
 
- Protected Member Functions inherited from llvm::TextChangeReporter< std::string >
 TextChangeReporter (bool Verbose)
 
void handleInitialIR (Any IR) override
 
void omitAfter (StringRef PassID, std::string &Name) override
 
void handleInvalidated (StringRef PassID) override
 
void handleFiltered (StringRef PassID, std::string &Name) override
 
void handleIgnored (StringRef PassID, std::string &Name) override
 
- Protected Member Functions inherited from llvm::ChangeReporter< IRUnitT >
 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
 

Additional Inherited Members

- Protected Attributes inherited from llvm::TextChangeReporter< std::string >
raw_ostreamOut
 
- Protected Attributes inherited from llvm::ChangeReporter< IRUnitT >
std::vector< IRUnitT > BeforeStack
 
bool InitialIR = true
 
const bool VerboseMode
 

Detailed Description

Definition at line 287 of file StandardInstrumentations.h.

Constructor & Destructor Documentation

◆ IRChangedTester()

llvm::IRChangedTester::IRChangedTester ( )
inline

Definition at line 289 of file StandardInstrumentations.h.

◆ ~IRChangedTester()

IRChangedTester::~IRChangedTester ( )
override

Definition at line 538 of file StandardInstrumentations.cpp.

Member Function Documentation

◆ handleAfter()

void IRChangedTester::handleAfter ( StringRef  PassID,
std::string &  Name,
const std::string &  Before,
const std::string &  After,
Any   
)
overrideprotected

Definition at line 583 of file StandardInstrumentations.cpp.

References After, and handleIR().

◆ handleFiltered()

void IRChangedTester::handleFiltered ( StringRef  PassID,
std::string &  Name 
)
overrideprotectedvirtual

Implements llvm::ChangeReporter< IRUnitT >.

Definition at line 581 of file StandardInstrumentations.cpp.

◆ handleIgnored()

void IRChangedTester::handleIgnored ( StringRef  PassID,
std::string &  Name 
)
overrideprotectedvirtual

Implements llvm::ChangeReporter< IRUnitT >.

Definition at line 582 of file StandardInstrumentations.cpp.

◆ handleInitialIR()

void IRChangedTester::handleInitialIR ( Any  IR)
overrideprotectedvirtual

◆ handleInvalidated()

void IRChangedTester::handleInvalidated ( StringRef  PassID)
overrideprotectedvirtual

Implements llvm::ChangeReporter< IRUnitT >.

Definition at line 580 of file StandardInstrumentations.cpp.

◆ handleIR()

void IRChangedTester::handleIR ( const std::string &  IR,
StringRef  PassID 
)
protected

◆ omitAfter()

void IRChangedTester::omitAfter ( StringRef  PassID,
std::string &  Name 
)
overrideprotectedvirtual

Implements llvm::ChangeReporter< IRUnitT >.

Definition at line 579 of file StandardInstrumentations.cpp.

◆ registerCallbacks()

void IRChangedTester::registerCallbacks ( PassInstrumentationCallbacks PIC)

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