brush-shell: Update to version 0.5.0
Bash compatibility
- 96+% passing on the upstream bash-completion test suite (2,040 tests passing)
- 3,600+ Bash-oracle tests & end-to-end scenario tests
- Key compatibility wins
More reliable pipelines and jobs
Fewer surprises when scripts combine shell features
Better support for existing tools
Other highlights
- Interactive shell improvements
- Installer and canary builds
- WebAssembly and play.brush.sh
- Windows and broader platform support
- Embedder extensibility and dependency cleanup
- Performance and docs
[libc++][RFC] Rewrite CPOs with resolver functions (#209104)
This patch rewrites some CPOs to use resolver functions instead of
overload sets. This has the benefit that the implementation is much
closer to the standard wording. I also find it somewhat easier to
understand what the intention is.
I'm not sure whether we actually want to do this, but I thought I'd
propose it and see whether people like it.
clnt_rdma: Fixes for three issues listed below
There are three small issues:
1. An unused Reply chunk gets its descriptor freed, but the mbuf
and pages are left allocated, effectively leaking.
2. The reused send/receive buffers would probably need
DMA synchronization.
3. Some receive errors don't notify the RPC layer. A zero-credit
reply can also leave callers waiting.
This patch fixes these.
This patch also fixes positioning of NET_EPOCH().
Reviewed by: rmacklem
Sponsored by: VersatusHPC
MFC after: 1 month
[LowerMemIntrinsics] Factor out getBoundedMemSetPrefixSum (NFC) (#246082)
NFC, pure extraction of code from `expandBoundedMemSet` into a helper function `getBoundedMemSetPrefixSum`. Minor prep work related to
https://github.com/llvm/llvm-project/pull/239410.
[LoopUtils] Check the first outer iteration for co-moving pointer groups
When runtime checks are hoisted out of the outer loop, the range of each
pointer group is widened to cover all iterations of the outer loop. If both
groups of a check advance by the same step in the outer loop, e.g. two rows
of the same image:
```cpp
for (y = 0; y < H; y += 2)
for (x = 0; x < n; x++) {
img[y*S + 3*x] = ...;
img[(y+1)*S + 3*x] = ...;
}
```
the widened ranges overlap as soon as the outer loop runs twice, so the
check always fails and the vector loop never runs.
If all bounds of both groups are affine AddRecs of the outer loop with the
[7 lines not shown]
[LoopUtils][LV] Compute runtime check bounds per check (NFCI)
getRuntimeCheckBounds takes a single pointer group, but the bounds to use
for one group can depend on the group it is checked against.
This changes RuntimePointerCheck to include bounds of both of its groups.
RuntimeCheckBounds takes the new role of covering both groups and
RuntimeCheckGroupBounds covering single group bounds.
The per-group logic moved unchanged into a static helper.
In VPlan's createRuntimeChecks, compute and expand the bounds of each check
right before its compares, in a single loop over the checks, instead of
caching the expanded bounds per group.
We can do it because VPSCEVExpander already reuses expansions of the same SCEV,
and VPlan's CSE merges the resulting duplicate freezes.
As the result, this change only affects the order of the instructions in
the runtime checks.
[LoopUtils] Factor out the same-step check of runtime check bounds (NFC)
The follow-up change uses four SCEV expressions for this type of change
so it also generalizes it to take an array.
[CIR] Lower constant vectors with undef, poison and zero elements
The `cir::ConstVectorAttr` verifier only checks the element types, so
`#cir.undef`, `#cir.poison` and `#cir.zero` are valid elements, and
`VecShuffleOp::fold` created an undef element for a -1 index. The
lowering to the LLVM dialect handled int, float and bool elements and
hit an `llvm_unreachable` on anything else, so a
`__builtin_shufflevector` of two constant vectors with a -1 index
crashed `-fclangir -emit-llvm`.
A zero element is now a zero in the dense constant. An undef or poison
element also takes a zero there and is then replaced by an
`llvm.insertelement` of `llvm.mlir.undef` or `llvm.mlir.poison`.
`llvm.mlir.constant` cannot hold such an element itself: a dense
elements attribute holds only literals, and the translation to LLVM IR
accepts a per-element `LLVM::UndefAttr` or `LLVM::ZeroAttr` only in
struct and array constants and no `LLVM::PoisonAttr` at all. The
IRBuilder folds the insertions when the module is translated, in
function bodies and in global initializers, so the LLVM IR holds one
[10 lines not shown]
[CIR] Mark LoweringPrepare init functions strictfp
Classic codegen's StartFunction makes a function that has no
FunctionDecl `strictfp` when the TU-wide default FP environment is
constrained: FP exceptions are not ignored or the rounding mode is
dynamic. Of those functions ClangIR creates `_GLOBAL__sub_I_*`,
`_GLOBAL__I_*`, the C++20 module initializer, `__cxx_global_var_init*`,
`__cxx_global_array_dtor*` and `__tls_init`. It marked only
`__cxx_global_var_init*`, through a `strictfp` attribute on `cir.global`,
so the other functions and the calls in them were not `strictfp`.
Classic also marks the `__dtor_*` stubs, `_GLOBAL__D_a` and
`__GLOBAL_cleanup_*`, which ClangIR does not emit.
LoweringPrepare creates these functions after CIRGen, so it reads the
TU-wide default from `#cir.lowering_options`. `no_trapping_math` already
records whether FP exceptions are ignored, and the new `rounding_math`
field mirrors `LangOptions::RoundingMath`. It is omitted when false, so
the module attribute prints as before without `-frounding-math`.
`buildRuntimeFunction` adds `strictfp` together with the other TU-wide
[8 lines not shown]
[CIR] Mark calls in strictfp functions strictfp
LangRef requires every call in a function that uses constrained FP
intrinsics to be `strictfp`, at the call site or on the callee, and
LLVM checks the call, not its caller, before it folds or simplifies a
libcall. Classic codegen gets the attribute from IRBuilder's
constrained mode. ClangIR marked only the function, so at -O1 LLVM
folded `erf(1.0)` to a constant under `FENV_ACCESS ON`.
The lowering now maps the CIR `strictfp` function attribute to the
`strictfp` attribute of `llvm.func` instead of a `passthrough` entry.
After the conversion to the LLVM dialect, it sets `strictfp` on every
`llvm.call`, `llvm.invoke`, `llvm.inline_asm` and `llvm.call_intrinsic`
in a `strictfp` function. That covers direct and indirect calls,
invokes, inline assembly, constrained intrinsics, and the calls that
LoweringPrepare and EH lowering create. CIR does not change, `strictfp`
stays a function attribute. The marks are part of the LLVM dialect, so
they survive any route to LLVM IR.
[11 lines not shown]
[mlir][LLVM] Add strictfp to llvm.func and the call ops
In a function that uses constrained floating-point intrinsics, LLVM
requires every call to be `strictfp`, at the call site or on the callee,
and its folders check the call before they fold or simplify a libcall.
The LLVM dialect could mark only the function, through `passthrough`, so
a frontend lowering to it had no way to mark its calls.
This adds a `strictfp` unit attribute to `llvm.func`, `llvm.call`,
`llvm.invoke`, `llvm.inline_asm` and `llvm.call_intrinsic`, the way the
dialect already models `convergent`, `no_unwind` and `will_return`.
Export turns it into the LLVM `strictfp` attribute and import reads it
back, so a `strictfp` function no longer lands in `passthrough`. Calls
of the constrained intrinsic ops already get the attribute from
IRBuilder. Other named intrinsic ops have no call-site attributes.
The inliner refuses a callee marked `strictfp`. It still refuses one
with `strictfp` in `passthrough` too, since export still accepts that
spelling and existing IR uses it.
[2 lines not shown]
[libc++] Rewrite the std::filesystem benchmarks (#240899)
This makes the benchmarks easier to understand and more representative
by making the size of the individual directory names and the number of
directories two separate arguments to the benchmarks.
gh: update to 2.106.0
2.106.0:
- Security: fixes seven vulnerabilities (GHSA-45h6-2fh4-pr93,
GHSA-4946-22jg-pg7m, GHSA-5v78-vjjq-j2fj, GHSA-3j6c-526c-w465,
GHSA-q2rq-2r2v-2jm5, GHSA-mjfw-qpmw-c8p9, GHSA-mrhx-xw2w-4289):
terminal escape sequence injection in several commands (skill
install/search output, agent task logs, codespace ports table,
verbose HTTP logs, C1 control characters), a skill name collision
during skill updates, and localhost exposure in
"gh codespace jupyter".
- Behaviour change: "gh auth logout" now revokes the CLI OAuth token
by default (use --no-revoke for the old local-only logout) and
clears saved HTTPS Git helper credentials for the host.
- Fall back to a non-expiring token, with a warning, on GitHub
Enterprise Server versions before 3.23.
- Keep a token refreshed by another process when a refresh token is
rejected.
- Fix "gh run view" log truncation after lines longer than 64 KiB.
[56 lines not shown]
[CIR] Lower constant vectors with undef, poison and zero elements
The `cir::ConstVectorAttr` verifier only checks the element types, so
`#cir.undef`, `#cir.poison` and `#cir.zero` are valid elements, and
`VecShuffleOp::fold` created an undef element for a -1 index. The
lowering to the LLVM dialect handled int, float and bool elements and
hit an `llvm_unreachable` on anything else, so a
`__builtin_shufflevector` of two constant vectors with a -1 index
crashed `-fclangir -emit-llvm`.
A zero element is now a zero in the dense constant. An undef or poison
element also takes a zero there and is then replaced by an
`llvm.insertelement` of `llvm.mlir.undef` or `llvm.mlir.poison`.
`llvm.mlir.constant` cannot hold such an element itself: a dense
elements attribute holds only literals, and the translation to LLVM IR
accepts a per-element `LLVM::UndefAttr` or `LLVM::ZeroAttr` only in
struct and array constants and no `LLVM::PoisonAttr` at all. The
IRBuilder folds the insertions when the module is translated, in
function bodies and in global initializers, so the LLVM IR holds one
[10 lines not shown]
clnt_rdma.c: Fix handling of a client reply retried reply
When the client does a retry (due to an expired RPCSEC_GSS credential),
the handling of the reply chunk was not done correctly.
This patch fixes this.
Reviewed by: rmacklem
Sponsored by: VersatusHPC
MFC after: 1 month
[LoopUnroll] Add suggestions to pragma unroll analysis remarks
The analysis remarks emitted when an unroll pragma may not be honored
say what went wrong but not what to change. Add a Suggestion argument
to PragmaUnrollCountRejected, PragmaFullUnrollTripCountTooLarge and
PragmaFullUnrollUnknownTripCount.
Also add UserUnrollCountExceedsThreshold for the one case in
shouldPragmaUnroll that declined silently: the -unroll-count factor
is rejected because the unrolled size exceeds the threshold.
Assisted-by: Claude
[LinkerWrapper] Resolve -l the way ld64 does on a MachO host (#216940)
On a MachO host the linker wrapper looked for `-lfoo` only as
`libfoo.so` or `libfoo.a` in the `-L` paths, so a library that exists as
a `.tbd` stub or a `.dylib`, or that lives in the SDK passed with
`-syslibroot` (such as `-lSystem`), failed with `unable to find
library`. This searches for the names ld64 searches for, in its order,
and also searches `/usr/lib` and `/usr/local/lib` under each
`-syslibroot`.
This PR was generated using AI
---------
Co-authored-by: Joseph Huber <huberjn at outlook.com>