[PowerPC] Add live-ins to the block created by PPCReduceCRLogicals::splitMBB (#236355)
On 32-bit PowerPC with crbits and no isel, a select on an i64 compare is
expanded by emitSelect() into a diamond, and if a carry chain is live
across the select (the i256 multiply in the issue), emitSelect() marks
$carry live-in on the new blocks. ppc-reduce-cr-ops then splits the head
block on the crand/cror of the compare and inserts a new block between
it and the diamond, but splitMBB() never gave that block any live-ins.
$carry is live through it, so LiveIntervals hits "needs to be live in"
in the machine scheduler.
This computes the new block's live-ins with computeAndAddLiveIns() at
the end of splitMBB(). The added MIR test checks the new block gets
`liveins: $carry`. The verifier alone doesn't catch this since CARRY
aliases XER.
Fixes #235393
games/linux-steam-utils: Fix Steam UI not loading after update
The Steam client build from November 2026 passes its current working
directory to steamwebhelper as an absolute path. Under the linuxulator,
getcwd() returns that path with the compat.linux.emul_path prefix, which
does not exist inside the lsu runtime chroot, so steamui/index.html is
not found and the UI never appears.
Symlink EMUL_PATH to / in the runtime root so the prefixed path resolves.
[PHITransAddr] Do not reuse GEP instruction with tighten wrap flag (#245082)
A GEP with tightened wrap flag can introduce poison to the user of phi
node. Skip such reuse so that GVN can produce another instruction and
merge the flag in next processInstruction round on the same target
Assisted-by: Claude # Test
Fixes: https://github.com/llvm/llvm-project/issues/241503
[SystemZ][z/OS] Emit when passing vector types without vector extension
Currently, there is no ABI defined on z/OS for passing vector types
when the vector extension is disabled/not available. Emit an error
message for this case while we are working on extending the ABI.
This is a temporary measure until the ABI is defined.
clntrdma.h: Add the RPCRDMA_HEADER_LEN macro from clnt_rdma.c
The RPCRDMA_HEADER_LEN() macro is moved from clnt_rdma.c to
clntrdma.h so it can be included in xprt_verbs.c.
MFC after: 1 month
Fixes: 884ee8d6c9b4 ("nfscl: Add some glue for client side NFS over RDMA")
[MemoryBuiltins] Remove leftover free TLI handling (#246370)
Since https://github.com/llvm/llvm-project/pull/239732 we no longer
declare any free functions via TLI and always rely on attributes
instead. This removes some of the leftover handling / TLI parameters.
One functional change here is that we no longer assume that
`allockind(free)` functions that happen to have a TLI entry free their
first argument, and use `allocptr` instead. We already infer this
attribute in InferAttrs, but a bunch of tests need to be adjusted to
specify it explicitly.
[cmake][llvm] Clarify why we set CMAKE_TRY_COMPILE_CONFIGURATION (#246356)
There's nothing that post-CMake 3.17 actually changes in this regard.
It defaults to `Debug` if `CMAKE_TRY_COMPILE_CONFIGURATION` is not set.
But we'd rather use the explicit default or the first configuration to match what the main build uses when run without an explicit configuration.
[obj2yaml] Add Obj2Yaml ability to dump GOFF ESD records (#216151)
Implements obj2yaml support for dumping GOFF ESD records. Adds ESDRecord
struct and YAML traits to GOFFYAML, and implements dumpExternalSymbol()
in goff2yaml.cpp to parse all ESD fields. Adds tests to verify the ESD
output and updates header test.
---------
Co-authored-by: Yusra Syeda <yusra.syeda at ibm.com>
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]