|
MLIR 22.0.0git
|
This class defines a dialect specific handle to a resource blob. More...
#include "mlir/IR/DialectResourceBlobManager.h"
Public Types | |
| using | ManagerInterface |
| Public Types inherited from mlir::AsmDialectResourceHandleBase< DialectResourceBlobHandle< DialectT >, DialectResourceBlobManager::BlobEntry, DialectT > | |
| using | Dialect |
Public Member Functions | |
| StringRef | getKey () const |
| Return the human readable string key for this handle. | |
| AsmResourceBlob * | getBlob () |
| Return the blob referenced by this handle if the underlying resource has been initialized. | |
| 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. | |
| DialectResourceBlobManager::BlobEntry * | getResource () |
| Return the resource referenced by this handle. | |
| DialectT * | getDialect () const |
| Return the dialect that owns the resource. | |
| 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. | |
| TypeID | getTypeID () const |
| Return the type ID of the resource. | |
| Dialect * | getDialect () const |
| Return the dialect that owns the resource. | |
Static Public Member Functions | |
| static ManagerInterface & | getManagerInterface (MLIRContext *ctx) |
| Get the interface for the dialect that owns handles of this type. | |
| Static Public Member Functions inherited from mlir::AsmDialectResourceHandleBase< DialectResourceBlobHandle< DialectT >, DialectResourceBlobManager::BlobEntry, DialectT > | |
| static bool | classof (const AsmDialectResourceHandle *handle) |
| Support llvm style casting. | |
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 187 of file DialectResourceBlobManager.h.
| using mlir::DialectResourceBlobHandle< DialectT >::ManagerInterface |
Definition at line 194 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 202 of file DialectResourceBlobManager.h.
|
inline |
Definition at line 203 of file DialectResourceBlobManager.h.
|
inline |
Return the human readable string key for this handle.
Definition at line 198 of file DialectResourceBlobManager.h.
|
inlinestatic |
Get the interface for the dialect that owns handles of this type.
Asserts that the dialect is registered.
Definition at line 209 of file DialectResourceBlobManager.h.