Beaver.Native.Memory (beaver v0.3.4)

A piece of memory managed by BEAM and can by addressed by a generated native function as MLIR MemRef descriptor

Summary

Functions

return a opaque pointer to the memory

return a opaque pointer to the memory descriptor. Usually used in the invoking of a generated function. If it is a array, will return the pointer of the array to mimic a struct of packed memory descriptors

take ownership of the memory the descriptor's allocated field points to

Functions

Link to this function

aligned(memory)

return a opaque pointer to the memory

Link to this function

allocated(memory)

Link to this function

dense_strides(shape)

Link to this function

descriptor_ptr(array)

return a opaque pointer to the memory descriptor. Usually used in the invoking of a generated function. If it is a array, will return the pointer of the array to mimic a struct of packed memory descriptors

Link to this function

new(data, opts \\ [offset: 0])

Link to this function

own_allocated(m)

take ownership of the memory the descriptor's allocated field points to