Markus Böck
2a30bfcef3
[mlir] Improve error message when number of operands and types differ ( #118488 )
...
If using a variadic operand, the error message given if the number of
types and operands do not match would be along the lines of:
```
3 operands present, but expected 2
```
This error message is confusing for multiple reasons, particular for
beginners:
* If the intention is to have 3 operands, it does not point out why it
expects 2. The user may actually just want to add a type to the type
list
* It reads as if a verifier error rather than a parser error, giving the
impression the Op only supports 2 operands.
This PR attempts to improve the error message by first noting the issue
("number of operands and types mismatch") and mentioning how many
operands and types it received.
2024-12-04 09:36:05 +01:00
..
2024-11-19 09:09:33 +00:00
2023-07-26 20:26:07 +02:00
2024-05-09 18:02:44 +01:00
2024-05-09 18:02:44 +01:00
2024-05-24 09:29:28 +02:00
2024-04-30 09:28:35 -07:00
2024-11-26 09:45:57 -07:00
2024-11-26 09:45:57 -07:00
2024-04-30 09:28:35 -07:00
2024-05-28 10:42:32 -04:00
2024-11-15 10:53:34 +08:00
2024-11-15 10:53:34 +08:00
2024-04-30 09:28:35 -07:00
2024-08-05 23:04:47 +05:30
2024-11-09 23:34:57 +00:00
2024-11-26 08:11:15 +00:00
2024-11-19 09:09:33 +00:00
2024-11-19 09:09:33 +00:00
2024-11-19 09:09:33 +00:00
2024-11-19 09:09:33 +00:00
2024-08-07 09:10:01 +01:00
2024-08-07 09:10:01 +01:00
2024-08-07 09:10:01 +01:00
2024-08-07 09:10:01 +01:00
2024-08-07 09:10:01 +01:00
2024-11-06 11:56:51 +01:00
2024-04-30 09:28:35 -07:00
2024-03-22 12:37:39 -05:00
2024-10-03 12:22:57 +02:00
2024-09-16 13:06:38 -04:00
2024-06-14 17:16:02 +02:00
2024-11-26 16:00:18 -08:00
2024-04-30 09:28:35 -07:00
2024-11-07 14:51:02 +00:00
2024-07-13 14:46:44 +01:00
2024-10-18 16:11:21 -04:00
2024-10-14 15:38:35 +08:00
2024-11-26 11:58:43 +01:00
2024-11-18 07:51:18 +00:00
2024-10-10 15:45:52 +01:00
2024-09-27 09:43:57 +08:00
2024-01-31 10:12:33 +01:00
2024-10-22 13:28:44 +01:00
2024-09-21 08:43:12 -07:00
2024-08-12 12:20:58 +01:00
2024-11-15 10:53:34 +08:00
2024-05-14 10:50:35 +01:00
2024-11-08 09:23:17 -08:00
2024-07-01 19:00:21 +02:00
2024-01-01 17:12:40 +00:00
2024-03-21 14:16:02 +09:00
2023-06-30 14:01:13 +02:00
2024-10-22 13:28:44 +01:00
2023-12-20 11:06:27 +09:00
2024-06-23 19:05:00 +02:00
2024-05-08 09:11:53 -05:00
2024-11-16 08:13:10 +00:00
2024-04-30 09:28:35 -07:00
2024-06-07 09:09:06 -04:00
2024-04-30 09:28:35 -07:00
2024-10-11 15:27:27 +01:00
2024-06-30 19:37:51 +01:00
2024-10-11 15:27:27 +01:00
2024-10-19 18:25:27 +02:00
2024-04-25 10:12:55 -07:00
2024-10-11 15:27:27 +01:00
2024-06-30 19:37:51 +01:00
2023-07-19 17:47:18 +00:00
2023-09-09 06:01:56 -04:00
2024-05-08 09:11:53 -05:00
2024-05-08 09:11:53 -05:00
2024-05-08 09:11:53 -05:00
2024-07-31 12:32:07 -07:00
2024-07-31 12:32:07 -07:00
2024-10-22 20:11:05 -07:00
2024-01-12 13:24:02 +01:00
2024-05-08 09:11:53 -05:00
2024-06-20 08:08:37 +05:30
2024-01-12 13:24:02 +01:00
2024-10-04 14:42:55 -04:00
2023-10-24 16:12:34 +02:00
2023-10-24 16:12:34 +02:00
2024-09-26 09:33:47 +01:00
2024-09-26 09:33:47 +01:00
2023-10-24 16:12:34 +02:00
2023-10-24 16:12:34 +02:00
2024-01-12 13:24:02 +01:00
2024-03-13 16:53:26 +00:00
2024-05-08 09:11:53 -05:00
2024-01-12 13:24:02 +01:00
2024-05-08 09:11:53 -05:00
2024-10-15 19:24:43 +01:00
2024-05-08 09:11:53 -05:00
2024-05-08 09:11:53 -05:00
2024-02-05 22:59:03 -08:00
2023-10-24 16:12:34 +02:00
2024-05-08 09:11:53 -05:00
2024-06-30 19:37:51 +01:00
2024-06-30 19:37:51 +01:00
2024-06-30 19:37:51 +01:00
2024-10-11 15:27:27 +01:00
2023-10-24 16:12:34 +02:00
2024-05-29 10:20:49 -04:00
2024-11-15 10:53:34 +08:00
2024-07-31 12:32:07 -07:00
2023-10-24 16:12:34 +02:00
2024-12-04 09:36:05 +01:00
2024-11-15 10:53:34 +08:00
2023-10-24 16:12:34 +02:00
2024-10-10 15:45:52 +01:00
2024-06-23 19:05:00 +02:00
2023-10-24 16:12:34 +02:00
2024-10-11 09:39:19 +01:00
2024-06-28 08:50:18 +08:00
2024-10-11 09:39:19 +01:00
2024-07-11 14:45:36 +01:00
2023-12-11 16:13:19 +01:00
2024-04-23 10:52:50 +01:00
2024-04-23 10:52:50 +01:00
2024-04-23 07:21:06 +01:00
2024-11-26 08:11:15 +00:00
2024-11-29 07:43:10 +00:00
2024-10-29 16:57:23 +00:00
2024-11-13 15:45:59 +00:00
2024-10-04 10:06:33 +01:00
2024-06-27 15:47:00 +01:00
2023-12-15 17:56:59 +00:00
2024-09-24 12:24:59 -05:00
2024-11-13 15:45:59 +00:00
2024-11-13 15:45:59 +00:00
2024-10-11 09:39:19 +01:00
2024-09-13 15:48:17 +01:00