Files
metal2vulkan/crates
Anees Iqbal 5aceb23b08 canon::generic: a generic pointer an aggregate or a vector holds takes its leaf's group
A generic pointer held in a struct, array or vector value was refused as
GenericPointer(Aggregate). Each generic pointer such a value holds is now a leaf, a union-find
node of its own: a struct's leaves are its fields' in order, an array's or a vector's its
element's, shared by every element. An insertvalue's leaves under its indices take the inserted
value's and its others the aggregate operand's; an extractvalue's take its operand's under its
indices, as does a generic pointer it extracts; a phi, select, freeze or shufflevector's take
their operands'; insertelement and extractelement link a vector's one leaf. A constant brings in
each leaf's space; an aggregate a load or a call gives stays refused (Memory, Call), and so does
one passed to a call or returned (Call). Each such value's type becomes its type with each leaf
its group's pointer, and its constants alike. This is MPS's array_ref and _MPSKernelInOut passed
by value under MSL 4.1, which the inliner leaves as insertvalue chains read by extractvalue.

The plan moves to generic/plan.rs: its union-find nodes are the instructions, the cells' slots
and the leaves, and nullness flows along the links from a value to what takes it.

Canon tests: a device pointer through one field, through the first of two fields of different
spaces and through a select of two structs keeps its space; a field a null may reach compares
with null; an array of a device and a thread pointer is TwoSpaces; a struct loaded from memory is
Memory.
2026-11-12 08:57:46 -08:00
..