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() {