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

#include "llvm/Passes/StandardInstrumentations.h"

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

Public Member Functions

 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 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 270 of file StandardInstrumentations.h.

Constructor & Destructor Documentation

◆ IRChangedPrinter()

llvm::IRChangedPrinter::IRChangedPrinter ( bool  VerboseMode)
inline

Definition at line 272 of file StandardInstrumentations.h.

References string.

◆ ~IRChangedPrinter()

IRChangedPrinter::~IRChangedPrinter ( )
overridedefault

Member Function Documentation

◆ generateIRRepresentation()

void IRChangedPrinter::generateIRRepresentation ( Any  IR,
StringRef  PassID,
std::string &  Output 
)
overrideprotected

Definition at line 513 of file StandardInstrumentations.cpp.

References IR, and OS.

Referenced by llvm::IRChangedTester::handleInitialIR().

◆ handleAfter()

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

◆ registerCallbacks()

void IRChangedPrinter::registerCallbacks ( PassInstrumentationCallbacks PIC)

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