Repository navigation
2026.11.26.1: a private fragment after conditions, the purview read as C++ tokens, a tip for the optimization a failure may be - #1014
Merged
Conversation
…names, not from apt The job installed Wine from apt: a closure of about 200 packages, i386 multiarch included, whose download depended on the runner's mirror and on a cache the repository's size limit evicts. On 2026-11-24 the step exceeded its 20 minutes three times in a row on main. The engine's Windows-on-Linux runner row already names xim:wine@11.0, one portable WoW64 archive; the job now installs that package through xlings and puts its bin directory on PATH. The runner-image key, the wine-debs cache and its save step are removed; the xlings cache key moves to v4 so the saved home carries the package.
…ip of an optimization, and why clang's BMI has no reader
…he purview is read as C++ tokens; private_fragment = conservative
… that entry alone; the graph-shaping switches are part of the replayed request
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.
Release 2026.11.26.1. Design record:
.agents/docs/2026-11-26-clang-bmi-cutoff-and-private-fragment-refinement-design.md(v4).A private module fragment after conditions (SPEC-019 §5).
#if,#ifdef,#ifndef,#elif,#elifdef,#elifndef,#else,#endif,#errorand#warningbeforemodule :private;no longer keep the source from being built as two units: a condition only decides which declarations exist, and the implementation unit receives them from the interface. A condition still open at the module declaration or at the fragment, and any directive that changes the fragment's meaning (#define,#undef,#include,#pragma,#line,_Pragma), leave the source as written.private_fragment = "conservative"keeps the rule before this change, and is the check available on GCC.The purview is read as C++ tokens. A digit separator (
1'000) no longer hides the rest of its line, a raw string may run over lines and holdmodule :private;, astaticinsideextern "C" { … }is at namespace scope, and a line continuation between the module declaration and the fragment leaves the source as written. Each only makes more sources built as written.A failure says how to check the optimization (SPEC-019 §9). When a build fails at a step an entry acted on (a source built as two units; a unit that imports a BMI kept with earlier lines; a link where either is present), it ends with a
tip:giving the one invocation that turns that entry off. The text is made of the register's key, environment name and newcheckvalue. A failure of another step, a successful build and--quietsay nothing.Found on the way.
MCPP_PRIVATE_FRAGMENT,MCPP_BMI_SCHEDULEandMCPP_BUILDOPTwere not part of the request a recorded build is replayed for: a build with no edit after changing one replayed the graph the other value had written. They are now.Not implemented: a reader for clang's
.pcm(design item A). Measured with clang 20.1.7, 22.1.8, 23.1.3 and 23.1.6: the operand that holds a function's hash is at an index that varies with the declaration (26, 27 and 29 for member functions of one version) and the version, and a third of the edits change the VBR width of that 32-bit value, which moves the bit offsets and three offset tables. A reader could not tell the field from an interface change, so SPEC-018 §2.2 and SPEC-019 §8 record the measurement and the conditions under which it becomes possible.Tests.
modules/buildopt: about 55 verdicts of the purview (directives, conditions, lexical forms,conservative), a reassembly property, noise invariance, 400 random texts, the tip rules R1 to R4, the register'scheck, theFAILED:reader.tests/e2e/build/basics.cpp1161 to 1164: conditions and macros,conservativeand the first build after a value changes, the tip on clang and GCC with the check taking effect, an unrelated failure and--quietsaying nothing, a kept BMI.Also on this branch. The
mingw-cross-winejob takes Wine from thewine@11.0package the engine's runner row names instead of apt (the step exceeded its 20 minutes three times on main on 2026-11-24): it installs the package through xlings, puts itsbinonPATH, drops the i386 architecture and thewine-debscache, and moves the xlings cache key tov4.