MLIR  20.0.0git
Public Member Functions | List of all members
mlir::presburger::SimplexRollbackScopeExit Class Reference

Takes a snapshot of the simplex state on construction and rolls back to the snapshot on destruction. More...

#include "mlir/Analysis/Presburger/Simplex.h"

Public Member Functions

 SimplexRollbackScopeExit (SimplexBase &simplex)
 
 ~SimplexRollbackScopeExit ()
 

Detailed Description

Takes a snapshot of the simplex state on construction and rolls back to the snapshot on destruction.

Useful for performing operations in a "transient context", all changes from which get rolled back on scope exit.

Definition at line 874 of file Simplex.h.

Constructor & Destructor Documentation

◆ SimplexRollbackScopeExit()

mlir::presburger::SimplexRollbackScopeExit::SimplexRollbackScopeExit ( SimplexBase simplex)
inline

Definition at line 876 of file Simplex.h.

References mlir::presburger::SimplexBase::getSnapshot().

◆ ~SimplexRollbackScopeExit()

mlir::presburger::SimplexRollbackScopeExit::~SimplexRollbackScopeExit ( )
inline

Definition at line 879 of file Simplex.h.


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