LLVM  17.0.0git
Classes | Namespaces | Functions
SaveAndRestore.h File Reference
#include <utility>
Include dependency graph for SaveAndRestore.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  llvm::SaveAndRestore< T >
 A utility class that uses RAII to save and restore the value of a variable. More...
 

Namespaces

 llvm
 This is an optimization pass for GlobalISel generic memory operations.
 

Functions

template<typename T >
 llvm::SaveAndRestore (T &) -> SaveAndRestore< T >
 
template<typename T >
 llvm::SaveAndRestore (T &, const T &) -> SaveAndRestore< T >
 
template<typename T >
 llvm::SaveAndRestore (T &, T &&) -> SaveAndRestore< T >
 

Detailed Description

This file provides utility classes that use RAII to save and restore values.

Definition in file SaveAndRestore.h.