rikhuijzer wrote: Ah sorry for being so dense before. I think destination-passing style finally clicked for me now. The tensor is immutable (and therefore copied), but the underlying storage may be mutated. https://github.com/llvm/llvm-project/pull/71726