|
MLIR 22.0.0git
|
RAII guard to reset the insertion point of the builder when destroyed. More...
#include "mlir/IR/Builders.h"
Public Member Functions | |
| InsertionGuard (OpBuilder &builder) | |
| ~InsertionGuard () | |
| InsertionGuard (const InsertionGuard &)=delete | |
| InsertionGuard & | operator= (const InsertionGuard &)=delete |
| InsertionGuard (InsertionGuard &&other) noexcept | |
| Implement the move constructor to clear the builder field of other. | |
| InsertionGuard & | operator= (InsertionGuard &&other)=delete |
RAII guard to reset the insertion point of the builder when destroyed.
Definition at line 348 of file Builders.h.
|
inline |
Definition at line 350 of file Builders.h.
References mlir::OpBuilder::OpBuilder(), and mlir::OpBuilder::saveInsertionPoint().
Referenced by InsertionGuard(), InsertionGuard(), operator=(), and operator=().
|
inline |
Definition at line 353 of file Builders.h.
|
delete |
References InsertionGuard().
|
inlinenoexcept |
Implement the move constructor to clear the builder field of other.
That way it does not restore the insertion point upon destruction as that should be done exclusively by the just constructed InsertionGuard.
Definition at line 364 of file Builders.h.
References InsertionGuard().
|
delete |
References InsertionGuard().
|
delete |
References InsertionGuard(), and mlir::OpBuilder::OpBuilder().