[#llvm-RAIITemporaryObserverInstaller] = xref:llvm.adoc[llvm]::RAIITemporaryObserverInstaller :relfileprefix: ../ :mrdocs: 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. == Synopsis Declared in `<llvm/CodeGen/GlobalISel/GISelChangeObserver.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class RAIITemporaryObserverInstaller; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:llvm/RAIITemporaryObserverInstaller/2constructor.adoc[`RAIITemporaryObserverInstaller`] [.small]#[constructor]# | Temporarily add `TemporaryObserver` to `Observers` for this lifetime. | xref:llvm/RAIITemporaryObserverInstaller/2destructor.adoc[`~RAIITemporaryObserverInstaller`] [.small]#[destructor]# | Remove the temporary observer from the wrapper. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#