MLIR  20.0.0git
Static Public Member Functions | List of all members
mlir::UnmanagedAsmResourceBlob Class Reference

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)
 

Detailed Description

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.

Member Function Documentation

◆ allocateInferAlign()

template<typename T >
static AsmResourceBlob mlir::UnmanagedAsmResourceBlob::allocateInferAlign ( ArrayRef< T >  data,
AsmResourceBlob::DeleterFn  deleter = {},
bool  dataIsMutable = false 
)
inlinestatic

Definition at line 234 of file AsmState.h.

Referenced by getDenseResource().

◆ allocateWithAlign()

static AsmResourceBlob mlir::UnmanagedAsmResourceBlob::allocateWithAlign ( ArrayRef< char >  data,
size_t  align,
AsmResourceBlob::DeleterFn  deleter = {},
bool  dataIsMutable = false 
)
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.


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