mirror of https://github.com/llvm/torch-mlir
32 lines
1.2 KiB
C++
32 lines
1.2 KiB
C++
//===----------------------------------------------------------------------===//
|
|
//
|
|
// 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
|
|
// Also available under a BSD-style license. See LICENSE.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#include "torch-mlir/InitAll.h"
|
|
|
|
#include "mlir/IR/Dialect.h"
|
|
#include "torch-mlir/Conversion/Passes.h"
|
|
#include "torch-mlir/Dialect/Torch/IR/TorchDialect.h"
|
|
#include "torch-mlir/Dialect/Torch/Transforms/Passes.h"
|
|
#include "torch-mlir/Dialect/TorchConversion/IR/TorchConversionDialect.h"
|
|
#include "torch-mlir/Dialect/TorchConversion/Transforms/Passes.h"
|
|
#include "torch-mlir/RefBackend/Passes.h"
|
|
|
|
void mlir::torch::registerAllDialects(mlir::DialectRegistry ®istry) {
|
|
registry.insert<mlir::torch::Torch::TorchDialect>();
|
|
registry.insert<mlir::torch::TorchConversion::TorchConversionDialect>();
|
|
}
|
|
|
|
void mlir::torch::registerAllPasses() {
|
|
mlir::torch::registerTorchPasses();
|
|
mlir::torch::registerTorchConversionPasses();
|
|
|
|
mlir::torch::registerConversionPasses();
|
|
mlir::torch::RefBackend::registerRefBackendPasses();
|
|
}
|