lualoader: allow the local module to filter out the BE list
This allows something like the following local.lua to install a filter
to implement its own notion of hidden BEs using a naming convention of
a leading dot to hide them:
-- file: /boot/lua/local.lua
local core = require("core")
local function be_hide(be)
if core.isSingleUserBoot() then
-- All BEs are accepted for single-user
return true
end
local name = be:match("/([^/]+)$")
if not name then
-- Accept malformed BEs, for whatever reason
return true
[15 lines not shown]
[AMDGPU][ISel] Reduce `f64` compare to integer compare of upper half (#188356)
Truncate `f64` `setcc`s to upper 32-bit operands where possible.
These transformations are analogous to those in #181238, but for ordered
and unordered fp comparisons.
Fixes #187996.
Alive2 verification of transformations:
- For `eq` / `ne`: [ZRciR6](https://alive2.llvm.org/ce/z/ZRciR6)
- For `lt` / `ge`: [RDGnqr](https://alive2.llvm.org/ce/z/RDGnqr)
- For `le` / `gt`: [v0jlD5](https://alive2.llvm.org/ce/z/v0jlD5)
[lldb] Bring Debuginfod's StreamedHTTPResponseHandler to SymbolLocatorSymStore (#187687)
SymbolLocatorSymStore used a simple local implementation of
HTTPResponseHandler so far. That was fine for basic usage, but it would
cause issues down the line. This patch hoists the
StreamedHTTPResponseHandler class from libDebuginfod to SupportHTTP and
integrates it in SymbolLocatorSymStore. PDB file downloads will now be
buffered on disk, which is necessary since they can be huge.
We use the opportunity an stop logging 404 responses (file not found on
server) and print warnings for all other erroneous HTTP responses. It
was more complicated before, because the old response handler created
the underlying file in any case. The new one does that only once the
first content package comes in.
Fix SIGTERM handler in ctdb reclock script
This commit fixes an error in the SIGTERM handler for the
reclock script. When the signal is received we should gracefully
shutdown the thread that is watching for mount changes rather than
doing things out of order and generating log spam.
[LLVM][Support] add nonNull function helper (#188718)
We often see a pattern like:
```
T *ptr = doSomething()
assert(ptr && "doSomething() shouldn't return nullptr");
```
We also have functions like `cantFail`, but those are working with
Expected types.
This commits adds a `nonNull` function, which can be used inline. In
practice, one could use:
```
T *ptr = cast<T>(functionReturningT());
```
But it conveys the meaning that `functionReturningT` might return a
subtype/supertype that we actually cast.
[7 lines not shown]
NAS-140444 / 26.0.0-BETA.2 / fix UPS service start failing silently (by yocalebo) (#18681)
## Fix UPS service start failing silently
`service.control START ups` returned `True` even when the UPS service
was not actually running.
### Root cause
The UPS service's `get_state()` only checks the `nut-monitor` systemd
unit. When starting an unconfigured UPS (empty driver/port),
`nut-driver at ups` and `nut-server` crash-loop immediately, but
`nut-monitor` (upsmon) starts and stays briefly `active` before it
realizes it can't reach the server. By the time it fails, `get_state()`
has already seen `ActiveState=active` and returned `True`.
### Fix
Add `check_configuration()` to `UPSService` that validates required
[34 lines not shown]
NAS-140444 / 27.0.0-BETA.1 / fix UPS service start failing silently (#18680)
## Fix UPS service start failing silently
`service.control START ups` returned `True` even when the UPS service
was not actually running.
### Root cause
The UPS service's `get_state()` only checks the `nut-monitor` systemd
unit. When starting an unconfigured UPS (empty driver/port),
`nut-driver at ups` and `nut-server` crash-loop immediately, but
`nut-monitor` (upsmon) starts and stays briefly `active` before it
realizes it can't reach the server. By the time it fails, `get_state()`
has already seen `ActiveState=active` and returned `True`.
### Fix
Add `check_configuration()` to `UPSService` that validates required
[28 lines not shown]
EHLO must reset the transaction
RFC5321 §4.1.4 states that an EHLO command MAY be issued by a client
later in the session and, if it's acceptable, it MUST clear all buffers
and reset the state exactly as if a RSET command was issued.
discussed with / okay martijn@
[AMDGPU][CodeGen] Implement SimplifyDemandedBitsForTargetNode for readlane, wwm and set.inactive intrinsics. (#190830)
Propagate demanded bits through readlane, wwm, set.inactive intrinsics
in AMDGPUISelLowering in SimplifyDemandedBitsForTargetNode.
This allows upstream zero/sign extensions to be eliminated when only a
subset of bits is used after intrinsics.
Partially addresses https://github.com/llvm/llvm-project/issues/128390.
[GlobalISel] Prevent hoisting of CheckIsSameOperand from creating invalid match tables
Fixes #188513
This patch adds logic to ask PredicateMatchers whether they'd like to be hoisted out of a specific Matcher or not.
SameOperandMatcher can use it to check if it's being hoisted out of the RuleMatcher that defines the operand it relies on.
Assisted-By: Claude Opus 4.6
Context of Use: Claude was only used to add LLVM-style RTTI to the matcher class (repetitive work). Claude-generated code was reviewed and cleaned up before committing.
[clang][CIR] Add lowering for vcvt_n_ and vcvtq_n_ conversion intrinsics
This PR adds lowering for the conversion intrinsics with an immediate
argument (identified by `_n_` in the intrinsic name), excluding FP16
variants.
It also moves the corresponding tests from:
* clang/test/CodeGen/AArch64/neon_intrinsics.c
to:
* clang/test/CodeGen/AArch64/neon/intrinsics.c
The lowering follows the existing implementation in
CodeGen/TargetBuiltins/ARM.cpp and adds the `getFloatNeonType` helper
to support it. The remaining changes are code motion and refactoring.
Reference:
[1] https://arm-software.github.io/acle/neon_intrinsics/advsimd.html#conversions