[llvm] Revert "[bazel][mlir][python] Port #155741: stub auto-generation (#157173)" (PR #157995)

Alex Trotta via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 10 22:32:22 PDT 2025


https://github.com/Ahajha created https://github.com/llvm/llvm-project/pull/157995

This reverts commit 46d8fdd86ec79ba241b0db6c7fedc835902bc960.

The whole set of commits got reverted in https://github.com/llvm/llvm-project/pull/157831, reverting this one too.

>From 33df56c2add6c2c45e9ca7e4d7dd69f79e89107a Mon Sep 17 00:00:00 2001
From: Alex Trotta <ahajha at gmail.com>
Date: Thu, 11 Sep 2025 01:31:01 -0400
Subject: [PATCH] Revert "[bazel][mlir][python] Port #155741: stub
 auto-generation (#157173)"

This reverts commit 46d8fdd86ec79ba241b0db6c7fedc835902bc960.

The whole set of commits got reverted in https://github.com/llvm/llvm-project/pull/157831, reverting this one too.
---
 utils/bazel/WORKSPACE                         |  6 ++--
 .../mlir/python/BUILD.bazel                   | 36 +++++++++++++++++++
 2 files changed, 39 insertions(+), 3 deletions(-)

diff --git a/utils/bazel/WORKSPACE b/utils/bazel/WORKSPACE
index 20c0fd1f4c985..da69e1d7cf5a7 100644
--- a/utils/bazel/WORKSPACE
+++ b/utils/bazel/WORKSPACE
@@ -186,9 +186,9 @@ maybe(
     http_archive,
     name = "nanobind",
     build_file = "@llvm-raw//utils/bazel/third_party_build:nanobind.BUILD",
-    sha256 = "8ce3667dce3e64fc06bfb9b778b6f48731482362fb89a43da156632266cd5a90",
-    strip_prefix = "nanobind-2.9.2",
-    url = "https://github.com/wjakob/nanobind/archive/refs/tags/v2.9.2.tar.gz",
+    sha256 = "bb35deaed7efac5029ed1e33880a415638352f757d49207a8e6013fefb6c49a7",
+    strip_prefix = "nanobind-2.4.0",
+    url = "https://github.com/wjakob/nanobind/archive/refs/tags/v2.4.0.tar.gz",
 )
 
 load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")
diff --git a/utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel
index 944a911bccc17..016794d30b349 100644
--- a/utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel
@@ -32,6 +32,13 @@ filegroup(
     ],
 )
 
+filegroup(
+    name = "ExecutionEnginePyIFiles",
+    srcs = [
+        "mlir/_mlir_libs/_mlirExecutionEngine.pyi",
+    ],
+)
+
 filegroup(
     name = "IRPyFiles",
     srcs = [
@@ -46,6 +53,14 @@ filegroup(
     ]),
 )
 
+filegroup(
+    name = "IRPyIFiles",
+    srcs = [
+        "mlir/_mlir_libs/_mlir/__init__.pyi",
+        "mlir/_mlir_libs/_mlir/ir.pyi",
+    ],
+)
+
 filegroup(
     name = "MlirLibsPyFiles",
     srcs = [
@@ -60,6 +75,13 @@ filegroup(
     ],
 )
 
+filegroup(
+    name = "PassManagerPyIFiles",
+    srcs = [
+        "mlir/_mlir_libs/_mlir/passmanager.pyi",
+    ],
+)
+
 filegroup(
     name = "RewritePyFiles",
     srcs = [
@@ -637,6 +659,13 @@ gentbl_filegroup(
     ],
 )
 
+filegroup(
+    name = "PDLPyIFiles",
+    srcs = [
+        "mlir/_mlir_libs/_mlir/dialects/pdl.pyi",
+    ],
+)
+
 filegroup(
     name = "PDLPyFiles",
     srcs = [
@@ -727,6 +756,13 @@ filegroup(
 # Quant dialect.
 ##---------------------------------------------------------------------------##
 
+filegroup(
+    name = "QuantPyIFiles",
+    srcs = [
+        "mlir/_mlir_libs/_mlir/dialects/quant.pyi",
+    ],
+)
+
 filegroup(
     name = "QuantPyFiles",
     srcs = [



More information about the llvm-commits mailing list