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.
Declared in <llvm/CodeGen/GlobalISel/GISelChangeObserver.h>
class RAIITemporaryObserverInstaller;
| Name | Description |
|---|---|
RAIITemporaryObserverInstaller [constructor] | Temporarily add TemporaryObserver to Observers for this lifetime. |
~RAIITemporaryObserverInstaller [destructor] | Remove the temporary observer from the wrapper. |