MLIR
20.0.0git
|
This class provides a simple utility wrapper for creating heap allocated AsmResourceBlobs. More...
#include "mlir/IR/AsmState.h"
Static Public Member Functions | |
static AsmResourceBlob | allocate (size_t size, size_t align, bool dataIsMutable=true) |
Create a new heap allocated blob with the given size and alignment. More... | |
static AsmResourceBlob | allocateAndCopyWithAlign (ArrayRef< char > data, size_t align, bool dataIsMutable=true) |
Create a new heap allocated blob and copy the provided data into it. More... | |
template<typename T > | |
static AsmResourceBlob | allocateAndCopyInferAlign (ArrayRef< T > data, bool dataIsMutable=true) |
This class provides a simple utility wrapper for creating heap allocated AsmResourceBlobs.
Definition at line 188 of file AsmState.h.
|
inlinestatic |
Create a new heap allocated blob with the given size and alignment.
dataIsMutable
indicates if the allocated data can be mutated. By default, we treat heap allocated blobs as mutable.
Definition at line 193 of file AsmState.h.
Referenced by allocateAndCopyWithAlign(), and mlir::AsmParsedResourceEntry::parseAsBlob().
|
inlinestatic |
Definition at line 211 of file AsmState.h.
References allocateAndCopyWithAlign().
|
inlinestatic |
Create a new heap allocated blob and copy the provided data into it.
Definition at line 200 of file AsmState.h.
References allocate(), and mlir::AsmResourceBlob::getMutableData().
Referenced by allocateAndCopyInferAlign().