This is needed because WGSL does not yet support extended multiplication
ops.
Set up pattern/pass stuff and handle the first op: UMulExtended.
SMulExtended handling will go to a separate patch.
Paths
| Differential D140995
[mlir][spirv] Add pattern to expand UMulExtended for WebGPU ClosedPublic Authored by kuhar on Jan 4 2023, 8:21 AM.
Details Summary This is needed because WGSL does not yet support extended multiplication Set up pattern/pass stuff and handle the first op: UMulExtended.
Diff Detail
Event Timelineantiagainst added inline comments.
This revision is now accepted and ready to land.Jan 4 2023, 9:19 AM This revision was landed with ongoing or failed builds.Jan 4 2023, 10:30 AM Closed by commit rGc957fe0f6088: [mlir][spirv] Add pattern to expand UMulExtended for WebGPU (authored by kuhar). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 486302 mlir/include/mlir/Dialect/SPIRV/Transforms/Passes.td
mlir/include/mlir/Dialect/SPIRV/Transforms/SPIRVWebGPUTransforms.h
mlir/lib/Dialect/SPIRV/Transforms/CMakeLists.txt
mlir/lib/Dialect/SPIRV/Transforms/SPIRVWebGPUTransforms.cpp
mlir/test/Dialect/SPIRV/Transforms/webgpu-prepare.mlir
|
It would be nice to explain a bit more here, e.g., "Prepare SPIR-V to target WebGPU by running transformations to lower away features not supported there to more primitive ones" or something like that.