My Project
Public Member Functions | List of all members
mlir::OwningModuleRef Class Reference

#include <Module.h>

Public Member Functions

 OwningModuleRef (std::nullptr_t=nullptr)
 
 OwningModuleRef (ModuleOp module)
 
 OwningModuleRef (OwningModuleRef &&other)
 
 ~OwningModuleRef ()
 
OwningModuleRefoperator= (OwningModuleRef &&other)
 
ModuleOp get () const
 Allow accessing the internal module. More...
 
ModuleOp operator* () const
 
ModuleOpoperator-> ()
 
 operator bool () const
 
ModuleOp release ()
 Release the referenced module. More...
 

Detailed Description

This class acts as an owning reference to a module, and will automatically destroy the held module if valid.

Constructor & Destructor Documentation

◆ OwningModuleRef() [1/3]

mlir::OwningModuleRef::OwningModuleRef ( std::nullptr_t  = nullptr)
inline

◆ OwningModuleRef() [2/3]

mlir::OwningModuleRef::OwningModuleRef ( ModuleOp  module)
inline

◆ OwningModuleRef() [3/3]

mlir::OwningModuleRef::OwningModuleRef ( OwningModuleRef &&  other)
inline

◆ ~OwningModuleRef()

mlir::OwningModuleRef::~OwningModuleRef ( )
inline

Member Function Documentation

◆ get()

ModuleOp mlir::OwningModuleRef::get ( ) const
inline

Allow accessing the internal module.

◆ operator bool()

mlir::OwningModuleRef::operator bool ( ) const
inlineexplicit

◆ operator*()

ModuleOp mlir::OwningModuleRef::operator* ( void  ) const
inline

◆ operator->()

ModuleOp* mlir::OwningModuleRef::operator-> ( )
inline

◆ operator=()

OwningModuleRef& mlir::OwningModuleRef::operator= ( OwningModuleRef &&  other)
inline

◆ release()

ModuleOp mlir::OwningModuleRef::release ( )
inline

Release the referenced module.


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