Metal's stitcher writes its library only at run time, so the tests get
its structure from a writer of our own: metal2vulkan_devtools::stitched
writes, as LLVM text, the module the probe stitched_function_linked.m
read back from Metal for a graph of float stitchable functions (the
stitched function with its nodes inlined, its air.visible entry and
air.stitching_info naming internal helpers kept by llvm.compiler.used,
and an !air.signature of kind air.stitching_modules_signature listing
the graph in post-order and a digest per stitchable function), and the
executable metallib holding one visible (TYPE 4) module per function.
PROBE_GRAPHS are the probe's `fused` and `fused4`. No Apple-produced
bytes are committed.
The owned fixture engine/stitched_caller (regen-air-fixtures, macOS
27.0 target, as the probe compiled) holds the stitchable sum2 and
product2 and the kernels stitch_caller and stitch_caller4 that call
`fused` and `fused4`.
tests::engine_stitched checks Metal's answers: through the public API
the stitched library's functions are visible and each kernel's compute
pipeline links its function in privateFunctions and in functions; on the
SPIR-V interpreter the kernels store the probe's 20 and 25 (and the
graph's value on two other input sets); and each link passes L3 on
every committed profile.
Verified: the three tests pass; with the previous commit's gate
restored all three fail, the link refused with exactly the consumer's
error (Linking, NotImplemented, stitch_caller block 0 instruction 5,
symbol "fused"). regen-air-fixtures --check: up to date.
(Carried to development from steelbrain/reims-graphics-kext 88a6b651a7.)