This patch adapts the method MemRefDescriptor::fromStaticShape to support static non-zero offsets. The updated method uses the getStridesAndOffset method to extract strides and offset. The patch also adapts the test cases since sizes and strides are now set in forward instead of reverse order.
Details
Details
Diff Detail
Diff Detail
Unit Tests
Unit Tests
Time | Test | |
---|---|---|
10 ms | LLVM.Bindings/Go::Unknown Unit Message ("") |
Event Timeline
Comment Actions
Can you add a tests where the non-zero offset is exercised?
Nit: you could have kept the loop order reversed to spare yourself the effort of changing the tests.
Comment Actions
I added a test for a memref with a non-zero offset and non-standard strides. Let me know if you had another test in mind...