MLIR 22.0.0git
mlir::AsmDialectResourceHandle Class Reference

This class represents an opaque handle to a dialect resource entry. More...

#include "mlir/IR/OpImplementation.h"

Inheritance diagram for mlir::AsmDialectResourceHandle:

Public Member Functions

 AsmDialectResourceHandle ()=default
 AsmDialectResourceHandle (void *resource, TypeID resourceID, Dialect *dialect)
bool operator== (const AsmDialectResourceHandle &other) const
voidgetResource () const
 Return an opaque pointer to the referenced resource.
TypeID getTypeID () const
 Return the type ID of the resource.
DialectgetDialect () const
 Return the dialect that owns the resource.

Detailed Description

This class represents an opaque handle to a dialect resource entry.

Definition at line 47 of file OpImplementation.h.

Constructor & Destructor Documentation

◆ AsmDialectResourceHandle() [1/2]

◆ AsmDialectResourceHandle() [2/2]

mlir::AsmDialectResourceHandle::AsmDialectResourceHandle ( void * resource,
TypeID resourceID,
Dialect * dialect )
inline

Definition at line 50 of file OpImplementation.h.

Member Function Documentation

◆ getDialect()

Dialect * mlir::AsmDialectResourceHandle::getDialect ( ) const
inline

◆ getResource()

void * mlir::AsmDialectResourceHandle::getResource ( ) const
inline

Return an opaque pointer to the referenced resource.

Definition at line 57 of file OpImplementation.h.

Referenced by mlir::AsmDialectResourceHandleBase< DerivedT, ResourceT, DialectT >::getResource(), and mlir::hash_value().

◆ getTypeID()

TypeID mlir::AsmDialectResourceHandle::getTypeID ( ) const
inline

Return the type ID of the resource.

Definition at line 60 of file OpImplementation.h.

◆ operator==()

bool mlir::AsmDialectResourceHandle::operator== ( const AsmDialectResourceHandle & other) const
inline

Definition at line 52 of file OpImplementation.h.

References AsmDialectResourceHandle().


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