mirror of https://github.com/llvm/torch-mlir
Fixes Windows DLL crash (#2321)
* explicit inliner extension * fixed import formattingpull/2322/head oneshot-20230719.118
parent
3b56f97f6f
commit
a308a54255
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
#include "torch-mlir/InitAll.h"
|
#include "torch-mlir/InitAll.h"
|
||||||
|
|
||||||
|
#include "mlir/Dialect/Func/Extensions/InlinerExtension.h"
|
||||||
#include "mlir/Dialect/Func/IR/FuncOps.h"
|
#include "mlir/Dialect/Func/IR/FuncOps.h"
|
||||||
#include "mlir/IR/Dialect.h"
|
#include "mlir/IR/Dialect.h"
|
||||||
#include "torch-mlir-dialects/Dialect/TMTensor/IR/TMTensorDialect.h"
|
#include "torch-mlir-dialects/Dialect/TMTensor/IR/TMTensorDialect.h"
|
||||||
|
@ -29,6 +30,7 @@ void mlir::torch::registerAllDialects(mlir::DialectRegistry ®istry) {
|
||||||
registry.insert<mlir::torch::Torch::TorchDialect>();
|
registry.insert<mlir::torch::Torch::TorchDialect>();
|
||||||
registry.insert<mlir::torch::TorchConversion::TorchConversionDialect>();
|
registry.insert<mlir::torch::TorchConversion::TorchConversionDialect>();
|
||||||
registry.insert<mlir::torch::TMTensor::TMTensorDialect>();
|
registry.insert<mlir::torch::TMTensor::TMTensorDialect>();
|
||||||
|
mlir::func::registerInlinerExtension(registry);
|
||||||
}
|
}
|
||||||
|
|
||||||
void mlir::torch::registerAllPasses() {
|
void mlir::torch::registerAllPasses() {
|
||||||
|
|
Loading…
Reference in New Issue