[mlir][spirv] Add smul_extended expansion for WebGPU
authorJakub Kuderski <kubak@google.com>
Fri, 6 Jan 2023 01:11:46 +0000 (20:11 -0500)
committerJakub Kuderski <kubak@google.com>
Fri, 6 Jan 2023 01:11:47 +0000 (20:11 -0500)
commit1b8224537070337c2d983a204a08eb27bac1ded6
tree9d5f0332d3c2696b3d501aecf0f8f42daaf50514
parent2b1a517a92bfdfa3b692a660e19a2bb22513a567
[mlir][spirv] Add smul_extended expansion for WebGPU

We need this because WGSL does not support extended multiplication ops.

Fixes: https://github.com/llvm/llvm-project/issues/59563

Reviewed By: antiagainst

Differential Revision: https://reviews.llvm.org/D141096
mlir/lib/Dialect/SPIRV/Transforms/SPIRVWebGPUTransforms.cpp
mlir/test/Dialect/SPIRV/Transforms/webgpu-prepare.mlir
mlir/test/mlir-vulkan-runner/smul_extended.mlir [new file with mode: 0644]