Visoiu Mistrih Francis
fef2fc3400
[TableGen] Support non-def operators in !getdagop ( #77531 )
...
`!getdagop` expects the dag operator to be a def, and errors out if it's
not.
While that's true in most cases, when multiclasses are involved, the
late resolution of the dag operator can result in it not being a def
yet, but still have a proper type, wich is required to check against the
optional parameter Ty in `!getdagop<Ty>`.
e.g, in the following dag:
```
(!cast<TestInstruction>(TestInstructionAndPattern::NAME) foo)
```
the operator is a UnOpInit, but all we need here is to check its type.
This fixes a bug where !getdagop is used to query the dag operator that
is dependent on the multiclass, which is not yet resolved to a def. Once
the folding is performed, the field becomes a record that can be
queried.
2024-01-10 06:59:38 -08:00
..
2024-01-09 17:55:21 +03:00
2023-08-20 21:46:36 -07:00
2023-08-24 19:21:36 -07:00
2023-12-13 08:48:56 +01:00
2023-12-13 08:48:56 +01:00
2023-12-12 17:12:08 +08:00
2023-12-12 17:45:32 +08:00
2023-12-12 17:45:32 +08:00
2023-11-27 11:08:28 +08:00
2023-12-12 17:45:32 +08:00
2023-12-13 09:09:32 +01:00
2023-05-24 12:44:14 +08:00
2023-06-27 11:09:23 -07:00
2023-10-19 09:26:36 +02:00
2023-03-03 11:29:47 -08:00
2023-09-25 19:32:59 +08:00
2023-02-22 03:56:55 -05:00
2024-01-10 06:59:38 -08:00
2023-12-13 08:48:56 +01:00
2023-12-13 08:48:56 +01:00
2023-12-13 08:48:56 +01:00
2023-12-13 08:48:56 +01:00
2023-12-13 09:09:32 +01:00
2023-12-13 08:48:56 +01:00
2023-12-13 08:48:56 +01:00
2023-12-13 09:09:32 +01:00
2023-12-13 08:48:56 +01:00
2023-12-13 08:48:56 +01:00
2023-12-13 08:48:56 +01:00
2023-12-13 08:48:56 +01:00
2023-12-13 08:48:56 +01:00
2023-12-13 08:48:56 +01:00
2024-01-10 14:18:00 +07:00
2023-12-13 08:48:56 +01:00
2023-12-13 08:48:56 +01:00
2023-12-13 08:48:56 +01:00
2023-12-13 09:09:32 +01:00
2023-12-13 09:09:32 +01:00
2023-12-13 08:48:56 +01:00
2023-12-13 08:48:56 +01:00
2023-12-13 09:09:32 +01:00
2023-12-13 09:09:32 +01:00
2023-12-13 08:48:56 +01:00
2023-12-13 08:48:56 +01:00
2023-03-14 13:00:38 -07:00
2023-03-14 13:00:38 -07:00
2023-03-10 15:50:11 -08:00
2023-12-13 08:48:56 +01:00
2023-12-13 08:48:56 +01:00
2023-06-21 21:36:22 -04:00
2023-03-20 06:48:14 +09:00
2023-05-17 10:48:52 +02:00
2023-04-26 23:47:16 +09:00
2023-04-26 23:47:16 +09:00
2023-05-17 17:03:15 +02:00
2024-01-05 22:44:04 +08:00
2023-03-07 15:04:09 -05:00
2023-07-20 16:03:17 +08:00
2023-09-07 12:42:22 -07:00
2023-09-07 12:42:22 -07:00
2023-09-07 12:42:22 -07:00
2023-12-13 08:48:56 +01:00
2023-09-27 12:07:36 +08:00
2023-09-27 12:07:36 +08:00
2023-07-27 10:42:21 +01:00
2023-03-31 06:00:54 +09:00
2023-10-11 13:11:48 +02:00
2023-03-07 12:41:56 +00:00
2023-08-03 17:22:34 +08:00
2023-02-09 16:14:38 +08:00
2023-02-09 16:14:38 +08:00
2023-02-09 16:14:38 +08:00
2023-02-09 16:14:38 +08:00
2023-10-26 14:43:38 +02:00
2023-10-20 07:21:24 +02:00
2024-01-05 17:16:55 +08:00
2023-04-11 08:17:55 -04:00