Krzysztof Drewniak
53a4adc0de
[AMDGPU] Fix crash with 160-bit p7's by manually defining getPointerTy
...
While pointers in address space 7 (128 bit rsrc + 32 bit offset)
should be rewritten out of the code before IR translation on AMDGPU,
higher-level analyses may still call MVT getPointerTy() and the like
on the target machine. Currently, since there is no MVT::i160, this
operation ends up causing crashes.
The changes to the data layout that caused such crashes were D149776.
This patch causes getPointerTy() to return the type MVT::v5i32
and getPointerMemTy() to be MVT::v8i32. These are accurate types,
but mean that we can't use vectors of address space 7 pointers during
codegen. This is mostly OK, since vectors of buffers aren't supported
in LPC anyway, but it's a noticable limitation.
Potential alternative solutions include adjusting getPointerTy() to return
an EVT or adding MVT::i160 and MVT::i256, both of which are rather
disruptive to the rest of the compiler.
Reviewed By: foad
Differential Revision: https://reviews.llvm.org/D150002
2023-05-12 15:57:53 +00:00
..
2023-01-25 14:41:29 +07:00
2023-05-12 15:57:53 +00:00
2022-12-14 15:37:58 +01:00
2022-12-13 14:50:13 +01:00
2023-01-25 14:41:29 +07:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-10-13 10:44:37 +02:00
2022-10-13 10:44:37 +02:00
2022-10-13 10:44:37 +02:00
2022-12-13 14:50:13 +01:00
2022-10-13 10:44:37 +02:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-10-13 10:44:37 +02:00
2022-10-13 10:44:37 +02:00
2022-12-13 14:50:13 +01:00
2022-10-13 10:44:37 +02:00
2022-12-13 14:50:13 +01:00
2022-10-13 10:44:37 +02:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-10-13 10:44:37 +02:00
2022-10-13 10:44:37 +02:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-10-13 10:44:37 +02:00
2022-10-13 10:44:37 +02:00
2022-10-13 10:44:37 +02:00
2022-12-13 14:50:13 +01:00
2022-10-13 10:44:37 +02:00
2022-10-13 10:44:37 +02:00
2022-12-13 14:50:13 +01:00
2022-12-14 15:37:58 +01:00
2022-12-13 14:50:13 +01:00
2022-10-13 10:44:37 +02:00
2022-10-13 10:44:37 +02:00
2022-12-13 14:50:13 +01:00
2022-10-13 10:44:37 +02:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-14 15:37:58 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2023-04-11 12:37:10 +07:00
2022-12-14 15:37:58 +01:00
2022-10-13 10:44:37 +02:00
2022-10-13 10:44:37 +02:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-14 15:37:58 +01:00
2022-12-13 15:08:28 +01:00
2023-01-20 15:52:07 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2023-01-11 11:36:02 +07:00
2022-12-14 15:37:58 +01:00
2022-12-13 14:50:13 +01:00
2022-10-13 10:44:37 +02:00
2022-12-13 14:50:13 +01:00
2022-10-13 10:44:37 +02:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-14 15:37:58 +01:00
2022-12-13 14:50:13 +01:00
2022-12-07 22:22:09 +03:00
2022-10-13 10:44:37 +02:00
2022-12-13 14:50:13 +01:00
2022-10-13 10:44:37 +02:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-11-04 18:42:07 +00:00
2022-12-07 22:22:09 +03:00
2022-12-13 14:50:13 +01:00
2023-01-10 23:03:07 -07:00
2023-04-12 13:42:31 +07:00
2022-12-14 15:37:58 +01:00
2022-12-13 14:50:13 +01:00
2022-12-07 22:22:09 +03:00
2022-12-13 14:50:13 +01:00
2022-12-14 15:37:58 +01:00
2022-12-13 15:08:28 +01:00
2022-12-13 14:50:13 +01:00
2023-04-27 15:07:19 +02:00
2022-12-14 15:37:58 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2023-03-15 20:57:34 +00:00
2022-12-13 15:20:35 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-07 22:22:09 +03:00
2022-12-07 22:22:09 +03:00
2022-10-13 10:44:37 +02:00
2022-10-13 10:44:37 +02:00
2022-10-13 10:44:37 +02:00
2022-12-07 22:22:09 +03:00
2022-12-14 15:37:58 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-14 15:37:58 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-14 15:37:58 +01:00
2022-12-13 14:50:13 +01:00
2022-12-01 21:25:59 +01:00
2022-10-13 10:44:37 +02:00
2022-12-13 14:50:13 +01:00
2022-12-14 15:37:58 +01:00
2023-04-21 18:03:41 +02:00
2022-12-13 14:50:13 +01:00
2022-12-07 22:22:09 +03:00
2022-12-07 22:22:09 +03:00
2022-12-07 22:22:09 +03:00
2022-12-07 22:22:09 +03:00
2022-12-14 15:37:58 +01:00
2022-12-01 21:25:59 +01:00
2022-06-08 16:01:29 +07:00
2022-12-13 14:50:13 +01:00
2022-12-01 21:25:59 +01:00
2022-08-22 13:02:01 +07:00
2022-12-06 20:26:53 +03:00
2023-03-14 10:55:02 +01:00
2023-04-25 16:40:37 +07:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2023-04-29 21:33:30 +01:00
2023-03-14 10:55:02 +01:00
2022-10-13 10:44:37 +02:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2023-03-14 10:55:02 +01:00
2022-12-14 17:53:06 +03:00
2022-12-13 14:50:13 +01:00
2022-12-14 15:37:58 +01:00
2022-11-06 22:46:49 +08:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-07 22:22:09 +03:00
2022-10-13 10:44:37 +02:00
2023-04-18 13:17:45 +07:00
2022-10-13 10:44:37 +02:00
2022-12-07 22:22:09 +03:00
2022-10-13 10:44:37 +02:00
2022-10-13 10:44:37 +02:00
2023-02-10 13:57:39 +07:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-13 14:50:13 +01:00
2022-12-14 15:37:58 +01:00
2022-12-13 14:50:13 +01:00