//===----------------------------------------------------------------------===// // // 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" #include "iree-dialects/Dialect/IREE/IREEDialect.h" #include "mlir/IR/Dialect.h" #include "npcomp/Backend/Common/Passes.h" #include "npcomp/Backend/IREE/Passes.h" #include "npcomp/Conversion/Passes.h" #include "npcomp/Dialect/Refback/IR/RefbackDialect.h" #include "npcomp/Dialect/Refbackrt/IR/RefbackrtDialect.h" #include "npcomp/Dialect/TorchConversion/IR/TorchConversionDialect.h" #include "npcomp/Dialect/TorchConversion/Transforms/Passes.h" #include "npcomp/RefBackend/RefBackend.h" void mlir::NPCOMP::registerAllDialects(mlir::DialectRegistry ®istry) { // clang-format off registry.insert(); // clang-format on } void mlir::NPCOMP::registerAllPasses() { mlir::NPCOMP::registerRefBackendPasses(); mlir::NPCOMP::registerConversionPasses(); mlir::NPCOMP::registerTorchConversionPasses(); mlir::NPCOMP::IREEBackend::registerIREEBackendPasses(); mlir::NPCOMP::CommonBackend::registerCommonBackendPasses(); }