From b6b940fd5f9e4fed1c5f5c9204502cd88de04632 Mon Sep 17 00:00:00 2001 From: Anees Iqbal Date: Wed, 25 Nov 2026 12:48:15 -0800 Subject: [PATCH] SEMANTICS 2304: AIR 1.8's pre-LLVM-4 metadata and typed-pointer records now read What: SEMANTICS_VERSION 2303 -> 2304. Why: the reader change before this commit changes the output for an input under an unchanged key. A module with METADATA_STRING_OLD, METADATA_KIND in the METADATA block, METADATA_OLD_NODE, INBOUNDS_GEP_OLD, or a LOAD or CALL without its type was refused InvalidInput(Unsupported( BitcodeRecord or Instruction)), and it now decodes and its functions may compile. docs/HOWTO.md section 4 lets a consumer keep a non-transient error as the answer for that input and device, so without the bump a cached refusal would outlive the fix. A module that decoded before decodes to the same tables, except that a METADATA_KIND record with fewer than 2 operands or a kind id stated twice is now malformed, as LLVM's reader refuses it. The golden table reports a bless due; it is re-blessed on development. Verified: not yet run at this commit; the lane's suite job follows. --- crates/metal2vulkan/src/cache/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/metal2vulkan/src/cache/mod.rs b/crates/metal2vulkan/src/cache/mod.rs index fab2bef3c..074d6f5a9 100644 --- a/crates/metal2vulkan/src/cache/mod.rs +++ b/crates/metal2vulkan/src/cache/mod.rs @@ -60,7 +60,7 @@ mod tests; /// unchanged version, and its bless records the version. Independent of the crate's version and of /// [`ARTIFACT_FORMAT_VERSION`]. The commit that bumps it says what changed; this comment keeps no /// history. -pub const SEMANTICS_VERSION: u32 = 2303; +pub const SEMANTICS_VERSION: u32 = 2304; /// The byte-layout version of encoded artifacts (`CompiledFunction::to_bytes` and the /// [`PipelineArtifact`] encodings). Every encoded artifact carries it, and a decode under another