2020-06-12 08:47:14 +08:00
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// This file is licensed 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
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#include "npcomp/InitAll.h"
|
|
|
|
|
2021-02-23 04:08:17 +08:00
|
|
|
#include "mlir/IR/Dialect.h"
|
|
|
|
#include "npcomp/Conversion/Passes.h"
|
2020-10-23 05:13:26 +08:00
|
|
|
#include "npcomp/Dialect/ATen/IR/ATenDialect.h"
|
2020-10-23 08:12:01 +08:00
|
|
|
#include "npcomp/Dialect/ATen/Transforms/Passes.h"
|
2020-06-12 08:47:14 +08:00
|
|
|
#include "npcomp/Dialect/Basicpy/IR/BasicpyDialect.h"
|
|
|
|
#include "npcomp/Dialect/Basicpy/Transforms/Passes.h"
|
|
|
|
#include "npcomp/Dialect/Numpy/IR/NumpyDialect.h"
|
2020-07-09 13:51:54 +08:00
|
|
|
#include "npcomp/Dialect/Numpy/Transforms/Passes.h"
|
2020-10-08 08:30:10 +08:00
|
|
|
#include "npcomp/Dialect/Refback/IR/RefbackDialect.h"
|
|
|
|
#include "npcomp/Dialect/Refbackrt/IR/RefbackrtDialect.h"
|
2020-06-12 08:47:14 +08:00
|
|
|
#include "npcomp/Dialect/TCF/IR/TCFDialect.h"
|
2020-07-11 12:51:03 +08:00
|
|
|
#include "npcomp/Dialect/TCF/Transforms/Passes.h"
|
2020-06-12 08:47:14 +08:00
|
|
|
#include "npcomp/Dialect/TCP/IR/TCPDialect.h"
|
2020-10-16 03:26:21 +08:00
|
|
|
#include "npcomp/Dialect/TCP/Transforms/Passes.h"
|
2020-09-29 03:02:35 +08:00
|
|
|
#include "npcomp/Dialect/Torch/IR/TorchDialect.h"
|
2021-02-18 03:28:51 +08:00
|
|
|
#include "npcomp/Dialect/Torch/Transforms/Passes.h"
|
2020-10-07 07:14:37 +08:00
|
|
|
#include "npcomp/RefBackend/RefBackend.h"
|
2021-02-23 04:08:17 +08:00
|
|
|
#include "npcomp/Typing/Transforms/Passes.h"
|
2020-06-12 08:47:14 +08:00
|
|
|
|
2020-08-28 06:09:10 +08:00
|
|
|
void mlir::NPCOMP::registerAllDialects(mlir::DialectRegistry ®istry) {
|
|
|
|
// clang-format off
|
|
|
|
registry.insert<mlir::NPCOMP::aten::ATenDialect,
|
|
|
|
Basicpy::BasicpyDialect,
|
|
|
|
Numpy::NumpyDialect,
|
2020-10-08 08:12:52 +08:00
|
|
|
refbackrt::RefbackrtDialect,
|
2020-10-08 08:30:10 +08:00
|
|
|
refback::RefbackDialect,
|
2020-08-28 06:09:10 +08:00
|
|
|
tcf::TCFDialect,
|
2020-09-29 03:02:35 +08:00
|
|
|
tcp::TCPDialect,
|
|
|
|
mlir::NPCOMP::Torch::TorchDialect>();
|
2020-08-28 06:09:10 +08:00
|
|
|
// clang-format on
|
2020-06-12 08:47:14 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
void mlir::NPCOMP::registerAllPasses() {
|
2020-10-23 08:12:01 +08:00
|
|
|
mlir::NPCOMP::registerATenPasses();
|
2020-10-07 07:14:37 +08:00
|
|
|
mlir::NPCOMP::registerRefBackendPasses();
|
2020-08-28 06:09:10 +08:00
|
|
|
mlir::NPCOMP::registerConversionPasses();
|
|
|
|
mlir::NPCOMP::registerBasicpyPasses();
|
|
|
|
mlir::NPCOMP::registerNumpyPasses();
|
|
|
|
mlir::NPCOMP::registerTCFPasses();
|
2020-10-16 03:26:21 +08:00
|
|
|
mlir::NPCOMP::registerTCPPasses();
|
2021-02-18 03:28:51 +08:00
|
|
|
mlir::NPCOMP::registerTorchPasses();
|
2020-08-28 06:09:10 +08:00
|
|
|
mlir::NPCOMP::registerTypingPasses();
|
2020-06-12 08:47:14 +08:00
|
|
|
}
|