1 //===-- TosaToTensor.h - TOSA to Tensor legalization ------------*- 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 declares the passes for the TOSA to Standard Dialect conversion. 10 // 11 //===----------------------------------------------------------------------===// 12 13 #ifndef MLIR_CONVERSION_TOSATOTENSOR_TOSATOTENSOR_H 14 #define MLIR_CONVERSION_TOSATOTENSOR_TOSATOTENSOR_H 15 16 #include "mlir/Pass/Pass.h" 17 18 namespace mlir { 19 class TypeConverter; 20 21 #define GEN_PASS_DECL_TOSATOTENSOR 22 #include "mlir/Conversion/Passes.h.inc" 23 24 namespace tosa { 25 26 std::unique_ptr<Pass> createTosaToTensor(); 27 28 void populateTosaToTensorConversionPatterns(const TypeConverter &converter, 29 RewritePatternSet *patterns); 30 31 } // namespace tosa 32 } // namespace mlir 33 34 #endif // MLIR_CONVERSION_TOSATOTENSOR_TOSATOTENSOR_H 35