MLIR
20.0.0git
|
This class provides a simple utility wrapper for creating "unmanaged" AsmResourceBlobs. More...
#include "mlir/IR/AsmState.h"
Static Public Member Functions | |
static AsmResourceBlob | allocateWithAlign (ArrayRef< char > data, size_t align, AsmResourceBlob::DeleterFn deleter={}, bool dataIsMutable=false) |
Create a new unmanaged resource directly referencing the provided data. More... | |
template<typename T > | |
static AsmResourceBlob | allocateInferAlign (ArrayRef< T > data, AsmResourceBlob::DeleterFn deleter={}, bool dataIsMutable=false) |
This class provides a simple utility wrapper for creating "unmanaged" AsmResourceBlobs.
The lifetime of the data provided to these blobs is guaranteed to persist beyond the lifetime of this reference.
Definition at line 221 of file AsmState.h.
|
inlinestatic |
Definition at line 234 of file AsmState.h.
Referenced by getDenseResource().
|
inlinestatic |
Create a new unmanaged resource directly referencing the provided data.
dataIsMutable
indicates if the allocated data can be mutated. By default, we treat unmanaged blobs as immutable.
Definition at line 227 of file AsmState.h.