MLIR 24.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
void * getResource () const
 Return an opaque pointer to the referenced resource.
TypeID getTypeID () const
 Return the type ID of the resource.
Dialect * getDialect () const
 Return the dialect that owns the resource.

Detailed Description

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

Definition at line 49 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 52 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 59 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 62 of file OpImplementation.h.

◆ operator==()

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

Definition at line 54 of file OpImplementation.h.

References AsmDialectResourceHandle().


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