filesystems/py-libzfs: patch collections.Sequence import error
In Python 3.10 collections.Sequence module was moved into the
collections.abc.Sequence module, but nvpair.pxi is still using the old
path.
This patch fixes the import and also keeps backwards compatibility with
<=py3.9.
While I'm here, clean up the Makefile's style, and take maintainership.
PR: 293920
Approved by: Goran Mekić (maintainer)
Sponsored by: ConnectWise
Reported by: js
[clang] fix crash related to missing source locations for converted template arguments
This adds a way to attach source locations to trivially created template
arguments such as packs, or converted expressions when there is no
expression anymore.
This also avoids crashes due to missing source locations.
In a few places where this matters, we already create expressions
from the converted arguments, but this requires access to Sema,
where currently creating trivial typelocs only requires access to
to the ASTContext.
So this creates a new storage kind for TemplateArgumentLocs, where
a single SourceLocation is stored, embedded in the pointer where
possible.
As a drive-by, strenghten asserts by enforcing the TemplateArgumentLocs
are created with the right kinds of locations.
[2 lines not shown]
[DebugInfo][CodeView] Support `S_DEFRANGE_REGISTER_REL_INDIR` (#186410)
This adds support for `S_DEFRANGE_REGISTER_REL_INDIR` (as
`DefRangeRegisterRelIndirSym`).
It's to `S_REGREL32_INDIR` what `S_DEFRANGE_REGISTER_REL` is to
`S_REGREL32`. `S_REGREL32_INDIR` was added in #183172.
LLVM only generates `S_LOCAL` for variables and parameters, so we need
this record to specify a range where a variable is indirectly accessed.
I didn't find any PDB where this record is in, so I guessed the layout
based on `S_DEFRANGE_REGISTER_REL` and `S_REGREL32_INDIR`. Locally, I
updated LLVM to generate this where possible, and tested it with the VS
debugger and WinDBG. Both handled the record correctly. This PR doesn't
include the change to debug info generation yet - you can find the
current WIP in
https://github.com/Nerixyz/llvm-project/commit/884072fa17e0361e2e493419a975f2b67c04982a.
The name `OffsetInUdt` comes from DIA
[4 lines not shown]
Remove unused rmtree_on_filesystem method
This commit removes some dead code from middlewared.utils.
(cherry picked from commit 525d93e8b62f9ea8f534149d4f323034cbb60af8)
ndp: Accept multiple queued ND for non-GRAND NAs
Multiple delayed NAs on the same ifa can occur simultaneously.
Therefore:
* Differentiate between GRAND and solicited replies.
* Cancel previous pending GRAND NA for same ifa.
* Reuse ndq memory for GRAND.
* Free non-GRAND replies immediately.
* Don't limit non-GRAND NAs.
Reviewed by: glebius
Differential Revision: https://reviews.freebsd.org/D55905
[LICM] Mark load function as willreturn in test (NFC)
To make sure that the tests covering store hoisting are testing
the thing they're supposed to. Otherwise hoisting may fail because
the store can't be speculated, rather than due to memory effects.
Suspend iscsi-scstd logins during ALUA failover transition
During failover, iscsi-scstd may accept connections before its
configuration is fully applied, causing permanent rejections. Send
SIGUSR1 before the ALUA transition begins and SIGUSR2 after
clear_suspend completes, ensuring initiators that arrive in the window
receive a retriable error instead.
[llc] Enable -mattr=help regardless of -mattr order (#187269)
Previously a command like `llc -mtriple=aarch64 -mattr=+zcm-fpr64
-mattr=help` would hang, instead of printing help text and exiting. This
patch provides a fix by relaxing the previous constraint where
`-mattr=help` must have been first among attrs. It can now appear
anywhere.
Includes a test to cover both `-mcpu=help` and `-mattr=help` for llc.
NAS-139477 / 27.0.0-BETA.1 / Add FEC mode configuration to network interfaces (#18447)
Exposes Forward Error Correction (FEC) mode as a configurable property
on physical network interfaces. Operators can query which FEC modes a
NIC supports, set a preferred mode, and observe the active mode the
hardware is using.
Feature requested by support for the purpose of fixing interface
connectivity when FEC negotiation with the switch fails. This provides
the customer with a cleaner way to correct the issue than setting up a
custom boot-time script.
Check what modes the NIC supports
```
midclt call interface.available_fec_modes eno8np2
["AUTO", "RS"]
```
Configure RS-FEC
```
[17 lines not shown]
[LSV] Added check for mismatched GEP strides in getConstantOffsetComplexAddrs (#186671)
When two GEPs A & B with variable indices have source element types of
different sizes (e.g. i8 vs i32), their offsets cannot be constants.
Currently the `getConstantOffsetComplexAddrs` does not check this and
simply use the stride of GEP A assuming they are equal, resulting in
miscompile.
Add a check that the source element types are the same, otherwise bail
out.
Fixes #186327
[AMDGPU] Use empty() instead of size() comparisons. NFC. (#187424)
Replace `.size() == 0`, `.size() != 0`, and `.size() > 0` with
`.empty()` / `!.empty()` across the AMDGPU backend.
[GISel] import pattern `(A-(B-C)) to A+(C-B)` (#181676)
This PR imports the rewrite pattern `(A-(B-C)) to A+(C-B)` from
selectionDAG to GlobalISel.
The rewrite should only trigger when `B-C` is used once.
[SLP]Improve reductions for copyables/split nodes
The original support for copyables leads to a regression in x264 in
RISCV, this patch improves detection of the copyable candidates by more
precise checking of the profitability and adds and extra check for
splitnode reduction, if it is profitable.
Fixes #184313
Reviewers: hiraditya, RKSimon
Pull Request: https://github.com/llvm/llvm-project/pull/185697
[OpenACC][NFC] Generalize wrapMultiBlockRegionWithSCFExecuteRegion (#187359)
Simplify `wrapMultiBlockRegionWithSCFExecuteRegion` by replacing the
`bool convertFuncReturn` parameter with a generic `getNumSuccessors() ==
0` check. Terminators with no successors are by definition region exit
points, so they can be identified automatically without requiring
callers to specify types. This enables downstream dialects (e.g., CUF
with fir::FirEndOp) to reuse the utility without modifying it.
```
// Before:
wrapMultiBlockRegionWithSCFExecuteRegion(region, mapping, loc, rewriter, /*convertFuncReturn=*/true);
// After:
wrapMultiBlockRegionWithSCFExecuteRegion(region, mapping, loc, rewriter);
```