MLIR  20.0.0git
Public Member Functions | Static Public Member Functions | Static Public Attributes | List of all members
mlir::python::DefaultingPyLocation Class Reference

Used in function arguments when None should resolve to the current context manager set instance. More...

#include "Bindings/Python/IRModule.h"

+ Inheritance diagram for mlir::python::DefaultingPyLocation:

Public Member Functions

 operator MlirLocation () const
 
 Defaulting ()=default
 Type casters require the type to be default constructible, but using such an instance is illegal. More...
 
 Defaulting (ReferrentTy &referrent)
 
- Public Member Functions inherited from mlir::python::Defaulting< DefaultingPyLocation, PyLocation >
 Defaulting ()=default
 Type casters require the type to be default constructible, but using such an instance is illegal. More...
 
 Defaulting (ReferrentTy &referrent)
 
ReferrentTyget () const
 
ReferrentTyoperator-> ()
 

Static Public Member Functions

static PyLocationresolve ()
 

Static Public Attributes

static constexpr const char kTypeDescription [] = "mlir.ir.Location"
 

Additional Inherited Members

- Public Types inherited from mlir::python::Defaulting< DefaultingPyLocation, PyLocation >
using ReferrentTy = PyLocation
 

Detailed Description

Used in function arguments when None should resolve to the current context manager set instance.

Definition at line 517 of file IRModule.h.

Member Function Documentation

◆ Defaulting() [1/2]

Type casters require the type to be default constructible, but using such an instance is illegal.

◆ Defaulting() [2/2]

Definition at line 45 of file PybindUtils.h.

◆ operator MlirLocation()

mlir::python::DefaultingPyLocation::operator MlirLocation ( ) const
inline

◆ resolve()

PyLocation & DefaultingPyLocation::resolve ( )
static

Member Data Documentation

◆ kTypeDescription

constexpr const char mlir::python::DefaultingPyLocation::kTypeDescription[] = "mlir.ir.Location"
staticconstexpr

Definition at line 521 of file IRModule.h.


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