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.
This commit is contained in:
Anees Iqbal committed 2026-11-25 13:14:58 -08:00
1 parent 31b3470a3e
commit b6b940fd5f
1 file changed
+1 -1
+1 -1
View File
@@ -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