LLVM 20.0.0git
Classes | Namespaces | Functions
SaveAndRestore.h File Reference

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

#include <utility>

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

namespace  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.