LLVM/project 852649dllvm/lib/Target/AMDGPU AMDGPUISelLowering.cpp

AMDGPU: Remove an unnecessary lookup of the AMDGPUSubtarget (#177646)

DeltaFile
+1-2llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
+1-21 files

LLVM/project 4435083libc/shared/math f16fmal.h, libc/src/__support/math f16fmal.h CMakeLists.txt

[libc][math] Refactor f16fmal to header-only (#176576)

closes #175324 
part of #175313
DeltaFile
+34-0libc/src/__support/math/f16fmal.h
+31-0libc/shared/math/f16fmal.h
+12-1utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+10-0libc/src/__support/math/CMakeLists.txt
+2-4libc/src/math/generic/f16fmal.cpp
+1-2libc/src/math/generic/CMakeLists.txt
+90-73 files not shown
+95-79 files

FreeBSD/doc a2d38f2documentation/content/zh-tw/books/developers-handbook/kerneldebug _index.adoc

dev-handbook: Remove reference to kgdb in EOL FreeBSD

kgdb exists in the base system only in FreeBSD 11 and earlier, which is
well past EOL.  Remove the reference, leaving only a reference to the
kgdb port or package from devel/gdb.

Sponsored by:   The FreeBSD Foundation
DeltaFile
+1-1documentation/content/zh-tw/books/developers-handbook/kerneldebug/_index.adoc
+1-11 files

LLVM/project 01ed562clang/lib/Analysis/LifetimeSafety FactsGenerator.cpp, clang/test/Sema warn-lifetime-safety.cpp

Fix issue with references to fields
DeltaFile
+15-0clang/test/Sema/warn-lifetime-safety.cpp
+2-1clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp
+17-12 files

LLVM/project 896a667llvm/include/llvm/Support KnownBits.h, llvm/lib/CodeGen/SelectionDAG SelectionDAG.cpp

[KnownBits][SelectionDAG] Add KnownBits::clmul. Support trailing bits.  NFC (#177517)

Borrow the known trailing bits logic from KnownBits::mul, but using
APIntOps::clmul.
DeltaFile
+37-0llvm/lib/Support/KnownBits.cpp
+1-5llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+3-0llvm/include/llvm/Support/KnownBits.h
+3-0llvm/unittests/Support/KnownBitsTest.cpp
+44-54 files

LLVM/project e7e2c2bllvm/lib/Target/RISCV RISCVInstrInfoZb.td, llvm/test/CodeGen/RISCV rv64zbc-intrinsic.ll rv64zbc-zbkc-intrinsic.ll

[RISCV] Select (clmul (zext_inreg X, i32), (zext_inreg X, i32)) as (clmulh (slli X, 32), (slli X, 32)). (#177429)

Without Zba. We do the same for MUL->MULHU without Zba.
DeltaFile
+9-0llvm/lib/Target/RISCV/RISCVInstrInfoZb.td
+1-3llvm/test/CodeGen/RISCV/rv64zbc-intrinsic.ll
+1-3llvm/test/CodeGen/RISCV/rv64zbc-zbkc-intrinsic.ll
+11-63 files

HardenedBSD/src 94822b1sys/contrib/dev/mediatek/mt76/mt7996 mac.c main.c, tests/sys/kern ssl_sendfile.c

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+692-160sys/contrib/dev/mediatek/mt76/mt7996/mac.c
+393-235sys/contrib/dev/mediatek/mt76/mt7996/main.c
+514-0tests/sys/kern/ssl_sendfile.c
+294-98sys/contrib/dev/mediatek/mt76/mt7996/init.c
+198-184sys/contrib/dev/mediatek/mt76/mt7996/mcu.c
+272-69sys/contrib/dev/mediatek/mt76/mt7996/dma.c
+2,363-746218 files not shown
+4,780-1,685224 files

LLVM/project ff2535allvm/lib/Target/AMDGPU AMDGPUISelLowering.cpp, llvm/test/CodeGen/AMDGPU ctlz.ll

AMDGPU: Use generic legality checks instead of checking subtarget feature

Avoid checking predicates on AMDGPUSubtarget when possible. Also add a couple
of tests for the ctlz combine where ffbh isn't legal. I'm not sure what
the point of the previous check was.
DeltaFile
+495-1llvm/test/CodeGen/AMDGPU/ctlz.ll
+20-22llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
+515-232 files

HardenedBSD/src cd4c2d2sys/contrib/dev/mediatek/mt76/mt7996 mac.c main.c, tests/sys/kern ssl_sendfile.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+692-160sys/contrib/dev/mediatek/mt76/mt7996/mac.c
+393-235sys/contrib/dev/mediatek/mt76/mt7996/main.c
+514-0tests/sys/kern/ssl_sendfile.c
+294-98sys/contrib/dev/mediatek/mt76/mt7996/init.c
+198-184sys/contrib/dev/mediatek/mt76/mt7996/mcu.c
+272-69sys/contrib/dev/mediatek/mt76/mt7996/dma.c
+2,363-746218 files not shown
+4,780-1,685224 files

HardenedBSD/src 08adec9sys/kern uipc_ktls.c, sys/net iflib.c iflib.h

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+17-10sys/net/iflib.c
+6-3sys/sys/ktls.h
+3-2sys/net/iflib.h
+3-0sys/kern/uipc_ktls.c
+29-154 files

LLVM/project fdb05bbllvm/lib/Transforms/Scalar DeadStoreElimination.cpp

[LLVM] Update assert to removed unused variable warning. (#177632)

Remove the variable definition and move the function call directly into
the assert statement. Otherwise builds with -Werror that don't use
asserts would fail.
DeltaFile
+1-3llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
+1-31 files

LLVM/project ff97d1alibc/shared/math dfmaf128.h, libc/src/__support/math dfmaf128.h CMakeLists.txt

[libc][math] Refactor dfmaf128 to Header Only (#176480)

Closes https://github.com/llvm/llvm-project/issues/175315, Part of
https://github.com/llvm/llvm-project/issues/175344
DeltaFile
+31-0libc/src/__support/math/dfmaf128.h
+29-0libc/shared/math/dfmaf128.h
+12-1utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+2-9libc/src/math/generic/dfmaf128.cpp
+10-0libc/src/__support/math/CMakeLists.txt
+1-2libc/src/math/generic/CMakeLists.txt
+85-123 files not shown
+89-129 files

HardenedBSD/ports fba2fb3devel/freebsd-gcc12/files patch-gcc_system.h patch-gcc_configure, devel/freebsd-gcc13/files patch-gcc_system.h patch-gcc_configure

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+0-42devel/freebsd-gcc13/files/patch-gcc_system.h
+0-42devel/freebsd-gcc12/files/patch-gcc_system.h
+24-0textproc/caps-log/Makefile
+22-0devel/freebsd-gcc12/files/patch-gcc_configure
+22-0devel/freebsd-gcc13/files/patch-gcc_configure
+16-0textproc/caps-log/pkg-message
+84-8422 files not shown
+143-13528 files

HardenedBSD/src 37d11fdtests/sys/kern ssl_sendfile.c Makefile

tests/kern: add test for SSL_sendfile()
DeltaFile
+514-0tests/sys/kern/ssl_sendfile.c
+2-0tests/sys/kern/Makefile
+516-02 files

FreeBSD/src 37d11fdtests/sys/kern ssl_sendfile.c Makefile

tests/kern: add test for SSL_sendfile()
DeltaFile
+514-0tests/sys/kern/ssl_sendfile.c
+2-0tests/sys/kern/Makefile
+516-02 files

LLVM/project b94c5e0llvm/lib/Target/AMDGPU AMDGPURegBankLegalizeRules.cpp, llvm/test/CodeGen/AMDGPU strict_ldexp.f16.ll strict_ldexp.f64.ll

[AMDGPU][GlobalISel] Add RegBankLegalize support for G_STRICT_FLDEXP (#177525)

DeltaFile
+87-15llvm/test/CodeGen/AMDGPU/strict_ldexp.f16.ll
+40-8llvm/test/CodeGen/AMDGPU/strict_ldexp.f64.ll
+31-4llvm/test/CodeGen/AMDGPU/strict_ldexp.f32.ll
+1-1llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp
+159-284 files

LLVM/project 7c8a13allvm/include/llvm/Transforms/Utils LoopPeel.h, llvm/lib/Transforms/Scalar LoopFuse.cpp LoopUnrollPass.cpp

[LoopPeel] change `peelLoop`'s return type from `bool` to `void` (#177488)

DeltaFile
+43-45llvm/lib/Transforms/Scalar/LoopFuse.cpp
+8-10llvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
+1-3llvm/lib/Transforms/Utils/LoopPeel.cpp
+1-1llvm/include/llvm/Transforms/Utils/LoopPeel.h
+53-594 files

LLVM/project 8b00b1dllvm Maintainers.md

Fix formatting in `Maintainers.md` (#177498)

DeltaFile
+1-1llvm/Maintainers.md
+1-11 files

LLVM/project f7361efllvm/lib/Support Threading.cpp, llvm/lib/Support/Unix Threading.inc

[Support] Avoid misguided FreeBSD hack (#177508)

FreeBSD doesn't do anything wrong here, it just happens to define and
use a struct thread in its own headers. The problems arise because here
in LLVM we have using namespace llvm prior to including system headers,
which is bad practice for precisely this reason. If we instead play by
the rules and defer our using namespace llvm until after we've included
the system headers then we no longer need this hack.

This hack is particularly problematic by being conditional on
__FreeBSD__ as of 9093ba9f7ee5 ("[Support] Include Support/thread.h
before api implementations (#111175)"), since on non-FreeBSD
Threading.inc can reference anything in Support/thread.h, only causing
errors on FreeBSD, which is precisely what happened in 64be34c562a2
("Enable using threads on z/OS (#171847)").

By deferring the using namespace llvm until after Threading.inc is
included there may be build failures introduced on untested platforms
due to needing to replace unqualified identifiers with qualified ones by
prepending llvm::.
DeltaFile
+13-15llvm/lib/Support/Threading.cpp
+5-9llvm/lib/Support/Unix/Threading.inc
+5-4llvm/lib/Support/Windows/Threading.inc
+23-283 files

FreeBSD/ports 480d43fdevel/air-go distinfo Makefile

devel/air-go: Update to 1.64.4
DeltaFile
+5-5devel/air-go/distinfo
+1-1devel/air-go/Makefile
+6-62 files

HardenedBSD/ports 480d43fdevel/air-go distinfo Makefile

devel/air-go: Update to 1.64.4
DeltaFile
+5-5devel/air-go/distinfo
+1-1devel/air-go/Makefile
+6-62 files

LLVM/project f6f5ad3llvm/test/Analysis/CostModel/AArch64 arith.ll

[AArch64] Add some basic i128 arithmetic cost test cases. NFC
DeltaFile
+50-0llvm/test/Analysis/CostModel/AArch64/arith.ll
+50-01 files

LLVM/project 0d0249ellvm/lib/Target/AMDGPU AMDGPUIGroupLP.cpp, llvm/test/CodeGen/AMDGPU inlineasm-sgmask.ll

Try To Guess SGMasks for Inline Asm Instructions (#155491)

Addresses SWDEV-549227
DeltaFile
+179-0llvm/test/CodeGen/AMDGPU/inlineasm-sgmask.ll
+57-0llvm/lib/Target/AMDGPU/AMDGPUIGroupLP.cpp
+236-02 files

LLVM/project c45684fllvm/test/CodeGen/AMDGPU frem.ll fract-match.ll, llvm/test/CodeGen/AMDGPU/GlobalISel frem.ll

AMDGPU: Ignore type legality in isFAbsFree (#177630)

This treats it as free on targets without legal f16. This
matches the existing logic in fneg, and they should be the same.
The test changes are mostly neutral with a few improvements.
DeltaFile
+130-148llvm/test/CodeGen/AMDGPU/GlobalISel/frem.ll
+93-93llvm/test/CodeGen/AMDGPU/frem.ll
+22-24llvm/test/CodeGen/AMDGPU/fract-match.ll
+11-21llvm/test/CodeGen/AMDGPU/fmed3-cast-combine.ll
+12-15llvm/test/CodeGen/AMDGPU/fp-classify.ll
+8-8llvm/test/CodeGen/AMDGPU/fneg-fabs.f16.ll
+276-3093 files not shown
+285-3189 files

DragonFlyBSD/src be6979csys/dev/drm linux_pm_qos.c, sys/dev/drm/drm Makefile

pc64 - First hacky attempt at implementing a deep MWAIT sleep inhibitor.

This is needed by i915(4), to make its DisplayPort code reliable when deep
MWAIT C-States might be used. Since the i915(4) code is not aware of the
CPU core that its interrupt is routed to, we have to pessimistically inhibit
deep MWAIT sleeps on all cores.

This adds a very basic cpu_inhibit_deep_sleep() function to the pc64 platform.
cpu_inhibit_deep_sleep(1) increments a counter by 1, and
cpu_inhibit_deep_sleep(0) decrements that counter. And a positive value in
the counter inhibits deep MWAIT C-States on Intel hardware. Since modern AMD
hardware uses fully autonomous power-saving state selection, and no MWAIT
for idling, this function has no effect on AMD right now.
DeltaFile
+40-0sys/dev/drm/linux_pm_qos.c
+31-1sys/platform/pc64/x86_64/machdep.c
+4-1sys/dev/drm/include/linux/pm_qos.h
+2-0sys/platform/pc64/include/cpu.h
+1-0sys/dev/drm/drm/Makefile
+1-0sys/dev/drm/i915/intel_dp.c
+79-26 files

DragonFlyBSD/src 3820b9fsys/conf files, sys/dev/drm linux_hrtimer.c

drm - Improve hrtimer. Handle HRTIMER_RESTART, and use a precise timer.

This should fix powersaving in i915(4), and the more precise timeout should
also help powersaving a bit in some cases.
DeltaFile
+93-26sys/dev/drm/linux_hrtimer.c
+12-3sys/dev/drm/include/linux/hrtimer.h
+1-0sys/conf/files
+106-293 files

DragonFlyBSD/src e1edd16share/man/man4 i915.4

i915.4 - Remove mention of enable_execlists and disable_aux_irq tunables.

These have been gone from the code for a while. This just syncs documentation.
DeltaFile
+0-13share/man/man4/i915.4
+0-131 files

OpenBSD/ports Y0VfbRZgraphics/gthumb distinfo Makefile

   Update to gthumb-3.12.9.
VersionDeltaFile
1.58+2-2graphics/gthumb/distinfo
1.148+1-1graphics/gthumb/Makefile
+3-32 files

LLVM/project 1f8ae28clang/include/clang/Driver ToolChain.h, clang/lib/Driver/ToolChains Linux.cpp MSVC.cpp

[HIP] Pass HIP library directly and refactor (#176019)

Summary:
Currently we pass `-L` and `-l` to get the HIP library. Because we are
attached to a single HIP installation it's far better to pass it by
filename. This is because the `-L` could be out of order with other user
libraries and those could override it. If someone uses HIP with a
specific ROCm installation they most likely want that library, otherwise
incompatibilities can occur. This is still overridable with command line
flags if users want to pass a different one for some reason.

This PR also refactors the handling to be more generic for future
additions.
DeltaFile
+20-11clang/lib/Driver/ToolChains/Linux.cpp
+11-6clang/lib/Driver/ToolChains/MSVC.cpp
+0-15clang/lib/Driver/ToolChains/CommonArgs.cpp
+5-5clang/test/Driver/hip-runtime-libs-linux.hip
+4-4clang/include/clang/Driver/ToolChain.h
+3-3clang/test/Driver/rocm-detect.hip
+43-444 files not shown
+50-5010 files

LLVM/project 98b55bcllvm/lib/Target/AMDGPU AMDGPUISelLowering.cpp SIISelLowering.cpp

AMDGPU: Move f16 legality configuration to SITargetLowering (#177629)

f16 is never legal for R600 so this should not be in the common
base class.
DeltaFile
+2-11llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
+3-0llvm/lib/Target/AMDGPU/SIISelLowering.cpp
+5-112 files