Fixes Windows DLL crash (#2321)

* explicit inliner extension

* fixed import formatting
pull/2322/head oneshot-20230719.118
AyaanShah2204 2023-07-18 19:12:46 -07:00 committed by GitHub
parent 3b56f97f6f
commit a308a54255
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@
#include "torch-mlir/InitAll.h"
#include "mlir/Dialect/Func/Extensions/InlinerExtension.h"
#include "mlir/Dialect/Func/IR/FuncOps.h"
#include "mlir/IR/Dialect.h"
#include "torch-mlir-dialects/Dialect/TMTensor/IR/TMTensorDialect.h"
@ -29,6 +30,7 @@ void mlir::torch::registerAllDialects(mlir::DialectRegistry &registry) {
registry.insert<mlir::torch::Torch::TorchDialect>();
registry.insert<mlir::torch::TorchConversion::TorchConversionDialect>();
registry.insert<mlir::torch::TMTensor::TMTensorDialect>();
mlir::func::registerInlinerExtension(registry);
}
void mlir::torch::registerAllPasses() {