mirror of
https://github.com/zama-ai/concrete.git
synced 2026-02-09 12:15:09 -05:00
The bufferization of the BConcrete dialect emits calls to Concrete wrapper functions and casts all memrefs to ranked memrefs with dynamic strides and an implicit identity layout map. The implicit identity map does not allow for casts of memrefs with non-zero offsets, e.g., resulting from folding of memrefs related to intermediate results passed as operands to the operation implemented by a wrapper. Casting to memrefs symbolic offsets in the layout map (e.g., `[d0, d1, ...](s0, s1, ...) -> (d0 + s0, d1 + s1, ...)`) allows for more flexibility, in particular this adds support for memrefs with non-zero, constant offsets returned by operations generating intermediate results.