LLVM  14.0.0git
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
llvm::ChangeReporter< IRUnitT > Class Template Referenceabstract

#include "llvm/Passes/StandardInstrumentations.h"

Inheritance diagram for llvm::ChangeReporter< IRUnitT >:
Inheritance graph
[legend]
Collaboration diagram for llvm::ChangeReporter< IRUnitT >:
Collaboration graph
[legend]

Public Member Functions

virtual ~ChangeReporter ()
 
void saveIRBeforePass (Any IR, StringRef PassID)
 
void handleIRAfterPass (Any IR, StringRef PassID)
 
void handleInvalidatedPass (StringRef PassID)
 

Protected Member Functions

 ChangeReporter (bool RunInVerboseMode)
 
void registerRequiredCallbacks (PassInstrumentationCallbacks &PIC)
 
bool isInterestingFunction (const Function &F)
 
bool isInterestingPass (StringRef PassID)
 
bool isInteresting (Any IR, StringRef PassID)
 
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
 

Detailed Description

template<typename IRUnitT>
class llvm::ChangeReporter< IRUnitT >

Definition at line 171 of file StandardInstrumentations.h.

Constructor & Destructor Documentation

◆ ChangeReporter()

template<typename IRUnitT >
llvm::ChangeReporter< IRUnitT >::ChangeReporter ( bool  RunInVerboseMode)
inlineprotected

Definition at line 173 of file StandardInstrumentations.h.

◆ ~ChangeReporter()

template<typename T >
ChangeReporter::~ChangeReporter< T >
virtual

Definition at line 384 of file StandardInstrumentations.cpp.

Member Function Documentation

◆ generateIRRepresentation()

template<typename IRUnitT >
virtual void llvm::ChangeReporter< IRUnitT >::generateIRRepresentation ( Any  IR,
StringRef  PassID,
IRUnitT &  Output 
)
protectedpure virtual

◆ handleAfter()

template<typename IRUnitT >
virtual void llvm::ChangeReporter< IRUnitT >::handleAfter ( StringRef  PassID,
std::string &  Name,
const IRUnitT &  Before,
const IRUnitT &  After,
Any   
)
protectedpure virtual

◆ handleFiltered()

template<typename IRUnitT >
virtual void llvm::ChangeReporter< IRUnitT >::handleFiltered ( StringRef  PassID,
std::string &  Name 
)
protectedpure virtual

◆ handleIgnored()

template<typename IRUnitT >
virtual void llvm::ChangeReporter< IRUnitT >::handleIgnored ( StringRef  PassID,
std::string &  Name 
)
protectedpure virtual

◆ handleInitialIR()

template<typename IRUnitT >
virtual void llvm::ChangeReporter< IRUnitT >::handleInitialIR ( Any  IR)
protectedpure virtual

◆ handleInvalidated()

template<typename IRUnitT >
virtual void llvm::ChangeReporter< IRUnitT >::handleInvalidated ( StringRef  PassID)
protectedpure virtual

◆ handleInvalidatedPass()

template<typename T >
void ChangeReporter::handleInvalidatedPass ( StringRef  PassID)

Definition at line 465 of file StandardInstrumentations.cpp.

◆ handleIRAfterPass()

template<typename T >
void ChangeReporter::handleIRAfterPass ( Any  IR,
StringRef  PassID 
)

Definition at line 436 of file StandardInstrumentations.cpp.

◆ isInteresting()

template<typename T >
bool ChangeReporter::isInteresting ( Any  IR,
StringRef  PassID 
)
protected

Definition at line 406 of file StandardInstrumentations.cpp.

◆ isInterestingFunction()

template<typename T >
bool ChangeReporter::isInterestingFunction ( const Function F)
protected

Definition at line 389 of file StandardInstrumentations.cpp.

◆ isInterestingPass()

template<typename T >
bool ChangeReporter::isInterestingPass ( StringRef  PassID)
protected

Definition at line 394 of file StandardInstrumentations.cpp.

◆ omitAfter()

template<typename IRUnitT >
virtual void llvm::ChangeReporter< IRUnitT >::omitAfter ( StringRef  PassID,
std::string &  Name 
)
protectedpure virtual

◆ registerRequiredCallbacks()

template<typename T >
void ChangeReporter::registerRequiredCallbacks ( PassInstrumentationCallbacks PIC)
protected

◆ saveIRBeforePass()

template<typename T >
void ChangeReporter::saveIRBeforePass ( Any  IR,
StringRef  PassID 
)

Definition at line 415 of file StandardInstrumentations.cpp.

Member Data Documentation

◆ BeforeStack

template<typename IRUnitT >
std::vector<IRUnitT> llvm::ChangeReporter< IRUnitT >::BeforeStack
protected

Definition at line 220 of file StandardInstrumentations.h.

◆ InitialIR

template<typename IRUnitT >
bool llvm::ChangeReporter< IRUnitT >::InitialIR = true
protected

Definition at line 222 of file StandardInstrumentations.h.

◆ VerboseMode

template<typename IRUnitT >
const bool llvm::ChangeReporter< IRUnitT >::VerboseMode
protected

Definition at line 225 of file StandardInstrumentations.h.


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