Files
mesa/src
Job Noorman e78bd88a06 nir/opt_offsets: add callback to set need_nuw per intrinsic
Wether need_nuw is used is currently decided in two different ways:
- globally through the allow_offset_wrap option;
- per intrinsic but hard-coded in opt_offsets.

Make this more flexible by creating a callback that is called per
intrinsic. This will allow backends to decide, on a per-intrinsic basis,
whether need_nuw is needed.

Note that the main use case for ir3 is to add support for opt_offsets
for global memory accesses. Other intrinsics don't need need_nuw but
global memory accesses do.

Signed-off-by: Job Noorman <jnoorman@igalia.com>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37114>
2025-09-01 11:25:07 +00:00
..
2025-08-26 20:03:23 +00:00
2025-08-20 00:41:19 +00:00
2025-09-01 10:08:35 +00:00
2025-08-27 02:27:03 +00:00
2025-08-28 12:59:52 +00:00
2025-08-03 14:40:53 -04:00
2025-08-06 20:35:26 +00:00