1 //===- LinalgToSPIRV.h - Linalg to SPIR-V dialect conversion ----*- 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 // This file provides patterns for Linalg to SPIR-V dialect conversion.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef MLIR_CONVERSION_LINALGTOSPIRV_LINALGTOSPIRV_H
14 #define MLIR_CONVERSION_LINALGTOSPIRV_LINALGTOSPIRV_H
15 
16 namespace mlir {
17 class MLIRContext;
18 class OwningRewritePatternList;
19 class SPIRVTypeConverter;
20 
21 /// Appends to a pattern list additional patterns for translating Linalg ops to
22 /// SPIR-V ops.
23 void populateLinalgToSPIRVPatterns(MLIRContext *context,
24                                    SPIRVTypeConverter &typeConverter,
25                                    OwningRewritePatternList &patterns);
26 
27 } // namespace mlir
28 
29 #endif // MLIR_CONVERSION_LINALGTOSPIRV_LINALGTOSPIRV_H
30