MLIR
20.0.0git
|
This class defines a dialect specific handle to a resource blob. More...
#include "mlir/IR/DialectResourceBlobManager.h"
Public Types | |
using | ManagerInterface = ResourceBlobManagerDialectInterfaceBase< DialectResourceBlobHandle< DialectT > > |
Public Types inherited from mlir::AsmDialectResourceHandleBase< DialectResourceBlobHandle< DialectT >, DialectResourceBlobManager::BlobEntry, DialectT > | |
using | Dialect = DialectT |
Public Member Functions | |
StringRef | getKey () const |
Return the human readable string key for this handle. More... | |
AsmResourceBlob * | getBlob () |
Return the blob referenced by this handle if the underlying resource has been initialized. More... | |
const AsmResourceBlob * | getBlob () const |
Public Member Functions inherited from mlir::AsmDialectResourceHandleBase< DialectResourceBlobHandle< DialectT >, DialectResourceBlobManager::BlobEntry, DialectT > | |
AsmDialectResourceHandleBase (DialectResourceBlobManager::BlobEntry *resource, DialectT *dialect) | |
Construct a handle from a pointer to the resource. More... | |
AsmDialectResourceHandleBase (AsmDialectResourceHandle handle) | |
DialectResourceBlobManager::BlobEntry * | getResource () |
Return the resource referenced by this handle. More... | |
const DialectResourceBlobManager::BlobEntry * | getResource () const |
DialectT * | getDialect () const |
Return the dialect that owns the resource. More... | |
Public Member Functions inherited from mlir::AsmDialectResourceHandle | |
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. More... | |
TypeID | getTypeID () const |
Return the type ID of the resource. More... | |
Dialect * | getDialect () const |
Return the dialect that owns the resource. More... | |
Static Public Member Functions | |
static ManagerInterface & | getManagerInterface (MLIRContext *ctx) |
Get the interface for the dialect that owns handles of this type. More... | |
Static Public Member Functions inherited from mlir::AsmDialectResourceHandleBase< DialectResourceBlobHandle< DialectT >, DialectResourceBlobManager::BlobEntry, DialectT > | |
static bool | classof (const AsmDialectResourceHandle *handle) |
Support llvm style casting. More... | |
This class defines a dialect specific handle to a resource blob.
These handles utilize a StringRef for the internal key, and an AsmResourceBlob as the underlying data.
Definition at line 182 of file DialectResourceBlobManager.h.
using mlir::DialectResourceBlobHandle< DialectT >::ManagerInterface = ResourceBlobManagerDialectInterfaceBase< DialectResourceBlobHandle<DialectT> > |
Definition at line 189 of file DialectResourceBlobManager.h.
|
inline |
Return the blob referenced by this handle if the underlying resource has been initialized.
Returns nullptr otherwise.
Definition at line 197 of file DialectResourceBlobManager.h.
References mlir::DialectResourceBlobManager::BlobEntry::getBlob(), and mlir::AsmDialectResourceHandleBase< DialectResourceBlobHandle< DialectT >, DialectResourceBlobManager::BlobEntry, DialectT >::getResource().
|
inline |
|
inline |
Return the human readable string key for this handle.
Definition at line 193 of file DialectResourceBlobManager.h.
References mlir::DialectResourceBlobManager::BlobEntry::getKey(), and mlir::AsmDialectResourceHandleBase< DialectResourceBlobHandle< DialectT >, DialectResourceBlobManager::BlobEntry, DialectT >::getResource().
|
inlinestatic |
Get the interface for the dialect that owns handles of this type.
Asserts that the dialect is registered.
Definition at line 204 of file DialectResourceBlobManager.h.
References mlir::MLIRContext::getOrLoadDialect().
Referenced by mlir::NVVM::SerializeGPUModuleBase::appendStandardLibs().