[all-commits] [llvm/llvm-project] 36d936: [mlir][IR] Improve error message when return type ...
Matthias Springer via All-commits
all-commits at lists.llvm.org
Wed Oct 16 12:04:33 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 36d936a2d057ddbd7822614edf01e39a0c21d654
https://github.com/llvm/llvm-project/commit/36d936a2d057ddbd7822614edf01e39a0c21d654
Author: Matthias Springer <me at m-sp.org>
Date: 2024-10-16 (Wed, 16 Oct 2024)
Changed paths:
M mlir/include/mlir/Interfaces/InferTypeOpInterface.h
M mlir/lib/Interfaces/InferTypeOpInterface.cpp
M mlir/test/mlir-tblgen/op-decl-and-defs.td
M mlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
Log Message:
-----------
[mlir][IR] Improve error message when return type could not be inferred (#112336)
Print an error such as the following one before terminating program
execution.
```
mlir/test/Dialect/SparseTensor/convert_dense2sparse.mlir:26:8: remark: location of op
%0 = sparse_tensor.convert %arg0 : tensor<?xi32> to tensor<?xi32, #SparseVector>
^
LLVM ERROR: Failed to infer result type(s):
"sparse_tensor.positions"(...) {} : (index) -> ( ??? )
(stack trace follows)
```
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list