MLIR
20.0.0git
|
This class acts as an owning reference to an op, and will automatically destroy the held op on destruction if the held op is valid. More...
#include "mlir/IR/OwningOpRef.h"
Public Types | |
using | OperationT = OpTy |
The underlying operation type stored in this reference. More... | |
Public Member Functions | |
OwningOpRef (std::nullptr_t=nullptr) | |
OwningOpRef (OpTy op) | |
OwningOpRef (OwningOpRef &&other) | |
~OwningOpRef () | |
OwningOpRef & | operator= (OwningOpRef &&other) |
Assign from another op reference. More... | |
OpTy | get () const |
Allow accessing the internal op. More... | |
OpTy | operator* () const |
auto | operator-> () |
operator bool () const | |
operator OwningOpRef< Operation * > () && | |
Downcast to generic operation. More... | |
OpTy | release () |
Release the referenced op. More... | |
This class acts as an owning reference to an op, and will automatically destroy the held op on destruction if the held op is valid.
Note that OpBuilder and related functionality should be highly preferred instead, and this should only be used in situations where existing solutions are not viable.
Definition at line 29 of file OwningOpRef.h.
using mlir::OwningOpRef< OpTy >::OperationT = OpTy |
The underlying operation type stored in this reference.
Definition at line 32 of file OwningOpRef.h.
|
inline |
Definition at line 34 of file OwningOpRef.h.
|
inline |
Definition at line 35 of file OwningOpRef.h.
|
inline |
Definition at line 36 of file OwningOpRef.h.
|
inline |
Definition at line 37 of file OwningOpRef.h.
|
inline |
Allow accessing the internal op.
Definition at line 51 of file OwningOpRef.h.
Referenced by mlir::transform::detail::assembleTransformLibraryFromPaths(), doVerifyRoundTrip(), mlir::ReductionNode::getModule(), loadIRDLDialects(), mlir::mlirQueryMain(), mlir::mlirReduceMain(), parseMLIRInput(), performActions(), registerTranslateToMLIRFunction(), and mlir::translateLLVMIRToModule().
|
inlineexplicit |
Definition at line 61 of file OwningOpRef.h.
|
inline |
Downcast to generic operation.
Definition at line 64 of file OwningOpRef.h.
References mlir::OwningOpRef< OpTy >::release().
|
inline |
Definition at line 52 of file OwningOpRef.h.
|
inline |
Definition at line 53 of file OwningOpRef.h.
|
inline |
Assign from another op reference.
Definition at line 43 of file OwningOpRef.h.
|
inline |
Release the referenced op.
Definition at line 67 of file OwningOpRef.h.
Referenced by mlirModuleCreateParse(), mlir::OwningOpRef< OpTy >::operator OwningOpRef< Operation * >(), and mlir::ReductionNode::update().