Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
This comment has been minimized.
This comment has been minimized.
…-free .bcu text printer
… parity tests (Step 2a)
…level lower_package (Step 2b)
… deterministic merge (Step 3a)
…o baml_mir_linker
hellovai
force-pushed
the
claude/bcu-meta-rebased
branch
from
December 3, 2026 05:55
e8cf595 to
e424b52
Compare
hellovai
force-pushed
the
claude/bcu-module-rebased
branch
from
December 3, 2026 05:55
7b86c3b to
d16e517
Compare
Contributor
|
Found 18 test failures on Blacksmith runners: Failures
...and 8 more test failures. View all on Blacksmith
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
![Fix with [code]smith](https://pr-comments-assets.blacksmith.sh/codesmith/fix-with-codesmith-light-v2-3x.png)
Stack (on top of
kai/mir-stack-rebased)claude/bcu-meta-rebased): baml_bcu crate + .bmeta (replaces bcu: add baml_bcu crate and move PackageInterface/BcuMeta out of TIR #5827)claude/bcu-module-rebased): BcuModule (.bcu) + parallel baml_mir_linker + Salsa-free emit (replaces bcu: add BcuModule (.bcu), parallel baml_mir_linker, and Salsa-free emit pipeline #5830) (this PR)claude/cranelift-vendor-rebased): Vendor cranelift-codegen 0.138 + LSE2/AVX 128-bit atomics (from feat(cranelift): vendor cranelift-codegen 0.138 and add AArch64 LSE2 + x86_64 AVX 128-bit atomics #5844)claude/cranelift-bex2-rebased): Cranelift AOT backend + bex2 M:N runtime + baml pack --native (squashes feat(cranelift): add clean-room Cranelift AOT backend, runtime, andbaml pack --native#5839, perf(cranelift): pinned mutator register, CallConv::Tail, TCO, scalar call ABI, and can_throw elision #5842, feat(cranelift): native 128-bit atomic Value slots across ABI, runtime, and Cranelift (no BUSY_BIT, unvendored) #5843, feat(cranelift): vendor cranelift-codegen 0.138 and add AArch64 LSE2 + x86_64 AVX 128-bit atomics #5844, feat(bex2): M:N work-stealing runtime, shared-heap GC, wait-free containers, direct-poll Tokio I/O, and two-tier package init #5847)Why
MirFunction<'db>carried Salsa lifetimes (FunctionLoc<'db>,ClassRef<'db>,EnumRef<'db>,InterfaceRef<'db>,GlobalRef<'db>,baml_base::Span) and forced MIR lowering, O2 optimization, escape analysis, and bytecode emission to execute through per-function Salsa queries (lower_function,impl_rule,runtime_signature,escape_summary)..bcu) to disk, blocked target-independent backends (such as Cranelift), and added Salsa query /DeclNameallocation overhead on large projects.What changes
Introduces the complete, end-to-end
.bcu(BcuModule) compilation pipeline on top ofbaml_bcu(.bmetafrom #5845), including full Salsa-free O2 optimization parity:'staticBcuModule+baml_bcu::mir+ArtifactKind::BcuModule(baml_bcu,baml_artifact): zero-costId<K>(TypeDefId,GlobalId,FuncId),WireRef<K>,SymbolTable<K, Local, Import>,BcuFileId/BcuSpan,file_line_starts,FuncKey,LocalTypeDef/LocalTypeDecl(includingrust_type: Option<RustPayloadKind>),MirFunction,ImplRule,InlineScope, deterministic Borsh encoding,validate(),semantic_digest(), and a sigil-free.bcutext printer.baml_compiler2_mir,baml_compiler2_emit,baml_db,baml_cli,baml_tests): deletesMirFunction<'db>,MirFunctionId<'db>,ImplRule<'db>, andInlineScope<'db>; lowers each package in parallel intoArc<BcuModule>with byte-identical deterministic merge across workers.baml_mir_linkerwith full O2 parity (crates/baml_mir_linker): bindsLocator::{Prelude, Direct, Transitive}, verifies.bmetadigests, computes$initorder (tolerating prelude cycles), assigns global IDs via prefix sums, relocates all packages in parallel intoLinkedMirProgram, and runs the complete parallel Salsa-free O2 pass suite (devirtualize, cross-packageinline+ stdlibloop_form+ closures,valuesconstant folding / dead stores / operand-prefix materialization,scalar_replace,effectsinterval/bounds drop elimination,cleanupcopy propagation / dead locals / RPO,redundancyCSE / negated branches / return threading, andloopsLICM with local Steensgaard escape analysis + loop rotation).baml_compiler2_emit,baml_db): extracts a shared zero-lifetimeEmitTargettrait inemit.rs, addsemit_linked_program(&LinkedMirProgram, opt) -> Program(with Salsa-free interprocedural escape analysis and BEP-085 package-isolatedcompilation_unit_hash), and wiresCheckedWorld::compilethrough pure per-package O0.bmeta+.bcu->baml_mir_linker->emit_linked_program.Observable checks
cargo run --profile fasttest -p cargo-stow -- stow --check: 0 violations.cargo fmt --all -- --check: clean.fasttest):baml_bcu: 9/9 passedbaml_mir_linker: 32/32 passedbaml_compiler2_mir: 79/79 passedbaml_compiler2_emit: 57/57 passedbaml_db: 70/70 passedfasttest):baml_tests --test bcu_e2e: 2/2 passedbaml_tests --test inliner: 48/48 passedbaml_tests --test package_identity: 11/11 passedcargo clippy --profile fasttest --no-deps --tests -p baml_artifact -p baml_bcu -p baml_mir_linker -p baml_compiler2_hir -p baml_compiler2_hir_ty -p baml_compiler2_mir -p baml_compiler2_emit -p baml_db -p baml_cli -- -D warnings: 0 warnings.