Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions projects/mlir-python-bindings/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ CMAKE_PREFIX_PATH = { env = "CMAKE_PREFIX_PATH", default = "" }
# Non-optional
CMAKE_BUILD_TYPE = { env = "CMAKE_BUILD_TYPE", default = "Release" }
MLIR_ENABLE_BINDINGS_PYTHON = "ON"
MLIR_BINDINGS_PYTHON_NB_DOMAIN = "mlir"

[tool.cibuildwheel]
enable = "cpython-prerelease cpython-freethreading"
Expand Down
7 changes: 7 additions & 0 deletions projects/mlir-python-bindings/smoketest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# RUN: %python %s nanobind | FileCheck %s




from mlir.ir import *
from mlir_standalone.ir import *
2 changes: 1 addition & 1 deletion third_party/llvm-project
Submodule llvm-project updated 76 files
+13 −6 lldb/tools/lldb-dap/Handler/RequestHandler.h
+129 −126 lldb/tools/lldb-dap/Handler/StackTraceRequestHandler.cpp
+158 −0 lldb/tools/lldb-dap/JSONUtils.cpp
+50 −0 lldb/tools/lldb-dap/JSONUtils.h
+2 −3 lldb/tools/lldb-dap/LLDBUtils.cpp
+1 −1 lldb/tools/lldb-dap/LLDBUtils.h
+0 −18 lldb/tools/lldb-dap/Protocol/ProtocolRequests.cpp
+0 −38 lldb/tools/lldb-dap/Protocol/ProtocolRequests.h
+0 −56 lldb/tools/lldb-dap/Protocol/ProtocolTypes.cpp
+0 −89 lldb/tools/lldb-dap/Protocol/ProtocolTypes.h
+0 −68 lldb/unittests/DAP/ProtocolRequestsTest.cpp
+0 −86 lldb/unittests/DAP/ProtocolTypesTest.cpp
+6 −17 llvm/include/llvm/Analysis/MemoryProfileInfo.h
+0 −6 llvm/include/llvm/IR/Instruction.h
+0 −6 llvm/include/llvm/IR/IntrinsicInst.h
+20 −43 llvm/lib/Analysis/MemoryProfileInfo.cpp
+3 −1 llvm/lib/Analysis/VectorUtils.cpp
+0 −7 llvm/lib/IR/Instruction.cpp
+13 −1 llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
+30 −74 llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+2 −5 llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+0 −22 llvm/lib/Transforms/Vectorize/VPlanUtils.cpp
+1 −72 llvm/test/Transforms/LoopVectorize/multiple-result-intrinsics.ll
+16 −19 llvm/test/Transforms/LoopVectorize/struct-return.ll
+2 −2 llvm/test/Transforms/PGOProfile/memprof.ll
+3 −3 llvm/test/Transforms/SLPVectorizer/AArch64/shuffle-vectors-mask-size.ll
+5 −6 llvm/test/Transforms/SLPVectorizer/X86/bv-root-part-of-graph.ll
+14 −8 llvm/test/Transforms/SLPVectorizer/X86/crash_smallpt.ll
+15 −20 llvm/test/Transforms/SLPVectorizer/X86/entry-no-bundle-but-extra-use-on-vec.ll
+2 −1 llvm/test/Transforms/SLPVectorizer/X86/extractelement-single-use-many-nodes.ll
+6 −9 llvm/test/Transforms/SLPVectorizer/X86/multi-node-for-copyable-parent.ll
+9 −10 llvm/test/Transforms/SLPVectorizer/X86/multi-node-user-with-copyable-ops.ll
+7 −5 llvm/test/Transforms/SLPVectorizer/X86/non-commutative-op-in-commutative-inst.ll
+0 −61 llvm/test/Transforms/SLPVectorizer/X86/non-schedulable-recalculate-deps.ll
+0 −89 llvm/test/Transforms/SLPVectorizer/X86/non-schedulable-with-copyable-op.ll
+2 −2 llvm/test/Transforms/SLPVectorizer/X86/propagate-mmra.ll
+20 −4 llvm/test/Transforms/SLPVectorizer/X86/reused-last-instruction-in-split-node.ll
+1 −1 llvm/test/Transforms/SLPVectorizer/X86/same-operands-but-copyable.ll
+26 −18 llvm/test/Transforms/SLPVectorizer/X86/user-with-multi-copyable-ops.ll
+102 −26 llvm/test/Transforms/SLPVectorizer/X86/vect_copyable_in_binops.ll
+5 −6 llvm/test/Transforms/SLPVectorizer/alternate-non-profitable.ll
+46 −92 llvm/test/Transforms/SLPVectorizer/crash_exceed_scheduling.ll
+38 −34 llvm/test/Transforms/SLPVectorizer/extract-many-users-buildvector.ll
+20 −20 llvm/test/Transforms/SLPVectorizer/insertelement-postpone.ll
+186 −31 mlir/cmake/modules/AddMLIRPython.cmake
+7 −0 mlir/docs/Bindings/Python.md
+3 −0 mlir/examples/standalone/CMakeLists.txt
+7 −0 mlir/examples/standalone/include/Standalone-c/Dialects.h
+13 −0 mlir/examples/standalone/lib/CAPI/Dialects.cpp
+3 −0 mlir/examples/standalone/pyproject.toml
+27 −0 mlir/examples/standalone/python/StandaloneExtensionNanobind.cpp
+5 −7 mlir/examples/standalone/test/lit.cfg.py
+9 −1 mlir/examples/standalone/test/python/smoketest.py
+2 −0 mlir/include/mlir-c/Support.h
+7 −9 mlir/include/mlir/Bindings/Python/Globals.h
+834 −102 mlir/include/mlir/Bindings/Python/IRCore.h
+6 −3 mlir/include/mlir/Bindings/Python/IRTypes.h
+0 −0 mlir/include/mlir/Bindings/Python/NanobindUtils.h
+1 −1 mlir/lib/Bindings/Python/DialectSMT.cpp
+16 −4 mlir/lib/Bindings/Python/Globals.cpp
+30 −10 mlir/lib/Bindings/Python/IRAffine.cpp
+16 −14 mlir/lib/Bindings/Python/IRAttributes.cpp
+395 −3,237 mlir/lib/Bindings/Python/IRCore.cpp
+3 −3 mlir/lib/Bindings/Python/IRInterfaces.cpp
+25 −17 mlir/lib/Bindings/Python/IRTypes.cpp
+2,341 −4 mlir/lib/Bindings/Python/MainModule.cpp
+28 −15 mlir/lib/Bindings/Python/Pass.cpp
+3 −2 mlir/lib/Bindings/Python/Pass.h
+21 −47 mlir/lib/Bindings/Python/Rewrite.cpp
+3 −3 mlir/lib/Bindings/Python/Rewrite.h
+12 −10 mlir/python/CMakeLists.txt
+1 −0 mlir/test/Examples/standalone/test.toy
+5 −2 mlir/test/Examples/standalone/test.wheel.toy
+24 −12 mlir/test/python/dialects/python_test.py
+46 −24 mlir/test/python/lib/PythonTestModuleNanobind.cpp
+1 −1 utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
Loading