llvm::RAIITemporaryObserverInstaller

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>

class RAIITemporaryObserverInstaller;

Member Functions

NameDescription
RAIITemporaryObserverInstaller [constructor]Temporarily add TemporaryObserver to Observers for this lifetime.
~RAIITemporaryObserverInstaller [destructor]Remove the temporary observer from the wrapper.