Files
metal2vulkan/crates
Anees Iqbal b51989986d AIR intrinsics: list llvm.trap as known and not decoded
The bitcode-reader census over the private corpus reported llvm.trap as an unlisted unknown
intrinsic: one row, 132 calls, each MSL's __builtin_trap (a call, then unreachable), all in
functions the kernel reaches. MSL 4.1 and Metal's headers do not define a reached trap. The row
translates today (runtime-floor translation audit, release: translated): canonicalization
removes every trap for its constants. The planner's ruling: the row is not refused, so it closes
with the name listed. UNDECODED now lists llvm.trap with that reason, so the census counts it
listed; its calls still stay Callee::UnknownIntrinsic, and a trap that survives canonicalization
is still refused as UnknownIntrinsic. No translation changes, so no version moves. The module and
list docs say the list holds llvm.* names too; api_signatures.tsv is reblessed for the
const-value.

Verified: see the READY line (census before/after on ms01, the list's unit tests red then green,
fmt, clippy plain).
2026-12-03 16:18:18 -08:00
..