Skip to content

DraftOwner sparklesReviewed 2026-10-26

The Sparkles toolchain — Acceptance and evidence ​

Each requirement of the specification, WASI and WebAssembly modules pages maps to a scenario, an oracle, and evidence. Evidence states follow Writing Specification Docs: verified means the named check passed for the named configuration, partial names what is missing, and planned rows name the design, not code that exists. A skipped check is not a pass. Evidence in dlang.nix and the forks is cited by link or by name, since it lies outside this tree.

Oracles ​

  • Compiler behavior — the forks' own test suites (LDC's lit and dmd-testsuite, LLVM's lit subsets for the changed backends), whose expectations are written independently of the change under test.
  • Runtime libraries — the upstream druntime and Phobos unittests, run on each host and under wasmtime for each production WASI preview.
  • Sanitizer, profile and fuzzer runtimes — programs with a planted defect (an out-of-bounds read, an unreachable branch never executed, a crash on a marked input) whose detection is the expected result.
  • Closure contents — nix path-info -r and nix why-depends on the built derivation: an absent path is checked by asking for it.
  • WebAssembly modules — a differential oracle: the same sparkles:base and sparkles:core-cli functions compiled natively, on a fixed corpus (TCM9). It detects differences between the builds, not defects the two builds share.

Requirement evidence ​

RequirementScenarioOracleEvidenceStatus
TC1Every D compilation in the flake resolves to the fork's LDCStore paths of the compilers usedchecks.d-compiler-is-fork (nix/checks/d-compiler.nix) walks every package and example the flake builds and fails on any compiler without dlang.nix's ldc-vulkan among its layers; dub itself is compiled by the fork (nix/d-toolchain.nix). No build closure of the development shell, hue or ci holds a stock LDC or a second LLVM; the only other D compiler is the prebuilt LDC that bootstraps the fork's own buildverified
TC2LDC, clang and runtimes report the same LLVM revisionldc2 --version, clang --versionldc2 reports LLVM 24.0.0git, and so does clang: LDC is built against the development view of the llvm-spirv-vulkan build that clang-sparkles wraps, one LLVM build at 275dcf28 (upstream c7a69e6f and 31 fork commits)verified
TC3Each behavior change in the forks carries a regression testReview of the branches against upstreamFork review: all 100 LDC commits and both Phobos commits, 31 of the LLVM fork's 32 (not 019489a268, UV8) and 7 of the DMD fork's 14 (the upstreaming plan lists the rest), each with its test or a reason it has none. Three LDC commits are tested by a later commit of the same series; the tests of 18 LDC and 6 DMD commits were run against a revert and failedpartial
TC4One glibc and one GCC runtime across toolchain and programsnix why-depends on a second glibcdlang.nix's nixpkgs follows Sparkles' (TC-M2): hue, terminal and ci on x86_64-linux hold glibc 2.44 and the GCC 16 runtime only, where hue held glibc 2.40 and 2.42 and the GCC 11, 14 and 15 runtimes beforeverified
TC5The lock evaluates with every Nix version CI usesContent hash of the fetched inputsdlang.nix fetches the LLVM fork as a shallow Git checkout; CI run of #691 evaluated it with Nix 2.35. Missing: a check across Nix versionspartial
TC6–TC8C, C++ and Objective-C build with the wrapped clang; LDC built by it; no unwrapped driver on any PATHcommand -v in each build environmentdlang.nix check toolchain-clang builds and runs C, C++20 and Objective-C programs with clang-sparkles; ldc-vulkan builds in clangStdenv-sparkles against LLVM's development view, which holds no compiler driver. Passes on x86_64-linux, aarch64-linux and aarch64-darwin at dlang.nix e0684b2; the macOS shell's CC is clang-sparklesverified
TC9Tools share one LLVM library; only listed tools installedInstalled file list against the list belowThe tools link the shared libLLVM and libclang-cpp. bin/ of llvm-spirv-vulkan at 275dcf28 holds exactly the installed tools and their aliases; the install is 1023 MiB, from 4.3 GiB before TC-M3verified
TC10–TC12Each runtime of the per-host list detects its planted defectPlanted-defect programsdlang.nix check toolchain-runtimes at e0684b2. On x86_64-linux and aarch64-linux: AddressSanitizer (D and C), UndefinedBehaviorSanitizer, ThreadSanitizer and MemorySanitizer report their planted defects; the profile runtime writes a profile llvm-profdata merges; libFuzzer finds the crashing input; XRay writes its log. On aarch64-darwin the same check covers ASan (D and C), UBSan, profile and libFuzzer, and LDC's sanitizer lit tests cover TSan and LSan. Missing: XRay on aarch64-darwin, whose runtime is built but not exercisedpartial
TC13No toolchain path in shipped programs' closuresnix why-dependsNo shipped program's closure holds a toolchain path on x86_64-linux, aarch64-linux or aarch64-darwin (closure measurements); builds and examples assert the compiler's paths absent and remove none (TC15)verified
TC14One glibc and one GCC runtime per shipped programnix path-info -r on hue, terminalhue and terminal on x86_64-linux: glibc 2.44 and the GCC 16 runtime only (TC4)verified
TC15__FILE__ and debug paths mapped, no reference removalstrings on built programsLDC fork 3d8b19d5 adds -fmacro-prefix-map and -ffile-prefix-map (__FILE__, __FILE_FULL_PATH__, the file names of runtime errors, final switch errors, __traits(getLocation) and debug information), with lit test codegen/file_prefix_map.d; bd9396c726 maps the file name -cov registers, and 8d5c3c8887 passes the maps to the C preprocessor for ImportC files and headers (tests/codegen/file_prefix_map_importc.c). ldc.reproducible (nix/d-toolchain.nix) maps every layer of the compiler; nix/packages/build-sparkles-app.nix and nix/packages/examples.nix assert the compiler's paths absent and remove none of them. Only Phobos' two service paths (the libcurl dlopen path and tzdata), which are not toolchain paths, are still removedverified
TC16Sizes recorded with platform and revisionsnix path-info -SClosure measurements: the shipped programs, the developer tools, ci, dub and both development shells on the three hosts, with each package's build time, at the final toolchain's revisionsverified
TC17Assertions on, or the release/checked pair with the checked variant absent from default closuresnix why-depends; build timingOne assertions-enabled LLVM (TCD8): llvm-spirv-vulkan sets LLVM_ENABLE_ASSERTIONSverified
TC18–TC19LLVM's runtimes in place of the GCC runtime; exceptions across D and C++; no libgcc_s loadedInterop program; readelf -d; LD_DEBUG=libsdlang.nix ldc-vulkan-llvm-runtimes and check toolchain-llvm-runtimes on x86_64-linux and aarch64-linux: a D exception crosses a C++ frame and a C++ exception crosses a D frame (its scope (exit) runs); the trace resolves D frames; neither libgcc_s nor libstdc++ is needed or loaded. The profile links druntime and Phobos statically, so no shared druntime brings the GCC unwinder backverified
TC20Static terminal and hue under the profile pass their suites; size and start-up recordedTest suites; ldd; timingterminal-static and hue-static (nix/packages/static-apps.nix) build under the profile with every D, C and C++ dependency static, their grammars and hue's minimal curl over OpenSSL included. legacyPackages.<system>.staticAppChecks.terminal-static and .hue-static assert that each NEEDED entry is a platform interface (glibc, the Vulkan loader, Wayland, XCB, xkbcommon, Xlib), that no GCC runtime is loaded, and, for hue, that every grammar it opens is a profile build; .terminal-static-tests (197 passed) and .hue-static-tests (314 passed) run the suites under Xvfb and lavapipe with no failure, on x86_64-linux and aarch64-linux, in CI's static-apps job Size and start-up are in the closure measurements. The window system's decoration plugin and hue's twoslash-extract helper, which runs as its own process, still use the default profileverified
TC20aDynamic dependency hygiene in default profile: no unused test or optional subcommands in NEEDEDreadelf -d; lddhue and WSI-based applications drop libxcb-xtest from direct NEEDED. hue avoids compile-time linking to libcurl, resolving it lazily via dlopen on demand and wrapping with curl under Nix, reducing hue's dynamic shared library closure from 54 libraries down to 24. harfbuzz disables GLib, Graphite2, ICU, FreeType, and PNG, dropping libglib-2.0, libpcre2-8, libfreetype.so.6, libpng16.so.16, libbrotlidec.so.1, and libbz2.so.1.0.verified
TC21Toolchain builds and tests pass on each hostNix builds on each hostdlang.nix e0684b2 builds and passes every TC22 check on x86_64-linux, aarch64-linux and aarch64-darwinverified
TC22Each toolchain package exposes a Nix-run testnix flake checkdlang.nix checks toolchain-clang, toolchain-runtimes, toolchain-ldc, toolchain-llvm-runtimes (Linux), and per production preview wasi-wasipN-runtime and wasi-wasipN-programs, all passing on the three hosts (per-host results)verified
TC23Outputs cached for every host before the lock moves; CI builds the missing ones that fit a jobBinary-cache narinfo lookups; the build planCI's pin-cache job (ci check pin-cache, derivation_pin.checkToolchainCached) queries the cache for every host's toolchain-* outputs on every trigger, so a lock move stays red until they are cached; it passed in every CI run of #707, which moved the lock to dlang.nix 0993e9d, and of #708. The build half (TCD13): pin-plan runs toolchain-pin-check --plan (derivation_pin_build.planBuilds, derivation_pin_build.buildMatrix), whose tests cover the cost budget, an unrecorded cost, a closure that needs an over-budget output, and the per-system matrix; run against a cache that serves nothing, it planned the twelve derivations for their three systems and left the twelve sources to the mirror, and with the x86_64 LLVM given a cost over the budget it deferred that LLVM and the six outputs built on it and still built DMD. Missing: a pin-build run that turns a lock move greenpartial
TC24The cache's pins are exactly the pin set, one revision eachThe cache's pin list against pinTargetsnix/pin-targets.nix; ci/toolchain-pin.d pins the set and deletes other pins (PLAN.md, Cache pins). For dlang.nix bc3291c (2026-10-31) the tool pushed and pinned the x86_64-linux entries and found no pin outside the set; the aarch64 entries, which need a builder for their system, were pinned from mac-bsn. The cache's 34 pins equal the set at one revision each, and --check finds every output cachedverified
TCW1–TCW8Sysroots, drivers, components and runtimes per previewwasm-tools validate; link testsdlang.nix wasi-wasip1, wasi-wasip2, wasi-wasip3-experimental and one D runtime per preview; wasi-wasipN-programs checks the LTO inlining of TCW3 and the absence of legacy try; preview 2 programs are components that validate. A preview 1 reactor linked with LDC's -mexec-model=reactor exports _initialize and no _start and runs its module constructor before its export; a preview 2 reactor component, linked through wasm-component-ld, exports its function and no wasi:cli/run, and wasmtime calls itverified
TCW9–TCW10Exceptions, module constructors and the GC work; runtime suites pass under wasmtimedruntime and Phobos unittestswasi-wasipN-programs runs a D program that throws, runs a module constructor and allocates 100 000 elements, under wasmtime. wasi-wasipN-runtime runs druntime's and Phobos' release and debug runners in the sandbox upstream LDC's WASI CI gives them (a preopened root, tzdata, HOME, network): preview 1 passes 68 druntime and 123 Phobos modules, preview 2 68 and 124 (std.socket), with no known failure, on all three hostsverified
TCW11Compile-time quadruple-precision results agree across hostsPhobos std.math static assertionsdlang.nix builds LDC with LDC_REAL_APFLOAT: the frontend's real_t folds through LLVM's APFloat in the target's format (LDC 6f473423). Lit test codegen/real_target_format.d checks exact quadruple-precision constants for wasm32 and aarch64 and x87 ones for x86_64, and Phobos' WASI runners build on every host. sin, cos and tan of a wider real still fold at host precision: they have no D implementation for CTFE to runverified
TCM1–TCM2Dub packages, built by Nix through dub, by each-commit builds and the aggregatenix build .#text-wasm .#table-wasm; ci commits build-eachsparkles:text-wasm (libs/base/text-wasm/dub.sdl) and sparkles:table-wasm (libs/core-cli/table-wasm/dub.sdl), wasm configuration; nix/packages/wasm-modules.nix builds them, wired-wasm and dub-manifest-nix-wasm with buildSparklesAppWith on pkgsCross.wasm32-wasip1.stdenvNoCC, the WASI host platform (meta.platforms is lib.platforms.wasi); defaultEachCommitPackages (apps/ci/src/each_commit.d) has all four, and every commit of the series builds them on x86_64-linux. CI builds them on every TC21 host, in .#all-desktop on x86_64-linux and aarch64-darwin and in the aarch64-linux test leg, which also runs their tests; wasm-reproducibility (.github/workflows/ci.yml) fails unless all three hosts report the same hashesverified
TCM3No module committed; the site builds both from its treegit ls-files; yarn docs:buildci docs stage-wasm (apps/ci/src/docs_wasm.d) copies .#docs-wasm into docs/public/, which ignores both modules; the site build serves them from thereverified
TCM4–TCM6Reactors on the shared interface; errors are valuesModule exports; native unittestsExports _initialize and TCM5's functions, no _start; sparkles.base.wasm defines the shared three; spk_table_wasm's tableRender tests (also run as @wasm tests) cover invalid JSON, invalid specifications and an undersized bufferverified
TCM7One host for the siteComponents' importsdocs/.vitepress/theme/wasi.ts on @bjorn3/browser_wasi_shim 0.4.2; both components load their modules through itverified
TCM8Sizes recordedwasm-opt -Oz outputClosure measurements: 397 KB and 948 KB; spk-wired.wasm 1552 KBverified
TCM9Modules agree with native DFixed corpus, node and nativechecks.wasm-modules (apps/ci/src/wasm_modules_check.d, docs-wasm.tests.agreement): 35 of 35 cases agree, loaded through wasi.ts. Each reactor's tests.emulator (checks.text-wasm-emulator, …) also instantiates it under the WASI platform's emulator, wasmtime, and calls spk_buf_capverified

Installed tools ​

TC9's list, each with the step that uses it. A tool is added only with its user.

ToolUsed byStatus
clang, clang++, clang-cppclang-sparkles, the WASI driversinstalled
lld (ld.lld, ld64.lld, wasm-ld)Host and WebAssembly linksinstalled
llvm-configLDC's buildinstalled
llvm-ar, llvm-ranlib, llvm-nmRuntime archives for cross targetsinstalled
llvm-objcopy, llvm-strip, llvm-readobj, llvm-size, llvm-strings, llvm-cxxfiltSparkles' builds (llvm-binutils-sparkles) and closure checksinstalled
llvm-profdata, llvm-covProfile data (TC12)installed
llvm-symbolizerSanitizer reportsinstalled
llvm-xrayXRay logs (TC12)installed
llvm-objdumpCode inspection in fork and shader debugginginstalled
llvm-dwarfdumpDebug-information inspection (TC15)installed
dsymutil, llvm-lipomacOS debug bundles and universal binariesinstalled
llc, opt, FileCheck, not, countLDC's lit tests (TC22)installed
llvm-tblgen, clang-tblgenNamed by LLVM's exported CMake targets, which the runtime builds importinstalled

LLVM installs some tools under more than one name: llvm-addr2line (llvm-symbolizer), llvm-dlltool and llvm-lib (llvm-ar), llvm-bitcode-strip, llvm-install-name-tool and llvm-extract-bundle-entry (llvm-objcopy), llvm-otool (llvm-objdump), llvm-readelf (llvm-readobj), lld-link (lld), and clang-dxc (clang). These are symbolic links that cost nothing; LLVM 24 creates clang-dxc whatever CLANG_LINKS_TO_CREATE lists.

Runtimes per host ​

TC10's required set, from compiler-rt's build for each host. A runtime listed here has a required test.

Runtimex86_64-linuxaarch64-linuxaarch64-darwinStatus
builtins, profile, fuzzerbuilt and testedbuilt and testedtestedverified
sanitizersASan, UBSan, TSan, MSan tested; LSan, HWASan builtASan, UBSan, TSan, MSan tested; LSan, HWASan builtASan, UBSan tested; TSan, LSan by LDC's lit testsverified
XRaybuilt and testedbuilt and testedbuilt, not testedpartial

Known failures ​

TCW10's list. A row names one test, the toolchain revision, and the preview.

None at LDC 0a4e8b9a and LLVM 275dcf28: every druntime and Phobos module passes on both production previews and all three hosts. The last one, druntime's core.math (quadruple-precision folding on x86_64 and macOS hosts), was removed by TCW11. A new one is recorded here with the test, the preview, the toolchain revision and its cause.

LDC test results ​

toolchain-ldc at dlang.nix e0684b2 (LDC 0a4e8b9a, LLVM 275dcf28). Lit runs the codegen, compilable, driver, instrument, linking, sanitizers and PGO directories (418 tests); ctest runs druntime's and Phobos' unittest runners, each module in release and debug, static and shared.

HostLit passedLit expected failuresLit unsupportedctest passedPhobos modulesdruntime modules
x86_64-linux35211551900 of 1900172276
aarch64-linux34811591900 of 1900172276
aarch64-darwin35312531796 of 1796172250

The twelfth expected failure on aarch64-darwin is sanitizers/asan_fiber.d.

Preview 3 ​

TCW2's record of the experimental sysroot, one row per toolchain revision.

Toolchain revisionSysroot buildProbe (exceptions, constructors, GC)Notes
LDC c8381c40, LLVM 24d1ae35passesC and C++ throw and catch under wasmtime 49, as components; D does not linkdruntime's core.thread.osthread relocates __stack_high as thread-local (R_WASM_MEMORY_ADDR_TLS_SLEB), and wasm-ld crashes
LDC 0a4e8b9a, LLVM 275dcf28Built from source (dlang.nix e0684b2: compiler-rt builtins, wasi-libc, libc++ and their LTO builds; no LLVM rebuild)Passes under wasmtime 50 with exceptions enabled: prints "ctor 42, gc 100000, caught boom 3"; a valid component exporting wasi:cli/[email protected]Links since druntime 3948ae9c99 declares __stack_high __gshared; LLVM 275dcf28 makes wasm-ld report, not crash on, a TLS relocation against a synthetic symbol (covered by its lit test only). Threads are unavailable: the sysroot's wasi-libc has no cooperative threads, so pthread_create fails

Closure measurements ​

Baseline before TC-M2, on x86_64-linux, with LDC PetarKirov/ldc@edc4ad31, LLVM PetarKirov/llvm-project@24d1ae35 and dlang.nix's nixpkgs of 2025-06-03. Sizes are nix path-info -S closure sizes unless noted.

PackageSizeNote
LLVM install (llvm-spirv-vulkan)4.3 GiBStatic libraries; bin/ 2.9 GB, each tool linking LLVM statically
ldc-vulkan577 MiBIncludes GCC 14 (257 MB) through its default C compiler
wasi-sdk505 MiBCopies clang and lld (361 MB)
clang-sparkles (prototype)4.6 GiBWraps the whole LLVM install
hue1.1 GiBTwo GCC runtimes: GCC 14's libgcc_s and GCC 15's libstdc++
spk-text.wasm488 KB (file)After wasm-opt -Oz; the committed copy is 2.5 MB
spk-table.wasm967 KB (file)After wasm-opt -Oz

After TC-M2 and the closure fixes (nixpkgs 3ec63636, LLVM and LDC as above), with no toolchain path in any closure listed:

Packagex86_64-linuxaarch64-darwinNote
hue560.5 MiB358.6 MiBmacOS was 1.5 GiB: LDC, dub and, through raylib, nixpkgs' clang and cctools
terminal439.0 MiB237.2 MiB
ui-gallery330.0 MiB108.1 MiB

The toolchain after the LLVM rebuild of TC-M3 and the WASI sysroots of TC-M5, on x86_64-linux (LDC b892093b, LLVM 24d1ae35, nixpkgs 3ec63636):

PackageOwn sizeClosureNote
LLVM install (llvm-spirv-vulkan)1.5 GiB1.5 GiBShared libLLVM; static libraries kept for LDC; a build input only
clang-sparkles-unwrapped (view)315.7 MiB362.6 MiBclang, lld and the resource headers, relinked against the view's lib
compiler-rt-sparkles35.3 MiB82.3 MiB
llvm-runtimes-sparkles19.6 MiB66.6 MiBlibunwind, libc++abi and libc++, shared and static (TC18)
clang-sparkles64.2 KiB738.9 MiBThe wrapper; GCC 16's libstdc++ headers and start files
ldc-vulkan298.1 MiB1.0 GiBHolds compiler-rt's runtimes; links through clang-sparkles
WASI libraries, both previews92 MiB—wasi-libc, libc++ and their LTO builds, builtins
ldc-sparkles-wasi-runtime-wasipN31 MiB31 MiBPer preview, with LTO variants
ldc-sparkles (ldc-vulkan, p1 and p2)242 KiB1.2 GiB
spk-text.wasm530 KB (file)—After wasm-opt -Oz; 488 KB before TC-M5. Not LTO-linked yet (TCM8)
spk-table.wasm1029 KB (file)—After wasm-opt -Oz; 967 KB before TC-M5. Not LTO-linked yet (TCM8)
spk-wired.wasm1552 KB (file)—After wasm-opt -Oz; LTO-linked (wasm-lto), docs/specs/wired/wasm WW12
spk-dub-manifest.wasm1213 KB (file)—The Nix module, not the site's; after wasm-opt -Oz, LTO-linked (WW3)

The final toolchain, after TC-M3 to TC-M5 (Sparkles 8a5702974, dlang.nix 0993e9d, LDC 5d81911f, LLVM 019489a2, nixpkgs 31ecbaca). Closure sizes are nix path-info -S of each output; a development shell's is the joint closure of everything nix develop realises for it. No shipped program's closure holds a toolchain path on any host: each was searched for LDC, LLVM, clang, compiler-rt, dub, DMD and the GCC wrapper, and every hit traced with nix why-depends.

Packagex86_64-linuxaarch64-linuxaarch64-darwinNote
hue556 MiB587 MiB358 MiB
hue-static510 MiB542 MiB—TC20
terminal434 MiB465 MiB237 MiB
terminal-vulkan344 MiB371 MiB137 MiB
terminal-static175 MiB194 MiB—TC20
ui-gallery325 MiB353 MiB108 MiB
shader-compile453 MiB461 MiB319 MiBRuns ldc2-vulkan: holds LDC and dub by design. macOS was 2.54 GiB before the fork-built dub and libLTO
twoslash-extract719 MiB594 MiB474 MiBIts dub probe compiler: DMD and its GCC wrapper on x86_64, the unwrapped LDC elsewhere
ci1.43 GiB1.29 GiB1.90 GiBThe test toolchain by design
dub74 MiB84 MiB27 MiBCompiled by the fork; holds no compiler
Development shell, default5.84 GiB5.67 GiB4.59 GiB
Development shell, ci4.61 GiB4.50 GiB4.13 GiB

Build times are the wall clock of each package's own derivation, its inputs from the cache, one build at a time: x86_64-linux on a 16-core Zen 4 with 12 cores per build, aarch64-darwin on an M4 Max with 14, and aarch64-linux in an 8-vCPU virtual machine on that Mac (which includes copying to and from it). hue and terminal are their compile, not the build-information stamp (under 0.5 s), and twoslash-extract its compile, not its wrapper.

Packagex86_64-linuxaarch64-linuxaarch64-darwin
hue192 s128 s161 s
hue-static192 s128 s—
terminal134 s89 s87 s
terminal-vulkan150 s100 s94 s
terminal-static150 s100 s—
ui-gallery89 s60 s60 s
shader-compile22 s16 s19 s
twoslash-extract121 s84 s83 s
ci115 s80 s73 s
dub101 s62 s73 s

The toolchain itself, rebuilt from source for this revision: LLVM took 17 minutes on x86_64-linux, 10 on aarch64-darwin and 35 on aarch64-linux; clang and compiler-rt about a minute; LDC 100 to 114 seconds.

The modules as dub packages (TCM1), each linked step of TCM8 on x86_64-linux (LDC 5d81911f, LLVM 019489a2, binaryen 133). A dub build compiles every library a module depends on whole, where the hand-written build compiled only the modules it imported, so the plain link is larger and link-time optimization recovers the table's (the text module, which uses little of its libraries, ends 18 KB above its plain link). Sizes are of the .wasm file, in bytes:

Stepspk-text.wasmspk-table.wasm
Linked, build type checked (with debug information)638 7944 250 637
The same, debug information stripped405 1862 150 223
The same, wasm-opt -Oz378 8281 507 356
-flto=full, the LTO druntime and Phobos, --gc-sections (wasm-lto)484 4761 159 323
The same, debug information stripped421 1461 034 582
The same, wasm-opt -Oz: the shipped module (nix build .#…-wasm)396 781947 932

Fork review ​

Forks as dlang.nix e0684b2 builds them: LDC sparkles/main 0a4e8b9a9f (tidied; pre-tidy history under tag archive/sparkles-main-2026-10-30), LLVM sparkles/main275dcf2887 on upstream c7a69e6fc6. "Red on revert": yes = the test was run with the change reverted and failed (pc1, 2026-10-30; for 7cb5c65c69, fuzz_basic.d failing on aarch64-linux before the fix); not run = the test was read, not run against a revert; n/a = no behaviour change. Upstreamable V = after the Vulkan dcompute backend (0f3f2daa31) lands in LDC; L:x = after LLVM fork commit x lands upstream.

LDC fork (origin/master..sparkles/main, tip 0a4e8b9a9f, 81 commits) ​

CommitRegression testRed on revertUpstreamable
0f3f2daa31 dcompute: Add Vulkan compute backend support (squashed with its tests)tests/codegen/vulkan_minimal_kernel.d, tests/codegen/vulkan_vector_add.dnot runyes (GSoC); needs LLVM 88d6cd00e5
da17f6c69a Fix compatibility with LLVM 24 OptionalPassInfoMixinn/a: no (build compat)n/ayes
a7aff0a499 Frontend: size and align odd-width vectors the way LLVM doesnone in commit; alignment later asserted by tests/compilable/vector_odd_width_size.d (6a1ecf48e6)not runyes
7f191ac13f dcompute: let device code call ldc.intrinsics and ldc.dcompute helperstests/codegen/vulkan_intrinsics_calls.d (0f593e4b6f)yesV
4f435c8501 dcompute: keep device-only template instances off the host, optimise Vulkan modulestests/codegen/vulkan_host_device_templates.d, vulkan_optimization_levels.d (82d94e5ba4, c73f807bcb); -O0 inliner: vulkan_minimal_kernel.dyesV
835d1ed252 dcompute: @fragment shader entry points for the Vulkan targetnone in commit; fragment tests arrive in dd589ebe08not runV
028c1c2272 dcompute: Sampler2D.sample is @safe pure nothrow @nogctests/compilable/dcompute_sample_attributes.d (fb95498594)yesV
13c3ac0eb1 dcompute: Sampler2D is the image handle; one shared sampler at binding 0 (b96329d10c folded in)none in commit; later tests/codegen/vulkan_fragment_shared_interface.d (dd589ebe08) uses Sampler2Dnot runV
e71a5d89a2 dcompute: define referenced template instances in device modules; handles stay in SSA formtests/codegen/vulkan_host_device_templates.d (82d94e5ba4), vulkan_sampler_states.dyesV
6a1ecf48e6 Frontend: an odd-width vector occupies what LLVM allocates for ittests/compilable/vector_odd_width_size.dnot runyes
dd589ebe08 dcompute: shader interfaces the host can bind by name and typetests/codegen/vulkan_fragment_shared_interface.d, tests/codegen/vulkan_fragment_uniform_types.d, tests/fail_compilation/dcompute_vulkan_fragment_interface.dnot runV + L:7c6f682594 (MemberNames)
40032a68ba dcompute: an interface name's type clash names both entry pointstests/fail_compilation/dcompute_vulkan_fragment_interface.dnot runV
7bfa7a2c6d dcompute: Vulkan modules ask for signed integerstests/codegen/vulkan_fragment_uniform_types.dnot runV + L:7c6f682594, cefc4ed81e
3a814976bb dcompute: compare interface types unqualified, name them qualifiedtests/codegen/vulkan_fragment_uniform_types.d, tests/fail_compilation/dcompute_vulkan_fragment_interface.dnot runV
eb88a0de20 dcompute: entry and interface names GLSL keeps; one marker per parametertests/fail_compilation/dcompute_vulkan_fragment_interface.dnot runV
faff28a7eb dcompute: apply all of spirv-cross's renaming rules to interface namestests/fail_compilation/dcompute_vulkan_fragment_interface.dnot runV
5c7532590b dcompute: no assertion on a one-letter interface name; types before namestests/fail_compilation/dcompute_vulkan_fragment_interface.dnot runV
2d38f70319 dcompute: Vulkan modules are SPIR-V 1.6tests/codegen/vulkan_spirv_version.dnot runV
5ad52ccb2c dcompute: Vulkan's Shared is workgroup memory, Constant UniformConstanttests/codegen/vulkan_addrspaces.dnot runV
1089bef402 dcompute: recursion in Vulkan device code is an errortests/fail_compilation/dcompute_vulkan_recursion.dnot runV
d959d8d4c2 dcompute: SamplerState, not Sampler; the minimal kernel inlinestests/codegen/vulkan_minimal_kernel.dnot runV
ff3cf25aae dcompute: Vulkan global pointers are buffer device addressestests/codegen/vulkan_global_pointer_index.dnot runV + L:3592f59866
a369402d7a dcompute: structure Vulkan device code before the SPIR-V backendtests/codegen/vulkan_structured_control_flow.dnot runV + L:340fd88de7
bf20db6877 dcompute: initialise Vulkan arrays without memset or 64-bit counterstests/codegen/vulkan_local_array_index.dnot runV
3ab988ae8d dcompute: the vertex stagetests/codegen/vulkan_vertex_stage.d, tests/fail_compilation/dcompute_vulkan_vertex_interface.dnot runV + L:06866a48d3 (spirv.Name)
13768b5bee dcompute: shader profiles and the manifesttests/codegen/vulkan_shader_manifest.d, tests/codegen/vulkan_shader_profiles.d, tests/fail_compilation/dcompute_vulkan_vertex_profiles.dnot runV
b0f7f87ad4 dcompute: decide shader entry points and their interfaces in Dn/a: no (refactor; "diagnostics and generated code unchanged")n/aV
f0c5c1a7b7 dcompute: uniform blocks, push constants and interface structstests/codegen/vulkan_resources_blocks.d, tests/codegen/vulkan_resources_loose.d, tests/fail_compilation/dcompute_vulkan_resources.dnot runV + L:ba75a9aa72, 7578d189eb
4f78f72d4d dcompute: name the 64-bit integer operations a shader reachestests/codegen/vulkan_report_int64.dnot runV
19b0e4d0e4 dcompute: one interface variable per stage, direction and nametests/codegen/vulkan_interface_names_by_stage.d, tests/codegen/vulkan_resources_array_elements.d, tests/codegen/vulkan_resources_nested_block.d, tests/fail_compilation/dcompute_vulkan_resources.dnot runV + L:ce3d2ec16f (TypeNames)
790991cb96 dcompute: report conversions through 64-bit integerstests/codegen/vulkan_report_int64.dnot runV
5a37906e49 dcompute: a compilation's capabilities, granted on the command linetests/fail_compilation/dcompute_capabilities.dnot runV
107616549e dcompute: requirements through the call graph; fragment built-instests/codegen/vulkan_fragment_operations.d, tests/fail_compilation/dcompute_requirements.dnot runV
f95b4397fb dcompute: samplers of their own (SamplerState parameters)tests/codegen/vulkan_sampler_states.dnot runV
3d607a665f dcompute: a Vulkan target emits the SPIR-V its Vulkan version consumestests/codegen/vulkan_spirv_version.d, extended to vulkan-120/110/100 (3e4d55745f)yesV + L:4e59be36e8
387c291ebf Fix dlang/dmd#21823 - vector operations during CTFEtests/dmd/runnable/test21823.dnot runyes (dmd)
675c520f4d dcompute: a @vectorType struct is its vector at a shader's interfacetests/codegen/vulkan_vector_type.d, tests/fail_compilation/dcompute_vulkan_vector_type.dnot runV
4e7e38373c Fix dlang/dmd#21823 - a vector's elements are its own in CTFEtests/dmd/runnable/test21823.dnot runyes (dmd)
70ab6d6153 dcompute: copy and zero whole typed values on Vulkantests/codegen/vulkan_typed_copies.dnot runV + L:9fcf796e56
290b691e45 dcompute: inline a Vulkan module's helpers before optimising ittests/codegen/vulkan_struct_conditional.dnot runV
288a375ba5 tests: cover the predefined versions of each WASI triplen/a: no (test-only)n/ayes
e8193632ae Wasm EH: call the personality as LLVM 24 doestests/codegen/wasm_eh_personality.dnot runyes (with LLVM 24 support)
c1490a15c7 Give interpolated expressions a precedencetests/dmd/compilable/headerinterpolated.dnot runyes (dmd)
929e60e167 ImportC: a variable of tagged type may be declared againtests/dmd/compilable/redeclare_tagged.c, tests/dmd/fail_compilation/redeclare_tagged.cnot runyes (dmd)
1e0ee44092 Fix compatibility with LLVM 24 (PassBuilder, PassPlugin, TableGen, cl)n/a: no (build compat)n/ayes
a23cd6c137 Wasm EH: select it with the module flag on LLVM 24tests/codegen/wasm_exception_model.dnot runyes (with LLVM 24 support)
f354aef01b druntime: provide _Unwind_GetWasmLPadContext for LLVM 24's Wasm EHtests/codegen/wasm_lpad_context.d (1bcf7f50a4)yesyes (with LLVM 24 support)
f1609f5143 druntime: scan TLS through __tls_get_addr on Bionic x86/x86_64tests/codegen/bionic_x86_tls_range.d (0a4e8b9a9f)yesyes (fixes #5311)
1cd64184fe DIBuilder: give an enum of an enum its integral base typetests/debuginfo/enum_of_enum.dnot runyes
d6fa02fee6 runtime: pass llvm.returnaddress its pointer typetests/instrument/finstrument_functions.dnot runyes
10040e9a4c Add vendored LLVM 24 tools/utilsn/a: no (vendored tool sources)n/ayes
170d3d0b18 tools: link LLVMHTTP into ldc-profdata when LLVM has itn/a: no (build)n/ayes
e329860504 ldc.profile: match LLVM 24's profile data recordcovered by existing tests/PGO/profile_rt_calls.d (failure cited in message)not runyes (with LLVM 24 support)
24b7022427 importc.h: define __float128 for clang toocovered by existing runtime/druntime/test/importc_compare (failure cited in message)not runyes
7646322d77 driver: say -flto when linking WASI with LTOtests/linking/wasi_lto_link_flag.d (abe32ad1c4)yesyes
3d8b19d533 driver: add -fmacro-prefix-map and -ffile-prefix-maptests/codegen/file_prefix_map.dnot runyes
f3080882e0 driver, druntime: link WASI reactors with -mexec-model=reactortests/driver/wasi_reactor_target.dnot runyes
4e5ead1887 driver: take an LTO archive's format from its bitcodetests/linking/lto_archive_kind.dnot runyes
6c9ae46094 druntime: let DefaultTraceInfo call the _Unwind_Backtrace backtrace()tests/codegen/unwind_backtrace_nogc.d (3e6235059b); at run time on Darwin exception_stack_trace_no_atos.dyesyes
69b2aca9f5 druntime: record glibc stack traces with _Unwind_Backtracetests/linking/glibc_backtrace_unwinder.d (Linux)not runyes
6b82ffcf7a driver: gather Darwin debug info into a .dSYM after linkingtests/linking/darwin_dsym.d (Darwin)not runyes
3fc6a23bd5 druntime: survive a missing atos when tracing on Darwintests/codegen/exception_stack_trace_no_atos.d (Darwin)not runyes
e41ee91cc1 importc.h: hide __SIZEOF_INT128__ on every platformtests/compilable/importc_sizeof_int128.cnot runyes
6f473423a2 Fold compile-time real in the target's format on any hosttests/codegen/real_target_format.dnot runyes
9f51b0b2d5 druntime: read Darwin trace lines from the executable's .dSYMtests/codegen/exception_stack_trace_no_atos.d (Darwin)not runyes
1e8f386e3e tests: two compilable tests require the LLVM targets they usen/a: no (test-only)n/ayes
3948ae9c99 fix(druntime): declare WebAssembly __stack_high __gsharedtests/codegen/wasm_stack_high.dnot runyes
a19fec3f58 Map the file names of final switch errors and __traits(getLocation)tests/codegen/file_prefix_map.dnot runyes (with 3d8b19d533)
ff472ff2c8 driver: link vcruntime for an explicit MS CRT with the internal toolchaintests/linking/mscrtlib_cross.dnot runyes
400504c38b docs(druntime): say how a WASI component starts the D runtimen/a: no (docs)n/ayes (with f3080882e0)
860cbe231d phobos: load time zones under a TZDIR without a trailing slashPhobos unittest in std/datetime/timezone.d at 36f227da93 (both TZDIR spellings)not runPhobos commit yes; .gitmodules URL switch no (fork-specific)
7cb5c65c69 druntime: report an uncaught exception whatever the unwinder returnsre-enables rt_trap_exceptions, memoryerror_null_call on aarch64 in runtime/druntime/test/exceptions/Makefile; existing tests/sanitizers/fuzz_basic.dyesyes
0f593e4b6f tests: device code calls ldc.intrinsics(test-only: the test itself)n/ayes, with the commit it covers
82d94e5ba4 tests: host and device modules compiled together share template instances(test-only: the test itself)n/ayes, with the commit it covers
c73f807bcb tests: a Vulkan module is optimised at the -O level asked for(test-only: the test itself)n/ayes, with the commit it covers
fb95498594 tests: sampling an image is @safe pure nothrow @nogc(test-only: the test itself)n/ayes, with the commit it covers
3e4d55745f tests: every Vulkan version emits the SPIR-V it consumes(test-only: the test itself)n/ayes, with the commit it covers
1bcf7f50a4 tests: druntime defines _Unwind_GetWasmLPadContext(test-only: the test itself)n/ayes, with the commit it covers
abe32ad1c4 tests: an LTO link for WASI passes -flto to the C driver(test-only: the test itself)n/ayes, with the commit it covers
3e6235059b tests: DefaultTraceInfo records traces with the unwinder(test-only: the test itself)n/ayes, with the commit it covers
0a4e8b9a9f tests: Bionic x86 scans TLS through __tls_get_addr(test-only: the test itself)n/ayes, with the commit it covers

LDC fork after the review (0a4e8b9a9f..sparkles/main, tip d04661844b, 19 commits) ​

dlang.nix c146e4d builds tip d04661844b, which the flake pins through its ldc-sparkles input. The first three commits fix reproducibility, WASI linking and an ASan hang. The next six complete the compiler's dependency output for the build graph:

  • the manifest of the files a compile read, with its absent candidates (BGK2);
  • the digest of the bytes the compile read from each of them (BGK2, BGK7);
  • relocatable coverage and ImportC paths (BGA5).

The next names the spirv-opt a Vulkan compilation runs, so a build that names its tools runs none from PATH (shader build SHP11). The three after it make every build work with -ftime-trace: naming a template instance no longer expands an enum that is still being initialized (which failed sparkles:dub-manifest, sparkles:build-primitives and sparkles:event-horizon); without -ftime-trace-file the trace is named after the object file instead of failing every compilation; and a trace over 2 GiB (hue at granularity 0) is written whole. DMD 2.112, the shell's dmd, had the first and the last bugs too: dlang.nix 4ef5441 and 7bf1b17 patch it with the same fixes. With both compilers, every sub-package builds traced at granularity 0.

The last is the frontend change that the shell's DMD carries too (DMD fork): the caller of a lazy variadic function whose array of delegates is declared scope keeps the frame its arguments read on its stack instead of allocating a GC closure, so @nogc code can call it. A declared scope then covers the delegates, so a @safe callee may not let them escape, and the implicit scope of every typesafe variadic array still covers only the array.

The fix after them is LDC's own. A return inside an associative-array or opApply foreach body routes every return of an sret function through its __result variable, which aliases the hidden return value unless the function needs a GC closure; then __result lives in the closure, and LDC still skipped the copy into the return value, so the caller received uninitialised memory on every return path.

CommitRegression testRed on revertUpstreamable
f62832cc17 WasmPointersSpill: spill and split in a deterministic ordertests/codegen/wasm_spill_pointers_deterministic.d (compiles Phobos' gammafunction five times, compares the objects)not runyes
66e41cd8c9 phobos: no getprotobynumber() reference in std.socket on WASInone: a link fix (wasi-libc declares the function and does not define it), exercised by any wasip2 program that links socket.onot runPhobos commit yes
5d81911f60 fix(druntime): keep collections out of createLowLevelThread's pthread_createtests/sanitizers/asan_gc_lowlevel_thread.d (ASan, alarm as the hang check)yesyes
bd9396c726 Map the file name coverage registers a module undertests/codegen/file_prefix_map.d, extended: -cov registers the remapped pathnot runyes (with 3d8b19d533)
ca5abb238f List the headers an ImportC file includes in -makedepstests/driver/makedeps_importc.c (a header two includes deep)not runyes
6ebdb35ffb Add -makedeps-absent=<file>: the paths the import searches missedtests/driver/makedeps_absent.d: misses before an import, a string import and a __traits(compiles, { import … }) probe resolved, and no hitnot runyes (a new option)
10d6c6b987 List the config file lookup's misses in -makedeps-absenttests/driver/makedeps_absent.d, extended: the ldc2.conf candidates searched before the one usednot runyes, with 6ebdb35ffb
8d5c3c8887 Pass the macro prefix maps to the C preprocessortests/codegen/file_prefix_map_importc.c: __FILE__ in an ImportC header is remappednot runyes (with 3d8b19d533)
7bee3fbdeb Add -makedeps-digests=<file>: what the compilation read from each dependencytests/driver/makedeps_digests.d (a module and a string import, each once) and tests/driver/makedeps_digests_importc.c (a header digested after the preprocessor ran)
64e6453968 dcompute: name the spirv-opt an optimised compilation runstests/codegen/dcompute_spirv_opt_path.d (a recording spirv-opt: the named one runs, an empty name runs none, and only without the option is PATH searched)
0b25dd4ad7 Print a template argument in use without expanding ittests/dmd/compilable/timetrace_eponymous.d (an eponymous enum passed to anySatisfy inside its own initializer, traced at granularity 0)yesyes (DMD frontend)
84afab43cc Name the time trace after the output when no file is giventests/driver/ftime-trace-default-file.d (an object and a library's object, no --ftime-trace-file)yesyes
4aa7f4a1a9 Write a frontend output file in as many write() calls as it takesnone: the failure needs a file over 2 GiB; hue built with -ftime-trace-granularity=0 fails before the fix and builds afteryes (by that build)yes (DMD frontend)
0c89869f30 Fix dlang/dmd#22885: a scope lazy variadic array needs no closuretests/dmd/{runnable,compilable,fail_compilation}/test22885*.d (the DMD fork's tests); tests/codegen/lazy_variadic_scope.d (no _d_allocmemory in the caller, the array an alloca; a non-scope array still allocates); tests/sanitizers/asan_lazy_variadic.d (deep recursion and stored delegates under ASan's stack-use-after-return detection)yesyes (DMD frontend, UD8 of the upstreaming plan)
c5b18c33b1 Backport dlang/dmd#24243: a closure's later captures still escapeupstream's tests/dmd/fail_compilation/issue24065.d; tests/dmd/runnable/issue24065b.d (sparkles' benchCase reduced: two closures over a local and the parameters, read after the registering frame is overwritten)yes: issue24065b.d fails on 0c89869f30 and on DMD 2.112.1merged upstream (dlang/dmd#24243); UL21
873265a00b Run test22885 with -inline(test-only: tests/dmd/runnable/test22885.d under the default permutations, as in the DMD fork)n/awith UD8
341bb78fb7 Fix sret return of a __result variable captured in a GC closuretests/codegen/nrvo_result_closure.d (an associative-array and an opApply foreach returning a 64-byte struct from a function whose frame a stored delegate holds, with and without -O)yes: the reduction fails on 873265a00byes (LDC codegen, UL23 of the upstreaming plan)
b4d4cc7c65 Add -makedeps-probes=<file>: the -makedeps-absent searches, compactlytests/driver/makedeps_probes.d (two -I and two -J roots, a package module, a lookup that fails twice and is listed once, the working directory; the probes expanded by expand.d equal the --makedeps-absent set)yes: the option does not exist without ityes (frontend and driver, UL24 of the upstreaming plan)
d04661844b tests: join makedeps_probes' expanded paths as FileName.combine does(test-only: tests/driver/inputs/makedeps_probes/expand.d joins a root and a candidate with \\ on Windows, as the compiler does)n/awith UL24

LDC's suites at 0c89869f30 and at its parent 4aa7f4a1a9, built the way dlang.nix 0107f30 builds ldc-vulkan (pc2-local, x86_64-linux, 2026-11-25), differ only by the change's own tests: ldc2-unittest 2 of 2 both; lit 379 against 377 passed of 481 and 479, with the same 33 failures (the nine on LIT_XFAIL, 23 Vulkan tests without spirv-dis on PATH, a plugin test whose C++ build finds no standard headers) and 67 unsupported; dmd-testsuite with the same four failed targets (compilable/ddocYear.d, runnable/importc-test1.sh, runnable/test20275.d, runnable/testmodule.d); druntime and Phobos 1900 of 1900 both.

At 873265a00b against 0c89869f30, built and run the same way: the same results, with the three runs of the backport's tests added and passing (dmd-testsuite 4673 against 4670 runs).

At 341bb78fb7 against 873265a00b (2026-11-26): the same failures, with the new codegen test added and passing (lit 380 against 379 passed of 482 and 481); every other suite as before.

At b4d4cc7c65 against 341bb78fb7 (2026-11-26): the same 48 lit failures in both builds (PGO, Vulkan, XRay, sanitizers, the plugin test: this host's environment) and the same 4 dmd-testsuite failures, with the new driver test added and passing. On sparkles' apps/diagram compile the probes file is 22,367 bytes in 656 lines against --makedeps-absent's 4,351,494 bytes in 84,476, and expands to exactly its 84,475 paths.

DMD fork (sparkles/main, tip e245294ceb) ​

The shell's dmd is dlang.nix's dmd-sparkles, built from PetarKirov/dmd sparkles/main: DMD master 999db40464 with twelve fixes, each also a single commit on a fix/* branch off DMD master, and two test-only commits. The upstreaming plan lists every fix; this table records the commits reviewed here.

CommitRegression testRed on revertUpstreamable
0964acb1e0 Fix dlang/dmd#22885: a scope lazy variadic array needs no closure (fix/scope-lazy-variadic d8d29a0c3d)compiler/test/runnable/test22885.d (evaluation order and count, mutation seen through the frame, temporaries' constructors and destructors, exceptions, deep recursion and large frames, GC.stats unchanged, CTFE; a non-scope array's stored delegates read the right values after the frame is gone), runnable/test22885b.d (-betterC), compilable/test22885.d (call shapes, mangling), fail_compilation/test22885.d (escapes from a @safe callee), test22885b.d (an override dropping scope), test22885c.d (a non-scope array still allocates)yes: all but test22885c.d fail on e0b6e795ffyes (dlang/dmd#22885)
333c76284f Read a full expression's value before destroying its temporaries (fix/temporary-lvalue-dtor 311ee8e0f2)compiler/test/runnable/dtor_temp_lvalue.d (a field, a member call, a static array field, a delegate literal and lazy arguments read before the temporary's destructor; a ref return still returns the variable), under the default permutations, -inline among themyes: fails on 0964acb1e0 with and without -inlineyes (UD10, no issue yet)
21663b0b95 Run test22885 with -inline(test-only: runnable/test22885.d under the default permutations)n/awith UD8
d19ed4c2ec Test the TypeInfo functions of a struct instance elided herecompiler/test/dshell/typeinfo_elided_instance.d, the test b675a6d14d lacked (TC3): a library built without -unittest, an importer built with -unittest -allinstyes: the link fails on an undefined Interval!U3.__xopEquals with b675a6d14d revertedwith UD5 (folded into fix/typeinfo-skipped-instance-members a0920c9b9b)
43457b6d06 Clear a folded constant's bytes before evalu8 writes the result (fix/evalu8-stale-bytes b87bf3b50f)compiler/test/compilable/fold_const_push.d (-vasm -inline: a constant ubyte argument passed on the stack is push 3, not a register loaded with the high half of an operand's address; the object differed between compilations, the sparkles-test-runner.o of CI run 45970839226)yes: fails with only evalu8.d reverted before UD14 (c95151e502, tag sparkles/pin-c95151e502), mov RAX,059EF00000003h; at the tip UD14 hides the bytes, and the test is red on revert on fix/evalu8-stale-bytes, with the operands' addresses above 4 GiB as the position-independent compiler's heap puts them: a heap below 4 GiB leaves the bytes zero, and the test passes without the fixyes (UD12, no issue yet)
32e923a1ff Clear a comparison's operands from the constant it folds to (fix/gother-cmp-stale-bytes 8960287591)compiler/test/compilable/fold_const_push_cmp.d with its own import (-vasm -O: a comparison every definition makes true, passed as a stack bool, is push 1)yes: fails with only gother.d reverted before UD14, mov RAX,057A000000001h and different high bytes on each run; at the tip UD14 hides the bytes, and the test is red on revert on fix/gother-cmp-stale-bytes, with the same dependence on the heap's placementyes (UD13, no issue yet)
e245294ceb Read a constant stack argument at its own size (fix/push-const-arg-width 272e1623c8)compiler/test/compilable/push_const_arg.d (-vasm -inline: cast(byte)-1 widened to int and the fold of ~0u, passed on the stack, are both push -1)yes, through pushParams (movParams emitted no stale bytes; they only sent a constant to its register path): test fails with only cod1.d reverted at the tip, three runs of three, mov EAX,0FFFFFFFFh push RAX; with UD12 and UD13 reverted as well, mov RAX,060A8FFFFFFFFh, which the fix makes push -1yes (UD14, no issue yet)

DMD's suites at 0964acb1e0 and e0b6e795ff (pc2-local, 2026-11-25), with Phobos at the master that dlang.nix pins: compiler/test/run.d ran 4064 and 4058 targets, with one failure in both (runnable/optimizer1.d, a syntax error in the test at that master); druntime's unittests passed the same 164 runs, with its profile, profilegc and both tests failing in both for a tool the shell lacks; Phobos passed the same 260 runs, with std.datetime.systime, std.datetime.timezone and std.net.curl failing in both (time zone data and network).

At d19ed4c2ec against 0964acb1e0, the same way: run.d ran 4066 targets, the two new tests among them passing, with the same single failure; druntime and Phobos the same as above.

At c95151e502 against d19ed4c2ec (this host, 2026-11-28, Phobos from a local master build): run.d ran the compilable, runnable and fail_compilation targets, both failing the same ones: runnable/optimizer1.d (the syntax error above), and compilable/json2.d, seven .sh tests and the gdb tests, for tools and paths this host lacks. The two new tests pass at c95151e502. Druntime and Phobos were not rerun. With address randomization on, the sparkles-test-runner.o that CI found nondeterministic is byte-identical over ten builds each in the checked and debug build types with the fork built from source, and over three each with dlang.nix's dmd-sparkles; the previous dmd-sparkles gave a different object on each build.

At 44211d0aeb (tag sparkles/pin-44211d0aeb) against c95151e502 (this host, 2026-11-28, Phobos at 79358d159), UD14 on c95151e502, whose tree differs from e245294ceb only in UD13's test import: run.d ran 1380 compilable, 732 runnable and 1904 fail_compilation targets, and 1379, 732 and 1904 at c95151e502, both failing the same 26: optimizer1.d, and .sh tests, cdcmp.d's objdump script and the gdb tests, for tools this host lacks. push_const_arg.d passes, and so does UD13's test with its own import, run alone from e245294ceb's test files. The -vasm listings of druntime (-m64, -m32, each with and without -O -inline -release, and Win64 with them) and of Phobos (-m64 and -m32 with them, without std.internal.digest.sha_SSSE3, whose listing crashes the disassembler in both) are identical between the two. With address randomization on, sparkles-test-runner.o is byte-identical over three builds each in the checked and debug build types with dlang.nix's dmd-sparkles at e245294ceb.

UD14's sign extension makes one kind of call larger: a uint constant with bit 31 set, passed on the stack twice, was mov EAX,imm32 and two push RAX (7 bytes), and is now two 5-byte immediate pushes. Passed once, it is 6 bytes against 5, and a folded narrow negative 6 against 2. The listings above have no instance of the repeated case.

LLVM fork (upstream/main..sparkles/main, tip 275dcf2887, 31 commits) ​

CommitRegression testRed on revertUpstreamable
88d6cd00e5 [SPIRV] Support PhysicalStorageBuffer addressing and struct block wrapping for Vulkanllvm/test/CodeGen/SPIRV/pointers/physical-storage-buffer-load-store.llnot runopen upstream as llvm/llvm-project#216919 (GSoC)
7c6f682594 [SPIRV] Signed integers on request; struct member names for shader interfacesllvm/test/CodeGen/SPIRV/signed-integers.ll, signed-integers-zext.ll, member-names.llnot runyes (new module flag + metadata need agreement)
391bbed1a8 [SPIRV] Build logical access chains with 32-bit literal indicesmodifies llvm/test/CodeGen/SPIRV/pointers/structured-buffer-access.ll and 5 othersnot runyes
3592f59866 [SPIRV] Buffer device addresses on request; index them with OpPtrAccessChainllvm/test/CodeGen/SPIRV/pointers/physical-storage-buffer-byte-addressing.ll, physical-storage-buffer-ptr-access-chain.llnot runafter #216919 (amends it)
7ed8c4cae2 [SPIRV] Do not materialise a resource's name stringllvm/test/CodeGen/SPIRV/hlsl-resources/resource-name-no-int8.llnot runyes
211a3ab07d [SPIRV] Add llvm.spv.terminate.invocationllvm/test/CodeGen/SPIRV/hlsl-intrinsics/terminate-invocation.llnot runyes (new intrinsic)
340fd88de7 [SPIRV] Give nested conditions that share an exit merge blocks of their ownllvm/test/CodeGen/SPIRV/structurizer/early-return-shared-exit.llnot runyes
fd8b2594fd [SPIRV] Read the members of a buffer laid out with spirv.Layoutllvm/test/CodeGen/SPIRV/hlsl-resources/spirv.layout.getpointer.llnot runyes
c8cd35917d [SPIRV] Lower a peeled cbuffer array to an array of its elementllvm/test/CodeGen/SPIRV/hlsl-resources/explicit-layout-blocks.llnot runyes
a179f26f88 [SPIRV] Name a laid-out struct oncellvm/test/CodeGen/SPIRV/hlsl-resources/spirv.layout.type.llnot runyes
929b6bb879 [SPIRV] Index logical access chains with the 32-bit index a frontend widenedllvm/test/CodeGen/SPIRV/logical-access-chain-narrow-index.llnot runyes
9fcf796e56 [SPIRV] Lower a memset of a whole object to a store on logical SPIR-Vllvm/test/CodeGen/SPIRV/logical-memset-whole-object.llnot runyes
cefc4ed81e [SPIRV] Compute unsigned division and conversion in an unsigned typellvm/test/CodeGen/SPIRV/signed-integers-unsigned-ops.llnot runafter 7c6f682594
d56b7d97a2 [SPIRV] Fold whole element steps into the index of a logical access chainllvm/test/CodeGen/SPIRV/logical-access-chain-step-elements.llnot runyes
06866a48d3 [SPIRV] Name a global variable by its spirv.Name metadatallvm/test/CodeGen/SPIRV/global-variable-spirv-name.llnot runyes (new metadata needs agreement)
b62852ae29 [SPIRV] List a shader entry point's interface from its call treellvm/test/CodeGen/SPIRV/entry-point-interface-per-entry.llnot runyes
7578d189eb [SPIRV] Drop spirv.Padding members from an explicitly laid-out structllvm/test/CodeGen/SPIRV/hlsl-resources/explicit-layout-padding-members.llnot runyes
ba75a9aa72 [SPIRV] Uniform blocks of one struct on request (spirv.struct-blocks)llvm/test/CodeGen/SPIRV/hlsl-resources/struct-blocks.llnot runyes (new module flag needs agreement)
1de563895a [SPIRV] Keep a push-constant global's namemodifies llvm/test/CodeGen/SPIRV/vk-pushconstant-access.llnot runyes
70b51b6381 [SPIRV] Keep structs with named members distinctllvm/test/CodeGen/SPIRV/struct-member-names-distinct.llnot runafter 7c6f682594
d6e24f6100 [SPIRV] Read element 0 of a peeled array through one indexllvm/test/CodeGen/SPIRV/hlsl-resources/cbuffer-peeled-array-first-element.llnot runyes
c9dd5124e6 [SPIRV] Keep a push-constant global's metadatallvm/test/CodeGen/SPIRV/vk-pushconstant-spirv-name.llnot runafter 06866a48d3
ce3d2ec16f [SPIRV] Name a struct by its spirv.TypeNames namellvm/test/CodeGen/SPIRV/struct-type-names.llnot runyes (new metadata needs agreement)
4e59be36e8 [SPIRV] Accept Vulkan 1.0 and 1.1 triplesllvm/test/CodeGen/SPIRV/vulkan1.1-spirv1.3.ll, llvm/unittests/TargetParser/TripleTest.cppnot runyes
41ccb17558 [VNCoercion] Forward a vector element as an extractelementmodifies llvm/test/Transforms/GVN/pr63059.llnot runyes
1d775759c7 [SelectionDAG] Fall back on sin and cos when an FSINCOS libcall is missingllvm/test/CodeGen/X86/sincos-f128-no-libcall.llnot runyes
2d833c467d libunwind: exclude __declspec from wasm buildhard to test: header-only build fix, exercised only by a wasm libunwind buildnot runyes
e31c11bf0b [DebugInfo] Look through an enumeration based on an enumerationllvm/test/DebugInfo/X86/enum-of-enum-constant.llnot runyes
739a6c7943 [libc++] Include the IBM locale base API on z/OS onlyhard to test: header build fix, exercised only by a wasm32-wasi libc++ buildnot runyes (wasi-sdk carries the same patch)
54d4be7f9f [libc++] Provide the default rune table for WASI againhard to test: header build fix, exercised only by a wasm32-wasi libc++ buildnot runyes
275dcf2887 [lld][WebAssembly] Do not crash on a TLS relocation against a synthetic symbollld/test/wasm/tls-reloc-synthetic.snot runyes

Phobos fork (PetarKirov/phobos, the submodule commit of 66e41cd8c9) ​

CommitRegression testRed on revertUpstreamable
36f227da93 Fix std.datetime.timezone: names under a TZ dir without a trailing slashnew unittest in std/datetime/timezone.d (the TZ Database directory with and without a trailing slash gives the same, loadable names)not run for the new unittest; the module's existing unittests failed under nixpkgs' TZDIR without the fix (toolchain-ldc excluded std.datetime.timezone until then)yes (dlang/phobos)
9d9ceb18b3 std.socket: no getprotobynumber() on WASInone: a link fix (wasi-libc declares the function and does not define it), as LDC's 66e41cd8c9 recordsnot runneeds a fix/* branch (UP2)