| Issue |
169113
|
| Summary |
[MLIR][Python] Bindings crash on some `unsupported` errors
|
| Labels |
mlir
|
| Assignees |
|
| Reporter |
ashermancinelli
|
Crashes instead of giving the usual verification error:
```python
from mlir import ir
with ir.Context():
m = ir.Module.parse('''
module {
gpu.module @mod [#nvvm.target<chip = "sm_90">] {
func.func @tcgen05_alloc(%arg0: !llvm.ptr<7>, %arg1: i32) {
nvvm.tcgen05.alloc %arg0, %arg1 : !llvm.ptr<7>, i32
return
}
}
}
''')
m.operation.verify()
```
```
python: .../mlir/lib/Bindings/Python/IRModule.h:415:
mlir::python::PyMlirContext::ErrorCapture::~ErrorCapture():
Assertion `errors.empty() && "unhandled captured errors"' failed.
```
```
> mlir-opt t.mlir
t.mlir:4:1: error: 'nvvm.tcgen05.alloc' op is not supported on sm_90
nvvm.tcgen05.alloc %arg0, %arg1 : !llvm.ptr<7>, i32
^
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs