[OpenMP][omptest] Run the ompTest unit tests on the AMDGPU clang-flang bot
ompTest ships unit tests that register as check-ompt-omptest, but
LIBOMPTEST_BUILD_UNITTESTS defaults to OFF, so no buildbot builds or runs
them. Its install rules are likewise never exercised.
Enable both on the openmp-offload-amdgpu-clang-flang bot, which already runs
check-openmp and installs.
Assisted-by: Claude Opus 5 <noreply at anthropic.com>
[OpenMP][omptest] Configure installed header (#237201)
Install a configured header to carry configure-time settings into the libomptest installation to allow consumers to take decision.
Important for consumers to know if they can rely on certain features being present, e.g., GoogleTest macros vs omptest standablone build.
AI-assisted by: Claude Opus-5.5
[Clang][OpenMP] Add flatten empty-loop final value tests (#237907)
Flatten used to always run inner inits like J = 0 before the loop.
Finals already skip leftover writes when a loop has no trips, so that
PreInit value stuck and leftover J was wrong. In simple words, Flatten
was setting inner loop vars even when the outer loop never ran.
This patch adds tests for the fix already made.
#225350
[GlobalISel] Narrow G_FREEZE with a leftover piece
When narrowing G_FREEZE (and G_CONSTANT_FOLD_BARRIER) to a type that
doesn't evenly divide the original, split into NarrowTy pieces plus a
leftover piece instead of giving up.
Co-authored-by: Cursor <cursoragent at cursor.com>
pkg: do not leak the root descriptor to executed programs
pkg_open_root_fd() gives each package a descriptor for its root: a
dup(2) of the root directory descriptor, which drops close-on-exec,
or, for a relocated package, an openat() without O_CLOEXEC. The
descriptor stays open for the whole job, so programs pkg starts
inherit it, including the services restarted through
HANDLE_RC_SCRIPTS. A jailed service then holds an open directory,
and chroot(2) refuses it with EPERM.
Duplicate with F_DUPFD_CLOEXEC and open the relocated root with
O_CLOEXEC.
Fixes: #2788
[mlir][bufferization] Accept buffer-like operands in dealloc and clone (#245354)
`bufferization.dealloc` and `bufferization.clone` currently accept only
`memref` operands. This PR relaxes their operand and result types to
`BufferLikeTypeInterface`. The only IR this changes is what the verifier
accepts. The lowerings to the `memref` dialect,
`BufferOriginAnalysis::isSameAllocation` and `CloneOp::buildDealloc` now
decline a non-`memref` instead of asserting or building invalid IR.
Lowering of `memref`-typed operands is unchanged.
Test that `bufferization.dealloc` and `bufferization.clone` can accept
`BufferLikeTypeInterface` operands, but that lowering to `memref`
dialect refuses operands which are not `memref`.
This is the first in a series of PRs that intends to generalize
`bufferization` dialect and its passes to accept buffer types other than
`memref`.
Assisted-by: Claude
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[wasm] Swift async ABI p3: Lower llvm.swift.async.context.addr to local 0
With this commit, in functions with a swiftasync argument, the async
context intrinsic is lowered to local 0. Without a swiftasync argument,
the intrinsic is a stack slot, as on X86 without an extended frame.
Loads and stores through llvm.swift.async.context.addr become local.get 0
and local.set 0. Other uses of the address are an error, because locals
have no address.
The swiftasync argument also arrives in local 0, so the argument and the
intrinsic are two names for the same location. After a write through one of
them, a read through the other returns the wrong value. Await resume funclets
write their own context through the intrinsic, and can then read the
argument, which is the callee's context. To prevent this, in functions that
write local 0, WebAssemblyExplicitLocals copies the swiftasync argument to
another local.
nd6: provide nd6_ifhlim() and use it for safe ->chlim access #357
Since we're on 15.x for a while and the real changes are not
going to be backported at least close the chlim access gap
reported. There's a lot of other potential breakage in the
code but so far only two stuck one and one was already addressed
locally.
Inspired by: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279653
ether_input: Silently discard oversized frame
Some Ethernet controllers do not allow the maximum receive frame size to be
configured in bytes. Additionally, some Ethernet controllers cannot
automatically adjust the maximum receive frame size setting to account for the
presence or absence of a VLAN tag. ether_input() counts the oversized frame
into ierrors. There is no need to print an error message.
[mlir][bufferization] Read alloc_tensor copy extents only from a memref (#245090)
`populateDynamicDimSizes` can read the extents of `alloc_tensor`'s copy
buffer only when the copy buffer is a `memref`. Check that precondition
in `AllocTensorOpInterface::bufferize` before calling. Otherwise,
`populateDynamicDimSizes` will crash if a non-`memref` reaches this
path.
Also test that non-`memref` copy operands to
`bufferization.alloc_tensor` with a dynamic extent print a diagnostic
instead of crashing.
Assisted-by: Claude
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
Add new section to Building.md
Removed the now-ignored option from the bootstrap-build config example.
Created a new section dedicated to omptest and how to make it
installable.
[libc++] Remove redundant _LIBCPP_HIDE_FROM_ABI from public headers (#246188)
This is the sixth bulk-removal patch of `_LIBCPP_HIDE_FROM_ABI`. While
this is something we could do over time, actively removing the redundant
annotations significantly improves readability, and QoI.
This happens in a few patches to keep the size somewhat manageable.
[AArch64] Sink expressions that can form DEC/INC Z instrucitons
Sinking of the whole "scaled vscale splat" chain is necessary for SDAG
to select it to DEC/INC instuctions. This can help reduce ZPR register
pressure. Previously, the splats had to stay live throughout the whole
loop, or loop nest.
Assisted-by: codex (test creation)
netlink/tests: Add permanent flag to test_add_6_flags
Now IFA_F_PERMANENT is reported, add test for it and expect
IFA_F_PERMANENT in nl_flags during tests.
Reported by: llm-postcr
Fixes: 10b94e406444 ("netlink: add support for adding/deleting interface addresses")
MFC after: 3 days
dns/opendns: new plugin, moved from core with an MVC/API page (#5967)
* dns/opendns: new plugin, moved from core with an MVC/API page
Replaces the legacy OpenDNS page in core. Apply registers the network IP
address and reports registration errors. The system DNS settings are
saved when OpenDNS takes them over and restored when it is disabled or
switched to standalone mode.
* dns/opendns: take over system DNS on save, address review
The system DNS servers are taken over and restored when the settings
are saved instead of on apply, so a failed registration no longer
leaves them untouched. A network label can no longer be blank or start
or end with a space. The help no longer links to System: Settings:
General.
* dns/opendns: plain URLs in help
[6 lines not shown]
[AMDGPU] Fold constant scale of exp2/pow into the exponent (#243079)
[AMDGPU] Fold constant scale of exp2/exp/pow into the exponent
Fold a constant multiply of an exp2, exp or pow result into the
exponent, so it merges with the existing multiply as an fma:
fmul (fexp2 (fmul a, b)), C -> fexp2 (fma a, b, log2(C))
fmul (fexp x), C -> fexp2 (fma x, log2(e), log2(C))
fmul (fpow x, Y), C -> exp (fma (log x), Y, log2(C))
This removes the trailing v_mul_f32 after v_exp_f32.
Requires f32, reassoc+afn, a one-use exp (and a one-use inner fmul for
exp2), a positive normal C, a VOP3 literal (gfx10+), and contract on the
multiply the fma replaces. For pow, IEEE fma is used only when Y is a
normal constant; otherwise v_fma_legacy (gfx10.3+) preserves the 0*inf=0
behaviour of lowerFPOW. Keep fexp2 so IEEE denormal handling still runs.
Drop ninf on the pow expansion so log2(0) = -inf is not treated as
[2 lines not shown]
[Mips] Accept the register forms of mul before MIPS32 (#245741)
Before MIPS32 there is no mul instruction, so the integrated assembler
rejected mul rd, rs, rt and mul rd, rs on MIPS I to MIPS V, although it
already expanded mul rd, rs, imm. GAS expands the register forms to
multu and mflo. Do the same, as is already done for dmul.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>