llvm.agx2.shfl, i32 (i16 a, i16 b), interleaves its operands' bits: bit 2i of the result is bit i
of a, bit 2i + 1 is bit i of b. Measured on an M3 Max over all 2^32 operand pairs, with zero
differences against the interleave and 2^31 against a control with one table bit wrong. MSL
documents the same contract for interleave(ushort, ushort), which compiles to air.interleave.i32
instead. The lowering is per-thread integer arithmetic on every device, with no feature and no
subgroup operation: each operand, held zero-extended in its 32-bit container, is spread to the
even bits by four mask-and-shift steps (0x00FF00FF, 0x0F0F0F0F, 0x33333333, 0x55555555), and the
second is shifted up by one and ORed in. The decode names it AgxOp::Shfl with that signature;
every other AGX operation keeps its refusal (igemm is undocumented and the M3 cannot compile it).
The memory analysis refused a call with no signature that takes or returns a pointer as
Lowering(Access). For an AGX call that means an operation whose contract is not modelled, so it
is now refused as AgxUnmodeled, the refusal the lowering gives the same operation without a
pointer. The census by kind ranks the work, so the label has to name the cause.
SEMANTICS_VERSION 2276 -> 2277 (the shfl rows' modules, and the relabelled refusal class).
api_signatures.tsv gains AgxOp::Shfl: a consumer's exhaustive match on metal2vulkan-air's AgxOp
breaks (git grep AgxOp in the consumer's checkout at 3c4979983e: 0 hits). docs/REFUSALS.md does
not move: AgxUnmodeled is still built at its one helper.
Red before: m3-max-69816 (msi, a0e15aed00, llvm-as 23.1.1): the shfl kernel refused as
AgxUnmodeled, and the wide emask load refused as Lowering(Access).