Skip to content

feat(cranelift): vendor cranelift-codegen 0.138 with AArch64 LSE2 + x86_64 AVX 128-bit atomics - #5849

Open
hellovai wants to merge 1 commit into
feat/native-codegenfrom
claude/cranelift-vendor-rebased
Open

hellovai wants to merge 1 commit into
feat/native-codegenfrom
claude/cranelift-vendor-rebased

Conversation

@hellovai

@hellovai hellovai commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Stack (on top of kai/mir-stack-rebased)

  1. bcu: add baml_bcu crate and move PackageInterface/BcuMeta out of TIR #5845 (claude/bcu-meta-rebased): baml_bcu crate + .bmeta
  2. bcu: add BcuModule (.bcu), parallel baml_mir_linker, and Salsa-free emit pipeline #5846 (claude/bcu-module-rebased): BcuModule (.bcu) + parallel baml_mir_linker + Salsa-free emit
  3. feat(lang,compiler,runtime): add //baml:in_class_only and baml.errors.Panic marker interface #5851 (feat/panic-interface): //baml:in_class_only and baml.errors.Panic marker interface
  4. feat(lang,compiler,runtime): migrate magic cleanup() to baml.Cleanup interface (BEP-093 Part 3) #5852 (feat/cleanup-interface): baml.Cleanup interface (BEP-093)
  5. refactor(stdlib,mir,vm): migrate pure stdlib builtins, Array callbacks, and ns_ops to pure BAML; simplify MIR builtins #5859 (feat/stdlib-pure-baml): Migrate pure stdlib builtins & Array callbacks to pure BAML
  6. feat(lang,compiler,runtime): rust items frontend (BEP-092 v4) #5863 (avery/rust-items): Rust items frontend (rust function, rust class, builtin function)
  7. feat(lang,bcu): add rust "<crate>" syntax and disjoint native metadata in BcuModule #5868 (feat/rust-crate-syntax): rust "<crate>" syntax + disjoint RustFnMeta/RustClassMeta in BcuModule
  8. feat(native): add baml_rust_workspace BEP-092 codegen and stub baml_native_rt crate #5869 (feat/native-codegen): baml_rust_workspace BEP-092 codegen + stub baml_native_rt + baml_bcu::mangle
  9. feat(cranelift): vendor cranelift-codegen 0.138 with AArch64 LSE2 + x86_64 AVX 128-bit atomics #5849 (claude/cranelift-vendor-rebased): Vendor cranelift-codegen 0.138 + LSE2/AVX 128-bit atomics (this PR)
  10. feat(cranelift,bex2): add Cranelift AOT backend, bex2 M:N runtime, and baml pack --native #5850 (claude/cranelift-bex2-rebased): Cranelift AOT backend + bex2 M:N runtime + real BEP-092 C ABI + baml pack --native

Isolated vendoring PR extracted from #5844 and stacked on top of #5846 (claude/bcu-module-rebased -> claude/bcu-meta-rebased -> kai/mir-stack-rebased) so the vendored cranelift-codegen tree stays cleanly separated from hand-written Cranelift / bex2_* code.

What changes

  • Vendors cranelift-codegen 0.138 and cranelift-codegen-meta 0.138 under baml_language/vendor/ with:
    • AArch64 LSE2 128-bit atomic loads/stores (ldp/stp + dmb ishst) and CASP support
    • x86_64 AVX 128-bit atomic loads/stores (vmovdqa) and cmpxchg16b support
    • Relaxed and publication-safe 128-bit heap slot atomic orderings (see baml_language/vendor/cranelift-codegen/PATCHES.md)
  • Adds vendor/cranelift-codegen and vendor/cranelift-codegen-meta to .gitignore allowlist, baml_language/.markdown-whitelist, and baml_language/Cargo.toml workspace exclude.
  • [patch.crates-io] wiring is added in the stacked Cranelift/bex2 PR when baml_cranelift joins the workspace graph (avoiding unused-patch warnings on this PR).

Observable checks

  • cargo run --profile fasttest -p cargo-stow -- stow --check: 0 violations.
  • cargo check --profile fasttest -p baml_bcu: clean, 0 warnings.

@vercel

vercel Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
developer-docs Ready Ready Preview Dec 4, 2026 7:16pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 84138cb6-0cd9-40ae-b8ba-4be7f8a99516

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

@blacksmith-sh

blacksmith-sh Bot commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Found 18 test failures on Blacksmith runners:

Failures

Test View Logs
Anthropic Provider/Anthropic Provider should support anthropic shorthand View Logs
Anthropic Provider/
Anthropic Provider Streaming should support anthropic shorthand streaming
View Logs
AWS Provider/
AWS Provider Dynamic Client Registry Credential Resolution should handle session creden
tials correctly
View Logs
AWS Provider/
AWS Provider Dynamic Client Registry should throw error when using temporary credential
s without session token
View Logs
Azure Provider/
Azure Provider should support o1 model with explicit max_completion_tokens
View Logs
Collector Tests/Collector Tests should track cached input tokens for Anthropic caching View Logs
Experimental OnTick/
Experimental OnTick should fire onTick callbacks for async non-streaming function
View Logs
Experimental OnTick/
Experimental OnTick should fire onTick callbacks for streaming function
View Logs
Experimental OnTick/Experimental OnTick should handle onTick callback errors View Logs
Experimental OnTick/Experimental OnTick should not significantly impact performance View Logs

...and 8 more test failures. View all on Blacksmith

Fix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

This branch was successfully deployed

1 active deployment
Preview – developer-docs — e71ab2fd Deployed Dec 4, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant