Files
metal2vulkan/docs
Anees Iqbal f3c0008bac translator: a slot held to its narrow unit is reached from its address as it is
Under the identity domains a buffer argument whose alignment is below 4 (a uchar or ushort
buffer, air.arg_type_align_size 1 or 2) took the word form: each access rounded its 64-bit
address down to the word below it. Where every access of the slot is one narrow unit no wider
than its alignment (an i8 access of a uchar buffer, an i16 one of a ushort buffer, on a profile
with that width's storage access), the unit lies at its own address, so the slot now takes the
direct form, as a slot held to 4 does.

AccessPlan::reach records the granularity each slot's static-root accesses reach: a OneWord
leaf of a narrow unit the profile has, its size; any other leaf, a copy's endpoint and an
atomic, 4. A slot is reached from its address as it is where its alignment is at least that
(capped at 4). address_alignment now answers 1 for an argument with no alignment or one of 1;
the AddressAlignment fact is still stated only from 2 up.

engine_narrow_direct checks buffer_end_byte_load, buffer_end_byte_store and
buffer_end_half_load on every identity profile: no 64-bit and (the word form's rounding) where
the profile has the unit, the word form where it does not, L3 passes, and the narrow access
claims its unit's alignment. SEMANTICS_VERSION 2167.
2026-11-17 16:52:34 -08:00
..
2026-11-17 16:50:10 -08:00