From a308a542552d025b36ab67977b108ad954fb57e0 Mon Sep 17 00:00:00 2001 From: AyaanShah2204 <89650087+AyaanShah2204@users.noreply.github.com> Date: Tue, 18 Jul 2023 19:12:46 -0700 Subject: [PATCH] Fixes Windows DLL crash (#2321) * explicit inliner extension * fixed import formatting --- lib/InitAll.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/InitAll.cpp b/lib/InitAll.cpp index 43b45d32eaff..88bceb013117 100644 --- a/lib/InitAll.cpp +++ b/lib/InitAll.cpp @@ -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 ®istry) { registry.insert(); registry.insert(); registry.insert(); + mlir::func::registerInlinerExtension(registry); } void mlir::torch::registerAllPasses() {