LLVM 20.0.0git
|
A simple RAII based Observer installer. More...
#include "llvm/CodeGen/GlobalISel/GISelChangeObserver.h"
Public Member Functions | |
RAIIMFObserverInstaller (MachineFunction &MF, GISelChangeObserver &Observer) | |
~RAIIMFObserverInstaller () | |
A simple RAII based Observer installer.
Use this in a scope to install the Observer to the MachineFunction and reset it at the end of the scope.
Definition at line 122 of file GISelChangeObserver.h.
RAIIMFObserverInstaller::RAIIMFObserverInstaller | ( | MachineFunction & | MF, |
GISelChangeObserver & | Observer | ||
) |
Definition at line 42 of file GISelChangeObserver.cpp.
References llvm::MachineFunction::setObserver().
RAIIMFObserverInstaller::~RAIIMFObserverInstaller | ( | ) |
Definition at line 48 of file GISelChangeObserver.cpp.
References llvm::MachineFunction::setObserver().