My Project
ConvertStandardToSPIRVPass.h
Go to the documentation of this file.
1 //===- ConvertStandardToSPIRVPass.h - StdOps to SPIR-V pass -----*- C++ -*-===//
2 //
3 // Part of the MLIR 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 
21 std::unique_ptr<OpPassBase<ModuleOp>> createConvertStandardToSPIRVPass();
22 
24 std::unique_ptr<Pass> createLegalizeStdOpsForSPIRVLoweringPass();
25 
26 } // namespace mlir
27 
28 #endif // MLIR_CONVERSION_STANDARDTOSPIRV_CONVERTSTANDARDTOSPIRVPASS_H
Definition: InferTypeOpInterface.cpp:20
std::unique_ptr< Pass > createLegalizeStdOpsForSPIRVLoweringPass()
Pass to legalize ops that are not directly lowered to SPIR-V.
Definition: LegalizeStandardForSPIRV.cpp:176
std::unique_ptr< OpPassBase< ModuleOp > > createConvertStandardToSPIRVPass()
Pass to convert StandardOps to SPIR-V ops.
Definition: ConvertStandardToSPIRVPass.cpp:84