The subview semantics changes recently to allow for more natural
representation of constant offsets and strides. The legalization of
subview op for lowering to SPIR-V needs to account for this.
Also change the linearization to use the strides from the affine map
of a memref.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
mlir/lib/Conversion/StandardToSPIRV/LegalizeStandardForSPIRV.cpp | ||
---|---|---|
73 | since this pattern is likely to repeat itself more and more, how about adding getOrCreateOffset/Size/StrideValue to the core op? |
Comment Actions
@nicolasvasilache PTAL again after changes to the SubViewOp to add the methods to get offsets/size/strides.
since this pattern is likely to repeat itself more and more, how about adding getOrCreateOffset/Size/StrideValue to the core op?