LLVM/project 12cea04lldb/packages/Python/lldbsuite/test lldbtest.py

[lldb] Improve filecheck() by replacing assertTrue with assertEqual (#177212)

DeltaFile
+2-2lldb/packages/Python/lldbsuite/test/lldbtest.py
+2-21 files

LLVM/project 6c941d7llvm/lib/Target/AMDGPU AMDGPUISelLowering.cpp

AMDGPU: Remove dead code configuring f16 is_fpclass

isTypeLegal can never be true here. The register classes
are registered at the end of the target lowering constructor,
and in the subclasses.
DeltaFile
+0-5llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
+0-51 files

FreeBSD/src 3cdb6c9contrib/llvm-project/libcxx/include inttypes.h

libc++ inttypes.h: define __STDC_CONSTANT_MACROS and __STDC_LIMIT_MACROS

Before transitively including the base version of inttypes.h, define
__STDC_CONSTANT_MACROS and __STDC_LIMIT_MACROS, because the base
inttypes.h directly includes sys/stdint.h, instead of going through the
'regular' stdint.h.

The libc++ version of the latter does define those macros, to ensure
things like UINT64_C() and SIZE_MAX are defined even in C++98 or C++03.

MFC after:      3 days
DeltaFile
+9-2contrib/llvm-project/libcxx/include/inttypes.h
+9-21 files

FreeNAS/freenas 0e7f611src/middlewared/middlewared/common/attachment __init__.py, src/middlewared/middlewared/plugins filesystem.py

progress
DeltaFile
+63-51src/middlewared/middlewared/common/attachment/__init__.py
+84-21src/middlewared/middlewared/plugins/pool_/dataset_attachments.py
+28-14src/middlewared/middlewared/service/sharing_service.py
+8-1src/middlewared/middlewared/plugins/filesystem.py
+4-3src/middlewared/middlewared/plugins/pool_/info.py
+3-3src/middlewared/middlewared/plugins/pool_/dataset.py
+190-934 files not shown
+196-9510 files

LLVM/project 56e04bellvm/lib/Target/AMDGPU AMDGPU.td

[NFCI][AMDGPU] Fix the predicate `HasDsSrc2Insts`

I'm not sure why the predicate has a `!`, and more surprisingly, removing it doesn't change anything.
DeltaFile
+1-5llvm/lib/Target/AMDGPU/AMDGPU.td
+1-51 files

LLVM/project 67baa87offload/test/mapping declare_mapper_target_checks.cpp

Revert "[NFC][OpenMP] Mark new mapper test as XFAIL on intelgpu. (#177491)"

This reverts commit 7d5622f7917815d224b780309432ffe4729e4852.
DeltaFile
+0-2offload/test/mapping/declare_mapper_target_checks.cpp
+0-21 files

LLVM/project 5997b42llvm/lib/Target/AMDGPU SIInsertWaitcnts.cpp, llvm/test/CodeGen/AMDGPU wait-xcnt-atomic-rmw-optimization.ll

[AMDGPU][GFX1250] Optimize s_wait_xcnt for back-to-back atomic RMWs

This patch optimizes the insertion of s_wait_xcnt instruction for
sequences of atomic read-modify-write (RMW) operations in the
SIInsertWaitcnts pass. The Memory Legalizer conservatively inserts a
soft xcnt instruction before each atomic RMW operation as part of PR
168852, which is correct given the nature of atomic operations.
However, for back-to-back atomic RMWs, only the first s_wait_xcnt is
necessary for better runtime performance. This patch tracks atomic
RMW blocks within each basic block and removes redundant soft xcnt
instructions, keeping only the first wait in each sequence. An atomic
RMW block continues through subsequent atomic RMWs and non-memory
instructions (e.g., ALU operations) but is broken by CU-scoped memory
operations, atomic stores, or basic block boundaries.
DeltaFile
+71-2llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+0-31llvm/test/CodeGen/AMDGPU/wait-xcnt-atomic-rmw-optimization.ll
+71-332 files

LLVM/project 63e7070utils/bazel/llvm-project-overlay/clang BUILD.bazel

[bazel] Add filegroup for builtin_headers (#67757)

I'd like to package these files into a distribution tar as part of
https://github.com/dzbarsky/static-clang. I'm currently applying patches
to the llvm repo but figured this bit could be upstreamed.

(Also open to ideas what to do about the `config.bzl` change in
https://github.com/dzbarsky/static-clang/blob/master/llvm.patch - it's
needed to link with musl libc)
DeltaFile
+5-0utils/bazel/llvm-project-overlay/clang/BUILD.bazel
+5-01 files

LLVM/project 296f5a7llvm/include/llvm/IR IntrinsicsSPIRV.td IntrinsicsDirectX.td, llvm/lib/Target/SPIRV SPIRVInstructionSelector.cpp SPIRVModuleAnalysis.cpp

[SPIR-V] Implement sample and sample_clamp intrinsics for HLSL resources (#177234)

This patch implements the `sample` and `sample_clamp` intrinsics for
HLSL
resources in the SPIR-V backend. It adds the necessary intrinsic
definitions
in `IntrinsicsDirectX.td` and `IntrinsicsSPIRV.td`, and implements the
instruction selection logic in `SPIRVInstructionSelector.cpp`.

Key changes:
- Added `int_dx_resource_sample` and `int_dx_resource_sample_clamp`
intrinsics.
- Added `int_spv_resource_sample` and `int_spv_resource_sample_clamp`
intrinsics.
- Implemented `selectSampleIntrinsic` to handle
`OpImageSampleImplicitLod` generation.
- Added `ResourceDimension` enum in `DXILABI.h` and `HLSLResource.h`.
- Added a new test case
`llvm/test/CodeGen/SPIRV/hlsl-resources/Sample.ll` to verify the
implementation.
DeltaFile
+127-0llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
+69-0llvm/test/CodeGen/SPIRV/hlsl-resources/Sample.ll
+11-0llvm/include/llvm/IR/IntrinsicsSPIRV.td
+11-0llvm/include/llvm/IR/IntrinsicsDirectX.td
+3-0llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.cpp
+221-05 files

LLVM/project 69eac70clang/lib/Driver/ToolChains Flang.cpp, flang/lib/Frontend CompilerInvocation.cpp

[flang] Support -f(no-)protect-parens (#170505)

Driver/compiler option plumbing to get -f(no-)protect-parens supported
on flang. (This option was already supported in clang, so extended the
option config to enable it in flang.)

In the compiler, support it in code gen options and in lowering options.
Hooked up lowering options with the code by @alexey-bataev that turns
off reassociation transformations.

Co-authored-by: Alexey Bataev <a.bataev at outlook.com>
DeltaFile
+45-0flang/test/Lower/HLFIR/protect-parens-arrays.f90
+38-4flang/lib/Lower/ConvertExprToHLFIR.cpp
+32-0flang/test/Lower/HLFIR/protect-parens.f90
+13-0flang/test/Driver/protect-parens.f90
+6-0clang/lib/Driver/ToolChains/Flang.cpp
+5-0flang/lib/Frontend/CompilerInvocation.cpp
+139-45 files not shown
+149-911 files

LLVM/project a521774llvm/lib/CodeGen/SelectionDAG LegalizeVectorTypes.cpp LegalizeVectorOps.cpp, llvm/test/CodeGen/AMDGPU vector-reduce-umax.ll vector-reduce-or.ll

DAG: Use poison for unused shuffle operands in legalizer (#177578)

DeltaFile
+71-74llvm/test/CodeGen/AMDGPU/vector-reduce-umax.ll
+28-28llvm/test/CodeGen/AMDGPU/vector-reduce-or.ll
+16-16llvm/test/CodeGen/X86/x86-interleaved-access.ll
+4-4llvm/lib/CodeGen/SelectionDAG/LegalizeVectorTypes.cpp
+4-3llvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
+2-2llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+125-1276 files

LLVM/project e044ad9lldb/source/Host/macosx/objcxx PosixSpawnResponsible.h

[lldb] Unconditionally setup posix spawn responsible flag (#177451)

# Problem

The TCC support in LLDB was added by
https://github.com/llvm/llvm-project/commit/041c7b84a4b925476d1e21ed302786033bb6035f.

However, on newer macOS machines, when launching and debugging an
Catalyst app on macOS (see
[Host.mm](https://github.com/llvm/llvm-project/blob/1286de408cc4a3ba1bd6cb6fed7d9517c0429462/lldb/source/Host/macosx/objcxx/Host.mm#L1208-L1219)),
the TCC doesn't work as expected. This is because, even though the
launch info doesn't specify `eLaunchFlagInheritTCCFromParent`, the app
is still launched to inherit TCC from its parent (the LLDB). This
prevents the user from granting privacy access to the Catalyst app,
which is usually reflected in macOS' "Privacy & Security" settings.

For example, in the following screenshot (see PR), even when the microphone
access has already been granted to WhatsApp, trying to use it will still
cause a prompt (as if it's not granted already).

    [13 lines not shown]
DeltaFile
+10-20lldb/source/Host/macosx/objcxx/PosixSpawnResponsible.h
+10-201 files

LLVM/project 82164b6llvm/test/CodeGen/AMDGPU wait-xcnt-atomic-rmw-optimization.ll

[AMDGPU] Precommit lit test for optimized xcnt insertion.
DeltaFile
+1,302-0llvm/test/CodeGen/AMDGPU/wait-xcnt-atomic-rmw-optimization.ll
+1,302-01 files

LLVM/project 77ebdadclang-tools-extra/clang-tidy/modernize UseStringViewCheck.cpp UseStringViewCheck.h, clang-tools-extra/docs/clang-tidy/checks/modernize use-string-view.rst

[clang-tidy] Add a new check 'modernize-use-string-view' (#172170)

Looks for functions returning `std::[w|u8|u16|u32]string` and suggests
to change it to `std::[...]string_view` if possible and profitable.

 Example:
```cpp
 std::string foo(int i) { // <---- can be replaced to `std::string_view foo(...) {`
   switch(i) {
     case 1:
       return "case1";
     case 2:
       return "case2";
     default:
       return {};
   }
 }

```
DeltaFile
+485-0clang-tools-extra/test/clang-tidy/checkers/modernize/use-string-view.cpp
+151-0clang-tools-extra/clang-tidy/modernize/UseStringViewCheck.cpp
+136-0clang-tools-extra/docs/clang-tidy/checks/modernize/use-string-view.rst
+49-0clang-tools-extra/clang-tidy/modernize/UseStringViewCheck.h
+41-0clang-tools-extra/test/clang-tidy/checkers/modernize/use-string-view-cxx20.cpp
+40-0clang-tools-extra/test/clang-tidy/checkers/modernize/use-string-view-ignored.cpp
+902-05 files not shown
+935-011 files

FreeBSD/src 6abefcdsys/dev/ahci ahci.c, sys/dev/mvs mvs.c

Fix SATA NCQ error recovery after 25375b1415

Since that commit ahci(4), siis(4) and mvs(4) drivers ended up
using wrong command to fetch error information for NCQ commands.
Since ATA errors are not very informative to begin with, the only
noticeable effect is a lack of retries on those errors by CAM.

MFC after:      1 week
PR:             279978

(cherry picked from commit 87085c12ba8fa51f777bc636df67008b45e20d1c)
DeltaFile
+1-1sys/dev/siis/siis.c
+1-1sys/dev/mvs/mvs.c
+1-1sys/dev/ahci/ahci.c
+3-33 files

LLVM/project 7c9264allvm/lib/Target/AMDGPU SOPInstructions.td AMDGPU.td, llvm/test/MC/AMDGPU gfx13_asm_sop1.s gfx13_asm_sop1_alias.s

[AMDGPU] Add SOP1 support for gfx13
DeltaFile
+3,136-0llvm/test/MC/AMDGPU/gfx13_asm_sop1.s
+156-107llvm/lib/Target/AMDGPU/SOPInstructions.td
+69-0llvm/test/MC/AMDGPU/gfx13_asm_sop1_alias.s
+1-0llvm/lib/Target/AMDGPU/AMDGPU.td
+3,362-1074 files

LLVM/project 32ce22f.github/workflows prune-unused-branches.py prune-branches.yml

[Github] Add initial workflow to prune unused user branches

This patch starts implementing the long requested feature of a workflow
to automatically prune user branches that are not tied to a PR. For now
this just consists of a script that finds user branches not attached to
a PR and prints them out. Future patches will add support for dumping
the diff between the branches and main (to persist to artifact storage
so people can recover if they intended to use the branch) and actually
deleting the branches.

Reviewers: cmtice, tstellar, petrhosek, vbvictor

Pull Request: https://github.com/llvm/llvm-project/pull/175693
DeltaFile
+85-0.github/workflows/prune-unused-branches.py
+30-0.github/workflows/prune-branches.yml
+115-02 files

FreeBSD/src 6c5fdbasys/arm/arm gic.c

arm/gic: Detect broken configurations

Some virtualization platforms provide broken configurations. There
is a GIC interrupt controller, however accessing the CPU interface
registers leads to an external data abort. As these are needed to
handle interrupts we are unable to boot further.

Detect this misconfiguration and panic to tell the user the issue.

Reviewed by:    emaste
Sponsored by:   Arm Ltd
Differential Revision:  https://reviews.freebsd.org/D54832
DeltaFile
+14-1sys/arm/arm/gic.c
+14-11 files

NetBSD/pkgsrc-wip 3b778e8. Makefile, rofi PLIST Makefile

Import x11/rofi
DeltaFile
+57-0rofi/PLIST
+38-0rofi/Makefile
+7-0rofi/DESCR
+5-0rofi/distinfo
+1-0Makefile
+108-05 files

LLVM/project 133105ellvm/include/llvm/Passes CodeGenPassBuilder.h, llvm/test/CodeGen/AMDGPU llc-pipeline-npm.ll

[CodeGen][NPM] Disable Machine verifier at the end of default pipelines
DeltaFile
+4-8llvm/test/CodeGen/X86/llc-pipeline-npm.ll
+3-6llvm/test/CodeGen/AMDGPU/llc-pipeline-npm.ll
+0-3llvm/include/llvm/Passes/CodeGenPassBuilder.h
+7-173 files

LLVM/project 33255f5llvm/test/CodeGen/AMDGPU si-lower-control-flow-preserve-dom-tree.mir

review comments
DeltaFile
+37-31llvm/test/CodeGen/AMDGPU/si-lower-control-flow-preserve-dom-tree.mir
+37-311 files

LLVM/project 1c18207llvm/lib/Transforms/Scalar LoopStrengthReduce.cpp

[CodeGen][LSR][NPM] Make LoopStrengthReduce pass preserve LCSSA
DeltaFile
+4-0llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
+4-01 files

LLVM/project d94be63llvm/lib/Target/AMDGPU AMDGPUTargetMachine.cpp, llvm/test/CodeGen/AMDGPU llc-pipeline-npm.ll

[AMDGPU][NPM] Complete fast regalloc pipeline
DeltaFile
+38-0llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
+10-1llvm/test/CodeGen/AMDGPU/llc-pipeline-npm.ll
+48-12 files

LLVM/project a72b7e1llvm/lib/Target/AMDGPU SILowerControlFlow.cpp, llvm/test/CodeGen/AMDGPU si-lower-control-flow-preserve-dom-tree.mir

[AMDGPU] Fix DomTree preservation in SILowerControlFlow when nodes are deleted
DeltaFile
+59-0llvm/test/CodeGen/AMDGPU/si-lower-control-flow-preserve-dom-tree.mir
+5-0llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp
+64-02 files

LLVM/project 9188dfdllvm/include/llvm/Passes CodeGenPassBuilder.h, llvm/test/CodeGen/AMDGPU llc-pipeline-npm.ll

[CodeGen][NPM] Specify Loop pass adaptor to not use MSSA
DeltaFile
+2-2llvm/test/CodeGen/X86/llc-pipeline-npm.ll
+2-2llvm/test/CodeGen/AMDGPU/llc-pipeline-npm.ll
+2-1llvm/include/llvm/Passes/CodeGenPassBuilder.h
+6-53 files

LLVM/project c28c8a0mlir/include/mlir/Dialect/XeGPU/IR XeGPUTypes.td

[MLIR][XeGPU] Add two 8bit float types F8E4M3FN and F8E5M2 to valid XeGPU float type. (#169420)

These float types are already part of MLIR built in types.
This PR just adds them as valid float types for XeGPU dialect.
For bit format of the two float types, see 
https://onnx.ai/onnx/technical/float8.html
DeltaFile
+1-1mlir/include/mlir/Dialect/XeGPU/IR/XeGPUTypes.td
+1-11 files

LLVM/project 284d6d6libsycl Maintainers.md

[libsycl][NFC] Assign lead maintainers for the project (#176769)

To align with https://llvm.org/docs/DeveloperPolicy.html#maintainers
libsycl project must explicitly list lead maintainers.
DeltaFile
+2-2libsycl/Maintainers.md
+2-21 files

LLVM/project 45e7618llvm/lib/CodeGen/SelectionDAG DAGCombiner.cpp

DAG: Use poison instead of undef in some vector combines

Use poison for the unused or out of bounds vector components.
DeltaFile
+43-43llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+43-431 files

LLVM/project 45abb30llvm/lib/Target/PowerPC PPCAsmPrinter.cpp PPCInstrInfo.cpp

[PowerPC] Fix instruction sizes / branch relaxation (#175556)

For PowerPC, having accurate (or at least not too small) instruction
sizes is critical, because the PPCBranchSelector pass relies on them.
Underestimating the size of an instruction can result in the wrong
branch kind being chosen, which will result in an MC error.

This patch introduces validation that the instruction size reported by
TII matches the actually emitted instruction size, and fixes various
cases where this was not the case.

Fixes https://github.com/llvm/llvm-project/issues/175190.
DeltaFile
+26-0llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
+18-4llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
+12-4llvm/lib/Target/PowerPC/PPCInstrInfo.td
+2-2llvm/lib/Target/PowerPC/PPCInstr64Bit.td
+58-104 files

LLVM/project 3a1288cmlir/include/mlir/Dialect/Utils VerificationUtils.h, mlir/lib/Dialect/MemRef/IR MemRefOps.cpp

[mlir][Utils] Add verifyElementTypesMatch helper (NFC) (#176668)

This change builds on #174336 and #175880, which introduced shared
VerificationUtils with verifyDynamicDimensionCount() and
verifyRanksMatch() methods.

This patch adds a new verifyElementTypesMatch() verification utility
that checks if two shaped types have matching element types and emits
consistent error messages. The utility is applied to several ops across
the MemRef and Vector dialects.
DeltaFile
+22-14mlir/lib/Dialect/Vector/IR/VectorOps.cpp
+7-7mlir/test/Dialect/Vector/invalid.mlir
+13-0mlir/lib/Dialect/Utils/VerificationUtils.cpp
+6-7mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
+6-0mlir/include/mlir/Dialect/Utils/VerificationUtils.h
+2-2mlir/test/Dialect/MemRef/invalid.mlir
+56-306 files