HardenedBSD/src 6a9142e — sys/netipsec ipsec_output.c, tests/sys/netipsec/tunnel flowlabel.sh

Merge remote-tracking branch 'rad/hardened/current/master' into hardened/current/pledge
DeltaFile
+281-0tests/sys/netipsec/tunnel/flowlabel.sh
+38-5sys/netipsec/ipsec_output.c
+3-25usr.bin/man/manpath.1
+3-25usr.bin/man/man.1
+2-24usr.bin/man/man.sh
+2-22usr.bin/man/man.conf.5
+329-1012 files not shown
+340-1028 files

HardenedBSD/src 9d6af24 — sys/netipsec ipsec_output.c, tests/sys/netipsec/tunnel flowlabel.sh

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+281-0tests/sys/netipsec/tunnel/flowlabel.sh
+38-5sys/netipsec/ipsec_output.c
+3-25usr.bin/man/manpath.1
+3-25usr.bin/man/man.1
+2-24usr.bin/man/man.sh
+2-22usr.bin/man/man.conf.5
+329-1012 files not shown
+340-1028 files

HardenedBSD/ports 0f3aacf — databases/sqlx-cli Makefile distinfo, misc/tvm pkg-plist

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+509-523databases/sqlx-cli/distinfo
+447-158net-im/deltachat-desktop/files/packagejsons/pnpm-lock.yaml
+254-262databases/sqlx-cli/Makefile
+94-200misc/tvm/pkg-plist
+144-0net-im/deltachat-desktop/files/a557da6e6852e9dc9979e013e77bd6cef38f3d7a.patch
+45-43net/deltachat-rpc-server/distinfo
+1,493-1,186183 files not shown
+2,231-1,698189 files

LLVM/project a4329f5 — lld/MachO SyntheticSections.cpp ConcatOutputSection.cpp, lld/test/MachO arm64-thunk-visibility.s

[lld-macho] Give thunks to linker-private labels no symbol

Like the labels themselves, their thunks stay out of the output symbol
table, as in ld-prime.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+8-2lld/test/MachO/arm64-thunk-visibility.s
+3-2lld/MachO/ConcatOutputSection.cpp
+2-1lld/MachO/SyntheticSections.cpp
+13-53 files

LLVM/project b86056e — orc-rt/test/Inputs CMakeLists.txt orc-rt-test-dylib.c, orc-rt/test/unit CMakeLists.txt

[orc-rt] Make NativeDylibManager's test dylib a shared input. (#244105)

The shared library added for the NativeDylibManager unit tests isn't
actually NativeDylibManager-specific. Move it to test/Inputs as
orc-rt-test-dylib, so that it can be reused by other unit and regression
tests. Unit tests find it through the ORC_RT_TEST_DYLIB_PATH compile
definition (previously NDM_TEST_LIB_PATH), and regression tests through
a new %{test-dylib} substitution.

The library is now written in C, defines its own export macro rather
than using the unit tests' TestVisibility.h, and its functions are
renamed to orc_rt_test_dylib_return42 and orc_rt_test_dylib_return7.
DeltaFile
+26-0orc-rt/test/Inputs/orc-rt-test-dylib.c
+12-13orc-rt/test/unit/bedrock/sps/NativeDylibManagerSPSCITest.cpp
+12-13orc-rt/test/unit/bedrock/NativeDylibManagerTest.cpp
+21-0orc-rt/test/Inputs/CMakeLists.txt
+3-11orc-rt/test/unit/CMakeLists.txt
+0-6orc-rt/test/unit/Inputs/NativeDylibManagerTestLib.cpp
+74-434 files not shown
+87-4310 files

LLVM/project bbaa688 — clang/test/CodeGen hexagon-hlx-vector-stack-limit.c, clang/test/CodeGenCXX hexagon-hlx-vector-stack-limit.cpp

[Hexagon] Add a limit on the HLX vector stack size (#243174)

Report an error when a function needs more HLX vector (VTCM) stack than
allowed, including the area for outgoing HLX stack arguments. The limit
comes from the "hlx-vector-stack-limit" function attribute, or else from
the -hlx-vector-stack-limit option, and there is no limit by default.

In Clang, the -fhlx-vector-stack-limit=N driver option, which requires
-mhlx, sets the limit on all functions through the
"hlx-vector-stack-limit" function attribute in IR. A function can
override it with the hlx_vector_stack_limit(N) attribute.

Assisted by AI

---------

Co-authored-by: Ankit Aggarwal <aankit at qti.qualcomm.com>
Co-authored-by: pavani karveti <pkarveti at qti.qualcomm.com>
DeltaFile
+52-0llvm/test/CodeGen/Hexagon/hlx-vector-stack-limit.ll
+34-0clang/test/CodeGen/hexagon-hlx-vector-stack-limit.c
+25-0clang/test/Driver/hexagon-hlx.c
+18-0clang/test/Sema/hexagon-hlx-vector-stack-limit.c
+16-1llvm/lib/Target/Hexagon/HexagonFrameLowering.cpp
+16-0clang/test/CodeGenCXX/hexagon-hlx-vector-stack-limit.cpp
+161-111 files not shown
+240-517 files

LLVM/project 790edd6 — llvm/test/CodeGen/AMDGPU sched-handleMoveUp-dead-def-across-def.mir

Updated test according to reviewer feedback.
DeltaFile
+1-2llvm/test/CodeGen/AMDGPU/sched-handleMoveUp-dead-def-across-def.mir
+1-21 files

LLVM/project c1b4f35 — flang/lib/Lower/OpenMP ClauseProcessor.cpp, flang/test/Integration/OpenMP declare-mapper-iterator.f90

[flang][mlir][OMPIRBuilder][OpenMP] Support iterator modifier in declare mapper map clause (#235491)

This PR adds LLVM code generation support for the `iterator` modifier in
`map` clauses inside `declare mapper`, building on the lowering added in
[#241358](https://github.com/llvm/llvm-project/pull/241358).

**Implementation:**

- `OMPIRBuilder`: added `MapInfosTy::DynamicSegments` to describe groups
of mapper components whose count is only known at runtime (trip count, a
callback producing one iteration's base/begin/size, the map type, and an
optional child mapper). `emitUserDefinedMapper` emits a loop per segment
that pushes each component via `__tgt_push_mapper_component`, resolving
`MEMBER_OF` against `__tgt_mapper_num_components`. Added
`LeadingParentCond` to mark the first static component as a parent
synthesized only to group those segments, pushed conditionally at
runtime.
- Added runtime handling for iterator-generated map entries using
`__tgt_push_mapper_component`, since the number of elements is known

    [22 lines not shown]
DeltaFile
+351-4mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+266-0mlir/test/Target/LLVMIR/openmp-declare-mapper-iterator.mlir
+164-90llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+68-0flang/lib/Lower/OpenMP/ClauseProcessor.cpp
+64-0offload/test/offloading/fortran/target-declare-mapper-iterator-nested.f90
+63-0flang/test/Integration/OpenMP/declare-mapper-iterator.f90
+976-9413 files not shown
+1,454-12519 files

LLVM/project 91a26e2 — llvm/test/CodeGen/Hexagon hlx-vector-pair-alloca-marker.ll

[Hexagon] Test that HLX pair alloca lowering keeps half-vector loads (#243916)

Check that a store to an HLX VectorPair alloca is lowered to SS16b.new
while an HLX_Vector-typed load from the same alloca stays a plain load.

Assisted by AI
DeltaFile
+14-0llvm/test/CodeGen/Hexagon/hlx-vector-pair-alloca-marker.ll
+14-01 files

LLVM/project 2062133 — llvm/utils/TableGen/Common CodeGenDAGPatterns.cpp

TableGen: Index patterns by predicates when generating variants

GenerateVariants quadractically compared each new variant against
every pattern to find duplicates, though only patterns with the same
predicates can match. Index the patterns by predicates and only
compare against those.

RISCVGenDAGISel.inc tablegen run:

            Gigainstructions  Gigacycles      CPU seconds
  Before    56.9              27.8            8.7
  After     50.0 (-12.2%)     25.2 (-9.3%)    8.0 (-8.8%)

AMDGPUGenDAGISel.inc tablegen run:

            Gigainstructions  Gigacycles      CPU seconds
  Before    91.2              44.6            14.2
  After     85.3 (-6.5%)      42.7 (-4.2%)    13.4 (-5.4%)


    [7 lines not shown]
DeltaFile
+9-5llvm/utils/TableGen/Common/CodeGenDAGPatterns.cpp
+9-51 files

LLVM/project 3e17668 — bolt/test link_fdata.py

[BOLT] Skip symbols with no name (#239088)

In llvm-nm, an existing bug makes smybol with no name listed in
special-syms. This makes later value unpacking fails. It has been fixed
in trunk but is not in the older release version. We workaround this by
skipping such symbols by check len < 3 or not.

See: https://github.com/llvm/llvm-project/pull/192129
DeltaFile
+4-1bolt/test/link_fdata.py
+4-11 files

LLVM/project 84548dd — llvm/test/CodeGen/AArch64/Atomics aarch64_be-atomicrmw-lscp.ll aarch64-atomicrmw-lscp.ll, llvm/test/CodeGen/AMDGPU amdgcn.bitcast.896bit.ll amdgcn.bitcast.512bit.ll

Merge branch 'main' into users/lukel97/loop-vectorize/hasEarlyExit-side-effects
DeltaFile
+15,749-15,507llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+9,174-0llvm/test/CodeGen/AArch64/Atomics/aarch64-atomicrmw-lscp.ll
+8,819-0llvm/test/CodeGen/AArch64/Atomics/aarch64_be-atomicrmw-lscp.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
+45,177-26,9621,851 files not shown
+182,255-113,3541,857 files

LLVM/project ed11511 — llvm/lib/Target/BPF BPFUnwind.cpp, llvm/test/CodeGen/BPF unwind-dead-blocks.ll

Revert to previous version
DeltaFile
+27-221llvm/test/CodeGen/BPF/unwind-dead-blocks.ll
+8-3llvm/lib/Target/BPF/BPFUnwind.cpp
+35-2242 files

LLVM/project 0b0f0d4 — llvm/test/CodeGen/AArch64/Atomics aarch64_be-atomicrmw-lscp.ll aarch64-atomicrmw-lscp.ll, llvm/test/CodeGen/AMDGPU amdgcn.bitcast.512bit.ll amdgcn.bitcast.960bit.ll

Rebase

Created using spr 1.3.7
DeltaFile
+15,980-15,802llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+1,204-20,133utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+9,174-0llvm/test/CodeGen/AArch64/Atomics/aarch64-atomicrmw-lscp.ll
+8,819-0llvm/test/CodeGen/AArch64/Atomics/aarch64_be-atomicrmw-lscp.ll
+4,234-4,282llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.960bit.ll
+3,948-4,025llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+43,359-44,2429,511 files not shown
+495,032-271,3909,517 files

LLVM/project 42b89bd — llvm/test/CodeGen/AArch64/Atomics aarch64_be-atomicrmw-lscp.ll aarch64-atomicrmw-lscp.ll, llvm/test/CodeGen/AMDGPU amdgcn.bitcast.512bit.ll amdgcn.bitcast.960bit.ll

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.7

[skip ci]
DeltaFile
+15,980-15,802llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+1,204-20,133utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+9,174-0llvm/test/CodeGen/AArch64/Atomics/aarch64-atomicrmw-lscp.ll
+8,819-0llvm/test/CodeGen/AArch64/Atomics/aarch64_be-atomicrmw-lscp.ll
+4,234-4,282llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.960bit.ll
+3,948-4,025llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+43,359-44,2429,511 files not shown
+495,032-271,3909,517 files

LLVM/project 36f1fd3 — clang/include/clang/AST ASTContext.h, clang/lib/AST ASTContext.cpp

[clang] Avoid repeated per-function target setup

Reuse function feature maps through const references in ASTContext,
sharing maps by target attribute contents and multiversion selection.
Compute vscale directly from the borrowed map.

CTMark (-march=rva23u64 -O3), three interleaved pairs: 0.520% lower
median total compile time and 0.244% lower workload geomean.

Assisted-by: TRAE CLI (GPT-6)

Reviewers:
davemgreen, topperc, lukel97, efriedma-quic, snehasish, sdesmalen-arm

Pull Request: https://github.com/llvm/llvm-project/pull/241192
DeltaFile
+83-0clang/unittests/AST/FunctionFeatureMapTest.cpp
+40-0clang/lib/AST/ASTContext.cpp
+3-11clang/lib/CodeGen/CodeGenModule.cpp
+4-7clang/lib/CodeGen/CodeGenFunction.cpp
+3-4clang/lib/Basic/Targets/AArch64.cpp
+7-0clang/include/clang/AST/ASTContext.h
+140-225 files not shown
+149-3011 files

LLVM/project c538a23 — llvm/lib CMakeLists.txt

[CMake] Enforce -Wglobal-constructors for MC, MCParser, NVPTXCodeGen (#244103)

They no longer have C++ dynamic initialization after their cl::opt
globals moved to TableGen.
DeltaFile
+0-3llvm/lib/CMakeLists.txt
+0-31 files

LLVM/project ad014db — llvm/lib/Target/RISCV RISCVTargetTransformInfo.h, llvm/test/Transforms/LoopVectorize/RISCV reg-usage.ll

[RISCV] Increase the vector spill/reload cost (#243766)

When spilling/reloading a vector register, the stack slot address
need to be materialized before the store/load.
DeltaFile
+19-0llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
+2-2llvm/test/Transforms/LoopVectorize/RISCV/reg-usage.ll
+21-22 files

HardenedBSD/src 36d9f18 — usr.bin/man man.conf.5 man.sh

man: Convert licenses to SPDX only

Reported by:    ziaee
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D61729
DeltaFile
+3-25usr.bin/man/manpath.1
+3-25usr.bin/man/man.1
+2-24usr.bin/man/man.sh
+2-22usr.bin/man/man.conf.5
+10-964 files

FreeBSD/src 36d9f18 — usr.bin/man man.conf.5 man.sh

man: Convert licenses to SPDX only

Reported by:    ziaee
MFC after:      3 days
Differential Revision:  https://reviews.freebsd.org/D61729
DeltaFile
+3-25usr.bin/man/manpath.1
+3-25usr.bin/man/man.1
+2-24usr.bin/man/man.sh
+2-22usr.bin/man/man.conf.5
+10-964 files

LLVM/project ffcd0a5 — lldb/source/Utility DataExtractor.cpp, lldb/unittests/Utility DataExtractorTest.cpp

[lldb] Don't assert in DataExtractor::GetLongDouble past the end (#243973)

Return 0 if the check fails rather than asserting.

Assisted-by: Claude
DeltaFile
+19-0lldb/unittests/Utility/DataExtractorTest.cpp
+1-1lldb/source/Utility/DataExtractor.cpp
+20-12 files

LLVM/project 4651227 — clang/docs ReleaseNotes.md, clang/include/clang/Basic DiagnosticSemaKinds.td DiagnosticGroups.td

[clang] Add new volatile -Wunsequenced support under -Wunsequenced-volatile (#244073)

So it can be disabled separately while people clean up violations.

Initially implemented in #180955.

Assisted with Gemini
DeltaFile
+11-0clang/test/Sema/warn-unsequenced-volatile.c
+2-1clang/include/clang/Basic/DiagnosticSemaKinds.td
+2-1clang/include/clang/Basic/DiagnosticGroups.td
+2-1clang/docs/ReleaseNotes.md
+17-34 files

LLVM/project 97b916e — llvm/lib/Target/RISCV RISCVRegisterInfo.td, llvm/test/MC/RISCV xsmtvdot-invalid.s xsmtvdotii-invalid.s

[RISCV] Improve vector register diagnostics (#241929)
DeltaFile
+47-47llvm/test/MC/RISCV/rvv/invalid.s
+49-8llvm/lib/Target/RISCV/RISCVRegisterInfo.td
+11-11llvm/test/MC/RISCV/xsmtvdotii-invalid.s
+4-4llvm/test/MC/RISCV/xsmtvdot-invalid.s
+2-2llvm/test/MC/RISCV/rvv/zvqwbdota-invalid.s
+2-2llvm/test/MC/RISCV/rvv/zvfwbdota16bf-invalid.s
+115-743 files not shown
+121-809 files

OpenBSD/src UnnoUw4 — sys/dev/pci/drm drm_linux.c

   error if get_unused_fd_flags() is called without O_CLOEXEC set

   Previously this was a KASSERT.  landry saw it trigger on inteldrm
   (Kaby Lake).  Caller is unclear, likely DRM_IOCTL_PRIME_HANDLE_TO_FD.
VersionDeltaFile
1.150+3-2sys/dev/pci/drm/drm_linux.c
+3-21 files

LLVM/project 2bada9f — llvm/lib/Target/RISCV RISCVISelDAGToDAG.cpp, llvm/test/CodeGen/RISCV rvp-scalar.ll

[RISCV][P-ext] Fix crash selecting WADDA[U]/WSUBA[U] with a zero accumulator (#244093)

`WADDA`, `WADDAU`, `WSUBA` and `WSUBAU` tie the accumulator to the
result, so it must be a virtual register. `Select()` treated them like
`ADDD/SUBD` and used `X0_Pair` for a (0, 0) accumulator, which hits an
assertion.

This commit selects them with the other widening accumulate nodes so the
accumulator is always built with `buildGPRPair`. `X0_Pair` is now only
used for `ADDD/SUBD`.

Closes #244092
DeltaFile
+79-0llvm/test/CodeGen/RISCV/rvp-scalar.ll
+22-45llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
+101-452 files

LLVM/project 917eed3 — libc/test/include CMakeLists.txt math_comparison_macros_test.cpp, utils/bazel/llvm-project-overlay/libc/test/include BUILD.bazel

Remove exception checks.
DeltaFile
+18-55libc/test/include/math_comparison_macros_test.cpp
+0-2utils/bazel/llvm-project-overlay/libc/test/include/BUILD.bazel
+0-2libc/test/include/CMakeLists.txt
+18-593 files

LLVM/project 43d95c1 — clang/include/clang/AST Decl.h, clang/lib/CodeGen CGDebugInfo.cpp

[Clang] Fix crash on a block capturing this in an aggregate's default member initializer (#243509)

Fixes #229323

`computeBlockInfo` typed a block's captured `this` from `CurFuncDecl`,
assuming the literal is emitted in a member function of that class. A
default member initializer is emitted wherever the object is
initialized, which for an aggregate can be a free function, so the
`cast<CXXMethodDecl>` asserted. Closures nested in such an initializer
have no `CurFuncDecl` at all and failed the same way even inside a
constructor.

`BlockDecl` now records the type of the captured `this`, which Sema
knows at the capture, serialized like the other captures;
`computeBlockInfo` and the block debug info read it instead of inferring
it. An enclosing block or captured region is no longer marked as
capturing `*this` by copy when a nested lambda does, so the recorded
type is always the pointer.

AI Assisted!
DeltaFile
+85-0clang/test/CodeGenCXX/blocks.cpp
+16-5clang/test/DebugInfo/ObjCXX/block-capture-this.mm
+2-11clang/lib/CodeGen/CGDebugInfo.cpp
+6-3clang/include/clang/AST/Decl.h
+7-0clang/test/PCH/block-helpers.cpp
+4-2clang/lib/Sema/SemaExprCXX.cpp
+120-219 files not shown
+137-3415 files

LLVM/project af51c2e — mlir/include/mlir/Dialect/GPU/IR GPUOps.td, mlir/include/mlir/IR OpBase.td

[mlir][ODS]: add constraints for variadic type matching (#243982)

This change adds ODS traits for asserting consistency of variadic
operands or results.

This follows the pattern of `AllMatchSameOperatorTrait` and the traits
derived from it (`AllTypesMatch`, `AllShapesMatch`, ...). New traits
make more sense than modifying those traits, because they take one value
from each name they are given.

Adds `VariadicAllMatchSameOperatorPred` and
`VariadicAllMatchSameOperatorTrait`, which check that an operator
evaluates to the same value for every element of one variadic field,
together with concrete `VariadicAllElementTypesMatch`,
`VariadicAllRanksMatch`, `VariadicAllShapesMatch` and
`VariadicAllTypesMatch`.

Adds one upstream use in `gpu.subgroup_mma_elementwise` which fixes a
bug in the verifier for that op.
DeltaFile
+72-0mlir/test/mlir-tblgen/types.mlir
+31-1mlir/include/mlir/IR/OpBase.td
+22-0mlir/test/lib/Dialect/Test/TestOps.td
+8-0mlir/test/Dialect/GPU/invalid.mlir
+1-1mlir/include/mlir/Dialect/GPU/IR/GPUOps.td
+134-25 files

LLVM/project 4aab6c4 — orc-rt/lib/bedrock/host/darwin StandaloneMachOUnwindInfoRegistrar.cpp, orc-rt/lib/bedrock/sys/darwin StandaloneMachOUnwindInfoRegistrar.cpp

[orc-rt] Rename 'sys' directories & namespaces to 'host'. NFC. (#244075)

The sys directories and namespaces in the ORC runtime hold wrappers
around host system services (e.g. page-based memory allocation, target
triple detection, sockets). These are primarily for internal use by the
ORC runtime.

Upcoming patches will add ORC runtime APIs that implement
system-specific functionality for clients (e.g. alternatives to the
POSIX dlfcn.h APIs for "dlopen"-ing JIT'd code). The short 'sys' name is
a better fit for these new APIs.

This commit renames the existing 'sys' directories, namespaces, and
include guards to 'host' (meaning the executor's host system), and
updates the comments that describe them, freeing up 'sys' for the
upcoming work.
DeltaFile
+0-558orc-rt/lib/connect-socket/sys/posix/sps/SimpleRemoteCAOverSocket.cpp
+558-0orc-rt/lib/connect-socket/host/posix/sps/SimpleRemoteCAOverSocket.cpp
+0-234orc-rt/lib/bedrock/sys/darwin/StandaloneMachOUnwindInfoRegistrar.cpp
+234-0orc-rt/lib/bedrock/host/darwin/StandaloneMachOUnwindInfoRegistrar.cpp
+0-198orc-rt/test/unit/bedrock/sys/darwin/StandaloneMachOUnwindInfoRegistrarTest.cpp
+198-0orc-rt/test/unit/bedrock/host/darwin/StandaloneMachOUnwindInfoRegistrarTest.cpp
+990-99098 files not shown
+3,655-3,654104 files

LLVM/project 01a5977 — libc/test/include math_comparison_macros_test.c math_comparison_macros_test.cpp

Update tests due to compiler runtime issues.
DeltaFile
+37-11libc/test/include/math_comparison_macros_test.cpp
+1-1libc/test/include/math_comparison_macros_test.c
+38-122 files