LLVM/project c2409b4llvm/include/llvm/Analysis TargetTransformInfoImpl.h, llvm/include/llvm/CodeGen BasicTTIImpl.h

[TTI] Remove masked/gather-scatter/strided/expand-compress costing from TTIImpl (#169885)

Following #165532, this patch moves scalarization‑cost computation into
BaseT::getMemIntrinsicCost and lets backends override it via their
getMemIntrinsicCost.
It also removes the masked/gather‑scatter/strided/expand‑compress
costing interfaces from TTIImpl.
Targets may keep them locally if needed.

Stacked on #170426 and #170436.
DeltaFile
+42-66llvm/include/llvm/CodeGen/BasicTTIImpl.h
+13-25llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
+21-5llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
+16-2llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
+16-2llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
+7-10llvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
+115-1104 files not shown
+150-12610 files

FreeBSD/ports 7057579sysutils/stackit distinfo Makefile

sysutils/stackit: Update 0.48.0 => 0.49.0

Changelog:
https://github.com/stackitcloud/stackit-cli/releases/tag/v0.49.0

PR:     291379
DeltaFile
+5-5sysutils/stackit/distinfo
+1-2sysutils/stackit/Makefile
+6-72 files

LLVM/project b8a5888libclc/opencl/include/clc/opencl/synchronization utils.h

[libclc] Fix memory fence scope mapping for OpenCL (#170542)

The function `__opencl_get_memory_scope` incorrectly assumed that the
Clang built-in `__MEMORY_SCOPE_*` macros defined as bitmasks, while they
are actually defined as distinct integer values. This led to incorrect
mapping of OpenCL memory fence flags to LLVM memory scopes, causing
issues in generated code.

The fix involves updating the `__opencl_get_memory_scope` function to
return the correct `__MEMORY_SCOPE_*` values based on the provided
`cl_mem_fence_flags`. Additionally, the `__opencl_get_memory_semantics`
and the `__opencl_get_memory_scope` functions are marked as `static`
to avoid potential multiple definition issues during linking.
DeltaFile
+5-6libclc/opencl/include/clc/opencl/synchronization/utils.h
+5-61 files

LLVM/project e60a69aclang/include/clang/Frontend CompilerInvocation.h, clang/lib/Driver/ToolChains CommonArgs.cpp

[Clang] Reuse the function getOptimizationLevel in tools::addLTOOptions. (#169762)

DeltaFile
+8-20clang/lib/Driver/ToolChains/CommonArgs.cpp
+2-2clang/include/clang/Frontend/CompilerInvocation.h
+2-2clang/lib/Frontend/CompilerInvocation.cpp
+12-243 files

HardenedBSD/src 43080e4sys/compat/linuxkpi/common/include/linux ieee80211.h, sys/compat/linuxkpi/common/include/linux/soc/mediatek mtk_wed.h

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+138-32sys/compat/linuxkpi/common/include/linux/ieee80211.h
+65-36sys/netinet/tcp_syncache.c
+35-30sys/net/bpf.c
+8-31sys/contrib/dev/mediatek/mt76/util.h
+1-32sys/netinet/tcp_input.c
+27-1sys/compat/linuxkpi/common/include/linux/soc/mediatek/mtk_wed.h
+274-16221 files not shown
+365-18827 files

HardenedBSD/ports db88e5edatabases/couchdb3 Makefile, dns/dnsmasq-devel Makefile

Merge branch 'freebsd/main' into hardenedbsd/main
DeltaFile
+50-6lang/python314/pkg-plist
+28-0emulators/qemu/files/extra-patch-meson.build
+7-7games/veloren-weekly/distinfo
+5-5dns/dnsmasq-devel/Makefile
+5-4databases/couchdb3/Makefile
+3-3www/nextcloud-contacts/distinfo
+98-2522 files not shown
+145-6428 files

LLVM/project 1952c1cutils/bazel/llvm-project-overlay/clang BUILD.bazel, utils/bazel/llvm-project-overlay/llvm BUILD.bazel

Fix bazel build for 6e479668ba746ee3778b7ab59b7c415976719c93
DeltaFile
+12-1utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+1-0utils/bazel/llvm-project-overlay/clang/BUILD.bazel
+13-12 files

LLVM/project bf139dallvm/include/llvm/CodeGen SelectionDAG.h, llvm/lib/CodeGen/SelectionDAG LegalizeDAG.cpp TargetLowering.cpp

DAG: Add overload of getExternalSymbol using RTLIB::LibcallImpl
DeltaFile
+7-8llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+4-4llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+5-0llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+1-2llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
+1-0llvm/include/llvm/CodeGen/SelectionDAG.h
+18-145 files

LLVM/project 8d43197mlir/test/Dialect/XeGPU xegpu-wg-to-sg-unify-ops.mlir

[MLIR][XeGPU] Change index arithmetic ops to arith op (#170581)

This PR fixes the failure caused in the post-merge of PR #169571
DeltaFile
+10-10mlir/test/Dialect/XeGPU/xegpu-wg-to-sg-unify-ops.mlir
+10-101 files

LLVM/project ba5d29eclang/test/CodeGenCXX aggregate-lifetime-invoke.cpp

Update invoke test for tighter lifetimes
DeltaFile
+12-15clang/test/CodeGenCXX/aggregate-lifetime-invoke.cpp
+12-151 files

LLVM/project efbbca6llvm/include/llvm/IR DebugInfoMetadata.h, llvm/lib/CodeGen/AsmPrinter DwarfUnit.cpp

[llvm][DebugInfo] Allow DIDerivedType as a bound in DISubrangeType (#165880)

Consider this Ada type:

```
   type Array_Type is array (Natural range <>) of Integer;
   type Record_Type (L1, L2 : Natural) is record
      I1 : Integer;
      A1 : Array_Type (1 .. L1);
      I2 : Integer;
      A2 : Array_Type (1 .. L2);
      I3 : Integer;
   end record;
```

Here, the array fields have lengths that depend on the discriminants of
the record type. However, in this case the array lengths cannot be
expressed as DWARF location expressions, with the issue being that "A2"
has a non-constant offset, but an expression involving

    [24 lines not shown]
DeltaFile
+88-0llvm/test/DebugInfo/X86/derived-in-subrange.ll
+8-4llvm/lib/IR/Verifier.cpp
+4-1llvm/lib/IR/DebugInfoMetadata.cpp
+3-1llvm/include/llvm/IR/DebugInfoMetadata.h
+3-0llvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
+106-65 files

LLVM/project 5a47ed2llvm/lib/CodeGen/SelectionDAG LegalizeIntegerTypes.cpp

DAG: Avoid asserting on libcall action if function is unavailable

Eventually the set of available functions will be a program
dependent property, which could diverge from the static table of
functions for the subtarget. In that case, fall back to the usual
expansion.
DeltaFile
+13-7llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
+13-71 files

LLVM/project 1142c93llvm/test/CodeGen/PowerPC amo-enable.ll

Remove redundant tests from amo-enable.ll
DeltaFile
+0-40llvm/test/CodeGen/PowerPC/amo-enable.ll
+0-401 files

LLVM/project bd03b46clang/lib/CodeGen/TargetBuiltins PPC.cpp, clang/lib/Sema SemaPPC.cpp

[PowerPC] Add AMO load builtins for conditional increment/decrement
DeltaFile
+78-0llvm/test/CodeGen/PowerPC/amo-enable.ll
+76-1clang/test/CodeGen/PowerPC/builtins-ppc-amo.c
+26-0llvm/lib/Target/PowerPC/PPCISelLowering.cpp
+24-0clang/test/CodeGen/PowerPC/builtins-amo-err.c
+19-0clang/lib/Sema/SemaPPC.cpp
+12-0clang/lib/CodeGen/TargetBuiltins/PPC.cpp
+235-14 files not shown
+259-110 files

LLVM/project d2f526dclang/include/clang/AST OpenMPClause.h, clang/include/clang/Sema SemaOpenMP.h

Minor formatting changes.
DeltaFile
+6-5clang/include/clang/AST/OpenMPClause.h
+4-2clang/lib/Sema/SemaOpenMP.cpp
+4-2clang/include/clang/Sema/SemaOpenMP.h
+2-3clang/lib/Parse/ParseOpenMP.cpp
+1-1clang/test/OpenMP/target_data_use_device_ptr_fallback_messages.cpp
+17-135 files

FreeBSD/ports a573633games/veloren-weekly distinfo Makefile

games/veloren-weekly: update to s20251203

Changes:        https://gitlab.com/veloren/veloren/-/compare/4773568081...99d7d92d08
(cherry picked from commit df464f9ece76874e90bb1011fb9d60222d8ad069)
DeltaFile
+7-7games/veloren-weekly/distinfo
+2-2games/veloren-weekly/Makefile
+2-2games/veloren-weekly/Makefile.crates
+11-113 files

FreeBSD/ports 88762fadevel/sdl12-compat distinfo Makefile

devel/sdl12-compat: update to 1.2.72

Changes:        https://github.com/libsdl-org/sdl12-compat/releases/tag/release-1.2.72
Reported by:    GitHub (watch releases)

(cherry picked from commit f2753cb3615fa09b7cce8d522878c4e5016b9a69)
DeltaFile
+3-3devel/sdl12-compat/distinfo
+1-1devel/sdl12-compat/Makefile
+4-42 files

FreeBSD/ports 629d9fegraphics/mesa-devel distinfo Makefile

graphics/mesa-devel: update to 25.3.b.1904

Changes:        https://gitlab.freedesktop.org/mesa/mesa/-/compare/21cdbfa2231...b75cd07265b
DeltaFile
+3-3graphics/mesa-devel/distinfo
+2-2graphics/mesa-devel/Makefile
+5-52 files

HardenedBSD/ports 629d9fegraphics/mesa-devel distinfo Makefile

graphics/mesa-devel: update to 25.3.b.1904

Changes:        https://gitlab.freedesktop.org/mesa/mesa/-/compare/21cdbfa2231...b75cd07265b
DeltaFile
+3-3graphics/mesa-devel/distinfo
+2-2graphics/mesa-devel/Makefile
+5-52 files

FreeBSD/ports df464f9games/veloren-weekly distinfo Makefile

games/veloren-weekly: update to s20251203

Changes:        https://gitlab.com/veloren/veloren/-/compare/4773568081...99d7d92d08
DeltaFile
+7-7games/veloren-weekly/distinfo
+2-2games/veloren-weekly/Makefile
+2-2games/veloren-weekly/Makefile.crates
+11-113 files

HardenedBSD/ports df464f9games/veloren-weekly distinfo Makefile

games/veloren-weekly: update to s20251203

Changes:        https://gitlab.com/veloren/veloren/-/compare/4773568081...99d7d92d08
DeltaFile
+7-7games/veloren-weekly/distinfo
+2-2games/veloren-weekly/Makefile
+2-2games/veloren-weekly/Makefile.crates
+11-113 files

FreeBSD/ports f2753cbdevel/sdl12-compat distinfo Makefile

devel/sdl12-compat: update to 1.2.72

Changes:        https://github.com/libsdl-org/sdl12-compat/releases/tag/release-1.2.72
Reported by:    GitHub (watch releases)
DeltaFile
+3-3devel/sdl12-compat/distinfo
+1-1devel/sdl12-compat/Makefile
+4-42 files

HardenedBSD/ports f2753cbdevel/sdl12-compat distinfo Makefile

devel/sdl12-compat: update to 1.2.72

Changes:        https://github.com/libsdl-org/sdl12-compat/releases/tag/release-1.2.72
Reported by:    GitHub (watch releases)
DeltaFile
+3-3devel/sdl12-compat/distinfo
+1-1devel/sdl12-compat/Makefile
+4-42 files

LLVM/project ecbdeddllvm/lib/Target/AMDGPU AMDGPUISelLowering.cpp, llvm/test/CodeGen/AMDGPU llvm.exp10.ll

AMDGPU: Fix broken exp10 lowering for f16

This was calling the exp handling, so multiplying by the wrong
constant.

GlobalISel is still broken, but missing the fast exp10 path.
This is tracked in https://github.com/llvm/llvm-project/issues/170576
DeltaFile
+385-126llvm/test/CodeGen/AMDGPU/llvm.exp10.ll
+7-3llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
+392-1292 files

LLVM/project f914b1fclang/lib/CodeGen CGCall.h CGCall.cpp, clang/test/CodeGen stack-usage-lifetimes.c

[clang] Use tighter lifetime bounds for C temporary arguments

In C, consecutive statements in the same scope are under
CompoundStmt/CallExpr, while in C++ they typically fall under
CompoundStmt/ExprWithCleanup. This leads to different behavior with
respect to where pushFullExprCleanUp inserts the lifetime end markers
(e.g., at the end of scope).

For these cases, we can track and insert the lifetime end markers right
after the call completes. Allowing the stack space to be reused
immediately. This partially addresses #109204 and #43598 for improving
stack usage.
DeltaFile
+19-0clang/lib/CodeGen/CGCall.h
+14-4clang/lib/CodeGen/CGCall.cpp
+6-6clang/test/CodeGen/stack-usage-lifetimes.c
+1-1clang/test/CodeGenCXX/stack-reuse-miscompile.cpp
+40-114 files

LLVM/project a17f2d1clang/lib/CodeGen CGCall.cpp

Update comment to be more accurate
DeltaFile
+3-5clang/lib/CodeGen/CGCall.cpp
+3-51 files

LLVM/project 08189adclang/test/CodeGenCXX aggregate-lifetime-invoke.cpp

Add test for invoke instructions
DeltaFile
+45-0clang/test/CodeGenCXX/aggregate-lifetime-invoke.cpp
+45-01 files

LLVM/project a92d090clang/lib/Sema SemaChecking.cpp, clang/test/Sema warn-nontrivial-struct-memaccess-ptrauth.c

[clang] warn_cstruct_memaccess and warn_cxxstruct_memaccess are too agressive about initializers

These warnings are triggered for zeroing initializers of non-trivially
initializable and non-trivially copyable types.

This results in significant numbers of warnings in idiomatic object
initialization code, where memset and similar are used to ensure no
stale data is present in fields or padding bytes.

Addresses #156996
DeltaFile
+44-5clang/test/SemaCXX/warn-memaccess.cpp
+30-15clang/test/Sema/warn-nontrivial-struct-memaccess-ptrauth.c
+31-8clang/test/SemaObjC/warn-nontrivial-struct-memaccess.m
+12-3clang/lib/Sema/SemaChecking.cpp
+117-314 files

LLVM/project 1a09ac5llvm/include/llvm/ExecutionEngine/Orc CallViaEPC.h CallSPSViaEPC.h, llvm/unittests/ExecutionEngine/Orc CallSPSViaEPCTest.cpp CMakeLists.txt

[ORC] Add CallViaEPC and CallSPSViaEPC utilities. (#170464)

These utilities simplify making typed async calls via
ExecutorProcessControl::callWrapperAsync.

CallViaEPC.h provides utilities for making typed async calls using a
given Serializer to serialize arguments and deserialize results.

callViaEPC takes a result handler function object (accepting
Expected<T>), an EPC reference, a Serializer, a target function address,
and arguments. The return type T is inferred from the handler's argument
type using CallableTraitsHelper.

EPCCaller wraps an ExecutorProcessControl& and Serializer, simplifying
repeated calls with the same serialization.

EPCCall wraps an EPCCaller and target function address, simplifying
repeated calls to a specific wrapper function.


    [9 lines not shown]
DeltaFile
+102-0llvm/include/llvm/ExecutionEngine/Orc/CallViaEPC.h
+90-0llvm/unittests/ExecutionEngine/Orc/CallSPSViaEPCTest.cpp
+79-0llvm/include/llvm/ExecutionEngine/Orc/CallSPSViaEPC.h
+1-0llvm/unittests/ExecutionEngine/Orc/CMakeLists.txt
+272-04 files

LLVM/project d7fb086lldb/include/lldb/Core Module.h, lldb/source/Breakpoint BreakpointResolverName.cpp

[lldb] Refactor LookupInfo object to be per-language (#168797)

Some months ago, the LookupInfo constructor logic was refactored to not
depend on language specific logic, and use languages plugins instead. In
this refactor, when the language type is unknown, a single LookupInfo
object will handle multiple languages. This doesn't work well, as
multiple languages might want to configure the LookupInfo object in
different ways. For example, different languages might want to set the
m_lookup_name differently from each other, but the previous
implementation would pick the first name a language provided, and
effectively ignored every other language. Other fields of the LookupInfo
object are also configured in incompatible ways.

This approach doesn't seem to be a problem upstream, since only the
C++/Objective-C language plugins are available, but it broke downstream
on the Swift fork, as adding Swift to the list of default languages when
the language type is unknown breaks C++ tests.

This patch makes it so instead of building a single LookupInfo object

    [3 lines not shown]
DeltaFile
+125-0lldb/unittests/Core/ModuleTest.cpp
+58-32lldb/source/Core/Module.cpp
+27-23lldb/source/Core/ModuleList.cpp
+36-2lldb/include/lldb/Core/Module.h
+22-11lldb/source/Breakpoint/BreakpointResolverName.cpp
+26-3lldb/source/Symbol/SymbolContext.cpp
+294-7110 files not shown
+351-8216 files