[llvm] Reland "[bazel][mlir][python] Port #155741: stub auto-generation" (PR #159940)

Alex Trotta via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 20 12:14:30 PDT 2025


https://github.com/Ahajha updated https://github.com/llvm/llvm-project/pull/159940

>From 2e0f8942e01c726213796a3d53636b577e761247 Mon Sep 17 00:00:00 2001
From: Alex Trotta <ahajha at gmail.com>
Date: Sat, 20 Sep 2025 15:14:16 -0400
Subject: [PATCH] Remove bazel targets

---
 utils/bazel/WORKSPACE                             |  6 +++---
 .../llvm-project-overlay/mlir/python/BUILD.bazel  | 15 ---------------
 2 files changed, 3 insertions(+), 18 deletions(-)

diff --git a/utils/bazel/WORKSPACE b/utils/bazel/WORKSPACE
index 00cfea572096a..cb6dfa3a01cfa 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 = "bb35deaed7efac5029ed1e33880a415638352f757d49207a8e6013fefb6c49a7",
-    strip_prefix = "nanobind-2.4.0",
-    url = "https://github.com/wjakob/nanobind/archive/refs/tags/v2.4.0.tar.gz",
+    sha256 = "8ce3667dce3e64fc06bfb9b778b6f48731482362fb89a43da156632266cd5a90",
+    strip_prefix = "nanobind-2.9.2",
+    url = "https://github.com/wjakob/nanobind/archive/refs/tags/v2.9.2.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 a6e8c515f0874..3daf9290921e7 100644
--- a/utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel
+++ b/utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel
@@ -53,14 +53,6 @@ filegroup(
     ]),
 )
 
-filegroup(
-    name = "IRPyIFiles",
-    srcs = [
-        "mlir/_mlir_libs/_mlir/__init__.pyi",
-        "mlir/_mlir_libs/_mlir/ir.pyi",
-    ],
-)
-
 filegroup(
     name = "MlirLibsPyFiles",
     srcs = [
@@ -75,13 +67,6 @@ filegroup(
     ],
 )
 
-filegroup(
-    name = "PassManagerPyIFiles",
-    srcs = [
-        "mlir/_mlir_libs/_mlir/passmanager.pyi",
-    ],
-)
-
 filegroup(
     name = "RewritePyFiles",
     srcs = [



More information about the llvm-commits mailing list