• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===- ConvertStandardToSPIRVPass.h - StdOps to SPIR-V pass -----*- 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 // Provides a pass to lower from StandardOps to SPIR-V dialect.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef MLIR_CONVERSION_STANDARDTOSPIRV_CONVERTSTANDARDTOSPIRVPASS_H
14 #define MLIR_CONVERSION_STANDARDTOSPIRV_CONVERTSTANDARDTOSPIRVPASS_H
15 
16 #include "mlir/Pass/Pass.h"
17 
18 namespace mlir {
19 
20 /// Pass to convert StandardOps to SPIR-V ops.
21 std::unique_ptr<OperationPass<ModuleOp>> createConvertStandardToSPIRVPass();
22 
23 /// Pass to legalize ops that are not directly lowered to SPIR-V.
24 std::unique_ptr<Pass> createLegalizeStdOpsForSPIRVLoweringPass();
25 
26 } // namespace mlir
27 
28 #endif // MLIR_CONVERSION_STANDARDTOSPIRV_CONVERTSTANDARDTOSPIRVPASS_H
29