LLVM/project b4d0c56 — offload/plugins-nextgen/cuda/src rtl.cpp

[offload][cuda] Fix uid string handling (#227223)

Fixes https://github.com/llvm/llvm-project/issues/227094
DeltaFile
+2-1offload/plugins-nextgen/cuda/src/rtl.cpp
+2-11 files

LLVM/project 9fc7a33 —

[gn build] Port 72a712b0a552 (#227384)
DeltaFile
+0-00 files

LLVM/project a4652a6 — llvm/lib/Target/AMDGPU VOP3PInstructions.td, llvm/test/CodeGen/AMDGPU frem.ll mad-mix-lo-bf16.ll

[AMDGPU] Fold fpround of fadd and fsub into v_mad/fma_mixlo and mixhi (#224913)

MadFmaMixFP32Pats turns (fadd x, y) into (fma x, 1.0, y) and (fsub x, y)
into (fma (-y), 1.0, x) so the mix instructions absorb the operation
along with the f16 or bf16 source modifiers. MadFmaMixFP16Pats and
MadFmaMixFP16Pats_t16 only did this for fmul, so a rounded result still
needed a separate convert for a rounding the mix instructions perform
themselves.

Unlike the f32 patterns these do not require an operand to be an
fpextend of an f16, since an fpround on the result always removes the
convert. The rewrite is exact because the mix instructions round the f32
result again when they write the 16-bit destination, so it stays
f32_to_f16(fma(x, 1.0, y)).

Assisted-by: Claude Code Opus 5
DeltaFile
+192-285llvm/test/CodeGen/AMDGPU/GlobalISel/fdiv.f16.ll
+61-311llvm/test/CodeGen/AMDGPU/mad-mix-lo.ll
+62-145llvm/test/CodeGen/AMDGPU/mad-mix-hi.ll
+55-36llvm/test/CodeGen/AMDGPU/mad-mix-lo-bf16.ll
+26-52llvm/test/CodeGen/AMDGPU/frem.ll
+70-0llvm/lib/Target/AMDGPU/VOP3PInstructions.td
+466-8294 files not shown
+499-88510 files

LLVM/project 690aab4 — utils/bazel/llvm-project-overlay/libc BUILD.bazel, utils/bazel/llvm-project-overlay/libc/test/src/math libc_math_test_rules.bzl BUILD.bazel

[Bazel] Fixes 09cdef0 (#227345)

This fixes 09cdef016cfc756b29002cd7870c63b7f1b09c6b (#226529).

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

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
Co-authored-by: Aiden Grossman <aidengrossman at google.com>
DeltaFile
+12-2utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+2-0utils/bazel/llvm-project-overlay/libc/test/src/math/BUILD.bazel
+1-0utils/bazel/llvm-project-overlay/libc/test/src/math/libc_math_test_rules.bzl
+15-23 files

LLVM/project d1bc40a — llvm/lib/Transforms/InstCombine InstCombineCasts.cpp, llvm/test/Transforms/InstCombine trunc-extractelement.ll

[InstCombine] Use uint64_t for TruncRatio to avoid overflow (#225150)

This changes `TruncRatio` from `unsigned` to `uint64_t` in
`foldVecExtTruncToExtElt`, and replaces the pre-existing 32-bit `assert`
with a graceful bail-out plus a regression test.

```
unsigned TruncRatio = SrcBits / DstBits;
```

`BitCastNumElts` is used to build the destination vector type. With
`TruncRatio` declared `unsigned`, this product is evaluated in 32 bits:

```
BitCastNumElts = VecElts.getKnownMinValue() * TruncRatio;
```

An overflow would wrap to a small value that silently satisfies the
existing assert and construct a wrong-sized vector type:

    [28 lines not shown]
DeltaFile
+17-0llvm/test/Transforms/InstCombine/trunc-extractelement.ll
+6-4llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp
+23-42 files

LLVM/project ea78fa4 — offload/unittests/OffloadAPI CMakeLists.txt

Add test to makefile..
DeltaFile
+2-1offload/unittests/OffloadAPI/CMakeLists.txt
+2-11 files

LLVM/project 78386bf — llvm/lib/Target/NVPTX NVPTXTargetTransformInfo.h NVPTXTargetTransformInfo.cpp, llvm/test/Transforms/SimplifyCFG/NVPTX lit.local.cfg switch-to-lookup-table-addrspace.ll

[NVPTX] Implement shouldBuildLookupTablesForConstant (#220088)

Exclude addresses of GlobalValues in unsupported address spaces.

Assisted-by: Claude.
DeltaFile
+636-0llvm/test/Transforms/SimplifyCFG/NVPTX/switch-to-lookup-table-addrspace.ll
+12-0llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.cpp
+2-0llvm/lib/Target/NVPTX/NVPTXTargetTransformInfo.h
+2-0llvm/test/Transforms/SimplifyCFG/NVPTX/lit.local.cfg
+652-04 files

FreeBSD/ports cd28f28 — net/rclone-browser Makefile

net/rclone-browser: Mark deprecated

PR:             298903
Approved by:    driesm (maintainer)

(cherry picked from commit 3f5dc4e97b0fd767e671b70ab3bac46d174c0277)
DeltaFile
+4-0net/rclone-browser/Makefile
+4-01 files

LLVM/project 37c9017 — llvm/utils/gn/secondary/clang/lib/ScalableStaticAnalysis/Analyses BUILD.gn, llvm/utils/gn/secondary/clang/unittests/ScalableStaticAnalysis BUILD.gn

[gn build] Port 72a712b0a552 (#227384)
DeltaFile
+1-0llvm/utils/gn/secondary/clang/unittests/ScalableStaticAnalysis/BUILD.gn
+1-0llvm/utils/gn/secondary/clang/lib/ScalableStaticAnalysis/Analyses/BUILD.gn
+2-02 files

LLVM/project 2f02d30 — llvm/lib/CodeGen/SelectionDAG SelectionDAG.cpp, llvm/test/CodeGen/RISCV/rvv vploadff.ll

[SelectionDAG] Add computeKnownBits support for VP_LOAD_FF
DeltaFile
+20-46llvm/test/CodeGen/RISCV/rvv/vploadff.ll
+20-0llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+40-462 files

FreeBSD/ports 3f5dc4e — net/rclone-browser Makefile

net/rclone-browser: Mark deprecated

PR:             298903
Approved by:    driesm (maintainer)
DeltaFile
+4-0net/rclone-browser/Makefile
+4-01 files

LLVM/project cd4e913 — llvm/test/CodeGen/RISCV clmul.ll, llvm/test/CodeGen/RISCV/rvv clmulh-sdnode.ll clmul-sdnode.ll

Merge branch 'main' into users/lukel97/instcombine/clamp-canon-i1
DeltaFile
+4,036-4,380llvm/test/CodeGen/RISCV/rvv/clmul-sdnode.ll
+2,544-2,872llvm/test/CodeGen/RISCV/rvv/clmulh-sdnode.ll
+1,020-1,412llvm/test/CodeGen/X86/clmul-vector-512.ll
+850-1,332llvm/test/CodeGen/X86/clmul-vector-256.ll
+772-1,269llvm/test/CodeGen/X86/clmul-vector.ll
+399-1,451llvm/test/CodeGen/RISCV/clmul.ll
+9,621-12,716592 files not shown
+29,757-27,711598 files

LLVM/project db96411 — llvm/utils/gn/secondary/clang/lib/ScalableStaticAnalysis/Analyses BUILD.gn, llvm/utils/gn/secondary/clang/unittests/ScalableStaticAnalysis BUILD.gn

[gn build] Port 5239371ffa13 (#227383)
DeltaFile
+1-0llvm/utils/gn/secondary/clang/unittests/ScalableStaticAnalysis/BUILD.gn
+1-0llvm/utils/gn/secondary/clang/lib/ScalableStaticAnalysis/Analyses/BUILD.gn
+2-02 files

LLVM/project 255bce1 — llvm/utils/gn/secondary/clang/unittests/Basic BUILD.gn

[gn build] Port 3b0b6d892bdf (#227382)
DeltaFile
+0-1llvm/utils/gn/secondary/clang/unittests/Basic/BUILD.gn
+0-11 files

LLVM/project 0036891 — llvm/test/CodeGen/AMDGPU load-local-i16.ll load-constant-i1.ll, llvm/test/CodeGen/RISCV/rvv clmulh-sdnode.ll clmul-sdnode.ll

Merge branch 'main' into users/ro-i/fix-cuda-uid
DeltaFile
+42,441-42,426llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+7,527-7,623llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+4,036-4,380llvm/test/CodeGen/RISCV/rvv/clmul-sdnode.ll
+2,544-2,872llvm/test/CodeGen/RISCV/rvv/clmulh-sdnode.ll
+2,603-2,582llvm/test/CodeGen/AMDGPU/load-constant-i1.ll
+1,833-1,839llvm/test/CodeGen/AMDGPU/load-local-i16.ll
+60,984-61,722949 files not shown
+128,039-126,385955 files

LLVM/project de52f9a — llvm/test/Transforms/InstCombine freeze.ll

fixup! [ValueTracking] Support Array and Structure in contains* check
DeltaFile
+0-9llvm/test/Transforms/InstCombine/freeze.ll
+0-91 files

OpenZFS/src e3831a6 — include/os/linux/spl/sys trace_spl.h, scripts spdxcheck.pl

spl: remote sys/trace_spl.h

Linux kernel only, not included from anywhere since 801d9b4f96.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #19206
DeltaFile
+0-21include/os/linux/spl/sys/trace_spl.h
+0-1scripts/spdxcheck.pl
+0-222 files

OpenZFS/src 8c12098 — lib/libefi rdwr_efi.c, lib/libspl/include Makefile.am

spl: remove sys/mhd.h

Only in libspl, only included from libefi, and nothing from it gets used.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #19206
DeltaFile
+0-149lib/libspl/include/sys/mhd.h
+0-1lib/libspl/include/Makefile.am
+0-1lib/libefi/rdwr_efi.c
+0-1513 files

OpenZFS/src 78adacc — lib/libspl/include Makefile.am, lib/libspl/include/sys priv.h

spl: remove sys/priv.h

Empty and unused in userspace.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #19206
DeltaFile
+0-20lib/libspl/include/sys/priv.h
+0-1lib/libspl/include/Makefile.am
+0-212 files

OpenZFS/src a66614a — include/os/freebsd Makefile.am, include/os/freebsd/spl/sys uuid.h

spl: remove sys/uuid.h

Only on FreeBSD, and almost identical to include/sys/uuid.h. However,
only used by sys/efi_partition.h, which is specific to libefi, which is
not used on FreeBSD, and especially not in the kernel. Remove stray
includes of sys/efi_partition.h too and there's no more to see.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #19206
DeltaFile
+0-89include/os/freebsd/spl/sys/uuid.h
+0-1lib/libzutil/os/freebsd/zutil_import_os.c
+0-1lib/libzfs/libzfs_pool.c
+0-1include/os/freebsd/Makefile.am
+0-924 files

OpenZFS/src 7646bb3 — include/os/linux Makefile.am, include/os/linux/spl/sys taskq.h condvar.h

spl: remove sys/wait.h

Only on Linux, just includes a couple of platform includes that don't
appear to be needed directly anyway.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #19206
DeltaFile
+0-31include/os/linux/spl/sys/wait.h
+0-1module/os/linux/spl/spl-kmem-cache.c
+0-1include/os/linux/spl/sys/taskq.h
+0-1include/os/linux/spl/sys/condvar.h
+0-1include/os/linux/Makefile.am
+0-355 files

OpenZFS/src 961739e — include/os/freebsd Makefile.am, include/os/freebsd/spl/sys mode.h

spl: remove sys/mode.h

Only on FreeBSD, empty, and never included.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #19206
DeltaFile
+0-1scripts/spdxcheck.pl
+0-1include/os/freebsd/spl/sys/mode.h
+0-1include/os/freebsd/Makefile.am
+0-33 files

OpenZFS/src 0ab3757 — cmd ztest.c, lib/libspl/include Makefile.am

spl: remove sys/poll.h

Only in userspace, as a workaround to get poll.h correctly. However,
there's only one place we include it, in ztest, so its more sensible to
just include poll.h directly there, which is what we want anyway.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #19206
DeltaFile
+0-31lib/libspl/include/sys/poll.h
+1-1cmd/ztest.c
+0-1lib/libspl/include/Makefile.am
+1-333 files

OpenZFS/src 8dbb6e3 — lib/libspl/include Makefile.am, lib/libspl/include/sys stack.h

spl: remove sys/stack.h

Only for userspace, and never included.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #19206
DeltaFile
+0-65lib/libspl/include/sys/stack.h
+0-1lib/libspl/include/Makefile.am
+0-662 files

OpenZFS/src 6597fd0 — include/os/linux Makefile.am, include/os/linux/spl/sys condvar.h callo.h

spl: remove sys/callo.h

Only on Linux. CALLOUT_FLAG_ABSOLUTE is the only thing we need from
here, for cv_timedwait_idle_hires(). FreeBSD and userspace have it in
condvar.h, move it there for Linux.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #19206
DeltaFile
+0-52include/os/linux/spl/sys/callo.h
+2-2include/os/linux/spl/sys/condvar.h
+0-1include/os/linux/Makefile.am
+2-553 files

OpenZFS/src 1ceb518 — include/os/linux/spl/sys inttypes.h, lib/libspl/include atomic.h

spl: remove sys/inttypes.h

Empty on Linux & FreeBSD. In userspace, only included inttypes.h to get
the "core" types, and then unconditionally defined _INT64_TYPE, which
only gates the 64-bit atomics.

So, remove all versions, and the _INT64_TYPE gate. Finally, move the
inttypes.h include up in sys/types.h, since it is now the only source of
the "core" types, and wasn't included early enough to get them.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #19206
DeltaFile
+2-31lib/libspl/include/atomic.h
+0-28include/os/linux/spl/sys/inttypes.h
+0-24lib/libspl/include/sys/inttypes.h
+4-4lib/libspl/include/sys/types.h
+0-2lib/libspl/include/sys/types32.h
+0-1scripts/spdxcheck.pl
+6-9013 files not shown
+6-10319 files

OpenZFS/src 5259714 — include/os/linux Makefile.am, include/os/linux/spl/sys vnode.h user.h

spl: remove sys/user.h

Only on Linux. Left over from before zfs_file_*, should have been
removed in da92d5cbb3.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #19206
DeltaFile
+0-42include/os/linux/spl/sys/user.h
+0-1include/os/linux/spl/sys/vnode.h
+0-1include/os/linux/Makefile.am
+0-443 files

OpenZFS/src 95b1942 — include/os/freebsd Makefile.am, include/os/freebsd/spl/sys lock.h

spl: remove sys/lock.h

Only for FreeBSD, shadowing a system header. The two additional defines
are not used anywhere in OpenZFS.

Sponsored-by: TrueNAS
Reviewed-by: Brian Behlendorf <behlendorf1 at llnl.gov>
Signed-off-by: Rob Norris <rob.norris at truenas.com>
Closes #19206
DeltaFile
+0-41include/os/freebsd/spl/sys/lock.h
+0-1include/os/freebsd/Makefile.am
+0-422 files

LLVM/project 41823dd — clang/docs ReleaseNotes.md, clang/include/clang/Basic BuiltinHeaders.def Builtins.td

[Clang][Sema] Add fortify warnings for poll, ppoll, and ppoll64 (#226261)

Add `-Wfortify-source` diagnostics for `poll`, `ppoll`, and `ppoll64` when the byte size required for `nfds` descriptors (`nfds * sizeof(*fds)`) exceeds the destination `fds` buffer size.

Supersedes the `poll` portion of #177286 (similar to #198130 for `umask`).

Part of #142230

Assisted-by: Gemini
DeltaFile
+134-0clang/test/Sema/warn-fortify-source-poll-not-builtin.c
+44-0clang/test/Sema/warn-fortify-source.c
+42-0clang/lib/Sema/SemaChecking.cpp
+19-0clang/include/clang/Basic/Builtins.td
+3-0clang/docs/ReleaseNotes.md
+1-0clang/include/clang/Basic/BuiltinHeaders.def
+243-06 files

LLVM/project aebcdfe — llvm/lib/Target/AMDGPU AMDGPUInstructionSelector.cpp

Use isFixedVector instead of LLT equality
DeltaFile
+1-1llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
+1-11 files