MLIR  19.0.0git
Public Member Functions | List of all members
mlir::OpBuilder::InsertionGuard Class Reference

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
 
InsertionGuardoperator= (const InsertionGuard &)=delete
 
 InsertionGuard (InsertionGuard &&other) noexcept
 Implement the move constructor to clear the builder field of other. More...
 
InsertionGuardoperator= (InsertionGuard &&other)=delete
 

Detailed Description

RAII guard to reset the insertion point of the builder when destroyed.

Definition at line 350 of file Builders.h.

Constructor & Destructor Documentation

◆ InsertionGuard() [1/3]

mlir::OpBuilder::InsertionGuard::InsertionGuard ( OpBuilder builder)
inline

Definition at line 352 of file Builders.h.

◆ ~InsertionGuard()

mlir::OpBuilder::InsertionGuard::~InsertionGuard ( )
inline

Definition at line 355 of file Builders.h.

References mlir::OpBuilder::restoreInsertionPoint().

◆ InsertionGuard() [2/3]

mlir::OpBuilder::InsertionGuard::InsertionGuard ( const InsertionGuard )
delete

◆ InsertionGuard() [3/3]

mlir::OpBuilder::InsertionGuard::InsertionGuard ( InsertionGuard &&  other)
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 366 of file Builders.h.

Member Function Documentation

◆ operator=() [1/2]

InsertionGuard& mlir::OpBuilder::InsertionGuard::operator= ( const InsertionGuard )
delete

◆ operator=() [2/2]

InsertionGuard& mlir::OpBuilder::InsertionGuard::operator= ( InsertionGuard &&  other)
delete

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