LLVM
8.0.1
|
A simple RAII based CSEInfo installer. More...
#include "llvm/CodeGen/GlobalISel/GISelChangeObserver.h"
Public Member Functions | |
RAIIDelegateInstaller (MachineFunction &MF, MachineFunction::Delegate *Del) | |
~RAIIDelegateInstaller () | |
A simple RAII based CSEInfo 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 101 of file GISelChangeObserver.h.
RAIIDelegateInstaller::RAIIDelegateInstaller | ( | MachineFunction & | MF, |
MachineFunction::Delegate * | Del | ||
) |
Definition at line 32 of file GISelChangeObserver.cpp.
References llvm::MachineFunction::setDelegate().
RAIIDelegateInstaller::~RAIIDelegateInstaller | ( | ) |
Definition at line 40 of file GISelChangeObserver.cpp.
References llvm::MachineFunction::resetDelegate().