Skip to content

Commit

Permalink
Fixes Windows DLL crash (#2321)
Browse files Browse the repository at this point in the history
* explicit inliner extension

* fixed import formatting
  • Loading branch information
AyaanShah2204 authored Jul 19, 2023
1 parent 3b56f97 commit a308a54
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/InitAll.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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() {
Expand Down

0 comments on commit a308a54

Please sign in to comment.