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 RAIIMFObserverInstaller;

Member Functions

Name

Description

RAIIMFObserverInstaller [constructor]

Install Observer on MF for this object's lifetime.

~RAIIMFObserverInstaller [destructor]

Remove the installed observer from the MachineFunction.

Created with MrDocs