LLVM/project 8953f67llvm/test/CodeGen/AMDGPU amdgcn.bitcast.1024bit.ll amdgcn.bitcast.512bit.ll, llvm/test/CodeGen/X86 wide-scalar-shift-by-byte-multiple-legalization.ll

Merge branch 'main' into users/aokblast/readelf/pxnum_support
DeltaFile
+45,267-48,746llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+17,545-20,831llvm/test/CodeGen/X86/wide-scalar-shift-by-byte-multiple-legalization.ll
+11,954-11,000llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+8,998-11,093llvm/test/CodeGen/AMDGPU/maximumnum.bf16.ll
+8,981-11,098llvm/test/CodeGen/AMDGPU/minimumnum.bf16.ll
+5,981-8,885llvm/test/CodeGen/AMDGPU/shufflevector.v4i64.v4i64.ll
+98,726-111,65317,517 files not shown
+1,074,771-723,85117,523 files

LLVM/project ab665f2clang-tools-extra/clang-tidy .clang-format

[clang-tidy][NFC] Add option 'RemoveBracesLLVM' to clang-format config (#172755)

We successfully cleared codebase
(https://github.com/llvm/llvm-project/pull/172748,
https://github.com/llvm/llvm-project/pull/172751,
https://github.com/llvm/llvm-project/pull/172752,
https://github.com/llvm/llvm-project/pull/172754) without any
significant issues encountered.

I propose we add `RemoveBracesLLVM: true` which should _drastically_
reduce churn on code reviews.
DeltaFile
+1-0clang-tools-extra/clang-tidy/.clang-format
+1-01 files

LLVM/project 2a7c39eclang/include/clang/Basic DiagnosticSemaKinds.td, clang/include/clang/Sema Sema.h

[clang] Add support for consteval null terminated strings

Adds support for null terminated strings produced by constexpr
evaluation. This makes it possible to perform analysis of format
strings that previously were not possible, and is needed in the
future to support __ptrauth qualifier options.
DeltaFile
+49-2clang/test/SemaCXX/static-assert-cxx26.cpp
+42-0clang/lib/Sema/SemaDeclCXX.cpp
+28-1clang/test/Parser/asm.cpp
+10-3clang/include/clang/Basic/DiagnosticSemaKinds.td
+5-4clang/include/clang/Sema/Sema.h
+5-3clang/lib/AST/ByteCode/Context.cpp
+139-131 files not shown
+141-157 files

LLVM/project 7a489b2llvm/docs MemProf.rst

Address comments.
DeltaFile
+46-21llvm/docs/MemProf.rst
+46-211 files

LLVM/project b91add8cmake/Modules FindGRPC.cmake

[FindGRPC.cmake] Make sure that `PACKAGE_VERSION` is not overwritten when doing `find_package(gRPC)` (#173115)

`PACKAGE_VERSION` is important since it sets the `LLVM_VERSION_STRING`
string.
DeltaFile
+4-0cmake/Modules/FindGRPC.cmake
+4-01 files

LLVM/project a3824dellvm/lib/Analysis AliasAnalysis.cpp, llvm/test/Transforms/DeadStoreElimination atomic.ll atomic-todo.ll

Revert "[AA] Improve precision for monotonic atomic load/store operations (#1…"

This reverts commit ce2518f59d9bc67553f05536ac9bb200827c36da.
DeltaFile
+26-67llvm/test/Transforms/DeadStoreElimination/atomic.ll
+23-0llvm/test/Transforms/DeadStoreElimination/atomic-todo.ll
+3-16llvm/lib/Analysis/AliasAnalysis.cpp
+52-833 files

LLVM/project 0c70ec6clang/include/clang/Basic DiagnosticSemaKinds.td, clang/include/clang/Sema Sema.h

[clang] Add support for consteval null terminated strings

Adds support for null terminated strings produced by constexpr
evaluation. This makes it possible to perform analysis of format
strings that previously were not possible, and is needed in the
future to support __ptrauth qualifier options.
DeltaFile
+49-2clang/test/SemaCXX/static-assert-cxx26.cpp
+42-0clang/lib/Sema/SemaDeclCXX.cpp
+28-1clang/test/Parser/asm.cpp
+12-7clang/include/clang/Basic/DiagnosticSemaKinds.td
+5-4clang/include/clang/Sema/Sema.h
+5-3clang/lib/AST/ByteCode/Context.cpp
+141-171 files not shown
+143-197 files

LLVM/project a95a303clang/include/clang/CIR/Dialect/IR CIROps.td, clang/lib/CIR/CodeGen CIRGenBuilder.cpp

[CIR] Add 'get element' for array index ops (#172897)

This is a refactor/upstream/etc of:
https://github.com/llvm/clangir/pull/1748

This modifies our array-index operations to use a specific operation
(GetElementOp). According to the original patch commit message, this
replaces nearly 50% of ptr_stride operations in single source tests!
DeltaFile
+89-34clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+57-0clang/include/clang/CIR/Dialect/IR/CIROps.td
+12-24clang/test/CIR/CodeGen/array.cpp
+13-0clang/lib/CIR/CodeGen/CIRGenBuilder.cpp
+4-8clang/test/CIR/Lowering/array.cpp
+4-8clang/test/CIR/CodeGen/union.c
+179-745 files not shown
+187-8911 files

LLVM/project 8c7771allvm/lib/CodeGen/SelectionDAG ScheduleDAGSDNodes.cpp, llvm/test/CodeGen/AArch64 bit-test.ll

Add test

Created using spr 1.3.6-beta.1
DeltaFile
+91-0llvm/test/CodeGen/AArch64/bit-test.ll
+7-1llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
+98-12 files

LLVM/project a7f0588llvm/lib/CodeGen/SelectionDAG ScheduleDAGSDNodes.cpp

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.6-beta.1

[skip ci]
DeltaFile
+7-1llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
+7-11 files

LLVM/project 583905allvm/lib/CodeGen/SelectionDAG ScheduleDAGSDNodes.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.6-beta.1
DeltaFile
+7-1llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp
+7-11 files

LLVM/project 632f592llvm/test/tools/llvm-readobj/ELF many-sections.s

fixup! [llvm-readobj, ELF] Support reading binary with more than PN_XNUM segments.
DeltaFile
+6-6llvm/test/tools/llvm-readobj/ELF/many-sections.s
+6-61 files

LLVM/project 59da50cllvm/test/CodeGen/RISCV/rvv fixed-vectors-vfmax.ll vfmin-sdnode.ll

[RISCV] Fix Zvfbfa tests from #171794 to mitigate UTC bug. NFCI (#173125)

Context:
https://github.com/llvm/llvm-project/pull/171794#discussion_r2614489484

For some reasons, UTC is unable to merge the 'ZVFHMIN' and 'ZVFBFA'
CHECK lines in some of the test functions, and emits incorrect CHECK
lines for them, once you run UTC again on the file.
This hinders the ability to update these tests in bulk, as one has to
manually remove the excessed ZVFBFA lines. While I don't know how to fix
UTC at this moment, I found a workaround that simply re-orders these two
check prefixes.

This is effectively a NFC
DeltaFile
+2-3llvm/test/CodeGen/RISCV/rvv/fixed-vectors-vfmax.ll
+2-2llvm/test/CodeGen/RISCV/rvv/vfmin-sdnode.ll
+2-2llvm/test/CodeGen/RISCV/rvv/vfmax-sdnode.ll
+2-2llvm/test/CodeGen/RISCV/rvv/fminimumnum-sdnode.ll
+2-2llvm/test/CodeGen/RISCV/rvv/fminimum-sdnode.ll
+2-2llvm/test/CodeGen/RISCV/rvv/fmaximumnum-sdnode.ll
+12-136 files not shown
+24-2512 files

LLVM/project 19d94eemlir/cmake/modules AddMLIRPython.cmake, mlir/python CMakeLists.txt

massage cmake
DeltaFile
+94-31mlir/cmake/modules/AddMLIRPython.cmake
+10-61mlir/python/CMakeLists.txt
+104-922 files

LLVM/project c1231b1llvm/include/llvm/Object ELF.h, llvm/test/tools/llvm-readobj/ELF many-segments.test file-headers.test

fixup! [llvm-readobj, ELF] Support reading binary with more than PN_XNUM segments.
DeltaFile
+45-60llvm/test/tools/llvm-readobj/ELF/many-segments.test
+34-33llvm/tools/llvm-readobj/ELFDumper.cpp
+8-8llvm/test/tools/llvm-readobj/ELF/file-headers.test
+7-7llvm/test/tools/llvm-readobj/ELF/many-sections.s
+8-4llvm/test/tools/llvm-readobj/ELF/invalid-e_phnum.test
+7-3llvm/include/llvm/Object/ELF.h
+109-1151 files not shown
+109-1157 files

LLVM/project 2a7398cmlir/cmake/modules AddMLIRPython.cmake, mlir/python CMakeLists.txt

massage cmake
DeltaFile
+91-31mlir/cmake/modules/AddMLIRPython.cmake
+10-61mlir/python/CMakeLists.txt
+101-922 files

LLVM/project a8f1925llvm/utils/gn/secondary/clang/lib/Analysis/Scalable BUILD.gn, llvm/utils/gn/secondary/clang/unittests/Analysis/Scalable BUILD.gn

[gn build] Port 1a4596c1d7cc
DeltaFile
+2-1llvm/utils/gn/secondary/clang/lib/Analysis/Scalable/BUILD.gn
+2-0llvm/utils/gn/secondary/clang/unittests/Analysis/Scalable/BUILD.gn
+4-12 files

LLVM/project 36c27c6clang/include/clang/Serialization ASTReader.h, clang/lib/DependencyScanning DependencyScannerImpl.cpp

[clang][modules] print mtime of input files when recorded in "module-file-info" (#173120)

When debugging issues related to invalidation for implicit module
compilations, it can be helpful to consult the PCM to see what the saved
mtime was.
DeltaFile
+23-0clang/test/Modules/module-file-info-mtime.m
+9-9clang/test/Modules/module_file_info.m
+4-1clang/lib/Frontend/FrontendActions.cpp
+2-1clang/lib/Serialization/ASTReader.cpp
+1-1clang/include/clang/Serialization/ASTReader.h
+1-1clang/lib/DependencyScanning/DependencyScannerImpl.cpp
+40-136 files

LLVM/project 1a4596cclang/include/clang/Analysis/Scalable/Model EntityIdTable.h EntityId.h, clang/lib/Analysis/Scalable/Model EntityIdTable.cpp

[clang][ssaf] Add EntityId and EntityIdTable for efficient entity handling (#171660)

Introduce EntityId and EntityIdTable to provide efficient, lightweight
handles
for working with EntityNames in the Scalable Static Analysis Framework
(SSAF).

Introduces two key components:
- EntityId: Lightweight opaque handle representing an entity in an
EntityIdTable
- EntityIdTable: Entity name interning table that maps unique
EntityNames to EntityIds

The interning table ensures each EntityName maps to exactly one
EntityId,
providing fast equality comparisons and lookups. EntityIds are
index-based
and remain stable for the lifetime of their table. This enables
efficient

    [5 lines not shown]
DeltaFile
+142-0clang/unittests/Analysis/Scalable/EntityIdTableTest.cpp
+65-0clang/unittests/Analysis/Scalable/EntityIdTest.cpp
+50-0clang/include/clang/Analysis/Scalable/Model/EntityIdTable.h
+47-0clang/include/clang/Analysis/Scalable/Model/EntityId.h
+31-0clang/lib/Analysis/Scalable/Model/EntityIdTable.cpp
+2-0clang/unittests/Analysis/Scalable/CMakeLists.txt
+337-01 files not shown
+338-07 files

LLVM/project 178b744llvm/lib/Transforms/IPO MergeFunctions.cpp

Fix use-after-free bug in mergeTwoFunctions().

This was caught by Apple's Probabilistic Guard Malloc which detected
that OldF's memory is freed inside mergeTwoFunctions(), and then
back in insert() the now dangling pointer is dereferenced again.

rdar://163874208
DeltaFile
+7-3llvm/lib/Transforms/IPO/MergeFunctions.cpp
+7-31 files

LLVM/project 101f50aclang/test/CodeGen/X86 avx512cd-builtins.c

[clang][test] Disable avx512cd-builtins.c test on 32-bit Arm

When clang is compiled with a more recent clang
(that includes 5d7f324614d7a5c0de89cfe8295a9b2b7ef5d073),
the code produced enforces 64-bit alignment on a type
that is used during this test.

For reasons not known yet, that type is not 64-bit aligned
though you would normally expect it to be.

See https://github.com/llvm/llvm-project/issues/172994.

I would xfail this but I'm not 100% sure that it always fails.
Memory layout may make it pass sometimes.
DeltaFile
+2-0clang/test/CodeGen/X86/avx512cd-builtins.c
+2-01 files

LLVM/project d3f428bllvm/lib/Target/AMDGPU VOP3PInstructions.td

[NFC][AMDGPU] Add missing white spaces to align with existing code
DeltaFile
+5-5llvm/lib/Target/AMDGPU/VOP3PInstructions.td
+5-51 files

LLVM/project cae557eclang/unittests/Analysis/Scalable CMakeLists.txt

[clang][ssaf][NFC] Remove redundant unit test target (#172379)

Addresses comment
https://github.com/llvm/llvm-project/pull/169131#pullrequestreview-3571758680
DeltaFile
+1-6clang/unittests/Analysis/Scalable/CMakeLists.txt
+1-61 files

LLVM/project 2d1bc9flldb/source/Plugins/Process/Utility StopInfoMachException.cpp StopInfoMachException.h

[lldb] Recognize MTE faults with EXC_GUARD exception type (#172579)

Recognize the new `EXC_GUARD` mach exception type
for MTE faults.  We also keep supporting the old
`EXC_BAD_ACCESS` exception type for backward
compatibility (newer LLDB on older OS).

rdar://166415268
DeltaFile
+20-9lldb/source/Plugins/Process/Utility/StopInfoMachException.cpp
+4-1lldb/source/Plugins/Process/Utility/StopInfoMachException.h
+24-102 files

LLVM/project a6c355eclang-tools-extra/clang-tidy/readability FunctionCognitiveComplexityCheck.cpp

[clang-tidy][NFC] Use LLVM's bitmask helpers instead of rolling our own (#173116)

DeltaFile
+3-27clang-tools-extra/clang-tidy/readability/FunctionCognitiveComplexityCheck.cpp
+3-271 files

LLVM/project 2b8b305clang/include/clang/Lex Preprocessor.h, clang/lib/Lex Preprocessor.cpp PPDirectives.cpp

Revert "[C++20][Modules] Implement P1857R3 Modules Dependency Discovery" (#173118)

Reverts llvm/llvm-project#107168

This patch broke on bots:
- https://lab.llvm.org/buildbot/#/builders/190/builds/33105
- https://lab.llvm.org/buildbot/#/builders/94/builds/13727
- https://lab.llvm.org/buildbot/#/builders/169/builds/18192

and on mac-aarch64 builds.
see
https://github.com/llvm/llvm-project/pull/107168#issuecomment-3675990781
DeltaFile
+211-277clang/lib/Lex/Preprocessor.cpp
+31-439clang/lib/Lex/PPDirectives.cpp
+0-207clang/test/CXX/module/cpp.pre/p1.cpp
+61-135clang/include/clang/Lex/Preprocessor.h
+15-149clang/lib/Lex/DependencyDirectivesScanner.cpp
+77-47clang/lib/Parse/Parser.cpp
+395-1,25438 files not shown
+537-1,70444 files

LLVM/project 75f1dffclang/include/clang/Lex Preprocessor.h, clang/lib/Lex Preprocessor.cpp PPDirectives.cpp

Revert "[C++20][Modules] Implement P1857R3 Modules Dependency Discovery (#107…"

This reverts commit d2e62d902438bb5860f2376e818d797bf20daa7d.
DeltaFile
+211-277clang/lib/Lex/Preprocessor.cpp
+31-439clang/lib/Lex/PPDirectives.cpp
+0-207clang/test/CXX/module/cpp.pre/p1.cpp
+61-135clang/include/clang/Lex/Preprocessor.h
+15-149clang/lib/Lex/DependencyDirectivesScanner.cpp
+77-47clang/lib/Parse/Parser.cpp
+395-1,25438 files not shown
+537-1,70444 files

LLVM/project 9c66a38llvm/lib/Target/AArch64 AArch64AsmPrinter.cpp

[AArch64] Fix wrong AArch64Subtarget construction. (#172942)

The AArch64Subtarget construction was wrong for two reasons: firstly,
createMCSubtargetInfo() does not create an AArch64Subtarget object, and
secondly, the target CPU and features were left blank. This has been
benign so far since no methods were called that depended on this, but it
is undefined for the first reason, and creating the subtarget info in a
state that the user did not request for the second reason. This commit
fixes both issues.
DeltaFile
+11-13llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
+11-131 files

LLVM/project 5226a5aclang-tools-extra/docs/clang-tidy/checks/bugprone macro-parentheses.rst

[clang-tidy][NFC][Docs] Fix typo in bugprone-macro-parentheses (#173101)

Link title for `CERT C Coding Standard rule PRE20-C` should be `PRE02-C`
to match target.
DeltaFile
+1-1clang-tools-extra/docs/clang-tidy/checks/bugprone/macro-parentheses.rst
+1-11 files

LLVM/project 056ae8bflang/lib/Semantics check-call.cpp

[flang] Correctly buffer warnings in Semantics/check-call.cpp (#172738)

There are calls to semantics::SemanticsContext::Warn() in check-call.cpp
that are not properly directing their output to the local message
buffer, so they can appear unconditionally in the output of the
compiler. This is a problem for generic interface resolution, which
checks procedure actual arguments against specific procedures using this
code, buffering the messages that might appear, and discarding the
messages for failed matches. Worse, the bogus warnings that escape the
buffering can be associated with completely unrelated locations.

Fix by passing the local message buffer to these Warn() calls.

(I couldn't come up with a good reduced test case, and am not sure that
the original code can be copied for use as one.)
DeltaFile
+10-15flang/lib/Semantics/check-call.cpp
+10-151 files