LLVM/project 59bf896lldb/source/Commands CommandObjectMemory.cpp CommandObjectProcess.cpp

[lldb] Remove trailing newlines from AppendErrorWithFormat calls (part 2) (#193168)

Follow up to #192965.

This call adds a newline if there isn't one. Changing these will
eventually let us always add a newline, which is in line with
the other methods on CommandReturnObject.

This is a small part of calls found with:
* VSCode search for
`(\.AppendErrorWithFormat\(([\s\r\n]+)?"(?:(?:\\.|[^"\\])*))\\n"` and
replace with `$1"`.
* Asserting that the last character of the format string is not a
newline.
* Manual inspection.
DeltaFile
+36-36lldb/source/Commands/CommandObjectMemory.cpp
+17-18lldb/source/Commands/CommandObjectProcess.cpp
+12-14lldb/source/Commands/CommandObjectFrame.cpp
+8-8lldb/source/Commands/CommandObjectLog.cpp
+6-6lldb/source/Commands/CommandObjectRegister.cpp
+3-3lldb/source/Commands/CommandObjectPlatform.cpp
+82-852 files not shown
+84-878 files

LLVM/project 8f51fe4llvm/lib/Target/ARM ARMISelLowering.cpp, llvm/test/CodeGen/Thumb2 mve-no-fp.ll

arm: fix float to integer conversion with `+mve` (#193319)

Fix an instruction selection failure when using the `+mve` (and an implied `-mve.fp`)
target feature. From what I understand, e.g. based on
https://reviews.llvm.org/D60694, this combination of target features
enables float registers and loads/moves, but no real FP operations.
Hence

https://godbolt.org/z/xeTcbqMqx

```llvm
define i32 @foo(float %x) {
  %i = call i32 @llvm.fptosi.sat.i32.f32(float %x)
  ret i32 %i
}
```

compiled with `llc -mtriple=thumbv8m.main-none-eabi
-mattr=+v8.1m.main,-mve.fp,+mve -O2` hit

    [8 lines not shown]
DeltaFile
+325-0llvm/test/CodeGen/Thumb2/mve-no-fp.ll
+3-5llvm/lib/Target/ARM/ARMISelLowering.cpp
+328-52 files

LLVM/project b77a894clang/lib/AST/ByteCode Pointer.h

[clang][bytecode] print array root state in Pointer::print() (#193494)

And check isZero() so later output checks don't run into null pointers
as much.
DeltaFile
+6-1clang/lib/AST/ByteCode/Pointer.h
+6-11 files

LLVM/project 1364f52llvm/test/Transforms/LoopInterchange pr45743-move-from-inner-preheader.ll

[LoopInterchange] Fix out-of-bounds accesses in tests (NFC) (#193272)

These tests trigger out-of-bounds accesses. Fix them by decreasing the
backedge-taken counts of the loops, and add pseudo code.
DeltaFile
+34-9llvm/test/Transforms/LoopInterchange/pr45743-move-from-inner-preheader.ll
+34-91 files

LLVM/project 4dbb7eellvm/test/CodeGen/AMDGPU load-constant-i8.ll load-global-i8.ll, llvm/test/CodeGen/RISCV idiv_large.ll

[DAG] visitFREEZE - revisit frozen node after merging with unfrozen uses (#188206)

After merging other uses of a N to all use FREEZE(N), make sure we
revisit FREEZE(N) to attempt to push the FREEZE through the (now
hasOneUse()) operand.

The only remaining annoyance I can find is the freeze nodes interfering
with amdgpu scalar/vector instructions - mainly because we end up with
more freeze(vectorload) patterns and extract_vector_elt nodes can't peek
through anymore - this is an ongoing general problem that nobody has
found a good answer to yet.
DeltaFile
+918-920llvm/test/CodeGen/AMDGPU/load-constant-i8.ll
+820-816llvm/test/CodeGen/AMDGPU/load-global-i8.ll
+798-412llvm/test/CodeGen/RISCV/rvv/setcc-fp-vp.ll
+642-412llvm/test/CodeGen/AMDGPU/load-global-i16.ll
+440-462llvm/test/CodeGen/RISCV/idiv_large.ll
+368-370llvm/test/CodeGen/AMDGPU/load-constant-i16.ll
+3,986-3,39224 files not shown
+5,443-4,84530 files

LLVM/project ba767d0llvm/lib/CodeGen MachineCopyPropagation.cpp

[MachineCopyPropagation][NFC] Refactor EliminateSpillageCopies (#192609)

This patch builds on the original implementation to address areas that
may impact compile time regression if enabled. The aim of the patch is
to streamline and improve the implementation for better compile time
impact. A summary of the changes is as follows:
- Cost modelling that does an initial scan of the block, any blocks with
less than 6 copies are immediately skipped.
- RegMask scan in `findLastSeenDefInCopy` removed. This now only checks
the recorded copies to ensure that RegMasks are clobbered when they are
seen if they clobber a Reg
- Streamlining of `IsSpillReloadPair` and `IsChainedCopy` to reduce the
need for a second call to isCopyInstr to get the DestSourcePair, these
are now returned from the lamdba function
- Use of TRI API to get the CommonRegClass

Assisted-by: Claude Sonnet 4.6 (Co-Pilot)
DeltaFile
+65-41llvm/lib/CodeGen/MachineCopyPropagation.cpp
+65-411 files

FreeBSD/src 967186fcontrib/libcbor CMakeLists.txt, contrib/libcbor/doc/source using.rst

libcbor: Update to 0.13.0

Sponsored by:   The FreeBSD Foundation

(cherry picked from commit b5b9517bfe394e55088f5a05882eabae7e9b7b29)
DeltaFile
+377-34contrib/libcbor/test/copy_test.c
+225-114contrib/libcbor/CMakeLists.txt
+135-137contrib/libcbor/test/cbor_serialize_test.c
+170-26contrib/libcbor/src/cbor.c
+183-0contrib/libcbor/examples/crash_course.c
+0-174contrib/libcbor/doc/source/using.rst
+1,090-485122 files not shown
+3,665-2,450128 files

FreeBSD/src a544288contrib/libfido2/fuzz functions.txt fuzz_attobj.c, contrib/libfido2/regress cred.c dev.c

libfido2: Update to 1.16.0

Sponsored by:   The FreeBSD Foundation

(cherry picked from commit febb0da5bf4bc99828ebede7abcb039514ac367a)
DeltaFile
+553-543contrib/libfido2/fuzz/functions.txt
+972-94contrib/libfido2/regress/cred.c
+333-0contrib/libfido2/fuzz/fuzz_attobj.c
+14-220contrib/libfido2/regress/dev.c
+182-0contrib/libfido2/regress/mock.c
+75-70contrib/libfido2/tools/test.sh
+2,129-92776 files not shown
+3,140-1,40682 files

LLVM/project d93ea57lldb/source/Plugins/Process/gdb-remote ProcessGDBRemote.cpp ProcessGDBRemote.h

[lldb] Override UpdateBreakpointSites in ProcessGDBRemote to use MultiBreakpoint

This concludes the implementation of MultiBreakpoint by actually using
the new packet to batch breakpoint requests.

https://github.com/llvm/llvm-project/pull/192910
DeltaFile
+183-0lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+8-0lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
+191-02 files

LLVM/project 9a7fcf5lldb/include/lldb/Target Process.h, lldb/source/Plugins/Process/Utility StopInfoMachException.cpp

[lldb] Implement delayed breakpoints

This patch changes the Process class so that it delays *physically*
enabling/disabling breakpoints until the process is about to
resume/detach/be destroyed, potentially reducing the packets transmitted
by batching all breakpoints together.

Most classes only need to know whether a breakpoint is "logically"
enabled, as opposed to "physically" enabled (i.e. the remote server has
actually enabled the breakpoint). However, lower level classes like
derived Process classes, or StopInfo may actually need to know whether
the breakpoint was physically enabled. As such, this commit also adds a
"IsPhysicallyEnabled" API.

https://github.com/llvm/llvm-project/pull/192910
DeltaFile
+95-8lldb/source/Target/Process.cpp
+30-1lldb/include/lldb/Target/Process.h
+6-6lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+5-3lldb/source/Plugins/Process/Utility/StopInfoMachException.cpp
+4-2lldb/source/Target/ThreadPlanStepOverBreakpoint.cpp
+5-0lldb/source/Target/TargetProperties.td
+145-203 files not shown
+149-249 files

FreeBSD/src 9b8f4cftools/build/options INIT_ALL

INIT_ALL: Fix typo in option description

From GitHub pull request #2035; the change needs to be applied to the
source file for the option description, not the generated src.conf.5.

(cherry picked from commit c9f3de0ba95b8da31d35fa92e0a54cf6f3d3f1dd)
DeltaFile
+1-1tools/build/options/INIT_ALL
+1-11 files

LLVM/project 2070181lldb/include/lldb/Breakpoint BreakpointSite.h, lldb/include/lldb/Target Process.h

[lldb][NFC] Move BreakpointSite::IsEnabled/SetEnabled into Process

The Process class is the one responsible for managing the state of a
BreakpointSite inside the process. As such, it should be the one
answering questions about the state of the site.

https://github.com/llvm/llvm-project/pull/192910
DeltaFile
+23-29lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
+16-7lldb/source/Target/Process.cpp
+6-14lldb/include/lldb/Breakpoint/BreakpointSite.h
+10-0lldb/include/lldb/Target/Process.h
+5-5lldb/source/Plugins/Process/MacOSX-Kernel/ProcessKDP.cpp
+8-0lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.h
+68-555 files not shown
+76-6411 files

LLVM/project ff8d8aclldb/source/Plugins/Process/gdb-remote GDBRemoteCommunicationClient.cpp GDBRemoteCommunicationClient.h, lldb/unittests/Process/gdb-remote GDBRemoteCommunicationClientTest.cpp

[lldb][GDBRemote] Parse MultiBreakpoint+ capability
DeltaFile
+22-0lldb/unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp
+10-0lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp
+3-0lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h
+35-03 files

FreeBSD/src 51b65c6usr.sbin/ctladm/tests port.sh

ctladm tests: Only use allowed chars in IQN

_ isn't part of the allowed IQN format, but - is.

None functional change.

Reviewed by:            asomers, ngie
Approved by:            asomers (mentor)
MFC after:              1 week
Sponsored by:           ConnectWise
Differential Revision:  https://reviews.freebsd.org/D56557
DeltaFile
+5-5usr.sbin/ctladm/tests/port.sh
+5-51 files

LLVM/project 85dc811llvm/lib/CodeGen/SelectionDAG DAGCombiner.cpp

[X86] Add TODO for nsw+nuw handling to (add (add X, Y), X) --> add(add(X, X), Y) (#193503)

Noticed on #162242
DeltaFile
+1-0llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+1-01 files

LLVM/project 4c04adcclang/test/Sema warn-lifetime-safety.cpp, llvm/test/CodeGen/X86 isel-fmul-vector.ll isel-fsub-vector.ll

Merge branch 'main' into users/kparzysz/r07-move-branching-check
DeltaFile
+0-230clang/test/Sema/warn-lifetime-safety.cpp
+114-0llvm/test/CodeGen/X86/isel-fmul-vector.ll
+114-0llvm/test/CodeGen/X86/isel-fsub-vector.ll
+114-0llvm/test/CodeGen/X86/isel-fadd-vector.ll
+114-0llvm/test/CodeGen/X86/isel-fdiv-vector.ll
+106-0llvm/test/Transforms/InstCombine/phi.ll
+562-23072 files not shown
+1,383-69678 files

FreeBSD/src 19213b8tests/sys/cam/ctl opcodes.sh

ctl: require ctladm in addition to sg_opcodes

Each test case in opcodes.sh uses ctladm to create and remove the LUN it
exercises, but only sg_opcodes was listed in require.progs.
On systems where ctladm is not builded the tests would fail at setup instead of
being skipped cleanly.

Approved by:    asomers
Sponsored by:   Netflix
Differential Revision:  https://reviews.freebsd.org/D56568
DeltaFile
+9-9tests/sys/cam/ctl/opcodes.sh
+9-91 files

LLVM/project 475639allvm/test lit.cfg.py

Add SPIRV to excluded profcheck targets (#193509)
DeltaFile
+1-1llvm/test/lit.cfg.py
+1-11 files

LLVM/project a490b93lldb/include/lldb/Utility StringExtractorGDBRemote.h, lldb/packages/Python/lldbsuite/test/tools/lldb-server gdbremote_testcase.py

[lldb-server] Implement support for MultiBreakpoint packet

This is fairly straightforward, thanks to the helper functions created
in the previous commit.

https://github.com/llvm/llvm-project/pull/192910
DeltaFile
+50-0lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
+2-0lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h
+2-0lldb/source/Utility/StringExtractorGDBRemote.cpp
+1-0lldb/include/lldb/Utility/StringExtractorGDBRemote.h
+0-1lldb/test/API/functionalities/multi-breakpoint/TestMultiBreakpoint.py
+1-0lldb/packages/Python/lldbsuite/test/tools/lldb-server/gdbremote_testcase.py
+56-16 files

LLVM/project 8c83175lldb/source/Plugins/Process/gdb-remote GDBRemoteCommunicationServerLLGS.cpp GDBRemoteCommunicationServerLLGS.h

[lldb-server][NFC] Factor out code handling breakpoint packets

This commit extracts the code handling breakpoint packets into a helper
function that can be used by a future implementation of the
MultiBreakpointPacket.

It is meant to be purely NFC.

There are two functions handling breakpoint packets (`handle_Z`
and `handle_z`) with a lot of repeated code. This commit did not attempt
to merge the two, as that would make the diff much larger due to subtle
differences in the error message produced by the two. The only
deduplication done is in the code processing a GDBStoppointType, where a
helper struct (`BreakpointKind`) and function (`std::optional<BreakpointKind> getBreakpointKind(GDBStoppointType stoppoint_type)`) was created.

https://github.com/llvm/llvm-project/pull/192910
DeltaFile
+147-105lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
+28-0lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h
+175-1052 files

LLVM/project 20a7d26llvm/lib/Target/SPIRV SPIRVLegalizeZeroSizeArrays.cpp, llvm/test/CodeGen/SPIRV legalize-zero-size-arrays-appending.ll

[SPIRV] Fix legalization of zero-sized intrinsic globals (#192730)

Some LLVM global intrinsics like `llvm.global_ctors` may become
zero-sized arrays if all constructors are inlined/optimized out.

These variables use appending linkage, which is only valid on arrays,
however as we are lowing to a pointer, this causes invalid IR if we
maintain the same linkage.

Use `ExternalWeak` linkage, the only other mergable linking type allowed
for intrinsic global variables with definitions. We also need to not
specify an initializer to not produce an invalid module.

As these variables do not represent user visible code, and all entries
were optimized out anyway, the new linkage should be fine.

---------

Signed-off-by: Nick Sarnie <nick.sarnie at intel.com>
DeltaFile
+13-2llvm/lib/Target/SPIRV/SPIRVLegalizeZeroSizeArrays.cpp
+14-0llvm/test/CodeGen/SPIRV/legalize-zero-size-arrays-appending.ll
+27-22 files

LLVM/project 8427d0clldb/source/Plugins/Process/gdb-remote GDBRemoteCommunicationServerLLGS.cpp GDBRemoteCommunicationServerLLGS.h

[lldbremote][NFC] Factor out code handling breakpoint packets

This commit extracts the code handling breakpoint packets into a helper
function that can be used by a future implementation of the
MultiBreakpointPacket.

It is meant to be purely NFC.

There are two functions handling breakpoint packets (`handle_Z`
and `handle_z`) with a lot of repeated code. This commit did not attempt
to merge the two, as that would make the diff much larger due to subtle
differences in the error message produced by the two. The only
deduplication done is in the code processing a GDBStoppointType, where a
helper struct (`BreakpointKind`) and function (`std::optional<BreakpointKind> getBreakpointKind(GDBStoppointType stoppoint_type)`) was created.

https://github.com/llvm/llvm-project/pull/192910
DeltaFile
+147-105lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.cpp
+28-0lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerLLGS.h
+175-1052 files

LLVM/project 0c5d9b6lldb/test/API/functionalities/multi-breakpoint TestMultiBreakpoint.py main.c, lldb/tools/debugserver/source RNBRemote.cpp JSON.h

[debugserver] Implement MultiBreakpoint

This implements the packet as described in https://github.com/llvm/llvm-project/pull/192910
DeltaFile
+190-0lldb/test/API/functionalities/multi-breakpoint/TestMultiBreakpoint.py
+60-0lldb/tools/debugserver/source/RNBRemote.cpp
+7-0lldb/test/API/functionalities/multi-breakpoint/main.c
+3-0lldb/test/API/functionalities/multi-breakpoint/Makefile
+2-0lldb/tools/debugserver/source/JSON.h
+2-0lldb/tools/debugserver/source/RNBRemote.h
+264-06 files

LLVM/project c8b526fbolt/lib/Target/AArch64 AArch64MCSymbolizer.cpp, bolt/test/AArch64 tls-desc-le-relaxation-alternative.test

[bolt] AArch64: Fix TLSDESC to LE relaxation by mold (#190370)

mold linker creates relaxation stub from TLSDESC to LE, (lld makes it
IE) using sequence as NOP+NOP+MOVZ+MOVK. This in itself is not an issue,
when --emit-relocs is added the relocs R_AARCH64_TLSDESC_ADD_LO12 and
R_AARCH64_TLSDESC_CALL are associated with useful MOVW instructions.
However bolt does not check for R_AARCH64_TLSDESC_ADD_LO12 in
adjustRelocation() when disassembling the file. This later triggers a
bug when reloc is patched as movk is patched with S_LO12 fixup kind
which is invalid.

Refer to bug: https://github.com/llvm/llvm-project/issues/190366 for
details.
DeltaFile
+28-0bolt/test/AArch64/tls-desc-le-relaxation-alternative.test
+1-0bolt/lib/Target/AArch64/AArch64MCSymbolizer.cpp
+29-02 files

LLVM/project eda6c60offload/plugins-nextgen/level_zero/include L0Context.h L0Kernel.h, offload/plugins-nextgen/level_zero/src L0Kernel.cpp L0Context.cpp

[offload] Get kernel argument sizes from Level Zero (#192487)

Retrieve kernel argument sizes directly from Level Zero API as a
temporary workaround. This approach assumes no padding or alignment
between arguments. This enables immediate functionality while a more
permanent solution requiring offload API changes is being discussed.
DeltaFile
+27-8offload/plugins-nextgen/level_zero/src/L0Kernel.cpp
+7-0offload/plugins-nextgen/level_zero/src/L0Context.cpp
+5-0offload/plugins-nextgen/level_zero/include/L0Context.h
+2-0offload/plugins-nextgen/level_zero/include/L0Kernel.h
+41-84 files

FreeBSD/ports 6056f5fmath/octave-forge Makefile

math/octave-forge: Add new optional dependency.

- Add optional dependency math/octave-forge-rf.
- Update to 20260422.
DeltaFile
+3-3math/octave-forge/Makefile
+3-31 files

FreeBSD/ports f331ebcmath Makefile, math/octave-forge-rf Makefile pkg-descr

math/octave-forge-rf: New port.

RF and microwave network-parameter utilities for GNU Octave. Provides
S-parameter conversions (ST, SZ, SY, SABCD, SH, SG), cascading,
de-embedding, port reordering, renormalization, mixed-mode conversion
for differential pairs, and Touchstone I/O.
DeltaFile
+24-0math/octave-forge-rf/Makefile
+15-0math/octave-forge-rf/pkg-descr
+3-0math/octave-forge-rf/distinfo
+1-0math/Makefile
+43-04 files

LLVM/project f5e80c9flang/include/flang/Parser parse-tree.h, flang/lib/Lower Bridge.cpp

[Flang] Add SIMD Compiler Directive (#192969)

Similar to #192674, this adds support for the SIMD Compiler Directive,
previously supported by legacy Fortran frontends such as classic-flang.
This operates in the same way as `VECTORALWAYS`, marking a DO loop to be
vectorised by the LLVM Backend.

The missing support was highlighted while building an opensource
benchmark, as build warnings were indicating that this compiler
directive was being ignored.
DeltaFile
+72-0flang/test/Parser/simd-directive.f90
+17-0flang/test/Lower/simd-directive.f90
+9-0flang/test/Semantics/simd-directive01.f90
+8-0flang/lib/Lower/Bridge.cpp
+5-1flang/lib/Semantics/canonicalize-directives.cpp
+3-1flang/include/flang/Parser/parse-tree.h
+114-25 files not shown
+123-311 files

LLVM/project a623bd9lldb/source/Commands CommandObjectMemoryTag.cpp

[lldb] Add full stop to "memory tag" help (#193505)

To match the other sub commands' help text.
DeltaFile
+1-1lldb/source/Commands/CommandObjectMemoryTag.cpp
+1-11 files

OPNSense/tools 6ff9fadcomposite custom.sh

composite/custom: extra argument default was wrong
DeltaFile
+5-1composite/custom.sh
+5-11 files