1 //===- TensorToLinalgPass.h - Tensor to Linalg Passes --------*- 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 passes to convert Tensor dialect to Linalg dialect. 10 // 11 //===----------------------------------------------------------------------===// 12 13 #ifndef MLIR_CONVERSION_TENSORTOLINALG_TENSORTOLINALGPASS_H 14 #define MLIR_CONVERSION_TENSORTOLINALG_TENSORTOLINALGPASS_H 15 16 #include "mlir/Pass/Pass.h" 17 18 namespace mlir { 19 class ModuleOp; 20 21 /// Creates a pass to convert Tensor ops to Linalg ops. 22 std::unique_ptr<OperationPass<ModuleOp>> createConvertTensorToLinalgPass(); 23 24 } // namespace mlir 25 26 #endif // MLIR_CONVERSION_TENSORTOLINALG_TENSORTOLINALGPASS_H 27