1 //===-- TosaToSCF.h - TOSA to SCF dialect lowerings -------------*- 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 SCF Dialect conversion. 10 // 11 //===----------------------------------------------------------------------===// 12 13 #ifndef MLIR_CONVERSION_TOSATOSCF_TOSATOSCF_H 14 #define MLIR_CONVERSION_TOSATOSCF_TOSATOSCF_H 15 16 #include "mlir/Pass/Pass.h" 17 18 namespace mlir { 19 namespace tosa { 20 21 std::unique_ptr<Pass> createTosaToSCF(); 22 23 void populateTosaToSCFConversionPatterns(RewritePatternSet *patterns); 24 25 /// Populates passes to convert from TOSA to SCF. 26 void addTosaToSCFPasses(OpPassManager &pm); 27 28 } // namespace tosa 29 } // namespace mlir 30 31 #endif // MLIR_CONVERSION_TOSATOSCF_TOSATOSCF_H 32