LLVM/project 19efe0bllvm/include/llvm/Transforms/IPO Instrumentor.h, llvm/lib/Transforms/IPO Instrumentor.cpp

[Instrumentor] Add unreachable support; unreachable stack trace printing

Allow to instrument unreachable and provide a use case to identify an
unreachable was reached.
DeltaFile
+21-0llvm/include/llvm/Transforms/IPO/Instrumentor.h
+12-0llvm/test/Instrumentation/Instrumentor/unreachable.ll
+12-0llvm/lib/Transforms/IPO/Instrumentor.cpp
+5-0llvm/test/Instrumentation/Instrumentor/default_config.json
+50-04 files

LLVM/project d038269llvm/lib/Target/WebAssembly WebAssemblyGISel.td, llvm/lib/Target/WebAssembly/GISel WebAssemblyLegalizerInfo.cpp

Implement saturating fp to int
DeltaFile
+424-0llvm/test/CodeGen/WebAssembly/GlobalISel/instructions/fptoui_sat.ll
+418-0llvm/test/CodeGen/WebAssembly/GlobalISel/instructions/fptosi_sat.ll
+6-12llvm/lib/Target/WebAssembly/GISel/WebAssemblyLegalizerInfo.cpp
+13-0llvm/lib/Target/WebAssembly/WebAssemblyGISel.td
+861-124 files

LLVM/project c5a52a3llvm/lib/Target/WebAssembly/GISel WebAssemblyLegalizerInfo.cpp, llvm/test/CodeGen/WebAssembly/GlobalISel/instructions is_fpclass.ll fcmp.ll

Implement floating-point comparisons
DeltaFile
+490-0llvm/test/CodeGen/WebAssembly/GlobalISel/instructions/is_fpclass.ll
+436-0llvm/test/CodeGen/WebAssembly/GlobalISel/instructions/fcmp.ll
+308-0llvm/lib/Target/WebAssembly/GISel/WebAssemblyLegalizerInfo.cpp
+225-0llvm/test/CodeGen/WebAssembly/GlobalISel/instructions/fminimumnum.ll
+219-0llvm/test/CodeGen/WebAssembly/GlobalISel/instructions/fmaximumnum.ll
+55-0llvm/test/CodeGen/WebAssembly/GlobalISel/instructions/fmaxnum.ll
+1,733-03 files not shown
+1,852-09 files

LLVM/project 4fdec21llvm/test/CodeGen/WebAssembly/GlobalISel/instructions icmp.ll select.ll

Implement integer comparisons and `G_SELECT`
DeltaFile
+277-0llvm/test/CodeGen/WebAssembly/GlobalISel/instructions/icmp.ll
+94-0llvm/test/CodeGen/WebAssembly/GlobalISel/instructions/select.ll
+89-0llvm/test/CodeGen/WebAssembly/GlobalISel/instructions/ucmp.ll
+81-0llvm/test/CodeGen/WebAssembly/GlobalISel/instructions/scmp.ll
+77-0llvm/test/CodeGen/WebAssembly/GlobalISel/instructions/umin.ll
+77-0llvm/test/CodeGen/WebAssembly/GlobalISel/instructions/umax.ll
+695-03 files not shown
+857-09 files

LLVM/project 66c64a3mlir/include/mlir/Dialect/OpenMP OpenMPOps.td, mlir/lib/Dialect/OpenMP/IR OpenMPDialect.cpp

Require explicit yield in iterator op

Remove the implicit terminator trait from omp.iterator so iterator
modifiers must explicitly yield the value used to form the iterated list.

Add and update verfier and test accordingly.
DeltaFile
+15-0mlir/test/Dialect/OpenMP/ops.mlir
+5-8mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+9-0mlir/test/Dialect/OpenMP/invalid.mlir
+1-3mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
+30-114 files

LLVM/project cca6a4cllvm/lib/Target/SPIRV SPIRVInstructionSelector.cpp, llvm/test/CodeGen/SPIRV/extensions/SPV_INTEL_function_pointers fp_cmp.ll

[SPIR-V] Match OpPtrEqual/OpPtrNotEqual operand types via OpBitcast (#197469)
DeltaFile
+15-2llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
+8-8llvm/test/CodeGen/SPIRV/extensions/SPV_INTEL_function_pointers/fp_cmp.ll
+23-102 files

LLVM/project f4d0481clang/test/Frontend rewrite-includes-bom.c

Fix failure for clang/test/Frontend/rewrite-includes-bom.c for zOS (#197501)

This test is failing on zOS due to the lowercase HEX characters in the BOM. This PR changes the test to do a case-insensitive search.
DeltaFile
+2-2clang/test/Frontend/rewrite-includes-bom.c
+2-21 files

LLVM/project ce50ee4clang/test/CXX/basic/basic.link p19.cppm

Remove utf-8 characters from clang/test/CXX/basic/basic.link/p19.cppm (#197500)

This PR fixes the failure for `FAIL: Clang :: CXX/basic/basic.link/p19.cppm` on zOS.
DeltaFile
+3-3clang/test/CXX/basic/basic.link/p19.cppm
+3-31 files

LLVM/project 7b48d5cmlir/include/mlir/Dialect/OpenMP OpenMPOps.td, mlir/lib/Dialect/OpenMP/IR OpenMPDialect.cpp

Simplify map iterator clause assembly

- Split MLIR map syntax into separate map_entries(...) and map_iterated(...),
  removing the custom MapEntryList parser/printer.
- Moved omp.target map_iterated out of TargetOpRegion
  - it now prints before the target region instead of as map_iterated_entries(...) after the region.
- Renamed LLVMIR TODO helper to clause-style checkMap.
- Added DeclareMapperInfoOp builder from DeclareMapperInfoOperands
  and updated Flang call sites so they do not need to spell out newly
  added operands..
DeltaFile
+9-85mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+14-14mlir/test/Dialect/OpenMP/ops.mlir
+12-12mlir/test/Dialect/OpenMP/invalid.mlir
+7-7mlir/test/Target/LLVMIR/openmp-todo.mlir
+6-8mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+6-3mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
+54-1293 files not shown
+60-1379 files

LLVM/project b92af42clang/test/CodeGenHLSL/builtins asuint_mat.hlsl asfloat_mat.hlsl, clang/test/SemaHLSL/BuiltIns asuint_mat-errors.hlsl asfloat_mat-errors.hlsl

[HLSL] Adding matrix support for asfloat, asint and asuint casting functions. (#197039)

This patch adds matrix support for as uint, asint and asfloat casting
functions. Those are really similar and small, that is why they were
packed into the same patch.

Fix: #184471, #184472 and #184474

---------

Co-authored-by: Joao Saffran <jderezende at microsoft.com>
DeltaFile
+33-0clang/test/SemaHLSL/BuiltIns/asuint_mat-errors.hlsl
+29-0clang/test/SemaHLSL/BuiltIns/asfloat_mat-errors.hlsl
+29-0clang/test/SemaHLSL/BuiltIns/asint_mat-errors.hlsl
+21-0clang/test/CodeGenHLSL/builtins/asuint_mat.hlsl
+21-0clang/test/CodeGenHLSL/builtins/asfloat_mat.hlsl
+21-0clang/test/CodeGenHLSL/builtins/asint_mat.hlsl
+154-05 files not shown
+184-011 files

LLVM/project befb2a6clang/lib/Headers/hlsl hlsl_compat_overloads.h, clang/test/CodeGenHLSL/builtins atan2_mat.hlsl atan2-overloads_mat.hlsl

[HLSL] Add matrix support to atan2 (#194984)

This patch updates atan2 hlsl intrinsic overloads to support matrix
types.
Fix: https://github.com/llvm/llvm-project/issues/184476

---------

Co-authored-by: Deric C. <cheung.deric at gmail.com>
Co-authored-by: Farzon Lotfi <farzonl at gmail.com>
DeltaFile
+551-0llvm/test/CodeGen/SPIRV/hlsl-intrinsics/atan2_mat.ll
+202-0clang/test/CodeGenHLSL/builtins/atan2_mat.hlsl
+69-0llvm/test/CodeGen/DirectX/atan2_mat.ll
+52-0clang/test/CodeGenHLSL/builtins/atan2-overloads_mat.hlsl
+39-0clang/lib/Headers/hlsl/hlsl_compat_overloads.h
+26-1clang/test/SemaHLSL/BuiltIns/binary-compat-overload-warnings.hlsl
+939-14 files not shown
+970-710 files

LLVM/project f0f0c64llvm/lib/Target/WebAssembly WebAssemblyRegisterInfo.cpp, llvm/lib/Target/WebAssembly/GISel WebAssemblyInstructionSelector.cpp

Implement `COPY`
DeltaFile
+218-0llvm/test/CodeGen/WebAssembly/GlobalISel/instructions/copy.mir
+28-1llvm/lib/Target/WebAssembly/GISel/WebAssemblyInstructionSelector.cpp
+17-2llvm/lib/Target/WebAssembly/WebAssemblyRegisterInfo.cpp
+263-33 files

LLVM/project 41e76dellvm/include/llvm/ADT DenseMapInfo.h

[ADT] Hash pointers with densemap::detail::mix (#197390)

The current DenseMapInfo<T*>::getHashValue is very weak.
Distinct bump-allocated pointers — the dominant key shape in clang and
the LLVM IR layer — share their high bits and differ only in low bits
that this hash collapses to a short range of buckets.

Quadratic probing has been masking the weakness because its probe
sequence spreads collisions out, but the latent quality issue still
hurts at high load factor and shows up directly as primary clustering
once probing becomes linear.

DeclContext::lookupImpl over a StoredDeclsMap keyed on DeclarationName
is the hottest example: the underlying IdentifierInfo* comes from
clang's bump allocator, so consecutive identifiers land on consecutive
low-bit hash values.

Switch to densemap::detail::mix, the splitmix64 mixer already defined
above and already used by the >32-bit unsigned integral specialization.

    [6 lines not shown]
DeltaFile
+1-2llvm/include/llvm/ADT/DenseMapInfo.h
+1-21 files

LLVM/project 0081900mlir/include/mlir/Dialect/OpenMP OpenMPOps.td, mlir/lib/Dialect/OpenMP/IR OpenMPDialect.cpp

Fix based on feedback

- Split MLIR map syntax into separate map_entries(...) and map_iterated(...), removing the custom MapEntryList parser/printer.
- Moved omp.target map_iterated out of TargetOpRegion; it now prints before the target region instead of as map_iterated_entries(...) after the region.
- Renamed LLVMIR TODO helper to clause-style checkMap.
- Added DeclareMapperInfoOp builder from DeclareMapperInfoOperands and updated Flang call sites.
DeltaFile
+9-85mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+14-14mlir/test/Dialect/OpenMP/ops.mlir
+12-12mlir/test/Dialect/OpenMP/invalid.mlir
+7-7mlir/test/Target/LLVMIR/openmp-todo.mlir
+6-8mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
+6-3mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
+54-1293 files not shown
+60-1379 files

FreeNAS/freenas 54541b8src/middlewared/middlewared/plugins/truenas tn.py __init__.py

more ruff fixes
DeltaFile
+3-2src/middlewared/middlewared/plugins/truenas/tn.py
+2-1src/middlewared/middlewared/plugins/truenas/__init__.py
+5-32 files

LLVM/project 035ed7dllvm/test/CodeGen/AMDGPU div_i128.ll build-vector-packed-partial-undef.ll, llvm/test/CodeGen/AMDGPU/GlobalISel sdivrem.ll udivrem.ll

AMDGPU/GlobalISel: Switch some tests to -new-reg-bank-select
DeltaFile
+3,436-2,769llvm/test/CodeGen/AMDGPU/GlobalISel/sdivrem.ll
+2,801-2,109llvm/test/CodeGen/AMDGPU/GlobalISel/udivrem.ll
+1,609-1,359llvm/test/CodeGen/AMDGPU/GlobalISel/fshl.ll
+526-554llvm/test/CodeGen/AMDGPU/div_i128.ll
+431-169llvm/test/CodeGen/AMDGPU/build-vector-packed-partial-undef.ll
+287-287llvm/test/CodeGen/AMDGPU/memset-param-combinations.ll
+9,090-7,247171 files not shown
+11,868-9,512177 files

FreeNAS/freenas 01828d8src/freenas/usr/local/bin truenas-autotune.py, src/middlewared/middlewared/plugins/container info.py

ruff fix
DeltaFile
+3-2src/freenas/usr/local/bin/truenas-autotune.py
+2-1src/middlewared/middlewared/plugins/container/info.py
+5-32 files

FreeBSD/doc f583d7dwebsite/content/en where.adoc

where: Installation becomes introductory paragraph

This page is really long, and has no introductory paragraph.
Instead of hiding the installation section at the bottom, simplify
it into an introductory paragraph.

Reviewed by:            cperciva
Differential Revision:  https://reviews.freebsd.org/D56956
DeltaFile
+4-12website/content/en/where.adoc
+4-121 files

LLVM/project 7091f88offload/plugins-nextgen/common/include PluginInterface.h, offload/plugins-nextgen/common/src PluginInterface.cpp

[NFC][offload] Some more clarifying renaming of threads and blocks variables (#197511)

As requested in https://github.com/llvm/llvm-project/pull/197419.
DeltaFile
+21-19offload/plugins-nextgen/common/src/PluginInterface.cpp
+3-2offload/plugins-nextgen/common/include/PluginInterface.h
+24-212 files

FreeNAS/freenas c4e9538tests/api2 test_300_nfs.py test_200_ftp.py

Remove tests
DeltaFile
+0-2,102tests/api2/test_300_nfs.py
+0-1,411tests/api2/test_200_ftp.py
+0-701tests/api2/test_011_user.py
+0-589tests/api2/test_service_announcement.py
+0-565tests/api2/test_audit_websocket.py
+0-506tests/api2/test_190_filesystem.py
+0-5,874256 files not shown
+0-32,288262 files

LLVM/project 3315f67clang/cmake/caches HLSL.cmake

[HLSL] Add Offload distribution (#196640)

This PR adds a new distribution to the HLSL cmake file.
The purpose is so that we can portably distribute binaries to other
machines so that offload testing can be optimized.
Assisted by: Github Copilot
This PR was inspired by @Icohedron 's comment here:
https://github.com/llvm/offload-test-suite/pull/1149#issuecomment-4409079785
This addresses https://github.com/llvm/offload-test-suite/issues/1150
DeltaFile
+19-0clang/cmake/caches/HLSL.cmake
+19-01 files

LLVM/project 890d29cllvm/docs/TableGen ProgRef.rst, llvm/lib/TableGen TGParser.cpp

rebase

Created using spr 1.3.7
DeltaFile
+13-12llvm/lib/TableGen/TGParser.cpp
+6-7llvm/test/TableGen/sort.td
+0-1llvm/docs/TableGen/ProgRef.rst
+19-203 files

LLVM/project 5460089llvm/docs/TableGen ProgRef.rst, llvm/lib/TableGen TGParser.cpp

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.7

[skip ci]
DeltaFile
+13-12llvm/lib/TableGen/TGParser.cpp
+6-7llvm/test/TableGen/sort.td
+0-1llvm/docs/TableGen/ProgRef.rst
+19-203 files

LLVM/project ae4fc28llvm/docs/TableGen ProgRef.rst, llvm/lib/TableGen TGParser.cpp

tighter tests

Created using spr 1.3.7
DeltaFile
+13-12llvm/lib/TableGen/TGParser.cpp
+6-7llvm/test/TableGen/sort.td
+0-1llvm/docs/TableGen/ProgRef.rst
+19-203 files

LLVM/project 7df04ffllvm/lib/Target/RISCV RISCVInstrInfoP.td RISCVISelLowering.cpp, llvm/test/CodeGen/RISCV rvp-simd-64.ll rvp-narrowing-shift-trunc.ll

[RISCV][P-ext] Support 64-bit vector shifts on RV32. (#197369)
DeltaFile
+29-530llvm/test/CodeGen/RISCV/rvp-simd-64.ll
+58-0llvm/lib/Target/RISCV/RISCVInstrInfoP.td
+9-14llvm/test/CodeGen/RISCV/rvp-narrowing-shift-trunc.ll
+2-0llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+98-5444 files

LLVM/project 6d57ecallvm/include/llvm/IR Constants.h, llvm/lib/IR AsmWriter.cpp Constants.cpp

[IR] Use isa<ConstantPointerNull> instead of isNullValue for pointer null checks (NFC)

Replace isNullValue() with isa<ConstantPointerNull>() in core IR files
where the check is semantically testing for a null pointer rather than a
generic zero value. This makes the intent explicit and prepares for
future non-zero null pointer support.

Affected files: Constants.h, Constants.cpp, AsmWriter.cpp, Verifier.cpp.
DeltaFile
+2-2llvm/lib/IR/AsmWriter.cpp
+2-2llvm/lib/IR/Constants.cpp
+1-1llvm/lib/IR/Verifier.cpp
+1-1llvm/include/llvm/IR/Constants.h
+6-64 files

LLVM/project 72dfe9eclang Maintainers.md

[clang] Add Tom Honermann as SYCL maintainer (#197351)

Tom Honermann has become a key contributor to SYCL support in Clang,
delivering high-quality front-end improvements.

He is also an active reviewer, providing thorough feedback
and helping maintain code quality across the SYCL implementation.

Updated my account ids: added Discord and Discourse and removed
Phabricator.
DeltaFile
+4-1clang/Maintainers.md
+4-11 files

FreeBSD/src 3298d82sys/kern uipc_usrreq.c, sys/sys ucred.h

Fix LOCAL_PEERCRED in 32-bit compat mode

Previously the cr_pid field would be incorrectly copied to userland, due
to a size mismatch between the structure as defined in 32-bit vs 64-bit
builds.  Fix it by converting the structure before copying it to
userland.

PR:             294833
Sponsored by:   ConnectWise
Reviewed by:    emaste
Differential Revision: https://reviews.freebsd.org/D56675

(cherry picked from commit 1d24638d3e8875e4b99a4b5e39f4241e37221b3d)
DeltaFile
+19-2sys/kern/uipc_usrreq.c
+11-0sys/sys/ucred.h
+30-22 files

LLVM/project 0e81f93compiler-rt/lib/safestack safestack.cpp, compiler-rt/test/safestack sigaltstack.c

[SafeStack] Add sigaction interceptor (#196968)

Currently SafeStack does not support sigaltstack in the sense that
while the "normal"/safe stack is getting replaced by the kernel, the
unsafe stack used during signal handling is unchanged.

This commit adds the interceptor for sigaction so we can intercept the
function being called for signal handling to add the logic to swap the
unsafe stack before entering the actual signal handler.

PR Stack:

* ➤ https://github.com/llvm/llvm-project/pull/196968
* https://github.com/llvm/llvm-project/pull/196969
* https://github.com/llvm/llvm-project/pull/196970
* https://github.com/llvm/llvm-project/pull/196971
DeltaFile
+123-0compiler-rt/test/safestack/sigaltstack.c
+17-4compiler-rt/lib/safestack/safestack.cpp
+140-42 files

LLVM/project e980166lldb/source/Plugins/LanguageRuntime/ObjC ObjCLanguageRuntime.cpp ObjCLanguageRuntime.h

[lldb][NFC] Use DenseMap in ObjCLanguageRuntime

This is a multimap of Hash -> ObjCISA (lldb::addr_t), and it shows up
cpu traces of swift applications. This commit replaces
`std::multimap<hash, addr_t>` with `DenseMap<hash, SmallVector<addr_t, 3>>`.

This data structure was chosen because of the following experiment. When
evaluating a frame variable command for a SwiftUI variable, this object
gets populated with ~186,000 entries:

* over a thousand of them had 2 hash collisions.
* 300 of them had 3 hash collisions.
* 21 of them had 4 hash collisions.
* 1 of them had 5 hash collisions.

On a release build (no asserts), this patch brought down the CPU cycles
measured for that command from 487M cycles to 389M cycles.
DeltaFile
+8-10lldb/source/Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.cpp
+2-3lldb/source/Plugins/LanguageRuntime/ObjC/ObjCLanguageRuntime.h
+10-132 files