LLVM/project 8427cb7clang/test/CIR/CodeGen if.cpp cmp.cpp

[CIR] Fix failing tests after bool load change (#194468)

This fixes CIR tests that were failing as a result of the change in how
bool load values are truncated in
https://github.com/llvm/llvm-project/pull/193783
DeltaFile
+5-5clang/test/CIR/CodeGen/if.cpp
+4-4clang/test/CIR/CodeGen/cmp.cpp
+4-4clang/test/CIR/CodeGen/binop.cpp
+4-4clang/test/CIR/CodeGen/ternary-throw.cpp
+3-3clang/test/CIR/CodeGen/ternary.cpp
+2-2clang/test/CIR/CodeGen/complex.cpp
+22-221 files not shown
+23-237 files

LLVM/project 0eaa1f5llvm/include/llvm/ProfileData ETMTraceDecoder.h, llvm/lib/ProfileData ETMTraceDecoder.cpp

Reland "[llvm-profgen] Add support for ETM trace decoding" (#194465)

This relands commit e3bd61890e68303a33fdd33fbdd9abeda (#191584), which
was reverted in commit
ec9d7d18bdfe21c30c94c02f14f3613f7b69a17b (#194087) due to bot failures
on ppc64le and Windows.

This reland incorporates the following fixes:

1) Rename member variable InputFile to InputFilePath inside struct
InputFile to resolve MSVC shadow
conflicts.

2) Add arm-registered-target to ETM tests REQUIRES directive to prevent
failures on builders that do
not have the ARM target enabled.
DeltaFile
+251-0llvm/lib/ProfileData/ETMTraceDecoder.cpp
+71-36llvm/tools/llvm-profgen/llvm-profgen.cpp
+72-17llvm/tools/llvm-profgen/PerfReader.cpp
+81-0llvm/test/tools/llvm-profgen/etm-arch.test
+48-0llvm/test/tools/llvm-profgen/Inputs/etm-opencsd.yaml
+46-0llvm/include/llvm/ProfileData/ETMTraceDecoder.h
+569-538 files not shown
+672-7214 files

LLVM/project 6f2e1a1libc/test/src/sys/socket/linux sendmsg_recvmsg_test.cpp

[libc][test] Remove non-proxy header in sendmsg_recvmsg_test.cpp (#194467)

The header `include/llvm-libc-macros/linux/sys-socket-macros.h` should
be included via `hdr/sys_socket_macros.h` which proxies based on whether
LIBC_FULL_BUILD is enabled. Else we mix LLVM-libc internal headers and
system headers.
DeltaFile
+8-3libc/test/src/sys/socket/linux/sendmsg_recvmsg_test.cpp
+8-31 files

FreeBSD/src e6d112bpackages Makefile

packages: Fix clang conditional

Various src.conf options can cause us to build something that ends up
in the clang package, but MK_TOOLCHAIN is not one of them; copy the
proper conditional from lib/Makefile to decide if we need to build
the package.

This fixes the build when LLVM/clang is entirely disabled.

Fixes:  bb75b0d581f7 ("packages: Convert world to a subdir build")
MFC after:      2 weeks
Reviewed by:    emaste
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D56657
DeltaFile
+2-1packages/Makefile
+2-11 files

FreeBSD/ports 1793f6dx11/bitmap pkg-descr distinfo

x11/bitmap: Update to 1.1.2

Add WWW and TEST_TARGET.
Update pkg-descr.

https://lists.x.org/archives/xorg-announce/2026-January/003654.html

PR:             294770
Approved by:    x11 (arrowd)
Approved by:    osa (mentor)
DeltaFile
+8-2x11/bitmap/pkg-descr
+3-3x11/bitmap/distinfo
+3-2x11/bitmap/Makefile
+14-73 files

LLVM/project 5aa71adllvm/lib/Transforms/Scalar SROA.cpp, llvm/test/Transforms/SROA protected-field-pointer.ll

Revert "SROA: Recognize llvm.protected.field.ptr intrinsics."

This commit turns out to also not be needed after #186548; it now makes
a very small difference (~40 bytes) to Fleetbench binary size.

This reverts commit b0d340557841e0c3f72d19be89aebef2a8ce02e5.

Reviewers: fmayer, nikic

Pull Request: https://github.com/llvm/llvm-project/pull/194109
DeltaFile
+0-93llvm/test/Transforms/SROA/protected-field-pointer.ll
+5-78llvm/lib/Transforms/Scalar/SROA.cpp
+5-1712 files

LLVM/project 11f1a35lldb/examples/python lldbtk.py armv7_cortex_m_target_defintion.py

[lldb] Unify python shebangs (#187257)

As per PEP-0394[1], there is no real concensus over what binary names
Python has, specifically 'python' could be Python 3, Python 2, or not
exist.

However, everyone has a python3 interpreter and the scripts are all
written for Python 3. Unify the shebangs so that the ~50% of shebangs
that use python now use python3.

[1] https://peps.python.org/pep-0394/
DeltaFile
+1-1lldb/examples/python/lldbtk.py
+1-1lldb/examples/python/armv7_cortex_m_target_defintion.py
+1-1lldb/examples/python/bsd.py
+1-1lldb/examples/python/cmdtemplate.py
+1-1lldb/examples/python/delta.py
+1-1lldb/examples/python/disasm-stress-test.py
+6-635 files not shown
+41-4141 files

LLVM/project 0424f5ellvm/include/llvm/CodeGen/GlobalISel Utils.h, llvm/include/llvm/Target/GlobalISel Combine.td

[GIsel] Add constant-folding for more unary integer ops (#194265)

Generalize ConstantFoldCountOp to ConstantFoldUnaryIntOp including
G_ABS, G_BSWAP, G_BITREVERSE
DeltaFile
+400-0llvm/test/CodeGen/AArch64/GlobalISel/combine-constant-fold-unary-int.mir
+0-227llvm/test/CodeGen/AArch64/GlobalISel/combine-constant-fold-count.mir
+12-6llvm/lib/CodeGen/GlobalISel/Utils.cpp
+7-6llvm/include/llvm/Target/GlobalISel/Combine.td
+6-6llvm/include/llvm/CodeGen/GlobalISel/Utils.h
+6-3llvm/lib/CodeGen/GlobalISel/CSEMIRBuilder.cpp
+431-2483 files not shown
+442-2579 files

FreeBSD/ports a43dbf6misc/nanocoder pkg-plist distinfo, misc/nanocoder/files package-lock.json

misc/nanocoder: update 1.25.1 → 1.25.2
DeltaFile
+68-68misc/nanocoder/files/package-lock.json
+10-1misc/nanocoder/pkg-plist
+3-3misc/nanocoder/distinfo
+1-1misc/nanocoder/Makefile
+82-734 files

LLVM/project b862554clang/tools/clang-sycl-linker ClangSYCLLinker.cpp, libsycl/src/detail program_manager.cpp device_binary_structures.hpp

[Offload][libsycl][clang-sycl-linker] Simplify SYCL Offload wrapping (#193876)

Replace the __sycl_tgt_bin_desc/__sycl_tgt_device_image-based fat binary
registration with a simpler OffloadBinary-native approach:

- __sycl_register_lib/__sycl_unregister_lib now take (BinaryStart, Size)
instead of a __sycl_tgt_bin_desc pointer; __sycl_unregister_lib only
needs BinaryStart since the runtime looks up the binary by its start
address.
- OffloadWrapper's SYCL wrapping is significantly simplified: the
__tgt_bin_desc/__tgt_device_image structs and the descriptor
construction code are replaced by a single embedded OffloadBinary blob
passed directly to the register/unregister entry points.
- clang-sycl-linker generates a single OffloadBinary, which contains
multiple images.
- ProgramAndKernelManager::registerFatBin parses the blob via
OffloadBinary::create, keying MDeviceImageManagers by BinaryStart to
eliminate the reparse on unregister.
- DeviceImageManager owns std::unique_ptr<OffloadBinary> instead of

    [8 lines not shown]
DeltaFile
+41-360llvm/lib/Frontend/Offloading/OffloadWrapper.cpp
+55-72libsycl/src/detail/program_manager.cpp
+0-59libsycl/src/detail/device_binary_structures.hpp
+30-20libsycl/src/detail/program_manager.hpp
+39-0llvm/include/llvm/Frontend/Offloading/Utility.h
+22-17clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
+187-5284 files not shown
+229-55910 files

LLVM/project 1a805acllvm/lib/Target/SPIRV SPIRVInstructionSelector.cpp, llvm/test/CodeGen/SPIRV/hlsl-intrinsics reversebits.ll

[HLSL] SPIRV Address after merge comments from #193068 (#194462)

This patch is addressing some comments that arose after #193068 was
merged.
DeltaFile
+11-13llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
+12-0llvm/test/CodeGen/SPIRV/hlsl-intrinsics/reversebits.ll
+23-132 files

LLVM/project ae11842lld/MachO ConcatOutputSection.cpp ConcatOutputSection.h

move lambdas to private helpers
DeltaFile
+112-105lld/MachO/ConcatOutputSection.cpp
+20-2lld/MachO/ConcatOutputSection.h
+132-1072 files

LLVM/project 20a62a4clang/lib/CIR/CodeGen CIRGenModule.h CIRGenModule.cpp

[CIR] Eliminate SymbolTable::lookupSymbolIn hotspots (#193362)

mlir::SymbolTable::lookupSymbolIn is O(n) per lookup, so cumulative
symbol lookups during CIRGen are O(n^2) in the number of global symbols.
On template-heavy translation units this becomes a significant
compile-time hotspot.

Replace the SymbolTable lookup path with a per-CIRGenModule DenseMap
cache keyed by symbol name, giving O(1) lookups.

On a synthetic template-heavy stress test, end-to-end compile time on
`clang -fclangir -S -emit-llvm -O0` improves by ~11% on a 33K-LOC input
(5.86s -> 5.21s) and ~16% on a 67K-LOC input (16.09s -> 13.52s). The
super-linear growth of the win with input size confirms the O(n^2) ->
O(n) effect.

Similar to previous compile time fix, repro shape (scale records and
template instantiations into the hundreds/thousands to amplify):


    [7 lines not shown]
DeltaFile
+24-0clang/lib/CIR/CodeGen/CIRGenModule.h
+13-6clang/lib/CIR/CodeGen/CIRGenModule.cpp
+4-6clang/lib/CIR/CodeGen/CIRGenItaniumCXXABI.cpp
+2-0clang/lib/CIR/CodeGen/CIRGenVTables.cpp
+2-0clang/lib/CIR/CodeGen/CIRGenDecl.cpp
+2-0clang/lib/CIR/CodeGen/CIRGenFunction.cpp
+47-121 files not shown
+48-127 files

FreeBSD/src 036ff38cddl/lib/libzpool Makefile

libzpool: Set -Wno-error=typedef-redefinition for clang

In some versions of LLVM (at least 21), the <*intrin.h> headers contain
unguarded duplicate typedefs; this isn't permitted prior to C11, and
libzpool is built as C99.  FreeBSD's LLVM backported LLVM PR #153820
to fix this, but other versions of LLVM (e.g., upstream, or on Linux)
don't have the patch, so this breaks the build.

Add -Wno-error=typedef-redefinition to downgrade this from an error
to a warning.

MFC after:      2 weeks
Reviewed by:    dim, emaste
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D56653
DeltaFile
+5-0cddl/lib/libzpool/Makefile
+5-01 files

LLVM/project 10fe2e3llvm/lib/Transforms/Vectorize VPlanAnalysis.cpp VPlanAnalysis.h

[VPlan] Pass TTI + CostKind to spillCost instead of CostCtx (NFC) (#194417)

Instead of passing CostContext, directly pass the needed TTI and
CostKind. This makes the function easier to re-use in other places,
without the need of constructing VPCostContext.

Split off from https://github.com/llvm/llvm-project/pull/194267 as
suggested.
DeltaFile
+8-6llvm/lib/Transforms/Vectorize/VPlanAnalysis.cpp
+3-1llvm/lib/Transforms/Vectorize/VPlanAnalysis.h
+1-1llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+12-83 files

FreeBSD/src b866d05. Makefile.inc1

Makefile.inc1: Always use ${PKG_CMD}

Previously we had a mix of ${PKG_CMD} and bare 'pkg', which is
wrong, and breaks the build when 'pkg' isn't in the tools path,
e.g. when cross-building.

MFC after:      2 weeks
Reviewed by:    wosch, emaste
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D56655
DeltaFile
+4-4Makefile.inc1
+4-41 files

FreeBSD/src d455c4b. Makefile.inc1

Makefile.inc1: Use ln -n instead of ln -h

We support both -h and -n, but GNU coreutils only supports -n,
so use that instead.  This fixes the package build on Linux.

MFC after:      2 weeks
Reviewed by:    (wosch, imp) (previous version), emaste
Better fix than the original patch suggested by: jrtc27
Sponsored by:   https://www.patreon.com/bsdivy
Differential Revision:  https://reviews.freebsd.org/D56656
DeltaFile
+1-1Makefile.inc1
+1-11 files

FreeBSD/ports d19aa19x11/libXpm Makefile pkg-descr

x11/libXpm: Update to 3.5.19

Update COMMENT, WWW and pkg-descr.
Add LICENSE_FILE.
Switch from LDFLAGS to USES=localbase:ldflags.
Remove unnecessary GNU_CONFIGURE_MANPREFIX.

https://lists.x.org/archives/xorg-announce/2026-January/003663.html
https://lists.x.org/archives/xorg-announce/2026-April/003691.html

PR:             293154
Approved by:    x11 (arrowd)
Approved by:    osa (mentor)
MFH:            2026Q2
Security:       CVE-2026-4367
(cherry picked from commit 9465b60694b49ce81b43eb9e74f57e292daa9181)
DeltaFile
+5-8x11/libXpm/Makefile
+5-1x11/libXpm/pkg-descr
+3-3x11/libXpm/distinfo
+13-123 files

FreeBSD/ports 9465b60x11/libXpm Makefile pkg-descr

x11/libXpm: Update to 3.5.19

Update COMMENT, WWW and pkg-descr.
Add LICENSE_FILE.
Switch from LDFLAGS to USES=localbase:ldflags.
Remove unnecessary GNU_CONFIGURE_MANPREFIX.

https://lists.x.org/archives/xorg-announce/2026-January/003663.html
https://lists.x.org/archives/xorg-announce/2026-April/003691.html

PR:             293154
Approved by:    x11 (arrowd)
Approved by:    osa (mentor)
MFH:            2026Q2
Security:       CVE-2026-4367
DeltaFile
+5-8x11/libXpm/Makefile
+5-1x11/libXpm/pkg-descr
+3-3x11/libXpm/distinfo
+13-123 files

LLVM/project d55166cllvm/lib/Target/NVPTX NVPTXInstrInfo.cpp NVPTXInstrInfo.td, llvm/test/CodeGen/NVPTX jump-table.ll i128.ll

[NVPTX] Add reverseBranchCondition and CBranch inverted flag (#191889)

Add flag to `CBranch` instruction for inverted predicate branches (`@!p
bra`) and implement `reverseBranchCondition` to support branch condition
inversion.

This enables passes like branch folding to properly reverse branch
conditions, and is a prerequisite for SETP predicate inversion CSE.

Assisted-by: Cursor / Claude
DeltaFile
+24-31llvm/test/CodeGen/NVPTX/jump-table.ll
+16-20llvm/test/CodeGen/NVPTX/i128.ll
+15-3llvm/lib/Target/NVPTX/NVPTXInstrInfo.cpp
+8-2llvm/lib/Target/NVPTX/NVPTXInstrInfo.td
+4-4llvm/test/CodeGen/NVPTX/machinelicm-no-preheader.mir
+4-4llvm/test/CodeGen/NVPTX/branch-fold.mir
+71-645 files not shown
+85-6711 files

FreeBSD/ports 4ede684security/vuxml/vuln 2026.xml

security/vuxml: Add libXpm vulnerability

PR:             293154
Approved by:    osa (mentor)
DeltaFile
+36-0security/vuxml/vuln/2026.xml
+36-01 files

LLVM/project 34535e9clang/docs ReleaseNotes.rst, clang/include/clang/Basic DiagnosticSemaKinds.td

[Sema] Enforce parameter match for ownership_returns attribute (#192339)

Previously parsing multiple ownership_returns attributes with different
arguments could lead to a crash. The documentation states that if
forward declarations have ownership_returns, they must have the same
arguments, and it may appear at most once per declaration.

This patch ensures that if multiple ownership_returns attributes are
present, their arguments (identifier and the optional index) must
exactly match. The diagonstic err_ownership_param_mismatch is introduced
for clarity.

Test cases for f15, C::f, and the newly added f22 were also updated to
match the requirement that all declarations of ownership_returns have
the same arguments, using the err_ownership_param_mismatch diagonstic.

Fixes #188733
DeltaFile
+32-14clang/lib/Sema/SemaDeclAttr.cpp
+2-2clang/include/clang/Basic/DiagnosticSemaKinds.td
+4-0clang/test/Sema/attr-ownership.c
+1-0clang/docs/ReleaseNotes.rst
+39-164 files

LLVM/project 8e8bb22llvm/include/llvm/Object OffloadBinary.h, llvm/lib/Object OffloadBinary.cpp

Fix offload binary header (#194335)

Fixes #194331
DeltaFile
+1-1llvm/include/llvm/Object/OffloadBinary.h
+1-1llvm/lib/Object/OffloadBinary.cpp
+2-22 files

FreeBSD/src 0068c70release/scripts make-pkg-package.sh

make-pkg-package: Add set -e; abort if a cmd fails

This makes it less likely we will silently generate broken artifacts.

Reviewed by:    ivy
Sponsored by:   The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D56671
DeltaFile
+2-0release/scripts/make-pkg-package.sh
+2-01 files

LLVM/project 8f69b9ellvm/lib/Target/PowerPC PPCRegisterInfo.td PPCMacroFusion.def

Revert "[PowerPC] Enable using HwMode for instructions (#191051)"

This reverts commit 2a83068537786696d4950ce694e7d34480631f48.
DeltaFile
+13-8llvm/lib/Target/PowerPC/PPCRegisterInfo.td
+3-3llvm/lib/Target/PowerPC/PPCMacroFusion.def
+2-2llvm/lib/Target/PowerPC/PPCRegisterClasses.td
+4-0llvm/lib/Target/PowerPC/PPCBack2BackFusion.def
+2-2llvm/lib/Target/PowerPC/PPCInstrInfo.td
+2-1llvm/lib/Target/PowerPC/P10InstrResources.td
+26-162 files not shown
+30-178 files

FreeBSD/src af7911dsys/dev/ena ena.h

ena: Update driver version to v2.8.3

Features:
* Report RX overrun errors via sysctl hw stats

Bug Fixes:
* Budget rx descriptors, not packets, to fix jumbo frame throughput

Minor Changes:
* pmap_change_attr void * API change for FreeBSD 16.0+
* Adjust ena_[rt]x_cleanup to return bool

MFC after: 2 weeks
Sponsored by: Amazon, Inc.
Differential Revision: https://reviews.freebsd.org/D56641
DeltaFile
+1-1sys/dev/ena/ena.h
+1-11 files

FreeBSD/src e3f4a63sys/dev/ena ena.c ena.h

ena: Report RX overrun errors

Extract rx_overruns from the keep alive descriptor reported by
the device and expose it via sysctl hw stats.

RX overrun errors occur when a packet arrives but there are not
enough free buffers in the RX ring to receive it.

MFC after: 2 weeks
Sponsored by: Amazon, Inc.
Differential Revision: https://reviews.freebsd.org/D56640
DeltaFile
+4-0sys/dev/ena/ena.c
+2-0sys/dev/ena/ena.h
+2-0sys/dev/ena/ena_sysctl.c
+8-03 files

LLVM/project 464555dclang/lib/CIR/CodeGen CIRGenCXX.cpp, clang/test/CIR/CodeGen static-local.cpp

[CIR] Set the static_local attribute if needed when initializing (#194094)

There was a case where we were creating a GetGlobalOp when initializing
a static local variable that required a guard variable but failing to
set the static_local attribute on the GetGlobalOp. This led to a CIR
verificaiton error. This change sets the attribute when it is needed.

Assisted-by: Cursor / claude-4.7-opus-high
DeltaFile
+79-0clang/test/CIR/CodeGen/static-local.cpp
+0-16clang/test/CIR/Transforms/cast-bitcast-funcptr-roundtrip-fold.cir
+6-0clang/lib/CIR/CodeGen/CIRGenCXX.cpp
+85-163 files

LLVM/project 48b342bllvm/include/llvm/ADT StableHashing.h, llvm/test/CodeGen/X86 machine-block-hash.mir

[ADT] Make stable_hash_combine to be endian-independent (#194430)
DeltaFile
+16-3llvm/include/llvm/ADT/StableHashing.h
+4-12llvm/unittests/ADT/StableHashingTest.cpp
+0-3llvm/test/CodeGen/X86/machine-block-hash.mir
+20-183 files

FreeBSD/ports 9647d78archivers/minizip-ng distinfo Makefile

archivers/minizip-ng: Update 4.1.2 => 4.2.1

Changelog:
https://github.com/zlib-ng/minizip-ng/releases/tag/4.2.0
https://github.com/zlib-ng/minizip-ng/releases/tag/4.2.1

Sponsored by:   UNIS Labs
DeltaFile
+3-3archivers/minizip-ng/distinfo
+1-1archivers/minizip-ng/Makefile
+4-42 files