Skip to content

[mlir][spirv] Add patterns to convert spirv.*MulExtended to spirv.MulI #59563

@kuhar

Description

@kuhar

When targeting SPIR-V for WebGPU, we can't rely on WGSL's support for extended multiplication: gpuweb/gpuweb#1565.

To work around this limitation, we should provide patterns to rewrite spirv.*MulExtended in terms of regular multiplication. We need both the Signed and Unsigned variants, because the former is used in TosaToArith while the latter in wide integer emulation.

Metadata

Metadata

Assignees

Labels

enhancementImproving things as opposed to bug fixing, e.g. new or missing featuremlir:spirv

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions