LLVM  13.0.0git
Public Member Functions | List of all members
llvm::RAIIMFObserverInstaller Class Reference

A simple RAII based Observer installer. More...

#include "llvm/CodeGen/GlobalISel/GISelChangeObserver.h"

Public Member Functions

 RAIIMFObserverInstaller (MachineFunction &MF, GISelChangeObserver &Observer)
 
 ~RAIIMFObserverInstaller ()
 

Detailed Description

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 120 of file GISelChangeObserver.h.

Constructor & Destructor Documentation

◆ RAIIMFObserverInstaller()

RAIIMFObserverInstaller::RAIIMFObserverInstaller ( MachineFunction MF,
GISelChangeObserver Observer 
)

Definition at line 42 of file GISelChangeObserver.cpp.

References llvm::MachineFunction::setObserver().

◆ ~RAIIMFObserverInstaller()

RAIIMFObserverInstaller::~RAIIMFObserverInstaller ( )

Definition at line 48 of file GISelChangeObserver.cpp.

References llvm::MachineFunction::setObserver().


The documentation for this class was generated from the following files: