LLVM/project 316634flibcxx/include/__fwd queue.h deque.h, libcxx/test/std/containers/sequences/vector/vector.cons deduct.verify.cpp

[libc++] Remove <queue> and <stack> includes from <format> (#85520)

This reduces the include time of <format> from 691ms to 556ms.
DeltaFile
+31-0libcxx/include/__fwd/queue.h
+26-0libcxx/include/__fwd/deque.h
+26-0libcxx/include/__fwd/vector.h
+26-0libcxx/include/__fwd/stack.h
+10-15libcxx/test/std/containers/sequences/vector/vector.cons/deduct.verify.cpp
+25-0libcxx/include/__fwd/memory.h
+144-1520 files not shown
+185-4126 files

LLVM/project a855692libcxx/include/__type_traits apply_cv.h

[libc++][NFC] Use __copy_cv to implement __apply_cv (#86477)

DeltaFile
+5-45libcxx/include/__type_traits/apply_cv.h
+5-451 files

LLVM/project 5af7679clang/unittests/AST DeclPrinterTest.cpp

Fix calls to PrintedDeclCXX98Matches. (#86741)

Fix the calls to `PrintedDeclCXX98Matches` to take the lambda function
as the last argument.
DeltaFile
+29-25clang/unittests/AST/DeclPrinterTest.cpp
+29-251 files

LLVM/project 80aa52dllvm/lib/ProfileData InstrProfWriter.cpp

Revert "[ProfileData] Use size_t in PatchItem (NFC) (#87014)"

This reverts commit c64a328cb4a32e81f8b694162750ec1b8823994c.
This broke Arm32 bit build on various LLVM buildbots.
For example:
https://lab.llvm.org/buildbot/#/builders/17/builds/51129
DeltaFile
+7-7llvm/lib/ProfileData/InstrProfWriter.cpp
+7-71 files

LLVM/project abfc5efclang/include/clang/AST DeclBase.h, clang/lib/AST DeclBase.cpp

[NFC] [Decl] Introduce Decl::isFromExplicitGlobalModule

Introduce `Decl::isFromExplicitGlobalModule` to replace the
`D->getOwningModule() && D->getOwningModule()->isExplicitGlobalModule()`
pattern to save some typings.
DeltaFile
+8-8clang/unittests/AST/DeclTest.cpp
+6-2clang/lib/AST/DeclBase.cpp
+2-3clang/include/clang/AST/DeclBase.h
+1-1clang/lib/Sema/SemaDecl.cpp
+17-144 files

LLVM/project aa04f12clang/lib/AST/Interp ByteCodeStmtGen.h

Add missing declarations of explicit template instantiations. (#86964)

Found with -Wundefined-func-template.
DeltaFile
+1-0clang/lib/AST/Interp/ByteCodeStmtGen.h
+1-01 files

LLVM/project aeab2bbllvm/utils/gn/secondary/llvm/lib/Transforms/IPO BUILD.gn

[gn build] Port 1d99d7a6f841
DeltaFile
+1-0llvm/utils/gn/secondary/llvm/lib/Transforms/IPO/BUILD.gn
+1-01 files

LLVM/project db7d243llvm/lib/Target/X86 X86InstrArithmetic.td X86InstrUtils.td, llvm/test/MC/Disassembler/X86/apx imulzu.txt

[X86][MC] Support enc/dec for IMULZU. (#86653)

apx-spec: https://cdrdv2.intel.com/v1/dl/getContent/784266
apx-syntax-recommendation:
https://cdrdv2.intel.com/v1/dl/getContent/817241
DeltaFile
+50-0llvm/test/MC/Disassembler/X86/apx/imulzu.txt
+41-0llvm/test/MC/X86/apx/imulzu-att.s
+38-0llvm/test/MC/X86/apx/imulzu-intel.s
+38-0llvm/lib/Target/X86/X86InstrArithmetic.td
+6-0llvm/test/TableGen/x86-fold-tables.inc
+2-0llvm/lib/Target/X86/X86InstrUtils.td
+175-06 files

LLVM/project 28760b6clang/include/clang/Basic AttrDocs.td, clang/lib/AST Type.cpp

Revert "Reapply "[clang][nullability] allow _Nonnull etc on nullable class types (#82705)"" (#87041)

This reverts commit bbbcc1d99d08855069f4501c896c43a6d4d7b598.

This change is causing the following build bots to fail due to a missing
header file:
- https://lab.llvm.org/buildbot/#/builders/188/builds/43765
- https://lab.llvm.org/buildbot/#/builders/176/builds/9428
- https://lab.llvm.org/buildbot/#/builders/187/builds/14696
- https://lab.llvm.org/buildbot/#/builders/186/builds/15551
- https://lab.llvm.org/buildbot/#/builders/182/builds/9413
- https://lab.llvm.org/buildbot/#/builders/245/builds/22507
- https://lab.llvm.org/buildbot/#/builders/258/builds/16026
- https://lab.llvm.org/buildbot/#/builders/249/builds/17221
- https://lab.llvm.org/buildbot/#/builders/38/builds/18566
- https://lab.llvm.org/buildbot/#/builders/214/builds/11735
- https://lab.llvm.org/buildbot/#/builders/231/builds/21947
- https://lab.llvm.org/buildbot/#/builders/230/builds/26675
- https://lab.llvm.org/buildbot/#/builders/57/builds/33922

    [11 lines not shown]
DeltaFile
+2-60clang/test/SemaCXX/nullability.cpp
+9-24clang/lib/Parse/ParseDeclCXX.cpp
+10-19clang/lib/AST/Type.cpp
+0-25clang/include/clang/Basic/AttrDocs.td
+4-14clang/lib/Sema/SemaType.cpp
+0-18clang/lib/Sema/SemaDeclAttr.cpp
+25-16015 files not shown
+29-22621 files

LLVM/project 610b9e2llvm/test/CodeGen/RISCV ctlz-cttz-ctpop.ll rv32zbb.ll

[SDAG] Use shifts if ISD::MUL is illegal when lowering ISD::CTPOP (#86505)

We can avoid libcalls.

Fixes #86205
DeltaFile
+220-324llvm/test/CodeGen/RISCV/ctlz-cttz-ctpop.ll
+199-272llvm/test/CodeGen/RISCV/rv32zbb.ll
+187-251llvm/test/CodeGen/RISCV/rv64zbb.ll
+92-117llvm/test/CodeGen/RISCV/rv64xtheadbb.ll
+52-74llvm/test/CodeGen/RISCV/ctz_zero_return_test.ll
+49-71llvm/test/CodeGen/RISCV/rv32xtheadbb.ll
+799-1,10912 files not shown
+899-1,18018 files

LLVM/project e1873d9utils/bazel/llvm-project-overlay/mlir BUILD.bazel

[mlir][bazel] Remove unsed BUILD dependencies. (#87038)

This is the second attempt of 32fcfcdc4cc1d68116438f761897953894d65fb1,
which had to be reverted.

This should be good to go now, after a number of cleanups to not expose
headers from multiple targets:

- 6e58efac16958ccb99060f4329b48737be7d8d36
- f1dff836593d4601e3ad78117df1d980d284bb9c
- 89ef3130cf16f1965475396ad3a50760558cc08a
- eb70b485a91361eee83d3744d1bd3e4c3a23692f
- 83e5a1239242d64110e3dfa96ed3889170ab96b2
- fce046ca5b7edb4c0d37a6eb580154ccb7dda966
DeltaFile
+44-383utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+44-3831 files

LLVM/project 235d684clang/lib/Serialization ASTWriter.cpp, clang/test/Modules no-local-decl-in-reduced-bmi.cppm

[C++20] [Modules] [Reduced BMI] Don't record declarations in functions
by default

For reduced BMI, it is meaningless to record the local declarations in
functions if not required explicitly during the process of writing the
function bodies.

It wastes time for reduced BMI and may be problematic if we want to
avoid transiting unnecessary changes.
DeltaFile
+33-0clang/test/Modules/no-local-decl-in-reduced-bmi.cppm
+4-0clang/lib/Serialization/ASTWriter.cpp
+37-02 files

LLVM/project 7d3924cllvm/include/llvm/IR Instructions.h, llvm/lib/IR Instruction.cpp

[IR] Add nowrap flags for trunc instruction (#85592)

This patch adds the nuw (no unsigned wrap) and nsw (no signed wrap)
poison-generating flags to the trunc instruction.

Discourse thread:
https://discourse.llvm.org/t/rfc-add-nowrap-flags-to-trunc/77453
DeltaFile
+48-0llvm/test/Assembler/flags.ll
+37-0llvm/test/Transforms/InstCombine/trunc.ll
+35-0llvm/include/llvm/IR/Instructions.h
+32-2llvm/test/Transforms/SimplifyCFG/HoistCode.ll
+28-4llvm/lib/IR/Instruction.cpp
+23-6llvm/test/Bitcode/flags.ll
+203-129 files not shown
+281-2015 files

LLVM/project 0352028bolt/include/bolt/Profile YAMLProfileWriter.h, bolt/lib/Profile YAMLProfileWriter.cpp DataAggregator.cpp

Fixed setting of BAT secondary entry point, updated test

Created using spr 1.3.4
DeltaFile
+44-27bolt/lib/Profile/YAMLProfileWriter.cpp
+49-3bolt/test/X86/yaml-secondary-entry-discriminator.s
+2-9bolt/include/bolt/Profile/YAMLProfileWriter.h
+2-9bolt/lib/Profile/DataAggregator.cpp
+97-484 files

LLVM/project ba6b2d2lldb/include/lldb/Utility Scalar.h, lldb/source/Utility Scalar.cpp

[LLDB] Add APFloat helper functions to Scalar class. (#86862)

This adds the ability to create a Scalar from an APFloat, and to create
an APFloat from an APSInt or another APFloat.
DeltaFile
+58-0lldb/unittests/Utility/ScalarTest.cpp
+42-0lldb/source/Utility/Scalar.cpp
+5-0lldb/include/lldb/Utility/Scalar.h
+105-03 files

LLVM/project e005a09llvm/lib/CodeGen TypePromotion.cpp, llvm/test/CodeGen/RISCV rv64-typepromotion.ll

[RISCV][TypePromotion] Dont generate truncs if PromotedType is greater than Source Type (#86941)

We currently check if the source and promoted types are not equal before
generating truncate instructions. This does not work for RV64 where the
promoted type is i64 and this lead to a crash due to the generation of
truncate instructions from i32 to i64.

Fixes #86400
DeltaFile
+27-0llvm/test/CodeGen/RISCV/rv64-typepromotion.ll
+1-1llvm/lib/CodeGen/TypePromotion.cpp
+28-12 files

LLVM/project c64a328llvm/lib/ProfileData InstrProfWriter.cpp

[ProfileData] Use size_t in PatchItem (NFC) (#87014)

size_t in PatchItem eliminates the need for casts.
DeltaFile
+7-7llvm/lib/ProfileData/InstrProfWriter.cpp
+7-71 files

LLVM/project 1d99d7allvm/include/llvm/Transforms/IPO SampleProfileMatcher.h, llvm/include/llvm/Transforms/Utils SampleProfileLoaderBaseImpl.h

[SampleFDO][NFC] Refactoring SampleProfileMatcher (#86988)

Move all the stale profile matching stuffs into new files so that it can
be shared for unit testing.
DeltaFile
+4-668llvm/lib/Transforms/IPO/SampleProfile.cpp
+552-0llvm/lib/Transforms/IPO/SampleProfileMatcher.cpp
+154-0llvm/include/llvm/Transforms/IPO/SampleProfileMatcher.h
+4-0llvm/include/llvm/Transforms/Utils/SampleProfileLoaderBaseImpl.h
+1-1llvm/test/Transforms/SampleProfile/pseudo-probe-callee-profile-mismatch.ll
+1-1llvm/test/Transforms/SampleProfile/pseudo-probe-stale-profile-matching-lto.ll
+716-6702 files not shown
+718-6718 files

LLVM/project 89bae85utils/bazel/llvm-project-overlay/llvm BUILD.bazel lit_test.bzl

[bazel] Fix lit tests with python 3.11+ (#87022)

In python3.11 there is a new environment variable PYTHONSAFEPATH which
stops python from setting the current directory as the first entry in
sys.path. Bazel started setting this to ensure that python targets
don't accidentally access things that aren't in their dependency tree.
This resulted in lit tests breaking because sys.path didn't include the
directory to the lit source files. This is fixed by adding the lit
binary to the dependency tree and propagating the import path from it.

Fixes https://github.com/llvm/llvm-project/issues/75963
DeltaFile
+1-0utils/bazel/llvm-project-overlay/llvm/BUILD.bazel
+1-0utils/bazel/llvm-project-overlay/llvm/lit_test.bzl
+2-02 files

LLVM/project 39e8137llvm/lib/Transforms/Instrumentation HWAddressSanitizer.cpp

[NFC] [HWASan] add example for ring buffer wrap (#87029)

Also another move comment to correct place.
DeltaFile
+16-2llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
+16-21 files

LLVM/project d1cc6b8llvm/lib/Transforms/Instrumentation HWAddressSanitizer.cpp

nit

Created using spr 1.3.4
DeltaFile
+1-1llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
+1-11 files

LLVM/project 278d49fllvm/lib/Transforms/Instrumentation HWAddressSanitizer.cpp

[𝘀𝗽𝗿] initial version

Created using spr 1.3.4
DeltaFile
+16-2llvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
+16-21 files

LLVM/project 01e02e0llvm/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/test/Transforms/SLPVectorizer/RISCV init-ext-node-not-truncable.ll

[SLP]Fix PR87011: Do not assume that initial ext/trunc nodes can be
represented by bitwidth without analysis.

Need to check that initial ext/trunc nodes can be safely represented
using calculated bitwidth before applying it.
DeltaFile
+9-3llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+2-2llvm/test/Transforms/SLPVectorizer/RISCV/init-ext-node-not-truncable.ll
+11-52 files

LLVM/project 338be79llvm/test/Transforms/SLPVectorizer/RISCV init-ext-node-not-truncable.ll

[SLP][NFC]Add a test with the incorrect sign extension of first ext
node.
DeltaFile
+29-0llvm/test/Transforms/SLPVectorizer/RISCV/init-ext-node-not-truncable.ll
+29-01 files

LLVM/project 7a87902compiler-rt/lib/scudo/standalone stack_depot.h

[scudo] Fix stack depot validation. (#87024)

In the StackDepot::isValid function, there is work to validate the
TabMask variable. Unfortunately, if TabMask is set to the maximum
allowed value, TabSize = TabMask + 1 becomes zero and validation passes.

Disallow that case to prevent invalid reads into the Tab structure.
DeltaFile
+1-1compiler-rt/lib/scudo/standalone/stack_depot.h
+1-11 files

LLVM/project 93bd86dllvm/test/CodeGen/AMDGPU global_atomics_i32_system.ll global_atomics_i64_system.ll, llvm/test/CodeGen/RISCV make-compressible-zbc.mir

improve tests and comments

Created using spr 1.3.5-bogner
DeltaFile
+931-5llvm/test/CodeGen/RISCV/GlobalISel/vararg.ll
+489-318openmp/libomptarget/plugins-nextgen/common/src/PluginInterface.cpp
+274-519llvm/test/CodeGen/X86/masked_store.ll
+585-0llvm/test/CodeGen/RISCV/make-compressible-zbc.mir
+0-564llvm/test/CodeGen/AMDGPU/global_atomics_i32_system.ll
+0-564llvm/test/CodeGen/AMDGPU/global_atomics_i64_system.ll
+2,279-1,970813 files not shown
+22,912-9,488819 files

LLVM/project c4aa3b0llvm/docs/CommandGuide llvm-objcopy.rst

Update llvm/docs/CommandGuide/llvm-objcopy.rst

Co-authored-by: James Henderson <46713263+jh7370 at users.noreply.github.com>
DeltaFile
+1-1llvm/docs/CommandGuide/llvm-objcopy.rst
+1-11 files

LLVM/project 07a1fbellvm/docs InstrProfileFormat.rst

[docs][TypeProf]Update instrumentation file format document (#83309)

This is a follow-up to the profile format change in https://github.com/llvm/llvm-project/pull/82711
DeltaFile
+53-0llvm/docs/InstrProfileFormat.rst
+53-01 files

LLVM/project d0b4780llvm/docs InstrProfileFormat.rst, llvm/include/llvm/ProfileData InstrProf.h

[nfc][docs]Generalize header description and ascii art for indexed profiles (#83507)

- Add pointers to code for source of truth.
- Move necessary details from doc to code.
DeltaFile
+37-39llvm/docs/InstrProfileFormat.rst
+6-0llvm/include/llvm/ProfileData/InstrProf.h
+43-392 files

LLVM/project 5906b1aclang/test/APINotes module-cache.m

[APINotes][test] Fix permissions of a file copied from a source tree

Our CI system makes the source tree read-only. The 'cp' command that
copies a directory from the source tree into a temp directory preserves
permissions, and the copied files stay read-only. When the test tries to
append to one of these files, it fails with a "permission denied" error.
DeltaFile
+1-0clang/test/APINotes/module-cache.m
+1-01 files