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

A simple RAII based Delegate installer. More...

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

Public Member Functions

 RAIIDelegateInstaller (MachineFunction &MF, MachineFunction::Delegate *Del)
 
 ~RAIIDelegateInstaller ()
 

Detailed Description

A simple RAII based Delegate installer.

Use this in a scope to install a delegate to the MachineFunction and reset it at the end of the scope.

Definition at line 110 of file GISelChangeObserver.h.

Constructor & Destructor Documentation

◆ RAIIDelegateInstaller()

RAIIDelegateInstaller::RAIIDelegateInstaller ( MachineFunction MF,
MachineFunction::Delegate Del 
)

Definition at line 32 of file GISelChangeObserver.cpp.

References llvm::MachineFunction::setDelegate().

◆ ~RAIIDelegateInstaller()

RAIIDelegateInstaller::~RAIIDelegateInstaller ( )

Definition at line 40 of file GISelChangeObserver.cpp.

References llvm::MachineFunction::resetDelegate().


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