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
86 changes: 85 additions & 1 deletion .ci/all_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,50 @@ ml-dtypes==0.5.1 ; python_version < "3.13" \
--hash=sha256:d13755f8e8445b3870114e5b6240facaa7cb0c3361e54beba3e07fa912a6e12b \
--hash=sha256:fd918d4e6a4e0c110e2e05be7a7814d10dc1b95872accbf6512b80a109b71ae1
# via -r mlir/python/requirements.txt
mypy==1.18.2 \
--hash=sha256:01199871b6110a2ce984bde85acd481232d17413868c9807e95c1b0739a58914 \
--hash=sha256:030c52d0ea8144e721e49b1f68391e39553d7451f0c3f8a7565b59e19fcb608b \
--hash=sha256:06a398102a5f203d7477b2923dda3634c36727fa5c237d8f859ef90c42a9924b \
--hash=sha256:07b8b0f580ca6d289e69209ec9d3911b4a26e5abfde32228a288eb79df129fcc \
--hash=sha256:0e2785a84b34a72ba55fb5daf079a1003a34c05b22238da94fcae2bbe46f3544 \
--hash=sha256:1331eb7fd110d60c24999893320967594ff84c38ac6d19e0a76c5fd809a84c86 \
--hash=sha256:1379451880512ffce14505493bd9fe469e0697543717298242574882cf8cdb8d \
--hash=sha256:20c02215a080e3a2be3aa50506c67242df1c151eaba0dcbc1e4e557922a26075 \
--hash=sha256:22a1748707dd62b58d2ae53562ffc4d7f8bcc727e8ac7cbc69c053ddc874d47e \
--hash=sha256:22f27105f1525ec024b5c630c0b9f36d5c1cc4d447d61fe51ff4bd60633f47ac \
--hash=sha256:25a9c8fb67b00599f839cf472713f54249a62efd53a54b565eb61956a7e3296b \
--hash=sha256:33eca32dd124b29400c31d7cf784e795b050ace0e1f91b8dc035672725617e34 \
--hash=sha256:3ca30b50a51e7ba93b00422e486cbb124f1c56a535e20eff7b2d6ab72b3b2e37 \
--hash=sha256:448acd386266989ef11662ce3c8011fd2a7b632e0ec7d61a98edd8e27472225b \
--hash=sha256:592ec214750bc00741af1f80cbf96b5013d81486b7bb24cb052382c19e40b428 \
--hash=sha256:5d6c838e831a062f5f29d11c9057c6009f60cb294fea33a98422688181fe2893 \
--hash=sha256:62f0e1e988ad41c2a110edde6c398383a889d95b36b3e60bcf155f5164c4fdce \
--hash=sha256:664dc726e67fa54e14536f6e1224bcfce1d9e5ac02426d2326e2bb4e081d1ce8 \
--hash=sha256:6ca1e64b24a700ab5ce10133f7ccd956a04715463d30498e64ea8715236f9c9c \
--hash=sha256:749b5f83198f1ca64345603118a6f01a4e99ad4bf9d103ddc5a3200cc4614adf \
--hash=sha256:776bb00de1778caf4db739c6e83919c1d85a448f71979b6a0edd774ea8399341 \
--hash=sha256:7a780ca61fc239e4865968ebc5240bb3bf610ef59ac398de9a7421b54e4a207e \
--hash=sha256:7ab28cc197f1dd77a67e1c6f35cd1f8e8b73ed2217e4fc005f9e6a504e46e7ba \
--hash=sha256:7fb95f97199ea11769ebe3638c29b550b5221e997c63b14ef93d2e971606ebed \
--hash=sha256:807d9315ab9d464125aa9fcf6d84fde6e1dc67da0b6f80e7405506b8ac72bc7f \
--hash=sha256:8795a039bab805ff0c1dfdb8cd3344642c2b99b8e439d057aba30850b8d3423d \
--hash=sha256:a2afc0fa0b0e91b4599ddfe0f91e2c26c2b5a5ab263737e998d6817874c5f7c8 \
--hash=sha256:a3c47adf30d65e89b2dcd2fa32f3aeb5e94ca970d2c15fcb25e297871c8e4764 \
--hash=sha256:a431a6f1ef14cf8c144c6b14793a23ec4eae3db28277c358136e79d7d062f62d \
--hash=sha256:aa5e07ac1a60a253445797e42b8b2963c9675563a94f11291ab40718b016a7a0 \
--hash=sha256:c1eab0cf6294dafe397c261a75f96dc2c31bffe3b944faa24db5def4e2b0f77c \
--hash=sha256:c2b9c7e284ee20e7598d6f42e13ca40b4928e6957ed6813d1ab6348aa3f47133 \
--hash=sha256:c3ad2afadd1e9fea5cf99a45a822346971ede8685cc581ed9cd4d42eaf940986 \
--hash=sha256:d6985ed057513e344e43a26cc1cd815c7a94602fb6a3130a34798625bc2f07b6 \
--hash=sha256:d8068d0afe682c7c4897c0f7ce84ea77f6de953262b12d07038f4d296d547074 \
--hash=sha256:d924eef3795cc89fecf6bedc6ed32b33ac13e8321344f6ddbf8ee89f706c05cb \
--hash=sha256:ed4482847168439651d3feee5833ccedbf6657e964572706a2adb1f7fa4dfe2e \
--hash=sha256:f9e171c465ad3901dc652643ee4bffa8e9fef4d7d0eece23b428908c77a76a66
# via -r mlir/python/requirements.txt
mypy-extensions==1.1.0 \
--hash=sha256:1be4cccdb0f2482337c4743e60421de3a356cd97508abadd57d47403e94f5505 \
--hash=sha256:52e68efc3284861e772bbcd66823fde5ae21fd2fdb51c62a211403730b916558
# via mypy
numpy==2.0.2 \
--hash=sha256:0123ffdaa88fa4ab64835dcbde75dcdf89c453c922f18dced6e27c90d1d0ec5a \
--hash=sha256:11a76c372d1d37437857280aa142086476136a8c0f373b2e648ab2c8f18fb195 \
Expand Down Expand Up @@ -247,6 +291,10 @@ packaging==25.0 \
--hash=sha256:29572ef2b1f17581046b3a2227d5c611fb25ec70ca1ba8554b24b0e69331a484 \
--hash=sha256:d443872c98d677bf60f6a1f2f8c1cb748e8fe762d2bf9d3148b5599295b0fc4f
# via -r lldb/test/requirements.txt
pathspec==0.12.1 \
--hash=sha256:a0d503e138a4c123b27490a4f7beda6a01c6f288df0e4a8b79c7eb0dc7b4cc08 \
--hash=sha256:a482d51503a1ab33b1c67a6c3813a26953dbdc71c31dacaef9a838c4e29f5712
# via mypy
pexpect==4.9.0 ; sys_platform != "win32" \
--hash=sha256:7236d1e080e4936be2dc3e326cec0af72acf9212a7e1d060210e70a47e253523 \
--hash=sha256:ee7d41123f3c9911050ea2c2dac107568dc43b2d3b0c7557a33212c398ead30f
Expand Down Expand Up @@ -375,10 +423,46 @@ swig==4.3.1 \
--hash=sha256:efec16327029f682f649a26da726bb0305be8800bd0f1fa3e81bf0769cf5b476 \
--hash=sha256:fc496c0d600cf1bb2d91e28d3d6eae9c4301e5ea7a0dec5a4281b5efed4245a8
# via -r lldb/test/requirements.txt
tomli==2.2.1 \
--hash=sha256:023aa114dd824ade0100497eb2318602af309e5a55595f76b626d6d9f3b7b0a6 \
--hash=sha256:02abe224de6ae62c19f090f68da4e27b10af2b93213d36cf44e6e1c5abd19fdd \
--hash=sha256:286f0ca2ffeeb5b9bd4fcc8d6c330534323ec51b2f52da063b11c502da16f30c \
--hash=sha256:2d0f2fdd22b02c6d81637a3c95f8cd77f995846af7414c5c4b8d0545afa1bc4b \
--hash=sha256:33580bccab0338d00994d7f16f4c4ec25b776af3ffaac1ed74e0b3fc95e885a8 \
--hash=sha256:400e720fe168c0f8521520190686ef8ef033fb19fc493da09779e592861b78c6 \
--hash=sha256:40741994320b232529c802f8bc86da4e1aa9f413db394617b9a256ae0f9a7f77 \
--hash=sha256:465af0e0875402f1d226519c9904f37254b3045fc5084697cefb9bdde1ff99ff \
--hash=sha256:4a8f6e44de52d5e6c657c9fe83b562f5f4256d8ebbfe4ff922c495620a7f6cea \
--hash=sha256:4e340144ad7ae1533cb897d406382b4b6fede8890a03738ff1683af800d54192 \
--hash=sha256:678e4fa69e4575eb77d103de3df8a895e1591b48e740211bd1067378c69e8249 \
--hash=sha256:6972ca9c9cc9f0acaa56a8ca1ff51e7af152a9f87fb64623e31d5c83700080ee \
--hash=sha256:7fc04e92e1d624a4a63c76474610238576942d6b8950a2d7f908a340494e67e4 \
--hash=sha256:889f80ef92701b9dbb224e49ec87c645ce5df3fa2cc548664eb8a25e03127a98 \
--hash=sha256:8d57ca8095a641b8237d5b079147646153d22552f1c637fd3ba7f4b0b29167a8 \
--hash=sha256:8dd28b3e155b80f4d54beb40a441d366adcfe740969820caf156c019fb5c7ec4 \
--hash=sha256:9316dc65bed1684c9a98ee68759ceaed29d229e985297003e494aa825ebb0281 \
--hash=sha256:a198f10c4d1b1375d7687bc25294306e551bf1abfa4eace6650070a5c1ae2744 \
--hash=sha256:a38aa0308e754b0e3c67e344754dff64999ff9b513e691d0e786265c93583c69 \
--hash=sha256:a92ef1a44547e894e2a17d24e7557a5e85a9e1d0048b0b5e7541f76c5032cb13 \
--hash=sha256:ac065718db92ca818f8d6141b5f66369833d4a80a9d74435a268c52bdfa73140 \
--hash=sha256:b82ebccc8c8a36f2094e969560a1b836758481f3dc360ce9a3277c65f374285e \
--hash=sha256:c954d2250168d28797dd4e3ac5cf812a406cd5a92674ee4c8f123c889786aa8e \
--hash=sha256:cb55c73c5f4408779d0cf3eef9f762b9c9f147a77de7b258bef0a5628adc85cc \
--hash=sha256:cd45e1dc79c835ce60f7404ec8119f2eb06d38b1deba146f07ced3bbc44505ff \
--hash=sha256:d3f5614314d758649ab2ab3a62d4f2004c825922f9e370b29416484086b264ec \
--hash=sha256:d920f33822747519673ee656a4b6ac33e382eca9d331c87770faa3eef562aeb2 \
--hash=sha256:db2b95f9de79181805df90bedc5a5ab4c165e6ec3fe99f970d0e302f384ad222 \
--hash=sha256:e59e304978767a54663af13c07b3d1af22ddee3bb2fb0618ca1593e4f593a106 \
--hash=sha256:e85e99945e688e32d5a35c1ff38ed0b3f41f43fad8df0bdf79f72b2ba7bc5272 \
--hash=sha256:ece47d672db52ac607a3d9599a9d48dcb2f2f735c6c2d1f34130085bb12b112a \
--hash=sha256:f4039b9cbc3048b2416cc57ab3bda989a6fcf9b36cf8937f01a6e731b64f80d7
# via mypy
typing-extensions==4.15.0 \
--hash=sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466 \
--hash=sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548
# via -r mlir/python/requirements.txt
# via
# -r mlir/python/requirements.txt
# mypy
urllib3==2.5.0 \
--hash=sha256:3fc47733c7e419d4bc3f6b3dc2b4f890bb743906a30d56ba4a5bfa4bbff92760 \
--hash=sha256:e6b01673c0fa6a13e374b50871808eb3bf7046c4b125b216f6bf1cc604cff0dc
Expand Down
1 change: 1 addition & 0 deletions mlir/python/mlir/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
1 change: 1 addition & 0 deletions mlir/python/mlir/dialects/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__("pkgutil").extend_path(__path__, __name__)
Empty file added mlir/python/mlir/py.typed
Empty file.
1 change: 1 addition & 0 deletions mlir/python/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ PyYAML>=5.4.0, <=6.0.1
ml_dtypes>=0.1.0, <=0.6.0; python_version<"3.13" # provides several NumPy dtype extensions, including the bf16
ml_dtypes>=0.5.0, <=0.6.0; python_version>="3.13"
typing_extensions>=4.12.2
mypy>=1.17.1
7 changes: 7 additions & 0 deletions mlir/test/lit.cfg.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@
config.substitutions.append(("%shlibext", config.llvm_shlib_ext))
config.substitutions.append(("%llvm_src_root", config.llvm_src_root))
config.substitutions.append(("%mlir_src_root", config.mlir_src_root))
config.substitutions.append(
(
"%mlir_python_packages_root",
os.path.join(config.mlir_obj_root, "python_packages", "mlir_core"),
)
)
config.substitutions.append(("%host_cxx", config.host_cxx.strip()))
config.substitutions.append(("%host_cc", config.host_cc.strip()))

Expand Down Expand Up @@ -348,6 +354,7 @@ def find_real_python_interpreter():
else:
config.available_features.add("noasserts")


def have_host_jit_feature_support(feature_name):
mlir_runner_exe = lit.util.which("mlir-runner", config.mlir_tools_dir)

Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/bindings_type_stubs.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# RUN: %PYTHON -m mypy %mlir_python_packages_root --config-file %mlir_src_root/test/python/mypy.ini
1 change: 1 addition & 0 deletions mlir/test/python/dialects/affine.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.ir import *
from mlir.dialects import func
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/amdgpu.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini
# This is just a smoke test that the dialect is functional.

from mlir.ir import *
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/arith_dialect.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini
from functools import partialmethod

from mlir.ir import *
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/arith_llvm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini
from functools import partialmethod

from mlir.ir import *
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/async_dialect.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.ir import *
from mlir.dialects import arith
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/builtin.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.ir import *
import mlir.dialects.builtin as builtin
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/cf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.ir import *
from mlir.dialects import cf
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/complex_dialect.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

# Naming this file with a `_dialect` suffix to avoid a naming conflict with
# python package's math module (coming in from random.py).
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/emitc_dialect.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.ir import *
import mlir.dialects.emitc as emitc
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/func.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.ir import *
from mlir.dialects import arith
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/gpu/dialect.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.ir import *
import mlir.dialects.gpu as gpu
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/gpu/module-to-binary-nvvm.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# REQUIRES: host-supports-nvptx
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.ir import *
import mlir.dialects.gpu as gpu
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/gpu/module-to-binary-rocdl.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# REQUIRES: host-supports-amdgpu
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.ir import *
import mlir.dialects.gpu as gpu
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/index_dialect.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.ir import *
from mlir.dialects import index, arith
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/linalg/opdsl/doctests.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

import doctest
import importlib
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.ir import *
from mlir.dialects import builtin
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/linalg/opdsl/emit_fill.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.ir import *
from mlir.dialects import builtin
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/linalg/opdsl/emit_matmul.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.ir import *
from mlir.dialects import builtin
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/linalg/opdsl/emit_misc.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.ir import *
from mlir.dialects import builtin
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/linalg/opdsl/emit_pooling.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.ir import *
from mlir.dialects import builtin
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/linalg/ops.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.dialects import arith, func, linalg, tensor, memref
from mlir.dialects.linalg.opdsl.lang import *
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/linalg/utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.dialects import arith, func, linalg
from mlir.dialects.linalg.opdsl.lang import *
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/llvm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini
# This is just a smoke test that the dialect is functional.

from mlir.ir import *
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/math_dialect.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

# Naming this file with a `_dialect` suffix to avoid a naming conflict with
# python package's math module (coming in from random.py).
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/memref.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

import mlir.dialects.arith as arith
import mlir.dialects.memref as memref
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/ml_program.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini
# This is just a smoke test that the dialect is functional.

from mlir.ir import *
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/nvgpu.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini
# This is just a smoke test that the dialect is functional.

from mlir.ir import *
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/nvvm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini
# This is just a smoke test that the dialect is functional.

from mlir.ir import *
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/ods_helpers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

import gc

Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/openmp_ops.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.ir import *
from mlir.dialects.openmp import *
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/pdl_ops.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.ir import *
from mlir.dialects.pdl import *
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/pdl_types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.ir import *
from mlir.dialects import pdl
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/python_test.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini
import sys
import typing
from typing import Union, Optional
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/quant.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

import numpy as np
from mlir.ir import *
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/rocdl.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini
# This is just a smoke test that the dialect is functional.
from array import array

Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/scf.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.ir import *
from mlir.dialects import arith
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/shape.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.ir import *
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/smt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.dialects import smt, arith
from mlir.ir import Context, Location, Module, InsertionPoint, F32Type
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/sparse_tensor/dialect.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.ir import *
from mlir.dialects import sparse_tensor as st, tensor
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/sparse_tensor/passes.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.ir import *
from mlir.passmanager import *
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/spirv_dialect.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.ir import *
import mlir.dialects.spirv as spirv
Expand Down
1 change: 1 addition & 0 deletions mlir/test/python/dialects/tensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# RUN: %PYTHON %s | FileCheck %s
# RUN: %PYTHON -m mypy %s --config-file %mlir_src_root/test/python/mypy.ini

from mlir.ir import *
import mlir.dialects.arith as arith
Expand Down
Loading
Loading