[AArch64] Implement InstCombine for sve_and_u and sve_eor_u
Canonicalize the following same-predicate expressions:
sve_and_u/m(p, a, sve_eor_m(p, a, c))
sve_eor_u/m(p, a, sve_and_m(p, a, c))
sve_and_u/m(p, a, sve_not(p, passthru, c))
to:
sve_bic_u/m(p, a, c)
The inner operation must have one use. This keeps the transform
instruction-count neutral and allows SelectionDAG to lower the
undef forms to generic AND and XOR nodes.
[AArch64] NFC: Add pre-commit InstCombine tests for SVE AND-XOR/XOR-AND
Add pre-commit tests for the following patterns:
and_u(p, a, eor_m(p, a, c))
and_m(p, a, eor_mp, a, c))
eor_u(p, a, and_m(p, a, c))
eor_m(p, a, and_m(p, a, c))
and_u(p, a, not(passthrough, p, c))
and_m(p, a, not(passthrough, p, c))
to capture the current state of instcombine.
icmp6: re-derive rth after the second m_pullup in icmp6_notify_error
The routing-header pullup may reallocate the mbuf. rth still points
into the old one and is used to read ip6r_nxt.
Reviewed by: markj
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D62410
AMDGPU: Make the anti-hints rule table constexpr (#248792)
The rule table was a function-local static SmallVector, built on first
use and destroyed at exit. This caused corruption with multithreaded
compiles. Build a constexpr table instead.
Assisted-by: Claude
textproc/rubygem-asciidoctor-revealjs: New port
Asciidoctor.reveal.js is a converter for Asciidoctor and Asciidoctor.js
that transforms an AsciiDoc document into an HTML5 presentation designed
to be executed by the reveal.js presentation framework.
WWW: https://github.com/asciidoctor/asciidoctor-reveal.js
PR: 295937
Check the SED password maximum length
truenas_pylibsed refuses a SED password that is longer than 32 bytes. A
longer password failed only when middleware tried to set up the disk.
The SED password check now also refuses a password that is longer than
32 bytes. Pool setup, disk.setup_sed and disk.update give a validation
error for it. The check runs only when middleware will set the password
on an uninitialized disk. A longer password can still unlock a disk
that sedutil set up, so the global password has no new limit.
(cherry picked from commit d9634d91a07830a77edacd635ca72bb538279c46)
Check the SED password length in disk.update
disk.update now compares a new individual SED password with the minimum
length of the disk. The check runs only when the disk is uninitialized,
because only then will middleware set this password on the drive. A
password that is too short gives a validation error on the password
field.
Disks that are already set up do not get this check. Their password is
already on the drive, and drives set up with sedutil keep a hash of the
password and not the password itself.
(cherry picked from commit 6b2584acc2d6c51cb05539a751271ac623519f4c)
Check the SED password length in disk.setup_sed
disk.setup_sed now compares the password with the minimum length of the
disk before it sets up the disk. A password that is too short gives a
validation error on the password field. The error tells if the global
password or the individual password is too short.
(cherry picked from commit 3ae81745c2edd46310ec7dc7666954e905d166ca)
Report the SED password minimum length of each disk
disk.query now returns sed_min_password_length when the sed_status extra
is set. disk.details also returns it. The value comes from the same
drive query as sed_status, so there is no extra query. The value is 0
when the disk has no minimum. It is null when the disk is not SED or
its status could not be read.
The UI can use this value to warn the user before it sets up a disk.
The field is new in the 27.1.0 and 28.0.0 API. disk.update does not
accept it.
(cherry picked from commit c0adf322035b880cd46167942f130817fab2d669)
Check the SED password length before pool setup
Some new drives refuse a SED password that is shorter than a minimum
length. The drive tells this length in its discovery data.
Before pool setup starts, middleware now compares the password of each
uninitialized SED disk with the minimum length of that disk. The disk
uses its individual password, or the global password when it has no
individual password. A password that is too short gives a validation
error. The error tells which disk and which password. No disk is set up.
Before this change, the other disks were set up first and then the pool
operation failed.
(cherry picked from commit 2f71344b3937326e6a8d9192dcd62ed289c64424)
[CIR] Fix Index type cast in MatrixExtractOps (#248891)
Fix the row & column index types in the MatrixExtract element/row Op to
be cast to u_size, not hardcoded to i64, that will fix the index type
generated for HLSL
[clang][bytecode][NFC] Implement Reflect::toDiagnosticString() (#248852)
Currently unused, but needed in a future patch (where it is still
unreachable though).