LLVM
8.0.1
|
Simple wrapper observer that takes several observers, and calls each one for each event. More...
#include "llvm/CodeGen/GlobalISel/GISelChangeObserver.h"
Public Member Functions | |
GISelObserverWrapper ()=default | |
GISelObserverWrapper (ArrayRef< GISelChangeObserver *> Obs) | |
void | addObserver (GISelChangeObserver *O) |
void | removeObserver (GISelChangeObserver *O) |
void | erasingInstr (MachineInstr &MI) override |
An instruction is about to be erased. More... | |
void | createdInstr (MachineInstr &MI) override |
An instruction was created and inserted into the function. More... | |
void | changingInstr (MachineInstr &MI) override |
This instruction is about to be mutated in some way. More... | |
void | changedInstr (MachineInstr &MI) override |
This instruction was mutated in some way. More... | |
void | MF_HandleInsertion (MachineInstr &MI) override |
Callback after an insertion. This should not modify the MI directly. More... | |
void | MF_HandleRemoval (MachineInstr &MI) override |
Callback before a removal. This should not modify the MI directly. More... | |
Public Member Functions inherited from llvm::MachineFunction::Delegate | |
virtual | ~Delegate ()=default |
Public Member Functions inherited from llvm::GISelChangeObserver | |
virtual | ~GISelChangeObserver () |
void | changingAllUsesOfReg (const MachineRegisterInfo &MRI, unsigned Reg) |
All the instructions using the given register are being changed. More... | |
void | finishedChangingAllUsesOfReg () |
All instructions reported as changing by changingAllUsesOfReg() have finished being changed. More... | |
Simple wrapper observer that takes several observers, and calls each one for each event.
If there are multiple observers (say CSE, Legalizer, Combiner), it's sufficient to register this to the machine function as the delegate.
Definition at line 59 of file GISelChangeObserver.h.
|
default |
|
inline |
Definition at line 65 of file GISelChangeObserver.h.
|
inline |
Definition at line 68 of file GISelChangeObserver.h.
References llvm::SmallVectorTemplateBase< T >::push_back().
Referenced by llvm::Combiner::combineMachineInstrs(), llvm::Legalizer::runOnMachineFunction(), and llvm::IRTranslator::runOnMachineFunction().
|
inlineoverridevirtual |
This instruction was mutated in some way.
Implements llvm::GISelChangeObserver.
Definition at line 89 of file GISelChangeObserver.h.
References llvm::RISCVFenceField::O.
|
inlineoverridevirtual |
This instruction is about to be mutated in some way.
Implements llvm::GISelChangeObserver.
Definition at line 85 of file GISelChangeObserver.h.
References llvm::RISCVFenceField::O.
|
inlineoverridevirtual |
An instruction was created and inserted into the function.
Implements llvm::GISelChangeObserver.
Definition at line 81 of file GISelChangeObserver.h.
References llvm::RISCVFenceField::O.
|
inlineoverridevirtual |
An instruction is about to be erased.
Implements llvm::GISelChangeObserver.
Definition at line 77 of file GISelChangeObserver.h.
References llvm::RISCVFenceField::O.
Referenced by llvm::Legalizer::runOnMachineFunction().
|
inlineoverridevirtual |
Callback after an insertion. This should not modify the MI directly.
Implements llvm::MachineFunction::Delegate.
Definition at line 94 of file GISelChangeObserver.h.
References llvm::GISelChangeObserver::createdInstr().
|
inlineoverridevirtual |
Callback before a removal. This should not modify the MI directly.
Implements llvm::MachineFunction::Delegate.
Definition at line 95 of file GISelChangeObserver.h.
References llvm::GISelChangeObserver::erasingInstr().
|
inline |
Definition at line 71 of file GISelChangeObserver.h.
References llvm::SmallVectorTemplateCommon< T >::begin(), llvm::SmallVectorTemplateCommon< T >::end(), llvm::SmallVectorImpl< T >::erase(), llvm::find(), and llvm::RISCVFenceField::O.
Referenced by llvm::IRTranslator::runOnMachineFunction().