LLVM/project ea5b1efclang/test/CXX/drs dr0xx.cpp

[clang][NFC] Refactor expected directives in C++ DRs 1-99 (#73879)

This patch converts (almost) every expected directive in `test/CXX/drs/dr0xx.cpp` into either `@-1` form (when directive immediately follow the line diagnostic is pointing out to), or `@#<marker>` form (when directive is placed away from the line diagnostic is pointing out to). It also converts directive to match exactly one diagnostic, as opposed to matching multiple. Error messages are expanded to exactly match compiler output. `#if __cplusplus` guarding directives are replaced with respective prefixes (e.g. `since-cxx17`).

All aforementioned changes serve a purpose of making it easier to reconstruct expected compiler output, which should also make it a bit easier to grasp the gist of those already non-trivial tests due to their nature of testing corner cases of the language.
DeltaFile
+492-288clang/test/CXX/drs/dr0xx.cpp
+492-2881 files

LLVM/project 12326f5llvm/lib/Target/RISCV/GISel RISCVCallLowering.cpp RISCVCallLowering.h, llvm/test/CodeGen/RISCV/GlobalISel/irtranslator lower-args-vararg.ll

[RISCV][GISEL] lowerFormalArguments for variadic arguments (#73064)

This is based of the varargs coe in RISCVTargetLowering::LowerFormalArguments.
DeltaFile
+365-0llvm/test/CodeGen/RISCV/GlobalISel/irtranslator/lower-args-vararg.ll
+82-8llvm/lib/Target/RISCV/GISel/RISCVCallLowering.cpp
+5-0llvm/lib/Target/RISCV/GISel/RISCVCallLowering.h
+452-83 files

LLVM/project d8817a7clang/docs ClangOffloadBundler.rst, clang/lib/Driver OffloadBundler.cpp

Fix null dereference introduced by refactor

Created using spr 1.3.5
DeltaFile
+828-35llvm/test/CodeGen/PowerPC/build-vector-from-load-and-zeros.ll
+254-58clang/docs/ClangOffloadBundler.rst
+247-0lld/test/wasm/pie.s
+186-46clang/lib/Driver/OffloadBundler.cpp
+0-225lld/test/wasm/pie.ll
+0-222openmp/libomptarget/include/omptargetplugin.h
+1,515-586160 files not shown
+2,706-1,025166 files

FreeBSD/ports 92c0ca0net/trippy distinfo Makefile.crates

net/trippy: Update to 0.9.0
DeltaFile
+309-289net/trippy/distinfo
+154-144net/trippy/Makefile.crates
+1-2net/trippy/Makefile
+464-4353 files

LLVM/project 3ccba24llvm/lib/Target/RISCV/GISel RISCVLegalizerInfo.cpp RISCVLegalizerInfo.h

[RISCV][GISEL] Legalize G_VASTART using custom legalization (#73063)

The legalization was modeled after SelectionDAG.
DeltaFile
+24-0llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp
+3-0llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.h
+27-02 files

FreeBSD/src ae3c899sys/netgraph ng_ksocket.c

ng_ksocket: fix accept(2)

- Provide listen upcall and set it on NGM_KSOCKET_LISTEN
- Mask EWOULDBLOCK on NGM_KSOCKET_ACCEPT

Reviewed by:            afedorov
Differential Revision:  https://reviews.freebsd.org/D42637
PR:                     272319
PR:                     275106
Fixes:                  779f106aa169256b7010a1d8f963ff656b881e92

(cherry picked from commit 43f7e21668105cc5a3c66eae5ecef0203c2df62f)
DeltaFile
+35-6sys/netgraph/ng_ksocket.c
+35-61 files

FreeBSD/src 09f4b84sys/netgraph ng_ksocket.c

ng_ksocket: fix upcall clearing on node shutdown

Note: imho, the proper solution would be to guarantee that upcalls
won't ever be called after soclose(), but this isn't the case, yet.
This change at least makes the node work the way it always worked.

Reviewed by:            afedorov
Differential Revision:  https://reviews.freebsd.org/D42636
PR:                     272319
PR:                     275106
Fixes:                  779f106aa169256b7010a1d8f963ff656b881e92

(cherry picked from commit efad7cbfdc06e92bcc589a6c0cae2f3bea0d5cb9)
DeltaFile
+14-7sys/netgraph/ng_ksocket.c
+14-71 files

LLVM/project 4d80122llvm/lib/Target/AArch64 AArch64InstrInfo.cpp AArch64LowerHomogeneousPrologEpilog.cpp, llvm/test/CodeGen/AArch64 sve-aliasing.ll sve-aliasing.mir

[AArch64] Teach areMemAccessesTriviallyDisjoint about scalable widths. (#73655)

The base change here is to change getMemOperandWithOffsetWidth to return
a TypeSize Width, which in turn allows areMemAccessesTriviallyDisjoint
to reason about trivially disjoint widths.
DeltaFile
+93-93llvm/test/CodeGen/AArch64/sve-aliasing.ll
+59-53llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
+65-0llvm/test/CodeGen/AArch64/sve-aliasing.mir
+2-4llvm/lib/Target/AArch64/AArch64LowerHomogeneousPrologEpilog.cpp
+2-2llvm/lib/Target/AArch64/AArch64InstrInfo.h
+1-2llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
+222-1542 files not shown
+224-1568 files

LLVM/project a6f7278llvm/test/CodeGen/RISCV/GlobalISel/instruction-select ptrmask-rv64.mir ptrmask-rv32.mir, llvm/test/CodeGen/RISCV/GlobalISel/legalizer legalize-ptrmask-rv32.mir legalize-ptrmask-rv64.mir

[RISCV][GISEL] legalize, regbankselect, and instruction-select G_PTRMASK (#73062)

This is done in instruction-select instead of in legalization for the
sake of alias analysis.
DeltaFile
+47-0llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/ptrmask-rv64.mir
+47-0llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/ptrmask-rv32.mir
+24-0llvm/test/CodeGen/RISCV/GlobalISel/regbankselect/ptrmask-rv32.mir
+24-0llvm/test/CodeGen/RISCV/GlobalISel/regbankselect/ptrmask-rv64.mir
+22-0llvm/test/CodeGen/RISCV/GlobalISel/legalizer/legalize-ptrmask-rv32.mir
+22-0llvm/test/CodeGen/RISCV/GlobalISel/legalizer/legalize-ptrmask-rv64.mir
+186-02 files not shown
+194-18 files

LLVM/project dbb9043llvm/lib/Target/RISCV/GISel RISCVInstructionSelector.cpp, llvm/test/CodeGen/RISCV/GlobalISel/instruction-select merge-unmerge-rv32.mir

[RISCV][GISEL] legalize, regbankselect, and instruction-select for G_… (#73061)

…[UN]MERGE_VALUES

When MERGE or UNMERGE s64 on a subtarget that is non-64bit, it must have
the D extension and use FPR in order to be legal.

All other instances of MERGE and UNMERGE that can be made legal should
be narrowed, widend, or replaced by the combiner.
DeltaFile
+131-0llvm/test/CodeGen/RISCV/GlobalISel/legalizer/merge-unmerge-rv32.mir
+119-0llvm/test/CodeGen/RISCV/GlobalISel/legalizer/merge-unmerge-rv64.mir
+53-0llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
+44-0llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/merge-unmerge-rv32.mir
+40-0llvm/test/CodeGen/RISCV/GlobalISel/regbankselect/merge-unmerge-rv32.mir
+38-0llvm/test/CodeGen/RISCV/GlobalISel/legalizer/merge-unmerge-rv32d.mir
+425-03 files not shown
+485-29 files

FreeBSD/ports 771bff0databases/postgresql-plv8js pkg-plist Makefile, databases/postgresql-plv8js/files patch-plv8__type.cc patch-Makefile

databases/postgresql-plv8js: bump to 3.2.0

Unbreak port

There is discrepancies between official distribution and port:
- port uses dynamic library, but official uses static
DeltaFile
+0-47databases/postgresql-plv8js/files/patch-plv8__type.cc
+30-0databases/postgresql-plv8js/files/patch-Makefile
+18-6databases/postgresql-plv8js/pkg-plist
+3-10databases/postgresql-plv8js/Makefile
+3-3databases/postgresql-plv8js/distinfo
+0-2databases/postgresql-plv8js/pkg-message
+54-686 files

pfSense/pfsense 63556aftools/conf/pfPorts make.conf

make.conf: move to PHP 8.3
DeltaFile
+1-1tools/conf/pfPorts/make.conf
+1-11 files

LLVM/project 6976dacllvm/lib/Target/RISCV/GISel RISCVRegisterBankInfo.cpp RISCVInstructionSelector.cpp, llvm/test/CodeGen/RISCV/GlobalISel/instruction-select implicit-def-rv64.mir implicit-def-rv32.mir

[RISCV][GISEL] regbankselect and instruction-select for G_IMPLICIT_DEF (#73060)

This is similar to the selection of G_IMPLICIT_DEF in AArch64.
Regbankselect may need to be improved in a future patch.
DeltaFile
+59-0llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/implicit-def-rv64.mir
+59-0llvm/test/CodeGen/RISCV/GlobalISel/instruction-select/implicit-def-rv32.mir
+55-0llvm/test/CodeGen/RISCV/GlobalISel/regbankselect/implicit-def-rv32.mir
+52-0llvm/test/CodeGen/RISCV/GlobalISel/regbankselect/implicit-def-rv64.mir
+26-8llvm/lib/Target/RISCV/GISel/RISCVRegisterBankInfo.cpp
+23-0llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
+274-81 files not shown
+278-87 files

FreeNAS/freenas 644de0csrc/middlewared/middlewared/plugins account.py smb.py, src/middlewared/middlewared/plugins/smb_ groupmap.py passdb.py

Raise exceptions if SMB not configured

We should not proceed with passdb and groupmap synchronization
if SMB has not been properly configured. Passdb interaction in
a broken state can lead to SMB_ASSERT() in pdbedit and other
tools due to global sam sid failing to initialize (possibly
due to missing path components).

In case of creating user / group this should raise
ValidationError.

NOTE: these exceptions will not be user-facing unless in very
unusual circumstances (like broken system dataset configuration)
and so their primary purpose is to focus developer attention on
root cause.
DeltaFile
+36-0tests/api2/test_011_user.py
+10-0src/middlewared/middlewared/plugins/account.py
+7-1src/middlewared/middlewared/plugins/smb_/groupmap.py
+7-1src/middlewared/middlewared/plugins/smb_/passdb.py
+2-2src/middlewared/middlewared/plugins/smb.py
+62-45 files

LLVM/project a383817mlir/lib/Dialect/Vector/Transforms LowerVectorGather.cpp, mlir/test/Dialect/Vector vector-gather-lowering.mlir

[mlir][Vector] Add a rewrite pattern for gather over a strided memref (#72991)

This patch adds a rewrite pattern for `vector.gather` over a strided
memref like the following:

```mlir
%subview = memref.subview %arg0[0, 0] [100, 1] [1, 1] :
    memref<100x3xf32> to memref<100xf32, strided<[3]>>
%gather = vector.gather %subview[%c0] [%idxs], %cst_0, %cst :
    memref<100xf32, strided<[3]>>, vector<4xindex>, vector<4xi1>, vector<4xf32>
    into vector<4xf32>
```

After the pattern added in this patch:
```mlir
%collapse_shape = memref.collapse_shape %arg0 [[0, 1]] :
    memref<100x3xf32> into memref<300xf32>
%1 = arith.muli %arg3, %cst : vector<4xindex>
%gather = vector.gather %collapse_shape[%c0] [%1], %cst_1, %cst_0 :

    [4 lines not shown]
DeltaFile
+93-2mlir/lib/Dialect/Vector/Transforms/LowerVectorGather.cpp
+55-0mlir/test/Dialect/Vector/vector-gather-lowering.mlir
+148-22 files

FreeBSD/ports 09b4fd2finance/fava Makefile

finance/fava: Chase flask update.
DeltaFile
+1-1finance/fava/Makefile
+1-11 files

NetBSD/pkgsrc e3Uf1Z2doc CHANGES-2023

   doc: Updated www/php-apcu to 5.1.23
VersionDeltaFile
1.7329+2-1doc/CHANGES-2023
+2-11 files

NetBSD/pkgsrc tZ31jQ4www/php-apcu distinfo Makefile, www/php-apcu/patches patch-config.m4

   www/php-apcu: update to 5.1.23

   5.1.23 (2023-11-11)

   * Revert use of monotonic clock for TTL (#451)
   * Fix a crash when serializing packed arrays (e.g. lists) in PHP 8.2+ with
     `apc.serializer=default`.
   * Reduce memory usage when serializing packed arrays (e.g. lists) in PHP
     8.2+ with `apc.serializer=default`.
   * Speed up serializing arrays with `apc.serializer=default`.
   * Reduce memory usage when unserializing instances of the empty array in
     PHP 7.3+.
   * Removed no longer working apcue extension.
   * Increased limit on maximum number of slots.
   * Made tests compatible with PHP 8.3.
VersionDeltaFile
1.7+16-16www/php-apcu/patches/patch-config.m4
1.23+5-5www/php-apcu/distinfo
1.23+2-2www/php-apcu/Makefile
+23-233 files

FreeBSD/src 0fac350sys/kern uipc_syscalls.c, sys/netgraph/bluetooth/socket ng_btsocket_l2cap.c ng_btsocket_sco.c

sockets: don't malloc/free sockaddr memory on getpeername/getsockname

Just like it was done for accept(2) in cfb1e92912b4, use same approach
for two simplier syscalls that return socket addresses.  Although,
these two syscalls aren't performance critical, this change generalizes
some code between 3 syscalls trimming code size.

Following example of accept(2), provide VNET-aware and INVARIANT-checking
wrappers sopeeraddr() and sosockaddr() around protosw methods.

Reviewed by:            tuexen
Differential Revision:  https://reviews.freebsd.org/D42694
DeltaFile
+26-60sys/kern/uipc_syscalls.c
+26-58sys/netinet6/sctp6_usrreq.c
+24-51sys/netgraph/bluetooth/socket/ng_btsocket_l2cap.c
+32-42sys/netinet6/in6_pcb.c
+18-44sys/netgraph/bluetooth/socket/ng_btsocket_sco.c
+19-42sys/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c
+145-29737 files not shown
+420-69843 files

FreeBSD/src cfb1e92sys/kern uipc_syscalls.c, sys/netgraph/bluetooth/socket ng_btsocket_l2cap.c ng_btsocket_rfcomm.c

sockets: don't malloc/free sockaddr memory on accept(2)

Let the accept functions provide stack memory for protocols to fill it in.
Generic code should provide sockaddr_storage, specialized code may provide
smaller structure.

While rewriting accept(2) make 'addrlen' a true in/out parameter, reporting
required length in case if provided length was insufficient.  Our manual
page accept(2) and POSIX don't explicitly require that, but one can read
the text as they do.  Linux also does that. Update tests accordingly.

Reviewed by:            rscheff, tuexen, zlei, dchagin
Differential Revision:  https://reviews.freebsd.org/D42635
DeltaFile
+34-46sys/netinet/tcp_usrreq.c
+42-30sys/netgraph/bluetooth/socket/ng_btsocket_l2cap.c
+25-42sys/kern/uipc_syscalls.c
+37-25sys/netgraph/bluetooth/socket/ng_btsocket_rfcomm.c
+35-25sys/netgraph/bluetooth/socket/ng_btsocket_sco.c
+17-31sys/netinet/sctp_usrreq.c
+190-19922 files not shown
+261-30928 files

LLVM/project a51196ellvm/tools/llvm-reduce/deltas ReduceOpcodes.cpp

[llvm-reduce] Remove unreachable branch (NFC)

Remove stale branch which is unreachable with opaque pointers.
DeltaFile
+0-6llvm/tools/llvm-reduce/deltas/ReduceOpcodes.cpp
+0-61 files

LLVM/project 4424903llvm/lib/Transforms/InstCombine InstructionCombining.cpp, llvm/lib/Transforms/Utils PromoteMemoryToRegister.cpp

[DebugInfo][RemoveDIs] Handle DPValues at remaining dbg.value using sites (#73788)

This patch updates the last few places in LLVM using findDbgValues that
don't also collect and handle DPValue objects. This largely involves
instcombine and mem2reg changes, and are largely mechanical, calling
existing utilities on collections of DPValues instead of just
DbgValuesInsts.

A variety of tests have had RemoveDIs RUN lines added to them to cover
these behaviours. We have some technical debt of the instcombine sinking
code for DPValues not being implemented yet, so I've left FIXME stubs
indicating that we intend to cover tests with RemoveDIs but haven't yet.
DeltaFile
+62-26llvm/lib/Transforms/Utils/PromoteMemoryToRegister.cpp
+11-1llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
+4-0llvm/test/Transforms/InstCombine/debuginfo.ll
+3-0llvm/test/Transforms/InstCombine/sink-instruction-introduces-unnecessary-poison-value.ll
+3-0llvm/test/Transforms/InstCombine/debuginfo-skip.ll
+3-0llvm/test/Transforms/InstCombine/debuginfo_add.ll
+86-2715 files not shown
+101-2821 files

NetBSD/pkgsrc ErSVhtudoc CHANGES-2023

   doc: Updated archivers/php-pecl-zip to 1.22.3
VersionDeltaFile
1.7328+2-1doc/CHANGES-2023
+2-11 files

NetBSD/pkgsrc URQe8bCarchivers/php-pecl-zip distinfo Makefile

   archivers/php-pecl-zip: update to 1.22.3

   1.22.3 (2023-11-24)

   * fix GH-12661 (Inconsistency in ZipArchive::addGlob 'remove_path' Option
     Behavior)
VersionDeltaFile
1.14+4-4archivers/php-pecl-zip/distinfo
1.20+2-3archivers/php-pecl-zip/Makefile
+6-72 files

LLVM/project ca5a01dllvm/test/Transforms/InstSimplify freeze-noundef.ll

[InstSimplify] Add test for incorrect freeze of or disjoint (NFC)
DeltaFile
+34-2llvm/test/Transforms/InstSimplify/freeze-noundef.ll
+34-21 files

LLVM/project ea602cbllvm/lib/IR Operator.cpp, llvm/test/Transforms/InstSimplify freeze-noundef.ll

[IR] Support or disjoint in hasPoisonGeneratingFlags()

This fixed incorrect removal of freeze instructions.
DeltaFile
+2-2llvm/test/Transforms/InstSimplify/freeze-noundef.ll
+2-0llvm/lib/IR/Operator.cpp
+4-22 files

NetBSD/pkgsrc RJbTZXbdoc CHANGES-2023

   doc: Updated www/php-http4 to 4.2.4
VersionDeltaFile
1.7327+2-1doc/CHANGES-2023
+2-11 files

NetBSD/pkgsrc WcDEVwfwww/php-http4 distinfo Makefile

   www/php-http4: update to 4.2.4

   pkgsrc change: allow php82 and php83

   4.2.4 (2023-10-02)

   * Fix Error using ssl array in options : Could not set option tlsauthtype
     (see gh issue #131)
   * Fix arginfo wargnings of the internal curl client user handler
   * Disable libidn support for v1.36-v1.38 due to broken locale detection
VersionDeltaFile
1.4+4-4www/php-http4/distinfo
1.11+3-4www/php-http4/Makefile
+7-82 files

NetBSD/pkgsrc SCDZK3Rlang/ghc96 Makefile

   ghc96: Build with LC_ALL=en_US.UTF-8.

   There appear to be a number of UTF-8 issues in ghc, some of which are patched
   in this package and the resulting binaries, but there are others that may be
   caused by the bootstrap kit.  Package now builds correctly on SunOS.
VersionDeltaFile
1.6+6-1lang/ghc96/Makefile
+6-11 files

LLVM/project 3f505cdlibc/src/__support/CPP bitset.h

[libc] Mark operator== const to avoid ambiguity in C++20. (#73954)

C++20 will automatically generate an operator== with reversed operand
order, which is ambiguous with the written operator== when one argument
is marked const and the other isn't.

This operator currently triggers -Wambiguous-reversed-operator at
several usage sites in libc/test/src/__support/CPP/bitset_test.cpp,
starting with line 153.
DeltaFile
+2-1libc/src/__support/CPP/bitset.h
+2-11 files