Module melior::dialect::ods::bufferization
source · Expand description
bufferization
dialect.
Bufferization in MLIR is the process of converting the tensor
type to the
memref
type.
Simply put, bufferization is the process of converting computations on the
mathematical tensor construct to computations on physical memory buffers.
The bufferization
dialect contains operations/interfaces specific to the
bufferization passes.
An overview of the bufferization infrastructure and important conceptual details related to using the MLIR dialect conversion infrastructure can be found in bufferization and buffer deallocation.
Structs§
- An
alloc_tensor
operation. Allocate buffer for a tensor. - A builder for an
alloc_tensor
operation. - A
clone
operation. Clone a memref. - A builder for a
clone
operation. - A
dealloc
operation. Deallocates the given memrefs if no alias is retained. - A builder for a
dealloc
operation. - A
dealloc_tensor
operation. Release underlying storage format of given tensor. - A builder for a
dealloc_tensor
operation. - A
materialize_in_destination
operation. Copy a tensor. - A builder for a
materialize_in_destination
operation. - A
to_memref
operation. Cast a tensor to memref. - A builder for a
to_memref
operation. - A
to_tensor
operation. Create a tensor from amemref
. - A builder for a
to_tensor
operation.
Functions§
- Creates an
alloc_tensor
operation. - Creates a
clone
operation. - Creates a
dealloc
operation. - Creates a
dealloc_tensor
operation. - Creates a
materialize_in_destination
operation. - Creates a
to_memref
operation. - Creates a
to_tensor
operation.