Wrapper that forwards each change event to a list of observers.
Synopsis
Declared in <llvm/CodeGen/GlobalISel/GISelChangeObserver.h>
class GISelObserverWrapper
: public MachineFunction::Delegate
, public GISelChangeObserver
Description
If there are multiple observers (say CSE, Legalizer, Combiner), it's sufficient to register this to the machine function as the delegate.
Base Classes
Name |
Description |
Callback interface notified when instructions are inserted or removed. |
|
Abstract base for clients that observe GlobalISel instruction changes. |
Member Functions
Name |
Description |
|
Constructors |
|
Callback before changing MCInstrDesc. This should not modify the MI directly. |
|
MachineFunction::Delegate hook that treats insertion as createdInstr. |
|
MachineFunction::Delegate hook that treats removal as erasingInstr. |
Add an observer to the list. |
|
|
Forward a changed notification to every registered observer. |
Notify that all instructions using |
|
|
Forward a changing notification to every registered observer. |
Remove all observers from the list. |
|
|
Forward a create notification to every registered observer. |
|
Forward an erase notification to every registered observer. |
All instructions reported as changing by changingAllUsesOfReg() have finished being changed. |
|
Remove an observer from the list if present. |
Created with MrDocs