[Mlir-commits] [mlir] [mlir][vector] Preserve alignment attribute during gather/scatter bufferization (PR #188924)

Jorn Tuyls llvmlistbot at llvm.org
Fri Mar 27 02:22:51 PDT 2026


jtuyls wrote:

> What does it mean to have alignment at tensor level? IIUC, it should be for bufferization to define alignment, no?

To be honest, this is something I noticed while working on something else and it didn't seem right that the attribute wasn't preserved, but I didn't think too much about it. The one case I can think of is annotating when accepting an input tensor if you know it will be backed by aligned memory, but maybe that's not being used/theoretical? I am happy to just close the PR if alignment on tensors should not be allowed. Maybe the verifier should be updated then to ensure we never accept alignment when operating on tensors? Wdyt?



https://github.com/llvm/llvm-project/pull/188924


More information about the Mlir-commits mailing list