LLVM 20.0.0git
Public Member Functions | List of all members
llvm::RAIITemporaryObserverInstaller Class Reference

A simple RAII based Observer installer. More...

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

Public Member Functions

 RAIITemporaryObserverInstaller (GISelObserverWrapper &Observers, GISelChangeObserver &TemporaryObserver)
 
 ~RAIITemporaryObserverInstaller ()
 

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

Constructor & Destructor Documentation

◆ RAIITemporaryObserverInstaller()

RAIITemporaryObserverInstaller::RAIITemporaryObserverInstaller ( GISelObserverWrapper Observers,
GISelChangeObserver TemporaryObserver 
)

Definition at line 50 of file GISelChangeObserver.cpp.

References llvm::GISelObserverWrapper::addObserver().

◆ ~RAIITemporaryObserverInstaller()

RAIITemporaryObserverInstaller::~RAIITemporaryObserverInstaller ( )

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