MLIR 24.0.0git
mlir::MLIRContext::TransientScope Class Reference

RAII scope guard that calls beginTransientScope() on construction and endTransientScope() on destruction. More...

#include "mlir/IR/MLIRContext.h"

Public Member Functions

 TransientScope (MLIRContext &ctx)
 ~TransientScope ()
 TransientScope (const TransientScope &)=delete
TransientScopeoperator= (const TransientScope &)=delete

Detailed Description

RAII scope guard that calls beginTransientScope() on construction and endTransientScope() on destruction.

Provides exception-safe and forgetting-proof transient scope management.

Definition at line 177 of file MLIRContext.h.

Constructor & Destructor Documentation

◆ TransientScope() [1/2]

mlir::MLIRContext::TransientScope::TransientScope ( MLIRContext & ctx)
inlineexplicit

Definition at line 179 of file MLIRContext.h.

References mlir::MLIRContext::MLIRContext().

Referenced by operator=(), and TransientScope().

◆ ~TransientScope()

mlir::MLIRContext::TransientScope::~TransientScope ( )
inline

Definition at line 182 of file MLIRContext.h.

◆ TransientScope() [2/2]

mlir::MLIRContext::TransientScope::TransientScope ( const TransientScope & )
delete

References TransientScope().

Member Function Documentation

◆ operator=()

TransientScope & mlir::MLIRContext::TransientScope::operator= ( const TransientScope & )
delete

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