LLVM/project be25f31 — offload/liboffload/plugins/amdgpu/src rtl.cpp, offload/liboffload/plugins/common/include PluginInterface.h

[Offload][NFC] Move plugins under liboffload

Liboffload is the only library calling the plugins directly now, so move
the code inside it to reflect this change.

Also, adjust the CMake targets to also reflect this change by moving
from omptarget prefixes to LLVMOffload ones.

Assisted by Claude.
DeltaFile
+0-4,979offload/plugins-nextgen/amdgpu/src/rtl.cpp
+4,979-0offload/liboffload/plugins/amdgpu/src/rtl.cpp
+0-1,980offload/plugins-nextgen/cuda/src/rtl.cpp
+1,980-0offload/liboffload/plugins/cuda/src/rtl.cpp
+0-1,709offload/plugins-nextgen/common/include/PluginInterface.h
+1,709-0offload/liboffload/plugins/common/include/PluginInterface.h
+8,668-8,668117 files not shown
+23,237-23,234123 files

LLVM/project 64168d8 — libc/hdr/types CMakeLists.txt struct_in6_pktinfo.h, libc/include/llvm-libc-types struct_in6_pktinfo.h

[libc] Add IPV6_PKTINFO, IPV6_TCLASS and related socket options (#243838)

This patch adds the IPV6_PKTINFO, IPV6_RECVHOPLIMIT, IPV6_RECVTCLASS and
IPV6_TCLASS socket options as well as struct in6_pktinfo (used by
IPV6_PKTINFO) to <netinet/in.h>.

The interface index in struct in6_pktinfo is unsigned int, which matches
other implementations (the kernel uapi header uses a plain int).

Assisted-by: Gemini
DeltaFile
+26-0libc/hdr/types/struct_in6_pktinfo.h
+24-0libc/include/llvm-libc-types/struct_in6_pktinfo.h
+10-0libc/utils/docgen/netinet/in.yaml
+9-0libc/include/netinet/in.yaml
+8-0libc/hdr/types/CMakeLists.txt
+6-0libc/test/src/netinet/in_test.cpp
+83-03 files not shown
+86-09 files

LLVM/project c8373c2 — offload/libomptarget/src omptarget.cpp, offload/test/mapping attach_host_ptr_from_update_strided_2d.c attach_host_ptr_from_update_strided.c

[OpenMP][OMPTarget] Restore attached host pointers to their value before the FROM transfer (#233650)

Since OpenMP 6.1, an attached pointer may be re-pointed on the host. A
FROM of its
containing storage must then keep the host's current value:

```c
S s = {&a[0], 0};
#pragma omp target enter data map(to : s, s.p[0 : 1])
s.p = &a[1];                                  // host only
#pragma omp target exit data map(from : s)
// main: s.p == &a[0], the value saved at attach time
// now:  s.p == &a[1]
```

The runtime now saves the host pointers that a FROM transfer overwrites
right before
the transfer, and writes them back once the transfer completes.
Previously it wrote

    [24 lines not shown]
DeltaFile
+97-73offload/libomptarget/src/omptarget.cpp
+111-0offload/test/mapping/attach_host_ptr_from_basic.c
+92-0offload/test/mapping/attach_host_ptr_from_update_strided.c
+69-0offload/test/offloading/fortran/derived_type_pointer_repointed_host_kept.f90
+58-0offload/test/offloading/fortran/derived_type_allocatable_skipped_from_no_restore.f90
+57-0offload/test/mapping/attach_host_ptr_from_update_strided_2d.c
+484-735 files not shown
+629-8111 files

LLVM/project 90acf7a — mlir/lib/Target/LLVMIR/Dialect/OpenMP OpenMPToLLVMIRTranslation.cpp, mlir/test/Target/LLVMIR openmp-target-recipe-internal-shared-mem.mlir

[MLIR][OpenMP] Support device shared memory for recipe ops

Some recipe ops (`omp.private` and `omp.declare_reduction`) can hold
stack allocations inside their allocation or initialization regions, and
these regions are inlined in the corresponding blocks of their users when
translating to LLVM IR.

The issue is that, when compiling for a target device, certain stack
allocations must be replaced with device shared memory to account for
the disjoint memory spaces of GPUs when kernels run in Generic mode.
This is sometimes handled by frontends by emitting `omp.alloc_shared_mem` and
`omp.free_shared_mem` operations instead of using stack allocations, and
the `StackToShared` MLIR pass addresses any remaining stack allocations
that need to be replaced.

None of those solutions are well suited for these recipe ops, which
might need to use device shared memory for some instantiations but not
others, based on context and usage of the resulting storage. Instead,
what this patch does is to identify the cases where device shared memory

    [17 lines not shown]
DeltaFile
+439-0mlir/test/Target/LLVMIR/openmp-target-recipe-internal-shared-mem.mlir
+345-0offload/test/offloading/fortran/target-reduction-allocatable-arrays.f90
+308-34mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+305-0offload/test/offloading/fortran/target-privatization-allocatable-arrays.f90
+1,397-344 files

LLVM/project dfabfec — mlir/lib/Target/LLVMIR/Dialect/OpenMP OpenMPToLLVMIRTranslation.cpp

[MLIR][OpenMP] Introduce a ReductionVarsInfo structure, NFC

The MLIR to LLVM IR translation process for private and reduction
clauses is relatively similar, given that both are based on inlining
regions of a top-level template operation (`omp.private` and
`omp.declare_reduction`) pointed at by symbol, and mapping entry block
arguments to values as appropriate.

This similarity means that the same kind of information needs to be
passed around to helper translation functions. For privatization, this
is done using the `PrivateVarsInfo` structure but for reductions,
several vectors are passed instead.

This patch introduces a `ReductionVarsInfo` structure that mirrors the
existing `PrivateVarsInfo` to simplify the handling of this data and
converge on a similar pattern.

Assisted-by: Claude Opus 4.8
DeltaFile
+254-351mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+254-3511 files

LLVM/project 77155f5 — llvm/lib/CodeGen/SelectionDAG SelectionDAG.cpp TargetLowering.cpp, llvm/lib/Target/AArch64 AArch64ISelLowering.cpp

[Aarch64] lower `VECTOR_SHUFFLE_VAR` to NEON `TBL` (#240480)

TBL is byte based so this requires a magic constant multiply to line
everything up properly. SVE lowering can do this better, but I think it
makes sense to start with NEON.

---------

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+738-0llvm/test/CodeGen/AArch64/vector-shuffle-var.ll
+0-188llvm/test/CodeGen/AArch64/vector-shuffle-var-expand.ll
+46-0llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+21-14llvm/test/CodeGen/X86/vector-shuffle-var-expand.ll
+12-0llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+3-0llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+820-2021 files not shown
+821-2027 files

LLVM/project 97f9546 — libc/src/__support/math exp2f_float_utils.h powf_float_eval.h

[libc][math] Migrate math polynomial evaluations to estrin_polyeval and loop_polyeval. (#243741)

This is mostly NFC, the only changes it might happen is that the
`estrin_polyeval` and Horner loops templates have more code-size-aware
optimizations than the manual expansion they are replacing in this PR.

- Replace manual Estrin polynomial evaluations with
`fputil::estrin_polyeval`.
- Replace non-unrolled Horner loops in `exp2_accurate_128.h`,
`powf_double_eval.h`, and `sinhcosh_accurate_128.h`, and cold DFloat128
slow-path polynomials in `sincos_eval.h` and `tan.h`, with
`fputil::loop_polyeval`.
- Use array overloads of fputil::polyeval and fputil::altpolyeval in
atan_utils.h, sinhcosh_accurate_128.h, and tanh_accurate_128.h.

Assisted-by: Gemini
DeltaFile
+90-110libc/src/__support/math/powf_double_eval.h
+25-30libc/src/__support/math/sincos_eval.h
+25-28libc/src/__support/math/tan.h
+11-25libc/src/__support/math/atan_utils.h
+15-18libc/src/__support/math/powf_float_eval.h
+7-15libc/src/__support/math/exp2f_float_utils.h
+173-22610 files not shown
+224-31616 files

LLVM/project ad18999 — mlir/lib/Target/LLVMIR/Dialect/OpenMP OpenMPToLLVMIRTranslation.cpp

[MLIR][OpenMP] Refactor PrivateVarsInfo, NFC

The `PrivateVarsInfo` structure holds, for each privatized variable,
multiple related values such as its corresponding MLIR entry block
argument, privatizer, etc. This is represented as a vector for each
property, which has the disadvantage of potentially getting out of sync
when new values aren't added to all vectors.

The proposed change is to create a nested structure holding the
information for a single variable and have `PrivateVarsInfo` hold a
vector of these structures. This prevents the previously mentioned issue
and also simplifies its use, as it no longer requires iterating in
lockstep over multiple vectors.

Assisted-by: Claude Opus 4.8
DeltaFile
+219-210mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+219-2101 files

LLVM/project 85a71a8 — lldb/tools/lldb-dap DAPError.cpp LLDBUtils.cpp, lldb/tools/lldb-dap/Handler WriteMemoryRequestHandler.cpp VariablesRequestHandler.cpp

[lldb-dap][NFC] Swap show_user and error code in DAPError (#243859)

The `show_user` args is set more often than the error code. 

I prefer not to write `llvm::inconvertibleErrorCode()` every time I need
to show the error to the user.
DeltaFile
+3-4lldb/tools/lldb-dap/Handler/DataBreakpointInfoRequestHandler.cpp
+2-2lldb/tools/lldb-dap/LLDBUtils.cpp
+2-2lldb/tools/lldb-dap/Handler/VariablesRequestHandler.cpp
+2-2lldb/tools/lldb-dap/DAPError.h
+1-2lldb/tools/lldb-dap/Handler/WriteMemoryRequestHandler.cpp
+1-1lldb/tools/lldb-dap/DAPError.cpp
+11-133 files not shown
+12-179 files

LLVM/project 75e6b72 — flang/lib/Lower Bridge.cpp OpenACC.cpp, flang/test/Lower/OpenACC acc-loop-seq-do-while.f90

[flang][OpenACC] Fix lowering crash on DO WHILE loop constructs

A loop construct associated with a DO WHILE crashed lowering: reading the
DO WHILE's loop control as bounds aborted, both when the DO WHILE is lowered
unstructured and, with -lower-do-while-to-scf-while, when it is lowered
structurally. A DO WHILE has no bounds and no induction variable, so lower
the construct to an acc.loop without bounds that holds the whole DO WHILE,
as for an unstructured loop, with nothing to privatize.
DeltaFile
+227-0flang/test/Lower/OpenACC/acc-loop-seq-do-while.f90
+13-6flang/lib/Lower/OpenACC.cpp
+10-2flang/lib/Lower/Bridge.cpp
+250-83 files

LLVM/project 30f38e3 — flang/include/flang/Lower OpenACC.h, flang/lib/Lower Bridge.cpp OpenACC.cpp

[flang][OpenACC] Lower unstructured seq loops in kernels

An `acc loop seq` whose loop has an early exit is lowered as an
unstructured acc.loop that privatizes its induction variables, but its
DOs then hit the "unstructured do loop in acc kernels" TODO when they
are lowered inside that acc.loop.

When privatizeInductionVariables privatizes the induction variable of a
DO owned by an unstructured acc.loop, record that DO.
genOpenACCLoopFromDoConstruct lowers a recorded DO as plain control flow
inside its acc.loop instead of reporting the TODO when that acc.loop is
seq; no parallel loop then runs the DO on more than one thread. The
record is dropped once the construct's evaluations are lowered.

The tests cover seq loops nested in structured loops, directly in a
kernels region, inside an unstructured IF, SELECT CASE, BLOCK or DO
WHILE, and a combined `kernels loop seq` construct. They also cover the
shapes that still hit the TODO: a DO the seq loop does not own (a plain
DO in its body, or a DO next to the DOs of a collapse(force:2), also

    [7 lines not shown]
DeltaFile
+502-0flang/test/Lower/OpenACC/acc-kernels-unstructured-seq-loop.f90
+272-6flang/test/Lower/OpenACC/Todo/do-loops-to-acc-loops-todo.f90
+39-5flang/lib/Lower/OpenACC.cpp
+5-0flang/include/flang/Lower/OpenACC.h
+3-0flang/lib/Lower/Bridge.cpp
+821-115 files

LLVM/project cfb9690 — llvm/test/CodeGen/NVPTX machine-cse-predicate-inversion.ll, llvm/test/tools/llvm-mca/AArch64/Cortex A53-neon-instructions.s

Merge branch 'main' into users/abhinavgaba/shadow-ptr-save-before-from
DeltaFile
+1,192-20,413utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+6,864-0utils/bazel/llvm-project-overlay/libc/src/__support/math/BUILD.bazel
+21-4,726mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
+2,239-2,237llvm/test/tools/llvm-mca/AArch64/Cortex/A53-neon-instructions.s
+0-3,895llvm/test/CodeGen/NVPTX/machine-cse-predicate-inversion.ll
+3,686-0utils/bazel/llvm-project-overlay/libc/src/math/BUILD.bazel
+14,002-31,2714,923 files not shown
+215,408-129,8104,929 files

LLVM/project 523b615 — llvm/test/CodeGen/AMDGPU amdgcn.bitcast.768bit.ll amdgcn.bitcast.832bit.ll

[AMDGPU] Only copy SGPR inputs of vector PHIs in SIFixSGPRCopies (#226213)

Since #169038, `processPHINode` legalizes every vector PHI. With AV
classes as the default (#166482, #166483), this adds a `COPY ...,
implicit $exec` for inputs that differ from the PHI only in AV-ness.

Remove the PHI path from `legalizeOperands`. `processPHINode` now copies
only the SGPR inputs of vector PHIs, at the end of the incoming block
(#168761, i1 lane masks). Other mismatched inputs, including VGPR/AGPR
mixes and subregisters, are left to PHI elimination. Propagating the
AGPR class back to operand PHIs now only applies to SGPR PHIs.

This reduces register pressure and spilling in kernels with many
divergent loop PHIs. Because the other copies now come from PHI
elimination, register allocation can change in other kernels too, in
either direction.

Co-authored-by: Matt Arsenault <arsenm2 at gmail.com>
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+15,749-15,507llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+4,234-4,226llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.960bit.ll
+3,606-3,651llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+3,595-3,578llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.896bit.ll
+3,381-3,372llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.832bit.ll
+2,835-2,842llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.768bit.ll
+33,400-33,17639 files not shown
+46,245-45,52945 files

OPNSense/core 0614a21 — src/etc/inc/plugins.inc.d vxlan.inc

interfaces: do not skip VXLAN setup looking for local address

While here modernize the mwexecf() bits.
DeltaFile
+12-27src/etc/inc/plugins.inc.d/vxlan.inc
+12-271 files

LLVM/project ca41fe0 — libcxx/include/__memory uninitialized_algorithms.h destroy.h, libcxx/include/__vector vector.h

[libc++] Destroy the elements of a vector in reverse order (#243091)

While the destruction order of the elements in a vector isn't prescribed
by the standard, a lot of programs rely on the elements being destroyed
in reverse order. This assumption was broken by #217631. Since there is
no other reason to prefer a particular direction, users being broken by
this is a good reason to undo the change in behaviour.

This adds a test in `libcxx/`, since it's simply documenting the current
behaviour to avoid changing it accidentally. We may change the behaviour
in the future if there is a reason to do so.
DeltaFile
+57-0libcxx/test/libcxx/containers/sequences/vector/destroy.pass.cpp
+8-0libcxx/include/__memory/destroy.h
+1-2libcxx/include/__memory/uninitialized_algorithms.h
+1-1libcxx/include/__vector/vector.h
+67-34 files

LLVM/project 153d4ba — clang/lib/Sema SemaX86.cpp, llvm/include/llvm/IR IntrinsicsX86.td

[X86][ACEV1] Record the program model and correct the outer products

Record the program model as the intrinsics are selected, keyed on the
intrinsic as AMX does, rather than from a 66-entry opcode table kept in
step by hand; using both models is now diagnosed, not asserted. Drop the
K dimension the internal outer products never used, and swap the TOP4MX
pseudos' sources, which reached the instruction reversed because it
takes its VVVV operand first. Widen the insert pseudos' index to i32 so
an out-of-range one truncates as for AMX, check it in clang against the
architectural 0-15, and restore the GCCRegNames grouping BSR0 reflowed.
DeltaFile
+21-129llvm/lib/Target/X86/X86ISelLowering.cpp
+45-12clang/lib/Sema/SemaX86.cpp
+56-0llvm/lib/Target/X86/X86ISelDAGToDAG.cpp
+23-23llvm/test/CodeGen/X86/ACEV1/acev1-outer-product.ll
+21-21llvm/include/llvm/IR/IntrinsicsX86.td
+36-5llvm/test/CodeGen/X86/ACEV1/acev1-intrinsics.ll
+202-19017 files not shown
+398-32523 files

LLVM/project dd894b1 — compiler-rt/lib/dasan dasan_platform.h dasan_platform.cpp, compiler-rt/lib/sanitizer_common sanitizer_offload_hsa.h sanitizer_offload.h

no more pm4
DeltaFile
+43-105compiler-rt/lib/sanitizer_common/sanitizer_offload.cpp
+8-10compiler-rt/lib/sanitizer_common/sanitizer_offload.h
+12-5compiler-rt/lib/dasan/dasan_platform.cpp
+2-3compiler-rt/lib/dasan/dasan_platform.h
+0-1compiler-rt/lib/sanitizer_common/sanitizer_offload_hsa.h
+65-1245 files

FreeNAS/freenas dc6163f — src/middlewared/middlewared/plugins/cloud_backup crud.py, tests/cloud test_cloud_backup.py test_cloud_backup_errors.py

Forbid creating two cloud backups pushing to the same destination
DeltaFile
+55-3tests/cloud/test_cloud_backup_errors.py
+1-22tests/cloud/test_cloud_backup.py
+16-0src/middlewared/middlewared/plugins/cloud_backup/crud.py
+72-253 files

LLVM/project 5db9a4e — llvm/lib/Transforms/Scalar LoopStrengthReduce.cpp, llvm/test/CodeGen/Thumb2 mve-gather-scatter-ptr-address.ll

[LSR] Only apply postincrement discount on address uses (#149341)

Cost::RateRegister currently applies the pre/postincrement discount to
all uses when the addrec is of the correct form, meaning it will be
applied even when there's no load/store that can be postincremented. Fix
this by checking that the LSRUse kind is Address.
DeltaFile
+149-0llvm/test/Transforms/LoopStrengthReduce/ARM/cannot_pre_post_idx.ll
+74-56llvm/test/CodeGen/Thumb2/mve-gather-scatter-ptr-address.ll
+3-2llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
+226-583 files

OpenBSD/src gv3DG52 — sys/lib/libz zutil.c inftrees.h

   zlib: sync kernel sources with userland

   ok deraadt
VersionDeltaFile
1.36+44-33sys/lib/libz/zlib.h
1.26+45-26sys/lib/libz/deflate.c
1.31+31-9sys/lib/libz/inflate.c
1.29+10-1sys/lib/libz/zconf.h
1.16+8-2sys/lib/libz/inftrees.h
1.10+5-2sys/lib/libz/zutil.c
+143-735 files not shown
+151-7911 files

OPNSense/plugins 5ab1f3f — dns/ddclient Makefile, dns/ddclient/src/opnsense/mvc/app/controllers/OPNsense/DynDNS/forms dialogAccount.xml

Add Ionos ipv4 and ipv6 support for ddclient (#5935)
DeltaFile
+77-0dns/ddclient/src/opnsense/scripts/ddclient/lib/account/ionos.py
+1-1dns/ddclient/src/opnsense/mvc/app/controllers/OPNsense/DynDNS/forms/dialogAccount.xml
+1-1dns/ddclient/Makefile
+2-0dns/ddclient/src/opnsense/mvc/app/models/OPNsense/DynDNS/DynDNS.xml
+81-24 files

OpenBSD/src LHzN4L0 — lib/libz compress.3

   compress.3: sync with zlib.h as far as it makes sense
VersionDeltaFile
1.38+48-6lib/libz/compress.3
+48-61 files

LLVM/project 00e0e8e — libcxx/include __cpp_release_namespaces.h, libcxx/modules/std cpp_release_namespaces.inc

[libc++][prototype] Add the std::cppNN release namespaces from P3866R0

Each std::cppNN namespace contains a using-directive for std, so that every
component that was never revised is reachable through it. Components that were
revised declare an alias in the release namespace next to their definition, which
hides the std entity of the same name from qualified lookup:

  std::cpp29::vector<int>  -> std::vector2<int>  (declared in __vector/vector2.h)
  std::cpp26::vector<int>  -> std::vector<int>   (through the using-directive)
  std::cpp29::string       -> std::string        (through the using-directive)

Findings, captured in libcxx/test/std/library/cpp_release_namespaces:
- `using namespace std::cpp29;` makes every revised name ambiguous, since
  using-directives are transitive for unqualified lookup.
- Nested namespaces must be mirrored: std::cpp29::pmr hides std::pmr unless it
  re-exposes it with its own using-directive.
- std::vector and std::vector2 don't interoperate at API boundaries.
- With Clang, CTAD through the alias from an iterator pair only works if the
  alias is variadic.

    [9 lines not shown]
DeltaFile
+88-0libcxx/include/__cpp_release_namespaces.h
+87-0libcxx/test/std/library/cpp_release_namespaces/mapping.compile.pass.cpp
+59-0libcxx/test/std/library/cpp_release_namespaces/interop.pass.cpp
+58-0libcxx/modules/std/cpp_release_namespaces.inc
+52-0libcxx/test/std/library/cpp_release_namespaces/specialization.verify.cpp
+40-0libcxx/test/std/library/cpp_release_namespaces/modules.verify.cpp
+384-010 files not shown
+519-016 files

OpenBSD/src Af8e9Xi — lib/libz inflate.c gzwrite.c

   Update to zlib 1.4

   ok deraadt

   The security fixes are already in tree, the remaining relevant fixes
   for OpenBSD include these:

   - Deliver all gzip data before reporting error
   - Fix truncated stream detection in gzread()
   - Fix pending skip handling in gzread()
   - Fix loss of zero fill on repeated gzseek()'s when writing
   - Fix inaccurate total_in after Z_NEED_DICT returned
   - Detect and report bad deflateSetDictionary() calls
   - Avoid undefined behaviors in C language usage
   - Don't assume NULL is defined in compress.c and uncompr.c
   - Clarify documentation
VersionDeltaFile
1.9+100-41lib/libz/gzread.c
1.34+44-33lib/libz/zlib.h
1.33+45-26lib/libz/deflate.c
1.14+35-35lib/libz/gzlib.c
1.9+35-8lib/libz/gzwrite.c
1.27+31-9lib/libz/inflate.c
+290-15212 files not shown
+382-17018 files

LLVM/project 6e8852c — libcxx/include/__vector vector2.h vector2_layout.h, libcxx/test/std/containers/sequences/vector2/vector.capacity shrink_to_fit_exceptions.pass.cpp reserve_exceptions.pass.cpp

[libc++][prototype] Turn the vector copies into std::vector2 (P3866R0)

Prototype of P3866R0 (V2: An Evolution Path for the Standard Library), pretending
that std::vector2 is introduced in C++29 as a version of std::vector that always
uses the size-based layout (begin pointer + size + capacity), regardless of the
ABI configuration.

- __vector/vector2*.h: renamed vector to vector2 and gated everything on C++29.
  vector2_layout.h only keeps the size-based layout. There is intentionally no
  vector2<bool> specialization.
- __fwd/vector2.h: forward declaration.
- __iterator/wrap_iter.h: __wrap_iter befriends vector by name, so it has to
  befriend vector2 too.
- <vector>, CMakeLists.txt, module.modulemap.in, modules/std/vector.inc and
  generate_iwyu_mapping.py: wire up the new headers.
- Tests: renamed vector to vector2, replaced the language-mode directives by
  `REQUIRES: std-at-least-c++29`, added vector2 overloads/aliases to the test
  support headers, and updated the ABI test with the actual vector2 sizes.

No code is shared with std::vector on purpose, except for __if_likely_else.
DeltaFile
+44-245libcxx/include/__vector/vector2_layout.h
+105-119libcxx/include/__vector/vector2.h
+84-83libcxx/test/std/containers/sequences/vector2/vector.capacity/resize_size_exceptions.pass.cpp
+55-54libcxx/test/std/containers/sequences/vector2/vector.capacity/resize_size_value_exceptions.pass.cpp
+55-53libcxx/test/std/containers/sequences/vector2/vector.capacity/reserve_exceptions.pass.cpp
+41-39libcxx/test/std/containers/sequences/vector2/vector.capacity/shrink_to_fit_exceptions.pass.cpp
+384-593119 files not shown
+1,616-1,551125 files

LLVM/project 7730245 — llvm/include/llvm/IR PatternMatch.h, llvm/lib/CodeGen CodeGenPrepare.cpp

[CodeGenPrepare][AMDGPU] Fold urem by constant of loop increment (#242110)

Extend foldURemOfLoopIncrement to constant remainder amounts. For
constant divisors also allow a constant step smaller than the divisor,
'or disjoint' offsets, and a non-simplifiable start value (the initial
remainder is computed in the preheader). Power-of-2 divisors and urems
that do not execute on every iteration are skipped.

Co-authored-by: claude Opus5.5
DeltaFile
+413-0llvm/test/Transforms/CodeGenPrepare/AMDGPU/fold-loop-of-urem-const.ll
+75-44llvm/lib/CodeGen/CodeGenPrepare.cpp
+11-8llvm/test/CodeGen/X86/fold-loop-of-urem.ll
+7-4llvm/test/Transforms/CodeGenPrepare/X86/fold-loop-of-urem.ll
+10-0llvm/include/llvm/IR/PatternMatch.h
+516-565 files

LLVM/project ccc66ca — llvm/include/llvm/Analysis MustExecute.h

[MustExecute] Remove findInContextOf and checkForAllContext

They have no users left now that the Attributor uses isInContextOf and
checkForAllTerminatorsInContext. Also remove getCurrentInst and count
from MustBeExecutedIterator, which were only used by findInContextOf.
The iterator itself is still used by the must-be-executed-contexts
printer.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+5-48llvm/include/llvm/Analysis/MustExecute.h
+5-481 files

LLVM/project 94b33c4 — libc/benchmarks LibcMemoryGoogleBenchmarkMain.cpp LibcMemoryBenchmark.cpp

[libc] Add memchr benchmark

There's a bit of a gap between LLVM libc's memchr implementation and
glibc's memchr implementation, even when both have equivalent vector
instructions available. Add some benchmarks to aid in the optimization
effort.

Assisted-By: LLM

Reviewers: kaladron

Pull Request: https://github.com/llvm/llvm-project/pull/243751
DeltaFile
+18-10libc/benchmarks/CMakeLists.txt
+18-0libc/benchmarks/LibcMemoryBenchmark.h
+7-0libc/benchmarks/LibcDefaultImplementations.cpp
+6-0libc/benchmarks/LibcMemoryGoogleBenchmarkMain.cpp
+6-0libc/benchmarks/LibcMemoryBenchmark.cpp
+6-0libc/benchmarks/LibcFunctionPrototypes.h
+61-101 files not shown
+65-107 files

LLVM/project 93790c3 — llvm/lib/Target/NVPTX NVPTXInstrInfo.cpp, llvm/test/CodeGen/NVPTX machine-cse-predicate-inversion-rollback.mir machine-cse-predicate-inversion-vector-float.ll

[NVPTX] Revert #191890, #215897 SETP+SELP commutativity (#243807)

Revert `SETP` commutativity and predicate inversion patch #191890 and
its subsequent `SELP` extension #215897. Adapt the reverted code to
avoid undoing subsequent refactors like replacing `SETP_i32rr`,
`SETP_i32ri`, and `SETP_i32ir` with a single flexible `SETP_i32`.

After discussions in https://github.com/llvm/llvm-project/pull/191890
highlighted several major issues with the original `SETP` commutativity
patch #191890, we need to revert it (and the follow-up `SELP` patch
#215897) so that they can be re-implemented later with a different
approach, and avoid blocking other important work while doing so.
DeltaFile
+0-3,895llvm/test/CodeGen/NVPTX/machine-cse-predicate-inversion.ll
+0-1,490llvm/test/CodeGen/NVPTX/machine-cse-predicate-no-inversion.ll
+0-170llvm/lib/Target/NVPTX/NVPTXInstrInfo.cpp
+90-80llvm/test/CodeGen/NVPTX/arbitrary-fp-to-float.ll
+0-98llvm/test/CodeGen/NVPTX/machine-cse-predicate-inversion-vector-float.ll
+0-66llvm/test/CodeGen/NVPTX/machine-cse-predicate-inversion-rollback.mir
+90-5,7993 files not shown
+93-5,8749 files

LLVM/project 63577fe — libc/benchmarks LibcBenchmark.cpp

[libc] Do not core dump when failing to meet benchmark reqs

Prefer reportFatalUsageError which doesn't core dump and just cleanly
exits.

Reviewers: kaladron

Pull Request: https://github.com/llvm/llvm-project/pull/243750
DeltaFile
+1-1libc/benchmarks/LibcBenchmark.cpp
+1-11 files