Skip to content

Commit 46d8fdd

Browse files
authored
[bazel][mlir][python] Port llvm#155741: stub auto-generation (llvm#157173)
* Nanobind >= 2.9 is required now. Use 2.9.2 * Remove pyi filegroups that now refer to deleted files
1 parent 9d57382 commit 46d8fdd

File tree

2 files changed

+3
-39
lines changed

2 files changed

+3
-39
lines changed

utils/bazel/WORKSPACE

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -186,9 +186,9 @@ maybe(
186186
http_archive,
187187
name = "nanobind",
188188
build_file = "@llvm-raw//utils/bazel/third_party_build:nanobind.BUILD",
189-
sha256 = "bb35deaed7efac5029ed1e33880a415638352f757d49207a8e6013fefb6c49a7",
190-
strip_prefix = "nanobind-2.4.0",
191-
url = "https://github.com/wjakob/nanobind/archive/refs/tags/v2.4.0.tar.gz",
189+
sha256 = "8ce3667dce3e64fc06bfb9b778b6f48731482362fb89a43da156632266cd5a90",
190+
strip_prefix = "nanobind-2.9.2",
191+
url = "https://github.com/wjakob/nanobind/archive/refs/tags/v2.9.2.tar.gz",
192192
)
193193

194194
load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")

utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,6 @@ filegroup(
3232
],
3333
)
3434

35-
filegroup(
36-
name = "ExecutionEnginePyIFiles",
37-
srcs = [
38-
"mlir/_mlir_libs/_mlirExecutionEngine.pyi",
39-
],
40-
)
41-
4235
filegroup(
4336
name = "IRPyFiles",
4437
srcs = [
@@ -53,14 +46,6 @@ filegroup(
5346
]),
5447
)
5548

56-
filegroup(
57-
name = "IRPyIFiles",
58-
srcs = [
59-
"mlir/_mlir_libs/_mlir/__init__.pyi",
60-
"mlir/_mlir_libs/_mlir/ir.pyi",
61-
],
62-
)
63-
6449
filegroup(
6550
name = "MlirLibsPyFiles",
6651
srcs = [
@@ -75,13 +60,6 @@ filegroup(
7560
],
7661
)
7762

78-
filegroup(
79-
name = "PassManagerPyIFiles",
80-
srcs = [
81-
"mlir/_mlir_libs/_mlir/passmanager.pyi",
82-
],
83-
)
84-
8563
filegroup(
8664
name = "RewritePyFiles",
8765
srcs = [
@@ -659,13 +637,6 @@ gentbl_filegroup(
659637
],
660638
)
661639

662-
filegroup(
663-
name = "PDLPyIFiles",
664-
srcs = [
665-
"mlir/_mlir_libs/_mlir/dialects/pdl.pyi",
666-
],
667-
)
668-
669640
filegroup(
670641
name = "PDLPyFiles",
671642
srcs = [
@@ -756,13 +727,6 @@ filegroup(
756727
# Quant dialect.
757728
##---------------------------------------------------------------------------##
758729

759-
filegroup(
760-
name = "QuantPyIFiles",
761-
srcs = [
762-
"mlir/_mlir_libs/_mlir/dialects/quant.pyi",
763-
],
764-
)
765-
766730
filegroup(
767731
name = "QuantPyFiles",
768732
srcs = [

0 commit comments

Comments
 (0)