[AArch64][NFC] Add [de]interleave6 tests
interleave6 and deinterleave6 already have support for custom lowering
using st3/ld3 and uzp/zip, but was missing test coverage for a sequence
where values are interleaved and stored, or loaded and deinterleaved.
Assisted-by: Codex
[DebugInfo][FLMD] Add printing support for FLDebugLoc+DIDbgLoc
This patch follows up on the preceding patch by adding support for
printing FLDebugLoc as an attachment `!!dbgLoc(...)` for instructions and
debug records, and for printing DIDbgLoc nodes which contain a !!dbgLoc
operand.
A major component of this patch is the addition of a "DebugLoc conversion"
layer, which allows for conversion between DILocation and FLDebugLoc
formats. This is currently only used for converting DILocation->FLDebugLoc
for printing, but provides a common mechanism that will later be used for
FLDebugLoc<->DILocation conversion for printing+parsing, switching between
the two depending on which format is currently being used in-memory. Due to
the constraint of needing to support consistent conversions at different
points in time (primarily for MIR printing and lazy bitcode
materialization), some information is stored in the LLVMContext, including
a third representation of source location information, stored in a format
which is easy to convert to/from either existing format.
[11 lines not shown]
[FLMD][DebugInfo] Add classes for function-local DebugLocs
This patch adds two new classes. The first, FLDebugLoc, represents a
DebugLoc in a function-local context; combined with the correct
`!MDFunctionLocalContext`, this class is equivalent in information to a
`!DILocation`, with some exceptions (IsImplicitCode is not included,
IRLayers are to-be-implemented). The second, DIDbgLoc, is a new
MDNode type which wraps an `MDFunctionLocalContext*` and an `FLDebugLoc`.
This makes it an effective substitute for `DILocation` in metadata,
able to replicate the interface of `DILocation` entirely. Implementation
of this interface is added in a later patch.
Add MDFunctionLocalContext support to update_test_checks
The new `!MDFunctionLocalContext` metadata type is unique in that it may
be printed across multiple lines, which causes the update_test_checks
script to only generate checks, and transitively find other metadata, for
the opening line. This patch fixes this by recording multiple lines for
metadata, where the first line ends with '[' and the last line ends with
'])', matching the printed format of `!MDFunctionLocalContext`.
[DebugInfo][FLMD] Add bitcode printing/parsing for function context
This patch adds support for bitcode printing/parsing for
MDFunctionLocalContext. This is an unusual entry in that it contains
multiple variable-length arrays, and collectively comprises a potentially
very large (technically up to ~2^32, realistically >10000 is possible)
number of records. There is no abbreviation, since the existing
abbreviation mechanism does not easily translate to this case.
Also unique is that, as with the LLParser, we use a custom forward
reference resolution. In this case, we track the metadata IDs rather than
maintaining a TrackingMDRef, and resolve these at the general metadata
resolution step, where the MetadataList has been finalized.
netipsec: Copy the offload interface name to a cloned SA
When SADB_UPDATE changes the addresses of an SA, key_updateaddresses()
replaces the SA with a clone. For an SA that names an offload interface
it allocated a buffer for the clone's copy of the name, and then called
strncpy() with the arguments swapped. The clone was left with an
uninitialized name, and the name of the old SA was overwritten with the
contents of the new buffer.
Copy the name from the old SA to the new one.
Also, the clone starts as a bcopy() of the old SA, so its natt and
accel_ifname pointers refer to memory owned by the old SA until they are
replaced. If one of the offload allocations failed, the error path freed
that memory, and key_cleansav() freed it again with the last reference
to the old SA. Clear both pointers right after the copy.
Reported by: llm-postcr
Reviewed by: kib
[4 lines not shown]
[DebugInfo][FLMD] Implement IR Printing/Parsing for FLMD context + nodes
This patch adds support for printing and parsing textual IR for the
MDFunctionLocalMetadata class and each of the MDNode classes, FLScope,
FLSrcLoc, and FLInlinedCall.
The display logic goes beyond that of typical MDNodes, primarily in that
the FLMD storage arrays are printed with each element on a separate line.
A flag is added that prints everything on a single line, which is
recommended for some machine-parsing cases, but not recommended for either
human-reading or testing, where one-entry-per-line aids clarity.
This patch does not yet add support for the update_test_checks, since that
involves some non-trivial work worthy of a separate commit.
netipsec: Process a nested IPsec header on IPv6 input
After a transport mode SA has processed an inbound IPv6 packet,
ipsec6_common_input_cb() walks the remaining header chain itself and
calls ip6_protox[] for each next header. AH, ESP and IPComp have had no
entry in ip6_protox[] since the projects/ipsec merge; ip6_input() reaches
them through IPSEC_INPUT() instead. The callback did not, so when the
next header was another IPsec header the packet went to rip6_input() and
was never decapsulated. The receiving side of a bundle such as ESP
beneath a transport mode AH, or ESP with IPComp, did not work over IPv6.
Hand such a header back to ipsec_common_input() from the loop. Look up
the offset of the preceding next header field with ip6_get_prevhdr(),
since extension headers may sit between the two IPsec headers.
The bundle cases of the flowlabel test had to ignore the result of ping
because of this. Have them check it, and give the second target, which
no host owned, an address on hostB.
[6 lines not shown]
zfs: merge openzfs/zfs at a1daebfec
Notable upstream pull request merges:
#18910 f53b6403e Keep the local key where a raw receive brings a foreign
one
#19226 f765c2d2b zio: don't write dedup copies from an override BP's data
#19280 -multiple dmu_recv: split WRITE_EMBEDDED records that don't match
block size
#19305 e25bc5b83 Read the objset in the fadvise handlers after entering
#19311 470e0e81f zcp: check clone names with clone_namecheck()
#19317 9ac6648a2 spa: keep ZIL claims relative to the loaded txg
#19484 7865f6b5f dsl_scan: fix scan-prefetch shutdown race leaking stale
queue entries
#19490 495cc5f52 dsl_userhold: free on-close state when the pool is
unavailable
#19494 13793f363 zpool remove: erase log labels once the hole is on disk
#19548 b054fbbe5 Set fletcher4 fastest uses_fpu from both byte orders
#19677 -multiple zio: retain device injection provenance
#19746 -multiple FreeBSD: Reduce unnecessary SPL wrappers - #19746
[10 lines not shown]
[ADT] Remove padding from ImutAVLTree nodes (#244655)
Move the reference count next to the height and flag bit-fields. This
removes 8 bytes of padding when the value is pointer-aligned: a
non-canonicalizing set of pointers goes from 48 to 40 bytes per node and
a map from pointers to pointers from 56 to 48. Peak memory of the
liveness analysis on a large function drops by up to 10%.
Assisted-by: Claude Opus 5.5
Co-authored-by: Gabor Horvath <gaborh at apple.com>
[CIR][NFC] Use dialect getters for AMDGPU attribute names (#245144)
Summary:
- Add `CIRDialect` getters for AMDGPU function attribute names that were
string literals , and use them in `CIRGen AMDGPU.cpp`.
- Also switch `amendModule` in `LowerToLLVMIR.cpp` to the existing
getters for the AMDGPU module attributes.
ixl/iavf: Start the head write-back completion index at the head
With head write-back, tx_cidx_processed holds the head value that the
credits update consumed last: the index of the next descriptor to
complete. With the Report Status queue it is the index of the last
completed descriptor. 088a0b27adb4 made both start at the last
descriptor of the ring, which is right for the Report Status queue
only. With head write-back, the default in ixl(4), the first credits
update after every initialization reports a completed descriptor that
was never sent.
iflib's own reclaim holds back isc_tx_nsegments descriptors and does
not notice. netmap uses the count as it is: iflib_netmap_txsync()
puts the tail of its ring one slot too far. Once the card has sent
everything, the tail meets the head, which netmap reads as a ring
without a free slot, and no completion is left that would move it.
The ring never transmits again: pkt-gen at full rate stops after a few
thousand packets, and a ring that one pkt-gen has used cannot be used
by the next.
[12 lines not shown]