MLIR
20.0.0git
|
For a memref
with offset
, sizes
and strides
, returns the offset and size to use for the linearized memref
.
More...
#include "mlir/Dialect/MemRef/Utils/MemRefUtils.h"
Public Attributes | |
OpFoldResult | linearizedOffset |
OpFoldResult | linearizedSize |
For a memref
with offset
, sizes
and strides
, returns the offset and size to use for the linearized memref
.
srcBits
using element type with bitwidth dstBits
, the linearized offset and size are scaled down by dstBits
/srcBits
.indices
is provided, it represents the position in the original memref
being accessed. The method then returns the index to use in the linearized memref
. The linearized index is also scaled down by dstBits
/srcBits
. If indices
is not provided 0, is returned for the linearized index. Definition at line 45 of file MemRefUtils.h.
OpFoldResult mlir::memref::LinearizedMemRefInfo::linearizedOffset |
Definition at line 46 of file MemRefUtils.h.
OpFoldResult mlir::memref::LinearizedMemRefInfo::linearizedSize |
Definition at line 47 of file MemRefUtils.h.