CarolineConcatto
d96722b660
[LLVM] Improve IR parsing and printing for target memory locations ( #176968 )
...
This patch adds support for specifying all target memory locations using
a
single IR spellings such as:
```
memory(target_mem: read)
```
This form is not supported in TableGen, but it is now accepted by the IR
parser.
When the parser encounters target_mem, it expands it to all
target-memory
locations (e.g., target_mem0, target_mem1, …).
Printing behavior
When all target-memory locations share the same ModRef value, the
printer
now collapses them into a single entry:
```
memory(target_mem: read)
```
Otherwise, each target memory location is printed separately.
Rejected IR:
```
memory(target_mem0: write, target_mem: read)
```
This is invalid because the default access kind for the target memory
group
must appear first.
2026-03-19 17:29:54 +00:00
..
2024-12-03 20:54:36 +00:00
2024-12-03 20:54:36 +00:00
2024-12-03 20:54:36 +00:00
2024-06-25 12:35:25 +02:00
2024-12-09 16:44:05 +01:00
2024-11-06 11:53:33 +00:00
2024-04-26 11:04:47 +09:00
2024-12-09 16:44:05 +01:00
2024-06-25 12:35:25 +02:00
2024-06-25 12:35:25 +02:00
2026-02-09 09:18:21 +01:00
2025-08-11 13:00:54 +02:00
2025-10-07 17:19:48 +02:00
2025-12-25 20:41:50 +08:00
2024-12-06 09:52:32 +01:00
2025-06-04 22:31:08 +08:00
2025-10-22 22:17:39 +08:00
2025-10-19 03:57:56 +00:00
2024-12-03 20:54:36 +00:00
2024-12-03 20:54:36 +00:00
2024-09-02 11:44:37 +02:00
2026-02-05 13:31:26 +00:00
2024-12-03 20:54:36 +00:00
2024-12-06 09:52:32 +01:00
2026-01-17 21:32:33 -08:00
2024-06-25 12:35:25 +02:00
2024-11-06 11:53:33 +00:00
2024-09-16 10:23:41 +02:00
2024-08-26 09:35:05 +02:00
2024-09-16 10:23:41 +02:00
2024-11-06 11:53:33 +00:00
2024-09-16 10:23:41 +02:00
2024-09-16 10:23:41 +02:00
2025-03-14 15:50:49 +00:00
2025-03-14 15:50:49 +00:00
2024-06-25 12:35:25 +02:00
2024-06-25 12:35:25 +02:00
2024-06-25 12:35:25 +02:00
2024-12-03 20:54:36 +00:00
2024-12-06 09:52:32 +01:00
2026-03-19 17:29:54 +00:00
2024-06-25 12:35:25 +02:00
2025-08-11 09:25:01 +02:00
2025-08-12 12:56:08 +02:00
2024-09-03 11:42:47 +02:00
2025-03-14 15:50:49 +00:00
2024-06-25 12:35:25 +02:00
2024-09-16 10:23:41 +02:00
2026-02-05 13:31:26 +00:00
2025-09-17 10:20:59 +00:00
2024-09-02 11:44:37 +02:00
2024-09-16 10:23:41 +02:00
2025-08-19 10:59:38 +02:00
2025-01-29 16:56:47 +01:00
2024-12-03 20:54:36 +00:00
2024-04-16 09:37:51 +01:00
2024-12-03 20:54:36 +00:00
2024-07-18 09:03:03 +01:00
2024-06-25 12:35:25 +02:00
2024-12-31 18:40:17 -08:00
2025-06-04 22:31:08 +08:00
2024-08-29 09:34:56 +02:00
2024-05-24 19:25:09 +02:00
2025-06-04 22:31:08 +08:00
2024-09-19 03:54:13 -07:00
2025-10-06 07:14:46 +00:00
2024-06-25 12:35:25 +02:00
2024-09-16 10:23:41 +02:00
2024-06-25 12:35:25 +02:00
2024-12-03 20:54:36 +00:00
2025-08-19 10:59:38 +02:00
2024-09-03 11:42:47 +02:00
2024-05-07 14:57:29 -05:00
2024-12-03 20:54:36 +00:00
2024-10-28 14:07:32 +07:00
2024-10-28 14:07:32 +07:00
2024-06-25 12:35:25 +02:00
2024-12-03 20:54:36 +00:00
2024-09-16 10:23:41 +02:00
2024-11-06 11:53:33 +00:00
2025-08-19 10:59:38 +02:00
2025-07-20 15:01:44 +08:00
2024-11-06 11:53:33 +00:00
2024-10-31 12:22:15 +00:00
2025-08-19 10:59:38 +02:00