MLIR  19.0.0git
SPIRVWebGPUTransforms.h
Go to the documentation of this file.
1 //===- SPIRVWebGPUTransforms.h - WebGPU-specific Transforms -*- C++ -----*-===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // Defines SPIR-V transforms used when targetting WebGPU.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef MLIR_DIALECT_SPIRV_TRANSFORMS_SPIRV_WEBGPU_TRANSFORMS_H
14 #define MLIR_DIALECT_SPIRV_TRANSFORMS_SPIRV_WEBGPU_TRANSFORMS_H
15 
16 #include "mlir/IR/PatternMatch.h"
17 
18 namespace mlir {
19 namespace spirv {
20 
21 /// Appends to a pattern list additional patterns to expand extended
22 /// multiplication ops into regular arithmetic ops. Extended multiplication ops
23 /// are not supported by the WebGPU Shading Language (WGSL).
25  RewritePatternSet &patterns);
26 
27 } // namespace spirv
28 } // namespace mlir
29 
30 #endif // MLIR_DIALECT_SPIRV_TRANSFORMS_SPIRV_WEBGPU_TRANSFORMS_H
void populateSPIRVExpandExtendedMultiplicationPatterns(RewritePatternSet &patterns)
Appends to a pattern list additional patterns to expand extended multiplication ops into regular arit...
Include the generated interface declarations.