2020-07-09 13:51:54 +08:00
|
|
|
//===------------------------------------------------------------*- 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();
|
2021-04-03 03:02:43 +08:00
|
|
|
std::unique_ptr<OperationPass<FuncOp>> createArrayToTensorPass();
|
2021-04-07 06:23:14 +08:00
|
|
|
std::unique_ptr<OperationPass<ModuleOp>> createRefinePublicReturnPass();
|
2020-07-09 13:51:54 +08:00
|
|
|
|
|
|
|
} // namespace Numpy
|
2020-08-28 06:09:10 +08:00
|
|
|
|
|
|
|
/// Registers all Numpy transformation passes.
|
|
|
|
void registerNumpyPasses();
|
|
|
|
|
2020-07-09 13:51:54 +08:00
|
|
|
} // namespace NPCOMP
|
|
|
|
} // namespace mlir
|
|
|
|
|
|
|
|
#endif // NPCOMP_DIALECT_NUMPY_TRANSFORMS_PASSES_H
|