LLVM/project b3455c1llvm/lib/Transforms/Vectorize SLPVectorizer.cpp

[SLP][NFC] Remove duplicated cast (#188532)

Introduced in #188103.
DeltaFile
+2-2llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+2-21 files

LLVM/project 1ce4345libclc/clc/lib/amdgpu/subgroup clc_sub_group_reduce.cl

libclc: Fix amdgpu subgroup reduce for max u64
DeltaFile
+1-1libclc/clc/lib/amdgpu/subgroup/clc_sub_group_reduce.cl
+1-11 files

LLVM/project 4bfc9bdlibc/docs/dev implementing_a_function.rst index.rst

[libc][docs] Add guide for implementing a function (#188499)

Added implementing_a_function.rst providing a checklist for adding a new
function to LLVM-libc.

Updated dev/index.rst to include the new guide in the toctree.
DeltaFile
+73-0libc/docs/dev/implementing_a_function.rst
+1-0libc/docs/dev/index.rst
+74-02 files

LLVM/project 2c24f02libc/src/__support/math log1pf.h acosh_float_constants.h, libc/test/src/math asinhf_test.cpp

[libc][math] Switch log1pf to use the same log_eval from inverse hyperbolic functions. (#188388)

- Switch log1pf to use the same log_eval from inverse hyperbolic
functions.
- Optimize log_eval to use the same range reduction scheme as double
precision log
- Reduce the table size needed for log range reduction.
- This lower the overall latency of log1pf and inverse hyperbolic
functions.
DeltaFile
+87-115libc/src/__support/math/log1pf.h
+69-90libc/src/__support/math/acosh_float_constants.h
+71-33libc/src/__support/math/acoshf.h
+54-17libc/src/__support/math/asinhf.h
+47-21libc/src/__support/math/acoshf_utils.h
+7-1libc/test/src/math/asinhf_test.cpp
+335-2774 files not shown
+346-28210 files

LLVM/project a6a66a4llvm/include/llvm/CodeGen SelectionDAG.h, llvm/lib/CodeGen/SelectionDAG SelectionDAG.cpp DAGCombiner.cpp

[DAG] Define computeConstantRange for VSCALE folding (#176027)

Resolves #175150 

Defines computeConstantRange and computeConstantRangeIncludingKnownBits
in the SelectionDAG. Currently only handles `ISD::VSCALE` operation
related to #174708.

Test cases were constructed to test varying VSCALE ranges on AArch64.
Further testing can be implemented as needed by review.
DeltaFile
+66-8llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+46-0llvm/test/CodeGen/AArch64/vscale-constant-range.ll
+24-0llvm/include/llvm/CodeGen/SelectionDAG.h
+1-5llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+137-134 files

LLVM/project 6899455llvm/lib/Target/AMDGPU AMDGPUSearchableTables.td, llvm/test/Analysis/UniformityAnalysis/AMDGPU intrinsics.ll

[AMDGPU] Mark amdgcn_permlane64 as divergent (#188562)
DeltaFile
+7-0llvm/test/Analysis/UniformityAnalysis/AMDGPU/intrinsics.ll
+1-0llvm/lib/Target/AMDGPU/AMDGPUSearchableTables.td
+8-02 files

LLVM/project 4094977lldb/packages/Python/lldbsuite/test/builders builder.py

[lldb] Remove references to llvm-gcc (#188582)

A couple of leftovers that weren't removed in e0a79eeca2 (#120225)
DeltaFile
+1-2lldb/packages/Python/lldbsuite/test/builders/builder.py
+1-21 files

LLVM/project caed459utils/bazel/llvm-project-overlay/mlir BUILD.bazel

[Bazel] Fixes d7e60d5 (#188592)

This fixes d7e60d525026f24a3514be34d8e6e56622436823.
DeltaFile
+2-0utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+2-01 files

LLVM/project e347e93clang/test/CIR/CodeGen ms-intrinsics.c, clang/test/CIR/CodeGenBuiltins builtins.cpp

[CIR][NFC] Fix llvm.returnaddress call in tests (#188563)

Fix llvm.returnaddress call in tests after changes from #188464
DeltaFile
+2-2clang/test/CIR/CodeGen/ms-intrinsics.c
+2-2clang/test/CIR/CodeGenBuiltins/builtins.cpp
+4-42 files

LLVM/project 500bfdelibclc/clc/lib/amdgpu/subgroup clc_sub_group_broadcast.cl

libclc: Fix amdgpu sub_group_broadcast for double
DeltaFile
+2-2libclc/clc/lib/amdgpu/subgroup/clc_sub_group_broadcast.cl
+2-21 files

LLVM/project db18112llvm/lib/CodeGen/SelectionDAG TargetLowering.cpp

[TargetLowering] Use APInt::setAllBits() instead of assigning -1. (#188566)

The -1 has 'int' type. The APInt assignment operator takes uint64_t.
Fortunately, due to C rules, the -1 will be converted to an all ones
uint64_t. Unfortunately, if the APInt has more than 64 bits, the upper
words will be zeroed. I don't think we have any testing of that today.

Use setAllBits to avoid the subtle cast and fix the bits > 64 issue.

K still has its own issue that needs to be fixed.
DeltaFile
+3-3llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+3-31 files

FreeBSD/ports 7922585mail/nextcloud-mail distinfo Makefile

mail/nextcloud-mail: Update to 5.7.5
DeltaFile
+3-3mail/nextcloud-mail/distinfo
+1-1mail/nextcloud-mail/Makefile
+4-42 files

LLVM/project b8b4804lldb/source/Commands CommandObjectType.cpp Options.td, lldb/test/API/functionalities/data-formatter/type-synth-wants-deref TestTypeSynthRequiresDeref.py provider.py

[lldb][CommandObjectType] Add --wants-dereference option to `type synthetic add` (#188512)

This patch exposes the `TypeSynthetic::SetFrontEndWantsDereference` via
the `type synthetic add` command.

The motivation for this is moving the various STL data-formatters to
Python. Those currently set this flag programmatically so that pointers
and references get formatted using the pointee synthetic provider.

Patch that makes use of this new option is:
https://github.com/llvm/llvm-project/pull/187677

Claude helped with writing the test code. Reviewed and cleaned it up
myself
DeltaFile
+52-0lldb/test/API/functionalities/data-formatter/type-synth-wants-deref/TestTypeSynthRequiresDeref.py
+36-0lldb/test/API/functionalities/data-formatter/type-synth-wants-deref/provider.py
+18-4lldb/source/Commands/CommandObjectType.cpp
+13-0lldb/test/API/functionalities/data-formatter/type-synth-wants-deref/main.cpp
+6-0lldb/source/Commands/Options.td
+3-0lldb/test/API/functionalities/data-formatter/type-synth-wants-deref/Makefile
+128-46 files

FreeBSD/ports 1426544net/realtek-rge-kmod distinfo Makefile

net/realtek-rge-kmod: Update to 20260222

PR:             294029
Submitted by:   scf
DeltaFile
+3-3net/realtek-rge-kmod/distinfo
+2-2net/realtek-rge-kmod/Makefile
+5-52 files

LLVM/project 28318d5llvm/lib/Target/NVPTX NVPTXSetByValParamAlign.cpp NVPTXLowerArgs.cpp, llvm/test/CodeGen/NVPTX set-byval-param-align.ll lower-byval-args.ll

[NVPTX] Split out NVPTXSetByValParamAlign of NVPTXLowerArgs (NFC) (#187965)

This logic was previously embedded in NVPTXLowerArgs, but is split into
a separate pass as it is an optional optimization orthogonal to kernel
parameter lowering. This pass can be run earlier making alignment
available to generic IR passes (like infer-alignment) and a separate
pass makes the alignment logic independently testable. It also
simplifies NVPTXLowerArgs by removing the duplicate handling of
alignment for kernel vs. device functions.
DeltaFile
+162-0llvm/lib/Target/NVPTX/NVPTXSetByValParamAlign.cpp
+120-0llvm/test/CodeGen/NVPTX/set-byval-param-align.ll
+4-103llvm/lib/Target/NVPTX/NVPTXLowerArgs.cpp
+18-18llvm/test/CodeGen/NVPTX/lower-byval-args.ll
+5-5llvm/test/CodeGen/NVPTX/lower-args-gridconstant.ll
+7-0llvm/lib/Target/NVPTX/NVPTX.h
+316-1266 files not shown
+324-13012 files

LLVM/project 67d1d98mlir/include/mlir/Dialect/Tosa/IR TosaOps.td, mlir/lib/Dialect/Tosa/IR TosaCanonicalizations.cpp

[mlir][tosa] Optimize block scaled cast sequences (#188018)

Add a canonicalization pattern that will delete cast_from_block_scaled
-> cast_to_block_scaled sequences when the input and output types and
block sizes match.

---------

Signed-off-by: Ian Tayler Lessa <ian.taylerlessa at arm.com>
DeltaFile
+56-0mlir/test/Dialect/Tosa/canonicalize.mlir
+49-0mlir/lib/Dialect/Tosa/IR/TosaCanonicalizations.cpp
+1-0mlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
+106-03 files

FreeNAS/freenas c3073fdsrc/middlewared/middlewared/plugins/cloud_backup init.py, tests/cloud test_cloud_backup_storj.py

Create S3 buckets before performing any restic operations
DeltaFile
+70-0tests/cloud/test_cloud_backup_storj.py
+8-7src/middlewared/middlewared/plugins/cloud_backup/init.py
+78-72 files

LLVM/project d7e60d5flang/include/flang/Tools CrossToolHelpers.h, flang/lib/Frontend FrontendActions.cpp

[NFC][OpenMP][mlir][flang] Move OMP offloading module attribute handling from flang to mlir (#186409)

This patch moves the OpenMP offloding module attributes handling from
flang to mlir so that it can be reused in ClangIR was well.

Co-authored-by: Claude Opus 4.6 <noreply at anthropic.com>
Co-authored-by: Michael Kruse <github at meinersbur.de>
DeltaFile
+105-0mlir/include/mlir/Dialect/OpenMP/OpenMPOffloadUtils.h
+9-83flang/include/flang/Tools/CrossToolHelpers.h
+5-4flang/lib/Frontend/FrontendActions.cpp
+4-3flang/tools/bbc/bbc.cpp
+3-3flang/lib/Lower/OpenMP/Decomposer.cpp
+1-0mlir/include/mlir/Dialect/OpenMP/OpenMPDialect.h
+127-936 files

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

[DSE] Fix missed dependency update in #188253 (#188573)

DSE no longer requires LoopInfo, so this dependency is no longer
correct. Update it to CycleInfo to fix a crash when using the legacy PM.

Note: This crash is kind of hard to hit with default LLVM tools since
`opt` can no longer use the legacy PM, but it happens on any invocation
of clang when targeting the DirectX backend.
DeltaFile
+1-1llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
+1-11 files

LLVM/project ebd62d6clang/test/Driver memtag-android.c memtag.c, lld/ELF Driver.cpp

[lld][ELF][clang][MTE] Add -z memtag-{mode,heap,stack} (#188205)

This change eliminates the Android-specific --android-memtag-* flags
from lld, replacing them with -z memtag-* generic equivalents. With
these generic flags, the linker will emit only the dynamic array tags
specified in the "Memtag ABI Extension to ELF", but no Android-specific
memtag note.

In addition, this change adds an --android-memtag-note flag which should
be used when the Android-specific memtag note should be emitted.

This change also modifies the clang driver to make use of the new flags.
DeltaFile
+35-25lld/ELF/Driver.cpp
+58-0lld/test/ELF/aarch64-memtag-abi.s
+57-0clang/test/Driver/memtag-android.c
+54-0clang/test/Driver/memtag.c
+0-46clang/test/Driver/memtag-ld.c
+19-18lld/test/ELF/aarch64-memtag-android-abi.s
+223-898 files not shown
+272-13214 files

LLVM/project bc7472fllvm/include/llvm/MC MCAsmBaseStreamer.h, llvm/lib/MC MCAsmBaseStreamer.cpp MCAsmStreamer.cpp

[MC] Move addEncodingComment() into new base class MCAsmBaseStreamer

This is in preparation to use this functionality in the
SystemZHLASMAsmStreamer. No functional change.
DeltaFile
+143-0llvm/lib/MC/MCAsmBaseStreamer.cpp
+4-132llvm/lib/MC/MCAsmStreamer.cpp
+32-1llvm/include/llvm/MC/MCAsmBaseStreamer.h
+1-0llvm/lib/MC/CMakeLists.txt
+180-1334 files

FreeBSD/src f698988tests/sys/netinet raw.c

tests/netinet: add raw:reconnect test

It tests repetitive connect(2) on AF_INET/SOCK_RAW including connect(2)
to INADDR_ANY that puts socket back into receive-all mode.
DeltaFile
+170-71tests/sys/netinet/raw.c
+170-711 files

LLVM/project d9402d0mlir/lib/Transforms Mem2Reg.cpp, mlir/test/Dialect/MemRef mem2reg.mlir

Revert "[MLIR] [Mem2Reg] Fix unused block argument removal logic (#188484)" (#188571)

This reverts commit e5adddc5be63b8bb8c36572f68ac64c8042cb282.

This commit broke a lot of Fortran compilations in our tests and builds.
I am working on an additional fix, but I would like to revert this
in the meantime. I will reupload it with the fix.
DeltaFile
+33-105mlir/lib/Transforms/Mem2Reg.cpp
+0-133mlir/test/Dialect/MemRef/mem2reg.mlir
+33-2382 files

LLVM/project 588451clibunwind CMakeLists.txt, libunwind/src Registers.hpp

[libunwind] Fix building on OpenBSD / FreeBSD aarch64 (#188397)

Just checking for the header presence of sys/auxv.h breaks the
build on OpenBSD / FreeBSD. Make use of elf_aux_info().
DeltaFile
+13-4libunwind/src/Registers.hpp
+10-0libunwind/CMakeLists.txt
+23-42 files

LLVM/project 820eaa4mlir/lib/Analysis/DataFlow DeadCodeAnalysis.cpp, mlir/test/Transforms sccp.mlir

[MLIR][DataFlow] Fix two crashes in DeadCodeAnalysis on empty/no-terminator regions (#188548)

Two related assertion failures in DeadCodeAnalysis when processing
OpenACC operations:

1. visitRegionBranchEdges (issue #187972): When a RegionSuccessor refers
to an empty region (no blocks), calling getSuccessor()->front()
dereferences a sentinel ilist iterator, crashing with
"\!NodePtr->isKnownSentinel()". Fix: skip successors whose region is
empty.

2. isRegionOrCallableReturn (issue #188408): When iterating over ops in
a nested acc region whose blocks do not have a required terminator,
Block::getTerminator() is called without first checking
mightHaveTerminator(), triggering "Assertion `mightHaveTerminator()'
failed". Fix: guard the getTerminator() call with mightHaveTerminator().

Fixes #187972, #188408

Assisted-by: Claude Code
DeltaFile
+31-0mlir/test/Transforms/sccp.mlir
+4-0mlir/lib/Analysis/DataFlow/DeadCodeAnalysis.cpp
+35-02 files

LLVM/project 0e2f4d6llvm/lib/Target/SPIRV SPIRVInstructionSelector.cpp, llvm/test/CodeGen/SPIRV/hlsl-intrinsics firstbithigh.ll firstbitlow.ll

[HLSL][SPIRV] Fix firstbitset in spirv (#186939)

This patch fixes the logic when lowering firsbithigh and low when
targeting spirv. It adds an aditional check to make sure the second half
is also -1, if it is it returns -1 otherwise returns the resulting sum.

Fix: #143003 and #143171

---------

Co-authored-by: Finn Plummer <mail at inbelic.dev>
DeltaFile
+67-70llvm/test/CodeGen/SPIRV/hlsl-intrinsics/firstbithigh.ll
+62-59llvm/test/CodeGen/SPIRV/hlsl-intrinsics/firstbitlow.ll
+51-22llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
+180-1513 files

LLVM/project c9944f3llvm/include/llvm/MC MCAsmBaseStreamer.h MCAsmStreamer.h, llvm/lib/MC MCAsmStreamer.cpp MCGNUAsmStreamer.cpp

Undo renaming

- Keep the class and file name MCAsmStreamer.cpp
- Introduce new base class and MCAsmBaseStreamer.h
- Only change to MCAsmStreamer is to derive from the new base class
DeltaFile
+2,733-0llvm/lib/MC/MCAsmStreamer.cpp
+0-2,733llvm/lib/MC/MCGNUAsmStreamer.cpp
+30-0llvm/include/llvm/MC/MCAsmBaseStreamer.h
+0-30llvm/include/llvm/MC/MCAsmStreamer.h
+1-1llvm/lib/MC/CMakeLists.txt
+2,764-2,7645 files

LLVM/project 55111e8flang/lib/Optimizer/Transforms FIRToMemRef.cpp, flang/test/Transforms/FIRToMemRef logical.mlir

[flang] use fir.bitcast for FIRToMemRef scalar reinterpretation (#188328)

Use fir.bitcast in FIR-to-MemRef casts so bit patterns are preserved
(e.g. TRANSFER), while keeping fir.convert for memref/reference
marshaling and non-bitcast-compatible cases.
DeltaFile
+47-9flang/lib/Optimizer/Transforms/FIRToMemRef.cpp
+2-2flang/test/Transforms/FIRToMemRef/logical.mlir
+49-112 files

LLVM/project adb2bf7clang/lib/CodeGen CGHLSLBuiltins.cpp, clang/lib/Sema HLSLBuiltinTypeDeclBuilder.cpp

[HLSL] Add CalculateLevelOfDetail methods to Texture2D

This adds the CalculateLevelOfDetail and CalculateLevelOfDetailUnclamped
methods to Texture2D using the establish pattern used for other methods.

Assisted-by: Gemini
DeltaFile
+44-0clang/test/AST/HLSL/Texture2D-vector-AST.hlsl
+44-0clang/test/CodeGenHLSL/resources/Texture2D-CalculateLevelOfDetail.hlsl
+44-0clang/test/AST/HLSL/Texture2D-scalar-AST.hlsl
+33-0clang/test/SemaHLSL/Resources/Texture2D-CalculateLevelOfDetail.hlsl
+32-0clang/lib/Sema/HLSLBuiltinTypeDeclBuilder.cpp
+20-0clang/lib/CodeGen/CGHLSLBuiltins.cpp
+217-07 files not shown
+260-213 files

LLVM/project 53b071allvm/include/llvm/IR IntrinsicsSPIRV.td, llvm/lib/Target/SPIRV SPIRVInstructionSelector.cpp SPIRVModuleAnalysis.cpp

[SPIRV] Implement the int_spv_resource_calculate_lod* IntrinsicsSPIRV

Implements intrinsics used to get the level-of-detail given a texture,
sampler, and a coordinate. It will be used to implement the
corresponding HLSL methods.

Assisted-by: Gemini
DeltaFile
+70-0llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
+36-0llvm/test/CodeGen/SPIRV/hlsl-resources/CalculateLevelOfDetail.ll
+12-2llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
+10-0llvm/include/llvm/IR/IntrinsicsSPIRV.td
+128-24 files