LLVM/project dbe7da3utils/bazel/llvm-project-overlay/libc BUILD.bazel

[Bazel] Fixes 350089d (#213482)

This fixes 350089d0cb1652e6ff44888f46d6487db5e696e6 (#213456).

Buildkite error link:
https://buildkite.com/llvm-project/upstream-bazel/builds?commit=350089d0cb1652e6ff44888f46d6487db5e696e6

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
DeltaFile
+1-0utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+1-01 files

FreeBSD/ports 3e99ad3devel/cargo-readme Makefile Makefile.crates

devel/cargo-readme: Update to 3.3.3
DeltaFile
+41-77devel/cargo-readme/distinfo
+20-38devel/cargo-readme/Makefile.crates
+1-2devel/cargo-readme/Makefile
+62-1173 files

LLVM/project e3bde09mlir/include/mlir-c IR.h, mlir/lib/CAPI/IR IR.cpp

[mlir-c] Add structural operation equivalence (#206537)

Exposes `OperationEquivalence` through the MLIR C API so callers can compare operations structurally rather than by handle identity.

Assisted by: Claude
DeltaFile
+183-0mlir/test/CAPI/ir.c
+38-1mlir/include/mlir-c/IR.h
+19-0mlir/lib/CAPI/IR/IR.cpp
+240-13 files

NetBSD/pkgsrc OtwCYmFeditors/vim-share version.mk distinfo

   Pullup ticket #7202 - requested by morr
   editors/vim-share: Bug fix

   Revisions pulled up:
   - editors/vim-share/distinfo                                    1.243
   - editors/vim-share/version.mk                                  1.179

   ---
      Module Name:    pkgsrc
      Committed By:   morr
      Date:           Fri Jul 31 13:26:12 UTC 2026

      Modified Files:
              pkgsrc/editors/vim-share: distinfo version.mk

      Log Message:
      Update vim to version 9.2.0859

      Changes:

    [14 lines not shown]
VersionDeltaFile
1.239.2.2+4-4editors/vim-share/distinfo
1.175.2.2+2-2editors/vim-share/version.mk
+6-62 files

LLVM/project ca9e76bllvm/include/llvm/CodeGen MachinePipeliner.h TargetInstrInfo.h, llvm/lib/CodeGen MachinePipeliner.cpp

Revert "[llvm][AArch64] Add pipeliner remarks (#213157)"

This reverts commit 25aec49d40d52ab730d360fc362ecd8b46e00db5.
DeltaFile
+0-168llvm/test/CodeGen/AArch64/sms-analyzeloop-remarks.mir
+12-94llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
+0-83llvm/test/CodeGen/AArch64/sms-schedule-remark.mir
+3-22llvm/lib/CodeGen/MachinePipeliner.cpp
+2-6llvm/include/llvm/CodeGen/TargetInstrInfo.h
+0-6llvm/include/llvm/CodeGen/MachinePipeliner.h
+17-37913 files not shown
+32-41719 files

NetBSD/pkgsrc-wip bc81a2cdnscontrol5 Makefile go-modules.mk

dnscontrol5: dnscontrol-5.0.0-rc3 - test package
DeltaFile
+201-219dnscontrol5/distinfo
+66-72dnscontrol5/go-modules.mk
+3-3dnscontrol5/Makefile
+270-2943 files

LLVM/project 84afdb4lld/MachO InputSection.cpp, lld/test/MachO icf-scale-same-class.s

[lld][MachO] Avoid quadratic iteration over already-folded symbols during ICF (#213339)

`ConcatInputSection::foldIdentical()` clears the folded functions
`originalUnwindEntry`.
However, it cleared every symbol: with N members, the repeated clearing
is **O(N²)**.
This is redundant: we should only remove the incoming `copy->symbols`.

This patch moves the removing loop ahead and adds more clear comments on
why we need to skip the first element.
Also added a new `lld/test/MachO/icf-scale-same-class.s` with 500K
identical functions as a stress test, which would've taken minutes to
link, and less than a second with the patch.

Testing on real-world app (IRPGO instrumentation + ICF) find that we
achieved a 19x speed up (1:14:42 -> 3:55)
DeltaFile
+37-0lld/test/MachO/icf-scale-same-class.s
+10-6lld/MachO/InputSection.cpp
+47-62 files

LLVM/project 89acefdclang/include/clang/Basic BuiltinsAMDGPU.td, clang/test/Sema builtins-amdgcn-d16-image-16bit-error.c

clang/AMDGPU: Require 16-bit-insts for half typed image builtins

Typed image load/store operations with 16-bit elements require d16
support which was introduced in gfx8. They were previously gated only
on image-insts, so they were wrongly accepted on targets that have
images but lack 16-bit support (e.g. gfx700), where the backend then
fails to select.

Co-Authored-By: Claude (Opus 4.8) <noreply at anthropic.com>
DeltaFile
+59-0clang/test/Sema/builtins-amdgcn-d16-image-16bit-error.c
+24-24clang/include/clang/Basic/BuiltinsAMDGPU.td
+83-242 files

LLVM/project b03b97bclang/include/clang/Basic BuiltinsAMDGPU.td, clang/lib/Sema SemaAMDGPU.cpp

clang/AMDGPU: Require 16-bit-insts for half typed buffer format builtins

Typed buffer format load/store operations with 16-bit elements require
d16 support which was introduced in gfx8. These builtins previously had
no required features at all, so they were accepted (and then crashed the
backend) on targets without 16-bit support.

Diagnose these in Sema, parallel to the image builtins. The manual
verification here suprised me. The automatic builtin feature verification
is enforced in codegen, which seems like a layering violation which
should be fixed.

Co-Authored-By: Claude (Opus 4.8) <noreply at anthropic.com>
DeltaFile
+19-0clang/test/Sema/builtins-amdgcn-d16-buffer-format-16bit-error.c
+14-0clang/lib/Sema/SemaAMDGPU.cpp
+4-4clang/include/clang/Basic/BuiltinsAMDGPU.td
+1-1clang/test/SemaHIP/builtins-amdgcn-buffer-format.hip
+1-1clang/test/CodeGenOpenCL/builtins-amdgcn-struct-buffer-store-format.cl
+1-1clang/test/CodeGenOpenCL/builtins-amdgcn-struct-buffer-load-format.cl
+40-73 files not shown
+43-109 files

LLVM/project 6ca4be6clang/include/clang/Basic OffloadArch.h, clang/lib/Basic Cuda.cpp

clang: Replace Is*OffloadArch free functions with OffloadArch methods

Drop the IsNVIDIAOffloadArch/IsAMDOffloadArch/IsIntel*OffloadArch free
functions in favor of the OffloadArch member predicate functions.

Co-authored-by: Claude (Claude-Opus-4.8) <noreply at anthropic.com>
DeltaFile
+29-19clang/unittests/Basic/OffloadArchTest.cpp
+6-6clang/lib/Driver/Driver.cpp
+0-9clang/include/clang/Basic/OffloadArch.h
+4-4clang/tools/clang-sycl-linker/ClangSYCLLinker.cpp
+2-2clang/lib/Basic/Cuda.cpp
+1-1clang/lib/Driver/ToolChains/Clang.cpp
+42-411 files not shown
+43-427 files

NetBSD/pkgsrc Mk2le7cdevel/userspace-rcu distinfo Makefile, devel/userspace-rcu/patches patch-src_urcu-call-rcu-impl.h patch-src_urcu-call-rcu-impl.h

   Pullup ticket #7199 - requested by taca
   devel/usrespace-rcu: Bug fix

   Revisions pulled up:
   - devel/userspace-rcu/Makefile                                  1.20
   - devel/userspace-rcu/distinfo                                  1.16
   - devel/userspace-rcu/patches/patch-src_urcu-call-rcu-impl.h    1.1

   ---
      Module Name:      pkgsrc
      Committed By:     he
      Date:             Tue Jul 14 17:59:22 UTC 2026

      Modified Files:
        pkgsrc/devel/userspace-rcu: Makefile distinfo
      Added Files:
        pkgsrc/devel/userspace-rcu/patches: patch-src_urcu-call-rcu-impl.h

      Log Message:

    [6 lines not shown]
VersionDeltaFile
1.1.2.1+0-33devel/userspace-rcu/patches/patch-src_urcu-call-rcu-impl.h
1.1.2.2+33-0devel/userspace-rcu/patches/patch-src_urcu-call-rcu-impl.h
1.19.4.1+9-7devel/userspace-rcu/Makefile
1.15.8.1+2-1devel/userspace-rcu/distinfo
+44-414 files

NetBSD/pkgsrc zqfe7rHdoc CHANGES-2026

   doc: Updated net/dnscontrol to 4.45.0
VersionDeltaFile
1.4889+2-1doc/CHANGES-2026
+2-11 files

FreeBSD/ports a8dd019deskutils/kodaskanna Makefile, editors/libreoffice Makefile

*/*: Rebuild after textproc/zxing-cpp update

PR:     293675
DeltaFile
+1-1textproc/gstreamer1-plugins-zxing/Makefile
+1-1editors/libreoffice/Makefile
+1-1deskutils/kodaskanna/Makefile
+1-0net/kitinerary/Makefile
+1-0graphics/kf6-prison/Makefile
+5-35 files

FreeBSD/ports 16a40d1deskutils/kodaskanna/files patch-CMakeLists.txt patch-src_core_scanimagerunner.cpp

deskutils/kodaskanna: Fix build with ZXing-C++ 3.0.x

PR:     293675
DeltaFile
+20-0deskutils/kodaskanna/files/patch-src_core_scanimagerunner.cpp
+11-0deskutils/kodaskanna/files/patch-CMakeLists.txt
+31-02 files

FreeBSD/ports 2d88acdtextproc/zxing-cpp distinfo Makefile

textproc/zxing-cpp: Update to 3.0.2

Release notes:  https://github.com/zxing-cpp/zxing-cpp/releases/tag/v3.0.0
                https://github.com/zxing-cpp/zxing-cpp/releases/tag/v3.0.1
                https://github.com/zxing-cpp/zxing-cpp/releases/tag/v3.0.2

PR:             293675
Co-authored-by: Daniel Engberg <diizzy at FreeBSD.org>
DeltaFile
+7-12textproc/zxing-cpp/pkg-plist
+6-10textproc/zxing-cpp/Makefile
+3-3textproc/zxing-cpp/distinfo
+16-253 files

LLVM/project 2782614llvm/lib/Analysis InstructionSimplify.cpp ConstantFolding.cpp, llvm/test/Transforms/LoopVectorize constantfolder.ll interleaved-accesses-requiring-scev-predicates.ll

[InstSimplify] Defer to ConstantFold in simplifyInstrinsic (#205061)

Defer to ConstantFolding on all-constant operands, in
llvm::simplifyIntrinsic. The patch adds a context-function argument to
ConstantFoldIntrinsic for strictfp information, which is used by a new
canConstantFoldIntrinsic under canConstantFoldCallTo: it was
necessitated by exposing the constant-folder via
llvm::simplifyIntrinsic. The patch only has impact on passes that use
simplifyIntrinsic via InstSimplifyFolder, other than InstCombine, which
already constant-folds intrinsics.
DeltaFile
+68-142llvm/test/Transforms/LoopVectorize/hoist-predicated-loads-with-predicated-stores.ll
+30-34llvm/test/Transforms/LoopVectorize/interleaved-accesses-requiring-scev-predicates.ll
+40-20llvm/lib/Analysis/ConstantFolding.cpp
+37-2llvm/test/Transforms/LoopVectorize/constantfolder.ll
+2-13llvm/test/Transforms/LoopVectorize/RISCV/truncate-to-minimal-bitwidth-cost.ll
+7-0llvm/lib/Analysis/InstructionSimplify.cpp
+184-2113 files not shown
+189-2169 files

LLVM/project 7c64aeacompiler-rt/cmake/Modules CompilerRTUtils.cmake

[compiler-rt][cmake] filter libc-backed builtins superseded by assembly
DeltaFile
+2-0compiler-rt/cmake/Modules/CompilerRTUtils.cmake
+2-01 files

OpenBSD/ports xSiRGGndevel/py-virtualenv Makefile distinfo, devel/py-virtualenv/pkg PLIST

   update to py3-virtualenv-21.7.1
VersionDeltaFile
1.66+2-2devel/py-virtualenv/distinfo
1.65+2-1devel/py-virtualenv/pkg/PLIST
1.100+1-1devel/py-virtualenv/Makefile
+5-43 files

LLVM/project 8cb8e87llvm/test/tools/llubi gep-16-bit-addrspace.ll, llvm/tools/llubi/lib Context.cpp

[llubi]  Truncate struct field offsets exceeding the pointer index width (#213471)

Update computeGEP to implicitly truncate struct field offsets. This
fixes crashes in the new test, where the field offset does not fit in
the index width.

Related https://github.com/llvm/llvm-project/pull/213436

PR: https://github.com/llvm/llvm-project/pull/213471
DeltaFile
+18-0llvm/test/tools/llubi/gep-16-bit-addrspace.ll
+2-1llvm/tools/llubi/lib/Context.cpp
+20-12 files

FreeBSD/ports 08d7a6daudio/mpz distinfo Makefile, audio/mpz/files patch-CMakeLists.txt

audio/mpz: update the port to version 2.1.2

PR:             296248
Reported by:    portscout
DeltaFile
+0-25audio/mpz/files/patch-CMakeLists.txt
+8-13audio/mpz/pkg-plist
+12-6audio/mpz/Makefile
+3-3audio/mpz/distinfo
+23-474 files

FreeBSD/ports a32b564net/mihomo Makefile, net/mihomo/files mihomo.in

net/mihomo: Add RC script

PR:             291295
Submitted by:   ykla <yklaxds at gmail.com> (initial version)
DeltaFile
+60-0net/mihomo/files/mihomo.in
+5-3net/mihomo/Makefile
+65-32 files

LLVM/project 4671437libc/src/__support/math expm1.h tan.h

[libc] Add missing LIBC_INLINE to functions defined in .h files (#213442)
DeltaFile
+3-2libc/src/__support/math/tan.h
+2-2libc/src/__support/math/expm1.h
+5-42 files

LLVM/project 350089dlibc/src/__support common.h

[libc] Fix LLVM_LIBC_FUNCTION on 32-bit x86 Windows (#213456)

Previously, trying to compile libm with LIBC_COPT_PUBLIC_PACKAGING
defined failed on 32-bit Windows with

    error: alias must point to a defined variable or function

This is because 32-bit Windows adds a leading underscore to __cdecl C
functions, making the alias declaration not find its target symbol name.
The same problem exists on Apple platforms, which as solution don't emit
the alias for the C++ LIBC_NAMESPACE:: symbol.

Do the same on 32-bit Windows as on Apple platforms: Emit only
the underscore-prefixed symbol, not the LIBC_NAMESPACE:: alias.
DeltaFile
+17-14libc/src/__support/common.h
+17-141 files

LLVM/project 004ebf7llvm/test/TableGen RegClassByHwMode.td, llvm/utils/TableGen AsmMatcherEmitter.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.8-beta.1-arichardson
DeltaFile
+5-1llvm/utils/TableGen/AsmMatcherEmitter.cpp
+1-1llvm/test/TableGen/RegClassByHwMode.td
+6-22 files

LLVM/project 007c684mlir/include/mlir/Dialect/XeGPU/IR XeGPUAttrs.td XeGPUOps.td, mlir/lib/Dialect/XeGPU/IR XeGPUOps.cpp

[mlir][xegpu] Add xegpu.lane_shuffle op (#210777)

Add a lane-level XeGPU operation that re-distributes a subgroup's
fragments across its lanes without changing the element type.

The op takes a 1D vector — the fragment held by one lane — and returns a
fragment of the same type. A pack/unpack mode selects the direction:
viewing the subgroup as an S x N element grid (S = subgroup size, N =
elements per lane), pack moves element j of lane i from logical position
j*S + i to i*N + j, so a lane's elements end up at consecutive
positions; unpack is the reverse.
  
This implements xegpu.convert_layout semantics at the lane level when
lane_layout is unchanged but lane_data differs.
  
assisted-by-claude

---------

Co-authored-by: Claude Opus 4.8 <noreply at anthropic.com>
DeltaFile
+72-0mlir/include/mlir/Dialect/XeGPU/IR/XeGPUOps.td
+42-0mlir/test/Dialect/XeGPU/ops.mlir
+36-0mlir/test/Dialect/XeGPU/canonicalize.mlir
+23-0mlir/lib/Dialect/XeGPU/IR/XeGPUOps.cpp
+21-0mlir/include/mlir/Dialect/XeGPU/IR/XeGPUAttrs.td
+7-0mlir/test/Dialect/XeGPU/invalid.mlir
+201-01 files not shown
+204-07 files

NetBSD/pkgsrc ri2gltylang/rexx-regina Makefile

   lang/rexx-regina: Replace one more interpreter
VersionDeltaFile
1.20+6-1lang/rexx-regina/Makefile
+6-11 files

FreeBSD/ports 9375022devel/forge distinfo Makefile

devel/forge: Update to 0.6.8

Changelog:      https://github.com/magit/forge/blob/main/CHANGELOG#v068----2026-08-01
Sponsored by:   The FreeBSD Foundation
DeltaFile
+8-8devel/forge/Makefile
+3-3devel/forge/distinfo
+11-112 files

FreeBSD/ports 44b3ba5devel/ghub Makefile distinfo

devel/ghub: Update to 5.3.0

Changelog:      https://github.com/magit/ghub/blob/main/CHANGELOG#v530----2026-08-01
Sponsored by:   The FreeBSD Foundation
DeltaFile
+3-3devel/ghub/distinfo
+1-1devel/ghub/Makefile
+4-42 files

FreeBSD/ports faffa5cdevel/magit distinfo Makefile

devel/magit: Update to 4.7.0

  - Track upstream's replacement of docs/RelNotes/ with
    per-major-release docs/CHANGELOG.N files in PORTDOCS and the DOCS
    install
  - Fix the DOCS and PDF options.  With the custom do-build target,
    DOCS_ALL_TARGET/PDF_ALL_TARGET never ran, so the HTML and PDF
    manuals were never built and staging failed.  Build them explicitly
    in post-build-DOCS-on/post-build-PDF-on, under MAKE_ENV so the
    sed=gsed binary alias is on PATH.

Changelog:      https://github.com/magit/magit/blob/v4.7.0/docs/CHANGELOG.4#v470----2026-08-01
Sponsored by:   The FreeBSD Foundation
DeltaFile
+21-18devel/magit/Makefile
+3-3devel/magit/distinfo
+24-212 files

FreeBSD/ports 37ecfe3devel/cond-let Makefile distinfo

devel/cond-let: Update to 1.1.3

Changelog:      https://github.com/tarsius/cond-let/blob/v1.1.3/CHANGELOG#v113----2026-07-01
Sponsored by:   The FreeBSD Foundation
DeltaFile
+3-3devel/cond-let/distinfo
+1-1devel/cond-let/Makefile
+4-42 files