LLVM/project 66c1b6fllvm/lib/Target/AArch64 AArch64ISelLowering.cpp, llvm/test/CodeGen/AArch64 bool-vector-bitcast-compare.ll dag-combine-setcc.ll

[AArch64] Optimize lowering of i1 vector reduction (#187912)

This pr optimizes code generation in AArch64 for comparing bitcast <N x
i1> results with 0 or -1 using eq/ne. For scenarios where only "all
zeros or all 1s" are considered, the backend no longer prioritizes
materializing packed bitmasks and using vector reduction methods like
addv/umaxv/uminv. Instead, it expands the boolean vector into a regular
integer vector and performs the comparison via a more direct scalar
comparison path. For 64-bit and 128-bit cases that can be folded down to
64-bit, a lighter instruction sequence like fmov + cmp/cmn + cset/csel
is generated.

Functionally, this brings several benefits:

- Optimized the `setcc(bitcast(vNi1), 0/-1)` and
`select_cc(bitcast(vNi1), 0/-1, ...)` modes.

- In scenarios like <8 x i1>, a zero/all-one check can be performed
directly on the entire comparison result, avoiding additional vector

    [6 lines not shown]
DeltaFile
+194-0llvm/test/CodeGen/AArch64/bool-vector-bitcast-compare.ll
+111-5llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
+28-28llvm/test/CodeGen/AArch64/dag-combine-setcc.ll
+10-12llvm/test/CodeGen/AArch64/neon-anyof-splat.ll
+8-8llvm/test/CodeGen/AArch64/illegal-floating-point-vector-compares.ll
+351-535 files

LLVM/project e93f771llvm/lib/Support ProgramStack.cpp

adds `<cstdlib>` to `ProgramStack.cpp` (#194249)

Building `LLVMSupport` with libc++ causes Clang to error because
`malloc` and `free` aren't declared before they're used in
`ProgramStack.cpp`.
DeltaFile
+2-0llvm/lib/Support/ProgramStack.cpp
+2-01 files

FreeBSD/src 39f4882sys/dev/hwpmc hwpmc_ibs.c hwpmc_amd.c

hwpmc: Add IBS capability control policy

Reject unsupported AMD IBS and PMU control bits before programming the
MSRs.

Initialize IBS fetch/op allow masks from CPUID feature bits and validate
user-provided IBS control values against those masks. Keep the
load-latency filter dependency on L3MissOnly, but avoid decoding fields
that are already constrained by the mask.

Apply the same reserved-bit policy to the AMD PMU raw-config path by
checking core, L3, and data fabric configs against subclass-specific
masks.

Fix the IBS CPUID feature bit definitions used by the policy.

Reviewed by:    mhorne, Ali Mashtizadeh <ali at mashtizadeh.com>
Sponsored by:   AMD
Signed-off-by:  Andre Silva <andasilv at amd.com>
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2140
DeltaFile
+79-2sys/dev/hwpmc/hwpmc_ibs.c
+48-3sys/dev/hwpmc/hwpmc_amd.c
+22-0sys/dev/hwpmc/hwpmc_amd.h
+16-4sys/dev/hwpmc/hwpmc_ibs.h
+165-94 files

FreeBSD/src 146b30bsys/dev/hwpmc hwpmc_amd.c hwpmc_ibs.c

hwpmc: Add extra_mask sysctls per counter type

Expose kern.hwpmc.{ibs_fetch,ibs_op,amd_core,amd_l3,amd_df}_extra_mask
as RWTUN uint64s that OR into the CPUID-derived allow mask at
validation time. Default 0, so the strict policy applies unless an
administrator opts bits back in — intended for testing the wrmsr_safe
path in PR #2157.

Reviewed by:    mhorne, Ali Mashtizadeh <ali at mashtizadeh.com>
Sponsored by:   AMD
Signed-off-by:  Andre Silva <andasilv at amd.com>
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2140
DeltaFile
+22-3sys/dev/hwpmc/hwpmc_amd.c
+17-1sys/dev/hwpmc/hwpmc_ibs.c
+39-42 files

FreeBSD/src a9a562alib/libc/gen exterr_cat_filenames.h, sys/dev/hwpmc hwpmc_ibs.c

hwpmc_ibs: Add external error handling

Add EXTERR_CAT_HWPMC_IBS to the external error categories and replace generic
EINVAL returns in ibs_allocate_pmc() with EXTERROR() calls that provide
detailed error messages.

This will be augmented with additional cases in the near future.

Reviewed by:    mhorne
Sponsored by:   AMD
Signed-off-by:  Andre Silva <andasilv at amd.com>
Pull Request:   https://github.com/freebsd/freebsd-src/pull/2134
DeltaFile
+8-3sys/dev/hwpmc/hwpmc_ibs.c
+1-0lib/libc/gen/exterr_cat_filenames.h
+1-0sys/sys/exterr_cat.h
+10-33 files

LLVM/project 7558262clang/lib/Format UnwrappedLineParser.cpp UnwrappedLineParser.h, clang/unittests/Format TokenAnnotatorTest.cpp

[clang-format] Improve annotating star and amp (#194190)

Use the context better.

Fixes #193255
DeltaFile
+9-6clang/lib/Format/UnwrappedLineParser.cpp
+12-0clang/unittests/Format/TokenAnnotatorTest.cpp
+1-1clang/lib/Format/UnwrappedLineParser.h
+22-73 files

LLVM/project 5ed245fclang-tools-extra/clangd SemanticHighlighting.cpp, clang/include/clang/AST Decl.h

[clang] NFC: use ArrayRef for getTemplateParameterLists
DeltaFile
+10-14clang/include/clang/AST/Decl.h
+7-10clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
+4-10clang/tools/libclang/CIndex.cpp
+5-8clang/lib/AST/DeclPrinter.cpp
+6-6clang/lib/AST/ASTImporter.cpp
+4-8clang-tools-extra/clangd/SemanticHighlighting.cpp
+36-569 files not shown
+63-8415 files

LLVM/project 5249e55llvm/lib/Transforms/Vectorize SLPVectorizer.cpp

[SLP][NFC]Skip large mostly-trivial trees with up to one vector compute node

Track non-load/store, non-PHI, non-split vector compute nodes separately
in isTreeTinyAndNotFullyVectorizable. Allow skipping a tree when it
contains at most one such vector node and at most one load/store node,
provided the tree is large enough relative to their combined count
(VectorizableTree.size() > LimitTreeSize * (StoreLoadNodes.size() +
VectorNodes.size())).

Reviewers: 

Pull Request: https://github.com/llvm/llvm-project/pull/194703
DeltaFile
+21-3llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+21-31 files

LLVM/project 7451f52llvm/test/MC/AArch64 armv9.7a-memsys.s basic-a64-instructions.s

fixup! Add testcases for all missing HINTs
DeltaFile
+13-1llvm/test/MC/AArch64/armv9.7a-memsys.s
+12-0llvm/test/MC/AArch64/basic-a64-instructions.s
+9-1llvm/test/MC/AArch64/armv9.6a-pcdphint.s
+8-0llvm/test/MC/AArch64/armv8.4a-trace.s
+6-0llvm/test/MC/AArch64/armv9.5a-pauthlr.s
+3-0llvm/test/MC/AArch64/armv8.2a-statistical-profiling.s
+51-22 files not shown
+56-28 files

LLVM/project 81963b1clang/lib/Headers gpuintrin.h nvptxintrin.h

[Clang] Simplify target specific implementations in gpuintrin.h (#194669)

Summary:
Previously we had a three-way dance where the top-level defined an impl
then the lower level defined potentially an override and then we
stitched those together.

This simplifies  that, instead just defining a macro that says whether
or not we need it. This works because the target-specific portions are
always included first, so this basically says "Do we need to make a
default version".
DeltaFile
+16-28clang/lib/Headers/gpuintrin.h
+12-20clang/lib/Headers/nvptxintrin.h
+0-24clang/lib/Headers/spirvintrin.h
+0-24clang/lib/Headers/amdgpuintrin.h
+28-964 files

LLVM/project 9cd4ecbclang/include/clang/AST Decl.h, clang/lib/AST DeclPrinter.cpp ASTImporter.cpp

[clang] NFC: use ArrayRef for getTemplateParameterLists
DeltaFile
+10-14clang/include/clang/AST/Decl.h
+7-10clang/lib/Sema/SemaTemplateInstantiateDecl.cpp
+4-10clang/tools/libclang/CIndex.cpp
+5-8clang/lib/AST/DeclPrinter.cpp
+6-6clang/lib/AST/ASTImporter.cpp
+5-5clang/lib/Sema/SemaDeclCXX.cpp
+37-537 files not shown
+55-7113 files

LLVM/project c355081llvm/lib/Target/WebAssembly WebAssemblyCFGStackify.cpp

[WebAssembly] Remove unnecessary code after #187484 (NFC) (#194188)

This code was written under the assumption that
`fixCallUnwindMismatches` runs before `fixCatchUnwindMismatches`, but
since #187484 it's not true anymore.
DeltaFile
+3-33llvm/lib/Target/WebAssembly/WebAssemblyCFGStackify.cpp
+3-331 files

LLVM/project bde089eclang/lib/CIR/CodeGen CIRGenFunction.cpp, clang/test/CIR/CodeGen implicit-return-zero.c

[CIR] Add implicit return zero handling (#194490)

This adds code to emit a store of zero to the return value for functions
that are identified as having the implicit return zero propery (such as
main() in C programs).

Assisted-by: Cursor / claude-opus-4.7-thinking-xhigh
DeltaFile
+84-0clang/test/CIR/CodeGen/implicit-return-zero.c
+15-0clang/lib/CIR/CodeGen/CIRGenFunction.cpp
+99-02 files

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

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

Reverts llvm/llvm-project#194465

Caused tools/llvm-profgen/etm-opencsd.test to fail on some systems.
DeltaFile
+0-251llvm/lib/ProfileData/ETMTraceDecoder.cpp
+36-71llvm/tools/llvm-profgen/llvm-profgen.cpp
+17-72llvm/tools/llvm-profgen/PerfReader.cpp
+0-81llvm/test/tools/llvm-profgen/etm-arch.test
+0-48llvm/test/tools/llvm-profgen/Inputs/etm-opencsd.yaml
+0-46llvm/include/llvm/ProfileData/ETMTraceDecoder.h
+53-5698 files not shown
+72-67214 files

LLVM/project 1bb2bc7llvm/test/TableGen directive1.td directive2.td, llvm/utils/TableGen/Basic DirectiveEmitter.cpp

Fix that doesn't annoy clang, plus testcase fixes
DeltaFile
+12-6llvm/utils/TableGen/Basic/DirectiveEmitter.cpp
+9-0llvm/test/TableGen/directive1.td
+9-0llvm/test/TableGen/directive2.td
+30-63 files

FreeBSD/ports bf193dcdeskutils/virt-manager Makefile, graphics/gexiv2 Makefile

*/*: Replace CONFIGURE_ARGS with MESON_ARGS

Meson based ports that uses CONFIGURE_ARGS "works" as MESON_ARGS is
appended however framework and documentation expects that MESON_ARGS
is used for Meson based ports

PR:             294808
Approved by:    blanket
DeltaFile
+9-10multimedia/gstreamer1-plugins/Makefile.common
+2-2graphics/shotwell/Makefile
+1-1deskutils/virt-manager/Makefile
+1-1graphics/gexiv2/Makefile
+1-1graphics/gexiv2_016/Makefile
+1-1graphics/libchamplain/Makefile
+15-166 files not shown
+21-2212 files

FreeBSD/ports 70718cbMk/Uses meson.mk

Mk/Uses/meson.mk: Silence warning during do-configure stage

Add setup to CONFIGURE_ARGS to silence following warning:
"WARNING: Running the setup command as `meson [options]` instead of
`meson setup [options]` is ambiguous and deprecated."

While at it add a safeguard when CONFIGURE_ARGS is used instead of
MESON_ARGS

PR:             294808
Reviewed by:    desktop (arrowd), previous interation
DeltaFile
+7-2Mk/Uses/meson.mk
+7-21 files

LLVM/project 316128aclang/lib/AST ASTContext.cpp, clang/test/SemaCXX member-pointer.cpp

[clang] fix crash with c-style casts involving dependent member-pointer types

A dependent member-pointer type doesn't necessarily have a class declaration.

This simplifies the check performed in a helper for diagnosing a cast which removes qualifiers,
so it doesn't rely on this assumption.

Fixes #194524
DeltaFile
+9-10clang/lib/AST/ASTContext.cpp
+13-0clang/test/SemaCXX/member-pointer.cpp
+22-102 files

LLVM/project 778b3b5llvm/lib/Target/ARM ARMISelLowering.cpp, llvm/test/CodeGen/Thumb2 mve-clmul.ll mve-pred-ext.ll

[ARM][MVE] Change MVE getSetCCResultType to always use i1 vectors (#192531)

This mirrors what SVE does on the AArch64 side, where because we have
predicate vectors we can use them fall all types, and let legalization handle
where it is not the case. This fixes a clmul expansion that was failing to lower
the resulting intrinsic.
DeltaFile
+5,061-4,162llvm/test/CodeGen/Thumb2/mve-clmul.ll
+95-170llvm/test/CodeGen/Thumb2/mve-pred-ext.ll
+2-3llvm/lib/Target/ARM/ARMISelLowering.cpp
+5,158-4,3353 files

LLVM/project 5253923llvm/include/llvm/Analysis LoopInfo.h, llvm/lib/Analysis LoopInfo.cpp

[NFC][LoopUtils] Add Loop::addStringLoopAttribute and Loop::addIntLoopAttribute (#194676)

Consolidate repeated `makePostTransformationMetadata` boilerplate into
two new `Loop` methods:
- `addStringLoopAttribute`: adds a string-only metadata attribute
- `addIntLoopAttribute`: adds a `{Name, ConstantInt(Value)}` metadata
attribute

Both accept optional `RemovePrefixes` to strip existing attributes
first.

Refactored call sites:
- `Loop::setLoopAlreadyUnrolled` (LoopInfo.cpp)
- `Loop::setLoopMustProgress` (LoopInfo.cpp)
- `postUnswitch` partial/injection (SimpleLoopUnswitch.cpp)
- `LoopVectorizeHints::setAlreadyVectorized`
(LoopVectorizationLegality.cpp)

This consolidation was requested by reviewers of #190258.

    [2 lines not shown]
DeltaFile
+22-16llvm/lib/Analysis/LoopInfo.cpp
+4-16llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
+20-0llvm/include/llvm/Analysis/LoopInfo.h
+3-13llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
+49-454 files

FreeBSD/ports c374ad9java/sqlitejdbc Makefile

java/sqlitejdbc: deprecate and expire

Upstream source dead for quite some time and long replaced by
sqlite-jdbc on GitHub.

PR:             293491
DeltaFile
+3-0java/sqlitejdbc/Makefile
+3-01 files

LLVM/project 6d01ff1compiler-rt/test/cfi cross-dso-diagnostic.cpp, compiler-rt/test/cfi/cross-dso/icall diag.cpp icall-from-dso.cpp

[NFC][cfi] Update diagnostic tests for better location matching (#194557)
DeltaFile
+2-3compiler-rt/test/cfi/icall/bad-signature.c
+1-1compiler-rt/test/cfi/cross-dso/icall/diag.cpp
+1-1compiler-rt/test/cfi/cross-dso/icall/icall-from-dso.cpp
+1-1compiler-rt/test/cfi/cross-dso/icall/icall.cpp
+1-1compiler-rt/test/cfi/cross-dso-diagnostic.cpp
+6-75 files

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

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

This reverts commit 0eaa1f5884bf01064e280cee9148fc29b8bfa099.
DeltaFile
+0-251llvm/lib/ProfileData/ETMTraceDecoder.cpp
+36-71llvm/tools/llvm-profgen/llvm-profgen.cpp
+17-72llvm/tools/llvm-profgen/PerfReader.cpp
+0-81llvm/test/tools/llvm-profgen/etm-arch.test
+0-48llvm/test/tools/llvm-profgen/Inputs/etm-opencsd.yaml
+0-46llvm/include/llvm/ProfileData/ETMTraceDecoder.h
+53-5698 files not shown
+72-67214 files

LLVM/project 3459dbbclang/lib/AST ASTContext.cpp, clang/test/SemaCXX member-pointer.cpp

[clang] fix crash with c-style casts involving dependent member-pointer types

A dependent member-pointer type doesn't necessarily have a class declaration.

This simplifies the check performed in a helper for diagnosing a cast which removes qualifiers,
so it doesn't rely on this assumption.

Fixes #194524
DeltaFile
+5-10clang/lib/AST/ASTContext.cpp
+13-0clang/test/SemaCXX/member-pointer.cpp
+18-102 files

LLVM/project 25f5b36llvm/utils/TableGen/Basic DirectiveEmitter.cpp

[TableGen] Fix compile error in GCC-7.4.0 after 928f70d38e34
DeltaFile
+6-3llvm/utils/TableGen/Basic/DirectiveEmitter.cpp
+6-31 files

NetBSD/pkgsrc z48gvLadoc CHANGES-2026

   doc: Updated textproc/treemd to 0.5.11
VersionDeltaFile
1.2674+2-1doc/CHANGES-2026
+2-11 files

NetBSD/pkgsrc I47ccbXtextproc/treemd distinfo cargo-depends.mk

   textproc/treemd: update to 0.5.11

   [0.5.11] - 2026-04-28
   Fixed

       Toggle details no-op after section navigation - In interactive mode, pressing Enter on certain <details> blocks reported "✓ Toggled details" but produced no visible change. InteractiveState::element_states is keyed only by ElementId { block_idx, sub_idx }, so a previous section's Table state at a given block_idx silently blocked a fresh Details from initializing at the same key (the indexer used HashMap::entry().or_insert(), a no-op when present). toggle_details then matched no Details variant and silently failed. Indexer now overwrites stale wrong-variant entries while preserving same-section toggle state. Regression test added.
       --filter and --level ignored in --tree mode - CLI now honors both flags when rendering the tree output (c3c3fcd)
       --at-line not wired up; -s mismatched formatted headings - --at-line resolves to the enclosing heading; section selection (-s) now matches headings that contain inline formatting (36c4e60)

   Changed

       Upgraded all dependencies to latest - Refreshed clap_complete 4.6.2 → 4.6.3, mermaid-rs-renderer 0.2.1 → 0.2.2, turbovault-parser 1.4.0 → 1.4.1, turbovault-core 1.4.0 → 1.4.1, open 5.3.3 → 5.3.4, plus transitive refreshes (plist, wasm-bindgen, tokio, libc, js-sys, cc, etc.)

   Tests

       Added end-to-end CLI integration suite covering --tree, --list, --filter, --level, --at-line, and -s (471d9d5)
       Added coverage for JSON output builder and config loading (ef250da)
       Added coverage for document tree/search and palette command matching (f185c4b)


    [3 lines not shown]
VersionDeltaFile
1.20+85-121textproc/treemd/distinfo
1.20+27-39textproc/treemd/cargo-depends.mk
1.21+2-2textproc/treemd/Makefile
+114-1623 files

FreeBSD/src d5db883share/man/man7 groups.7

group.7: spell priority
DeltaFile
+1-1share/man/man7/groups.7
+1-11 files

LLVM/project 42d6ec6llvm/lib/CAS OnDiskCommon.cpp MappedFileRegionArena.cpp, llvm/lib/Support/Unix Path.inc

[𝘀𝗽𝗿] initial version

Created using spr 1.3.7
DeltaFile
+15-6llvm/lib/CAS/OnDiskCommon.cpp
+4-4llvm/lib/Support/Unix/Path.inc
+2-1llvm/lib/CAS/MappedFileRegionArena.cpp
+21-113 files

LLVM/project 264ac2dclang/lib/Driver/ToolChains Darwin.cpp, clang/test/CodeGenCUDA offloading-entries.cu device-stub-macho.cu

[HIP][MacOS] Mach-O support and Darwin toolchain fixes (#183991)

This PR adds support for HIP on macOS: Mach-O section naming, Darwin
host toolchain initialization guards, and HIPSPV behavior when Darwin is
the host.

This has been verified using chipStar on MacOS via the PoCL OpenCL
implementation.

## Uninitialized target workaround
Darwin’s toolchain is only initialized when its own TranslateArgs runs.
For HIP/CUDA device jobs, Darwin is used as the HostTC and never gets
its args translated, so its target stays uninitialized. The new checks
avoid asserting on that uninitialized state. A better long-term fix is
to initialize Darwin earlier (see the FIXME in Driver.cpp
BuildJobsForAction).

- [ ] Initialize Darwin toolchain during construction instead of lazily
in TranslateArgs. See Driver.cpp BuildJobsForAction FIXME.

    [2 lines not shown]
DeltaFile
+66-1clang/lib/Driver/ToolChains/Darwin.cpp
+40-12llvm/lib/Frontend/Offloading/Utility.cpp
+32-0clang/test/CodeGenCUDA/offloading-entries.cu
+23-9clang/test/Driver/linker-wrapper-image.c
+28-0clang/test/CodeGenCUDA/device-stub-macho.cu
+17-11llvm/lib/Frontend/Offloading/OffloadWrapper.cpp
+206-335 files not shown
+263-4311 files