LLVM/project bbe1774clang/lib/CIR/CodeGen CIRGenExprAggregate.cpp CIRGenExprScalar.cpp, clang/test/CIR/CodeGen builtin-bit-cast.cpp

[Clang][CIR] Implement CIRGen logic for __builtin_bit_cast

NOTE: This patch merely upstreams code from
  * https://github.com/llvm/clangir.

This Op was originally implemented by Sirui Mu in #762 Further
modification were made by other ClangIR contributors.

co-authored-by: Sirui Mu <msrlancern at gmail.com>
DeltaFile
+135-0clang/test/CIR/CodeGen/builtin-bit-cast.cpp
+24-0clang/lib/CIR/CodeGen/CIRGenExprAggregate.cpp
+17-0clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
+176-03 files

LLVM/project 9052a77clang/include/clang/CIR/Dialect/IR CIROps.td, clang/lib/CIR/CodeGen CIRGenBuilder.h

[CIR] Add cir.libc.memcpy Op

The operation is a 1:1 mapping to libc's memcpy.

NOTE: This patch merely upstreams code from
  * https://github.com/llvm/clangir.

This Op was originally implemented by Vinicius Couto Espindola. Further
modification were made by other ClangIR contributors.

co-authored-by: Vinicius Couto Espindola <vini.couto.e at gmail.com>
DeltaFile
+47-0clang/include/clang/CIR/Dialect/IR/CIROps.td
+37-0clang/test/CIR/IR/invalid-memcpy.cir
+12-0clang/test/CIR/Lowering/libc.cir
+10-0clang/lib/CIR/CodeGen/CIRGenBuilder.h
+10-0clang/test/CIR/IR/libc-memcpy.cir
+9-0clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+125-06 files

LLVM/project 1729d1aclang/include/clang/Analysis/Analyses/LifetimeSafety LifetimeAnnotations.h, clang/lib/Analysis/LifetimeSafety LifetimeAnnotations.cpp FactsGenerator.cpp

do this only for lifetime analysis
DeltaFile
+32-2clang/test/Sema/warn-lifetime-analysis-nocfg.cpp
+10-5clang/lib/Analysis/LifetimeSafety/LifetimeAnnotations.cpp
+4-2clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp
+6-0clang/test/Sema/Inputs/lifetime-analysis.h
+2-1clang/include/clang/Analysis/Analyses/LifetimeSafety/LifetimeAnnotations.h
+2-1clang/lib/Sema/CheckExprLifetime.cpp
+56-116 files

LLVM/project 45af940clang/include/clang/Analysis/Analyses/LifetimeSafety FactsGenerator.h, clang/lib/Analysis/LifetimeSafety FactsGenerator.cpp

Detect dangling references to field members
DeltaFile
+15-15clang/test/Sema/warn-lifetime-analysis-nocfg.cpp
+28-0clang/test/Sema/warn-lifetime-safety.cpp
+15-0clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp
+3-3clang/test/Sema/warn-lifetime-safety-suggestions.cpp
+1-0clang/include/clang/Analysis/Analyses/LifetimeSafety/FactsGenerator.h
+62-185 files

LLVM/project 027a86bclang/lib/Analysis/LifetimeSafety LifetimeAnnotations.cpp, clang/test/Sema warn-lifetime-analysis-nocfg.cpp

[LifetimeSafety] Track dereference operators for GSL pointers in STL (#176643)

Improve lifetime analysis for STL iterators in range-based `for` loops
by tracking dereference operator of GSL pointers.

Added support for dereference operators (`*`) for GSL pointers in STL to
track pointer value instead of `this` arg reference.

Tests:
- Removed a test which started to fail and didn't look correctly
annotated (?).
- Added new test cases for range-based for loop variables and iterator
arrow operators

## **Thoughts on overall direction:**

I feel we are twisting clang too much here to hardcode heuristics which
cannot be otherwise expressed through available annotations. This had
initially started by the intention of implicitly annotating STL to

    [76 lines not shown]
DeltaFile
+53-5clang/test/Sema/warn-lifetime-analysis-nocfg.cpp
+9-1clang/lib/Analysis/LifetimeSafety/LifetimeAnnotations.cpp
+62-62 files

FreeNAS/freenas 2cdf0b6src/middlewared/middlewared/plugins/smb_ passdb.py util_passdb.py

Fix flake8 issues
DeltaFile
+1-4src/middlewared/middlewared/plugins/smb_/passdb.py
+1-0src/middlewared/middlewared/plugins/smb_/util_passdb.py
+2-42 files

FreeNAS/freenas 35fcfc3src/middlewared/middlewared/plugins/pool_ pool_operations.py

NAS-139131 / 25.10.2 / Update zfs_resilver_min_time_ms settings (by amotin) (#18058)

Upstream https://github.com/openzfs/zfs/pull/18060 changed the default
value from 3000 to 1500 to reduce resilver effects on payload writes.
Follow it in our code.

Original PR: https://github.com/truenas/middleware/pull/17930

Co-authored-by: Alexander Motin <alexander.motin at TrueNAS.com>
DeltaFile
+2-2src/middlewared/middlewared/plugins/pool_/pool_operations.py
+2-21 files

FreeBSD/doc 5d208ecdocumentation/static/pgpkeys security-officer.key, website/static/security so_public_key.asc

Extend security-officer keys for another couple years.

Certify key until 2030 (planning to move to a PQC algo then).
Encrypt and Sign keys until 2028.

Approved by:    so
DeltaFile
+171-123documentation/static/pgpkeys/security-officer.key
+71-163website/static/security/so_public_key.asc
+242-2862 files

FreeNAS/freenas 9289fc2src/middlewared/middlewared/plugins/smb_ util_passdb.py

Fix typo
DeltaFile
+1-1src/middlewared/middlewared/plugins/smb_/util_passdb.py
+1-11 files

LLVM/project 73c1d99flang/test/Examples omp-device-constructs.f90 omp-in-reduction-clause.f90

[flang][AIX] XFAIL tests that use plugin (NFC) (#176489)

DeltaFile
+7-6flang/test/Examples/omp-device-constructs.f90
+6-5flang/test/Examples/omp-in-reduction-clause.f90
+6-5flang/test/Examples/omp-atomic.f90
+4-3flang/test/Examples/omp-sections.f90
+4-3flang/test/Examples/omp-order-clause.f90
+3-2flang/test/Examples/omp-declarative-directive.f90
+30-246 files not shown
+39-2712 files

FreeNAS/freenas e882592src/middlewared/middlewared/plugins/smb_ util_passdb.py passdb.py

Properly handle clustered passdb reinit
DeltaFile
+12-4src/middlewared/middlewared/plugins/smb_/util_passdb.py
+4-1src/middlewared/middlewared/plugins/smb_/passdb.py
+16-52 files

LLVM/project 1bad169llvm/lib/Transforms/Vectorize VPlanValue.h

llvm: Add LLVM_ABI_FOR_TEST annotations in VPlanValue (#176787)

This is needed to build LLVM as a DLL on Windows.

This effort is tracked in #109483.
DeltaFile
+2-2llvm/lib/Transforms/Vectorize/VPlanValue.h
+2-21 files

LLVM/project 7782015clang/include/clang/Analysis/Analyses/LifetimeSafety FactsGenerator.h, clang/lib/Analysis/LifetimeSafety FactsGenerator.cpp

Detect dangling references to field members
DeltaFile
+15-15clang/test/Sema/warn-lifetime-analysis-nocfg.cpp
+28-0clang/test/Sema/warn-lifetime-safety.cpp
+15-0clang/lib/Analysis/LifetimeSafety/FactsGenerator.cpp
+3-3clang/test/Sema/warn-lifetime-safety-suggestions.cpp
+1-0clang/include/clang/Analysis/Analyses/LifetimeSafety/FactsGenerator.h
+62-185 files

FreeBSD/ports 2ab68famultimedia/gpac Makefile

multimedia/gpac: fix build on powerpc64le

ld: error: relocation R_PPC64_TOC16_LO cannot be used against symbol 'gf_sg_handle_dom_event'; recompile with -fPIC
>>> defined in scenegraph/dom_events.o
>>> referenced by dom_events.c
>>>               scenegraph/dom_events.o:(gf_dom_listener_build_ex)

ld: error: relocation R_PPC64_TOC16_LO cannot be used against symbol 'gf_sc_on_event'; recompile with -fPIC
>>> defined in compositor/compositor.o
>>> referenced by compositor.c
>>>               compositor/compositor.o:(gf_sc_load)

ld: error: relocation R_PPC64_TOC16_LO cannot be used against symbol 'gf_scene_get_time'; recompile with -fPIC
>>> defined in compositor/scene.o
>>> referenced by scene.c
>>>               compositor/scene.o:(gf_scene_new)
cc: error: linker command failed with exit code 1 (use -v to see invocation)
DeltaFile
+2-0multimedia/gpac/Makefile
+2-01 files

FreeBSD/doc e33b433website/content/en/cgi ports.cgi

ports.cgi: fix html errors
DeltaFile
+1-1website/content/en/cgi/ports.cgi
+1-11 files

HardenedBSD/src b08b25blib/libthr/tests pthread_tryjoin_test.c, lib/libthr/thread thr_join.c

Merge remote-tracking branch 'origin/hardened/current/master' into hardened/current/cross-dso-cfi
DeltaFile
+54-22lib/libthr/thread/thr_join.c
+62-0lib/libthr/tests/pthread_tryjoin_test.c
+20-7sys/x86/x86/local_apic.c
+23-3share/man/man3/pthread_join.3
+0-20sys/amd64/vmm/vmm.c
+11-1sys/kern/init_main.c
+170-5312 files not shown
+204-6918 files

FreeBSD/doc a64fe28website/content/en/cgi ports.cgi

ports.cgi: improve help page
DeltaFile
+6-0website/content/en/cgi/ports.cgi
+6-01 files

FreeBSD/ports 110ee8dlang/rust-nightly distinfo Makefile

lang/rust-nightly: update 1.94.0.20260110 → 1.95.0.20260118

Approved by:    rust (implicit)
DeltaFile
+3-3lang/rust-nightly/distinfo
+2-2lang/rust-nightly/Makefile
+5-52 files

LLVM/project cc4e7e7llvm/lib/Target/AMDGPU AMDGPURegBankLegalizeRules.cpp, llvm/test/CodeGen/AMDGPU/GlobalISel llvm.amdgcn.if.break.i64.ll

[AMDGPU][GlobalISel] Add RegBankLegalize support for S64 amdgcn_if_break (#176496)

DeltaFile
+3-4llvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.if.break.i64.ll
+1-0llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp
+4-42 files

LLVM/project 7f8557cmlir/lib/Dialect/LLVMIR/IR LLVMDialect.cpp, mlir/test/Dialect/LLVMIR canonicalize.mlir

[mlir] Always update ExtractValue to use last container in insert chain (#176588)

The current logic only updates the container operand to the last
`InsertValueOp` in a chain if we haven't switched to a nested insert
chain. Instead, keep track of the new container value and extract
position at all times, and always update if we have found a point higher
up in the chain to extract from.

This allows us to bypass more insertions (see the updated test) when we
are accessing nested struct members. It also allows us to move the
constant check back to the top, because we can just do it on a
successive call to fold.

Also added a test for a missing case (it is unchanged by this PR).
DeltaFile
+23-25mlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
+19-5mlir/test/Dialect/LLVMIR/canonicalize.mlir
+42-302 files

LLVM/project 7e18edcllvm/lib/Target/WebAssembly WebAssemblyMemIntrinsicResults.cpp WebAssemblyPeephole.cpp

WebAssembly: Use LibcallLoweringInfo

Query libcalls through analysis instead of the TargetLowering
copy. This could be nicer by parsing the libcall name and checking
against the LibcallImpl, but that's probably slower for such a specific
case (alternatively, ExternalSymbol should support encoding as a LibcallImpl).
DeltaFile
+37-17llvm/lib/Target/WebAssembly/WebAssemblyMemIntrinsicResults.cpp
+22-6llvm/lib/Target/WebAssembly/WebAssemblyPeephole.cpp
+59-232 files

LLVM/project 014a6cdllvm/lib/Target/AMDGPU AMDGPURegBankLegalizeHelper.cpp AMDGPURegBankLegalizeRules.cpp, llvm/test/CodeGen/AMDGPU/GlobalISel mad.ll

[AMDGPU][GlobalISel] Add RegBankLegalize support for G_AMDGPU_MAD_U64_U32 (#176060)

Also add partial G_MUL support in the form of uniform S32 rule for G_MUL
since lowering G_AMDGPU_MAD_U64_U32 requires both uniform and divergent
S32 G_MUL.
DeltaFile
+122-0llvm/test/CodeGen/AMDGPU/GlobalISel/mad.ll
+55-3llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeHelper.cpp
+7-1llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp
+1-0llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeHelper.h
+1-0llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.h
+186-45 files

LLVM/project 95bae40llvm/test/tools/llvm-mca/AArch64/Cortex A57-basic-instructions.s

[AArch64] Add test for Cortex-A57 basic instructions (#176413)

DeltaFile
+2,343-0llvm/test/tools/llvm-mca/AArch64/Cortex/A57-basic-instructions.s
+2,343-01 files

HardenedBSD/src 31f652clib/libthr/tests pthread_tryjoin_test.c, lib/libthr/thread thr_join.c

Merge branch 'freebsd/current/main' into hardened/current/master
DeltaFile
+54-22lib/libthr/thread/thr_join.c
+62-0lib/libthr/tests/pthread_tryjoin_test.c
+20-7sys/x86/x86/local_apic.c
+23-3share/man/man3/pthread_join.3
+0-20sys/amd64/vmm/vmm.c
+11-1sys/kern/init_main.c
+170-5312 files not shown
+204-6918 files

LLVM/project 2668f87llvm/test/CodeGen/AMDGPU/GlobalISel combine-short-clamp.ll

[AMDGPU][NFC] Update test to use update_llc_test_checks (#176595)

DeltaFile
+256-55llvm/test/CodeGen/AMDGPU/GlobalISel/combine-short-clamp.ll
+256-551 files

LLVM/project 2eba7dellvm/lib/Target/AMDGPU AMDGPURegBankLegalizeRules.cpp, llvm/test/CodeGen/AMDGPU/GlobalISel regbankselect-amdgpu-smed3.mir combine-short-clamp.ll

Add uniform clamp test, remove *.mir tests, move CVT opcode.
DeltaFile
+0-46llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgpu-smed3.mir
+44-0llvm/test/CodeGen/AMDGPU/GlobalISel/combine-short-clamp.ll
+0-41llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-amdgpu-cvt-pk-i16-i32.mir
+7-4llvm/lib/Target/AMDGPU/AMDGPURegBankLegalizeRules.cpp
+51-914 files

FreeNAS/freenas 19aa032src/middlewared/middlewared/utils tdb.py

Fix flake8 issues
DeltaFile
+5-4src/middlewared/middlewared/utils/tdb.py
+5-41 files

FreeNAS/freenas dd9b84csrc/middlewared/middlewared/plugins/smb_ util_passdb.py

Remove dead code
DeltaFile
+0-7src/middlewared/middlewared/plugins/smb_/util_passdb.py
+0-71 files

LLVM/project 696b91aopenmp/tools/omptest CMakeLists.txt

[OpenMP][omptest] Fix CMake target properties (#176802)

Fix visibility of target properties:
 * INCLUDE_DIRECTORIES
 * COMPILE_DEFINITIONS

implicitly pulled in from `default_gtest`.

Fixes: https://github.com/llvm/llvm-project/pull/159416
DeltaFile
+1-1openmp/tools/omptest/CMakeLists.txt
+1-11 files

HardenedBSD/src 39cb9fbusr.bin/grep zgrep.1, usr.bin/grep/tests grep_freebsd_test.sh

Merge branch 'freebsd/15-stable/main' into hardened/15-stable/main
DeltaFile
+0-18usr.bin/grep/zgrep.1
+11-0usr.bin/grep/tests/grep_freebsd_test.sh
+11-182 files