Nikita Popov
9350860824
[AsmParser] Add support for reading incomplete IR (part 1) ( #78421 )
...
Add an `-allow-incomplete-ir` flag to the IR parser, which allows
reading IR with missing declarations. This is intended to produce a
best-effort interpretation of the IR, along the same lines of what we
would manually do when taking, for example, a function from
`-print-after-all` output and fixing it up to be valid IR.
This patch only supports dropping references to undeclared metadata,
either by dropping metadata attachments from instructions/functions, or
by dropping calls to certain intrinsics (like debug intrinsics). I will
implement support for inserting missing function/global declarations in
a followup patch.
We don't have real use lists for metadata, so the approach here is to
iterate over the whole IR and identify metadata that needs to be
dropped. This does not support all possible cases, but should handle
anything that's relevant for the function-only IR use case.
2024-01-19 16:08:16 +01:00
..
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-01 21:25:59 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2023-11-14 09:25:14 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2021-08-05 21:55:23 -07:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2023-06-30 12:31:32 -04:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2021-10-06 13:29:23 -07:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-05-31 10:01:17 -04:00
2022-05-31 10:01:17 -04:00
2023-06-22 10:02:45 +02:00
2024-01-04 10:38:18 +01:00
2022-12-13 14:36:21 +01:00
2023-01-25 22:38:53 -04:00
2023-01-24 17:55:11 -04:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2023-09-15 09:54:38 -07:00
2024-01-17 16:18:39 -08:00
2022-12-13 14:36:21 +01:00
2022-11-16 11:18:02 -08:00
2024-01-05 13:50:44 -05:00
2023-03-21 09:22:15 +01:00
2021-06-28 12:53:36 -07:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2021-07-15 17:51:11 +02:00
2021-07-15 17:51:11 +02:00
2021-07-15 17:51:11 +02:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-10-11 09:53:08 +02:00
2024-01-19 14:55:31 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-06-02 09:40:56 +02:00
2023-12-08 18:41:30 +00:00
2023-12-08 18:41:30 +00:00
2023-11-03 11:30:25 +01:00
2022-12-13 14:36:21 +01:00
2023-03-16 10:32:08 +01:00
2022-12-13 14:36:21 +01:00
2023-07-12 12:31:42 +05:30
2021-12-07 23:20:17 -08:00
2022-07-13 10:24:47 +02:00
2023-01-23 09:31:04 +01:00
2022-07-13 10:24:47 +02:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-09-23 18:32:07 +00:00
2022-12-13 14:36:21 +01:00
2023-11-24 08:49:19 -08:00
2023-07-12 09:55:53 -04:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2023-01-06 12:06:42 +01:00
2022-07-13 10:24:47 +02:00
2022-12-13 14:36:21 +01:00
2023-12-05 09:42:53 +08:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-11-22 21:42:44 -05:00
2022-12-02 15:20:57 -05:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2024-01-17 09:35:50 +01:00
2024-01-17 09:35:50 +01:00
2022-12-13 14:36:21 +01:00
2024-01-19 16:08:16 +01:00
2024-01-19 16:08:16 +01:00
2023-12-05 11:00:13 +01:00
2022-07-15 10:18:17 +02:00
2022-07-04 09:27:22 +02:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-09 09:53:42 +00:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-07-13 10:24:47 +02:00
2022-07-13 10:24:47 +02:00
2022-07-13 10:24:47 +02:00
2023-02-23 21:54:50 -05:00
2022-07-13 10:24:47 +02:00
2022-07-13 10:24:47 +02:00
2022-07-13 10:24:47 +02:00
2022-07-13 10:24:47 +02:00
2022-07-13 10:24:47 +02:00
2022-07-13 10:24:47 +02:00
2022-07-13 10:24:47 +02:00
2022-07-13 10:24:47 +02:00
2022-07-13 10:24:47 +02:00
2022-07-13 10:24:47 +02:00
2022-07-13 10:24:47 +02:00
2022-07-13 10:24:47 +02:00
2023-02-23 21:54:50 -05:00
2022-07-13 10:24:47 +02:00
2022-07-13 10:24:47 +02:00
2022-07-13 10:24:47 +02:00
2022-07-13 10:24:47 +02:00
2022-07-13 10:24:47 +02:00
2022-07-13 10:24:47 +02:00
2022-07-13 10:24:47 +02:00
2022-07-13 10:24:47 +02:00
2022-07-13 10:24:47 +02:00
2023-10-26 10:19:06 +02:00
2023-01-12 10:10:45 +01:00
2022-07-13 10:24:47 +02:00
2022-02-22 17:50:13 -08:00
2022-12-13 14:36:21 +01:00
2021-07-15 17:51:11 +02:00
2021-07-15 17:51:11 +02:00
2022-12-13 14:36:21 +01:00
2022-07-12 11:41:16 +02:00
2021-09-14 07:52:10 -07:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2023-07-12 14:35:55 +02:00
2023-07-12 14:35:55 +02:00
2023-07-12 14:35:55 +02:00
2021-07-15 17:51:11 +02:00
2021-07-15 17:51:11 +02:00
2022-12-20 11:02:11 -05:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-06-02 09:40:56 +02:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-11-04 10:21:38 +01:00
2021-09-14 07:52:10 -07:00
2022-10-21 12:11:25 +02:00
2022-10-21 12:11:25 +02:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2021-07-15 17:51:11 +02:00
2021-07-15 17:51:11 +02:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2023-12-08 16:28:23 +01:00
2023-02-24 07:41:29 -04:00
2023-02-24 07:41:29 -04:00
2023-03-06 15:43:34 -08:00
2022-12-13 14:36:21 +01:00
2023-07-12 14:35:55 +02:00
2023-07-12 14:35:55 +02:00
2023-07-12 14:35:55 +02:00
2023-07-12 14:35:55 +02:00
2023-07-12 14:35:55 +02:00
2023-07-12 14:35:55 +02:00
2022-08-31 14:24:13 +02:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2023-06-30 12:31:32 -04:00
2022-12-13 14:36:21 +01:00
2023-05-19 09:39:36 -07:00
2024-01-19 14:55:31 +01:00
2024-01-19 14:55:31 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2023-12-08 17:18:20 +01:00
2023-12-07 17:00:44 +01:00
2022-12-08 20:44:40 +00:00
2022-12-20 11:02:11 -05:00
2022-12-20 11:02:11 -05:00
2022-12-20 11:02:11 -05:00
2022-12-20 11:02:11 -05:00
2023-05-08 10:34:53 -07:00
2023-09-01 13:43:08 -07:00
2023-12-06 08:41:44 -08:00
2023-11-30 16:59:13 -08:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-07-04 09:27:22 +02:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-12-13 14:36:21 +01:00
2022-02-14 14:35:02 +00:00
2022-02-14 14:35:02 +00:00
2022-12-13 14:36:21 +01:00
2023-11-14 09:25:14 +01:00
2022-12-13 14:36:21 +01:00
2022-08-31 14:24:12 +02:00