[Mlir-commits] [mlir] [mlir][Python] use canonical Python `isinstance` instead of `Type.isinstance` (PR #172892)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Thu Dec 18 11:35:11 PST 2025
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results
* 3359 tests passed
* 411 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### MLIR
<details>
<summary>MLIR.python/ir/auto_location.py</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
"C:/Python312/python.exe" C:\_work\llvm-project\llvm-project\mlir\test\python\ir\auto_location.py | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\mlir\test\python\ir\auto_location.py
# executed command: C:/Python312/python.exe 'C:\_work\llvm-project\llvm-project\mlir\test\python\ir\auto_location.py'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\mlir\test\python\ir\auto_location.py'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\mlir\test\python\ir\auto_location.py:37:11: error: CHECK: expected string not found in input
# | # CHECK: loc(callsite("ConstantOp.__init__"("{{.*}}[[SEP]]mlir[[SEP]]dialects[[SEP]]arith.py":65:12 to :76) at callsite("constant"("{{.*}}[[SEP]]mlir[[SEP]]dialects[[SEP]]arith.py":110:40 to :81) at callsite("testInferLocations"("{{.*}}[[SEP]]test[[SEP]]python[[SEP]]ir[[SEP]]auto_location.py":{{[0-9]+}}:14 to :48) at callsite("run"("{{.*}}[[SEP]]test[[SEP]]python[[SEP]]ir[[SEP]]auto_location.py":{{[0-9]+}}:4 to :7) at "<module>"("{{.*}}[[SEP]]test[[SEP]]python[[SEP]]ir[[SEP]]auto_location.py":{{[0-9]+}}:1 to :4))))))
# | ^
# | <stdin>:3:353: note: scanning from here
# | loc(callsite("testInferLocations"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":24:13 to :43) at callsite("run"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":13:4 to :7) at "<module>"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":19:1 to :4))))
# | ^
# | <stdin>:3:353: note: with "SEP" equal to "\\"
# | loc(callsite("testInferLocations"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":24:13 to :43) at callsite("run"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":13:4 to :7) at "<module>"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":19:1 to :4))))
# | ^
# | <stdin>:3:353: note: with "SEP" equal to "\\"
# | loc(callsite("testInferLocations"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":24:13 to :43) at callsite("run"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":13:4 to :7) at "<module>"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":19:1 to :4))))
# | ^
# | <stdin>:3:353: note: with "SEP" equal to "\\"
# | loc(callsite("testInferLocations"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":24:13 to :43) at callsite("run"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":13:4 to :7) at "<module>"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":19:1 to :4))))
# | ^
# | <stdin>:3:353: note: with "SEP" equal to "\\"
# | loc(callsite("testInferLocations"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":24:13 to :43) at callsite("run"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":13:4 to :7) at "<module>"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":19:1 to :4))))
# | ^
# | <stdin>:3:353: note: with "SEP" equal to "\\"
# | loc(callsite("testInferLocations"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":24:13 to :43) at callsite("run"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":13:4 to :7) at "<module>"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":19:1 to :4))))
# | ^
# | <stdin>:3:353: note: with "SEP" equal to "\\"
# | loc(callsite("testInferLocations"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":24:13 to :43) at callsite("run"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":13:4 to :7) at "<module>"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":19:1 to :4))))
# | ^
# | <stdin>:3:353: note: with "SEP" equal to "\\"
# | loc(callsite("testInferLocations"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":24:13 to :43) at callsite("run"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":13:4 to :7) at "<module>"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":19:1 to :4))))
# | ^
# | <stdin>:3:353: note: with "SEP" equal to "\\"
# | loc(callsite("testInferLocations"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":24:13 to :43) at callsite("run"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":13:4 to :7) at "<module>"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":19:1 to :4))))
# | ^
# | <stdin>:3:353: note: with "SEP" equal to "\\"
# | loc(callsite("testInferLocations"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":24:13 to :43) at callsite("run"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":13:4 to :7) at "<module>"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":19:1 to :4))))
# | ^
# | <stdin>:3:353: note: with "SEP" equal to "\\"
# | loc(callsite("testInferLocations"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":24:13 to :43) at callsite("run"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":13:4 to :7) at "<module>"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":19:1 to :4))))
# | ^
# | <stdin>:3:353: note: with "SEP" equal to "\\"
# | loc(callsite("testInferLocations"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":24:13 to :43) at callsite("run"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":13:4 to :7) at "<module>"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":19:1 to :4))))
# | ^
# | <stdin>:3:353: note: with "SEP" equal to "\\"
# | loc(callsite("testInferLocations"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":24:13 to :43) at callsite("run"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":13:4 to :7) at "<module>"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":19:1 to :4))))
# | ^
# | <stdin>:3:353: note: with "SEP" equal to "\\"
# | loc(callsite("testInferLocations"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":24:13 to :43) at callsite("run"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":13:4 to :7) at "<module>"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":19:1 to :4))))
# | ^
# | <stdin>:3:353: note: with "SEP" equal to "\\"
# | loc(callsite("testInferLocations"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":24:13 to :43) at callsite("run"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":13:4 to :7) at "<module>"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":19:1 to :4))))
# | ^
# | <stdin>:3:353: note: with "SEP" equal to "\\"
# | loc(callsite("testInferLocations"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":24:13 to :43) at callsite("run"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":13:4 to :7) at "<module>"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":19:1 to :4))))
# | ^
# | <stdin>:3:353: note: with "SEP" equal to "\\"
# | loc(callsite("testInferLocations"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":24:13 to :43) at callsite("run"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":13:4 to :7) at "<module>"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":19:1 to :4))))
# | ^
# | <stdin>:3:353: note: with "SEP" equal to "\\"
# | loc(callsite("testInferLocations"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":24:13 to :43) at callsite("run"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":13:4 to :7) at "<module>"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":19:1 to :4))))
# | ^
# | <stdin>:3:353: note: with "SEP" equal to "\\"
# | loc(callsite("testInferLocations"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":24:13 to :43) at callsite("run"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":13:4 to :7) at "<module>"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":19:1 to :4))))
# | ^
# |
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\mlir\test\python\ir\auto_location.py
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1:
# | 2: TEST: testInferLocations
# | 3: loc(callsite("testInferLocations"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":24:13 to :43) at callsite("run"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":13:4 to :7) at "<module>"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":19:1 to :4))))
# | check:37'0 X error: no match found
# | check:37'1 with "SEP" equal to "\\"
# | check:37'2 with "SEP" equal to "\\"
# | check:37'3 with "SEP" equal to "\\"
# | check:37'4 with "SEP" equal to "\\"
# | check:37'5 with "SEP" equal to "\\"
# | check:37'6 with "SEP" equal to "\\"
# | check:37'7 with "SEP" equal to "\\"
# | check:37'8 with "SEP" equal to "\\"
# | check:37'9 with "SEP" equal to "\\"
# | check:37'10 with "SEP" equal to "\\"
# | check:37'11 with "SEP" equal to "\\"
# | check:37'12 with "SEP" equal to "\\"
# | check:37'13 with "SEP" equal to "\\"
# | check:37'14 with "SEP" equal to "\\"
# | check:37'15 with "SEP" equal to "\\"
# | check:37'16 with "SEP" equal to "\\"
# | check:37'17 with "SEP" equal to "\\"
# | check:37'18 with "SEP" equal to "\\"
# | 4: loc(callsite("ConstantOp.__init__"("c:\\_work\\llvm-project\\llvm-project\\build\\tools\\mlir\\python_packages\\mlir_core\\mlir\\dialects\\arith.py":43:12 to :76) at callsite("constant"("c:\\_work\\llvm-project\\llvm-project\\build\\tools\\mlir\\python_packages\\mlir_core\\mlir\\dialects\\arith.py":88:40 to :81) at callsite("testInferLocations"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":25:14 to :48) at callsite("run"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":13:4 to :7) at "<module>"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":19:1 to :4))))))
# | check:37'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 5: loc(callsite("testInferLocations"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":27:14 to :48) at callsite("run"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":13:4 to :7) at "<module>"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":19:1 to :4))))
# | check:37'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 6: loc(callsite("ConstantOp.__init__"("c:\\_work\\llvm-project\\llvm-project\\build\\tools\\mlir\\python_packages\\mlir_core\\mlir\\dialects\\_arith_ops_gen.py":648:4 to :235) at callsite("testInferLocations"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":47:16 to :50) at callsite("run"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":13:4 to :7) at "<module>"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":19:1 to :4)))))
# | check:37'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 7: loc(callsite("ConstantOp.__init__"("c:\\_work\\llvm-project\\llvm-project\\build\\tools\\mlir\\python_packages\\mlir_core\\mlir\\dialects\\_arith_ops_gen.py":648:4 to :235) at callsite("testInferLocations.<locals>.foo"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":54:19 to :53) at callsite("testInferLocations"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":60:8 to :13) at callsite("run"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":13:4 to :7) at "<module>"("C:\\_work\\llvm-project\\llvm-project\\mlir\\test\\python\\ir\\auto_location.py":19:1 to :4))))))
# | check:37'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 8: loc("ConstantOp.__init__"("c:\\_work\\llvm-project\\llvm-project\\build\\tools\\mlir\\python_packages\\mlir_core\\mlir\\dialects\\_arith_ops_gen.py":648:4 to :235))
# | check:37'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/172892
More information about the Mlir-commits
mailing list