[spirv] Fix legalize standard to spir-v for transfer ops
authorThomas Raoux <thomasraoux@google.com>
Wed, 21 Oct 2020 20:42:29 +0000 (13:42 -0700)
committerThomas Raoux <thomasraoux@google.com>
Wed, 21 Oct 2020 20:56:01 +0000 (13:56 -0700)
commitac2cf07195b5833a888dc6878a9a3cb377ef59ac
treeb5d1dcdf2df1854765d93a69223caefb4899aa0b
parenteef2e67d2326e7d4027fddb29eefdb69371dc24a
[spirv] Fix legalize standard to spir-v for transfer ops

Forward missing attributes when creating the new transfer op otherwise the
builder would use default values.

Differential Revision: https://reviews.llvm.org/D89907
mlir/lib/Conversion/StandardToSPIRV/LegalizeStandardForSPIRV.cpp
mlir/test/Conversion/StandardToSPIRV/legalization.mlir