torch-mlir/include/npcomp/Dialect/Numpy/Transforms/Passes.h

33 lines
982 B
C
Raw Normal View History

//===------------------------------------------------------------*- C++ -*-===//
//
// Part of the LLVM 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
//
//===----------------------------------------------------------------------===//
#ifndef NPCOMP_DIALECT_NUMPY_TRANSFORMS_PASSES_H
#define NPCOMP_DIALECT_NUMPY_TRANSFORMS_PASSES_H
#include "mlir/Pass/Pass.h"
#include <memory>
namespace mlir {
namespace NPCOMP {
namespace Numpy {
std::unique_ptr<OperationPass<ModuleOp>> createPublicFunctionsToTensorPass();
std::unique_ptr<OperationPass<FuncOp>> createArrayToTensorPass();
std::unique_ptr<OperationPass<ModuleOp>> createRefinePublicReturnPass();
} // namespace Numpy
/// Registers all Numpy transformation passes.
void registerNumpyPasses();
} // namespace NPCOMP
} // namespace mlir
#endif // NPCOMP_DIALECT_NUMPY_TRANSFORMS_PASSES_H