opencompl / Quidditch

IREE compiler and runtime for Snitch
Apache License 2.0
6 stars 3 forks source link

[LowerL1Allocations] Support non-identity strides in L1 `memref.alloca` #104

Closed zero9178 closed 4 months ago

zero9178 commented 4 months ago

The previous lowering would crash in this case as memref.view op does not support a non-identity result memref. This PR fixes the lowering by first creating a view into a buffer with enough elements to support a given layout (i.e. includes padding) before reinterpret_casting to the original layout of the alloca.