Alex Voicu
f5c39a6b0a
[SPIRV] Additional fixes for const init via UtoPtr ( #172584 )
...
#166494 added support for using `inttoptr` in global initialisation, and
lowering int into `OpSpecConstantOp OpConvertUToPtr`. Unfortunately, it
slightly more subtle case / exposed an existing issue around the `COPY`
pseudo-op. This patch ensures that we glance through a `COPY` when
figuring out whether an `OpConvertUToPtr` is actually operating on a
global. We also correctly handle the case where a `G_PTR_ADD` is used by
an `OpSpecConstantOp` in the context of global initialisation, which
would otherwise lead to broken SPIR-V wherein the latter would reference
a non constant Op.
---------
Co-authored-by: Marcos Maronas <marcos.maronas@intel.com>
2026-01-08 15:32:55 +00:00
..
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2025-10-14 23:34:28 -07:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2025-09-28 05:54:59 -07:00
2026-01-06 13:00:24 +01:00
2025-09-28 04:49:18 -07:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-08 15:32:55 +00:00
2025-09-28 04:49:18 -07:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2025-12-18 19:46:59 +00:00
2026-01-06 13:00:24 +01:00
2025-09-28 04:49:18 -07:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2025-09-28 05:20:20 -07:00
2026-01-06 13:00:24 +01:00
2025-08-05 15:10:15 +02:00
2025-08-05 15:10:15 +02:00
2025-11-26 09:51:59 -05:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2025-12-11 09:17:27 +01:00
2025-12-11 09:17:27 +01:00
2025-11-26 09:51:59 -05:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2025-11-26 09:51:59 -05:00
2025-09-28 04:49:18 -07:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2025-08-03 20:49:23 +02:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2025-11-26 09:51:59 -05:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00
2026-01-06 13:00:24 +01:00