//===- Passes.h - Toy Passes Definition -----------------------------------===// // // Part of the MLIR Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This file exposes the entry points to create compiler passes for Toy. // //===----------------------------------------------------------------------===// #ifndef MLIR_TUTORIAL_TOY_PASSES_H #define MLIR_TUTORIAL_TOY_PASSES_H #include namespace mlir { class Pass; namespace toy { std::unique_ptr createDeadFunctionEliminationPass(); std::unique_ptr createShapeInferencePass(); /// Create a pass for lowering to operations in the `Affine` and `Std` dialects, /// for a subset of the Toy IR (e.g. matmul). std::unique_ptr createLowerToAffinePass(); } // end namespace toy } // end namespace mlir #endif // MLIR_TUTORIAL_TOY_PASSES_H