LLVM  16.0.0git
Classes | Namespaces | Functions
ScopeExit.h File Reference
#include "llvm/Support/Compiler.h"
#include <type_traits>
#include <utility>
Include dependency graph for ScopeExit.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


class  llvm::detail::scope_exit< Callable >


 This is an optimization pass for GlobalISel generic memory operations.


template<typename Callable >
detail::scope_exit< std::decay_t< Callable > > llvm::make_scope_exit (Callable &&F)

Detailed Description

This file defines the make_scope_exit function, which executes user-defined cleanup logic at scope exit.

Definition in file ScopeExit.h.