[all-commits] [llvm/llvm-project] 2a14c0: [lldb] Make Broadcaster mutexes non-recursive (#97...
Shaw Young via All-commits
all-commits at lists.llvm.org
Wed Jul 3 11:37:30 PDT 2024
Branch: refs/heads/users/shawbyoung/spr/bolt-name-similarity-function-matching
Home: https://github.com/llvm/llvm-project
Commit: 2a14c0643597c5932af85f22172c99800f9b4a6c
https://github.com/llvm/llvm-project/commit/2a14c0643597c5932af85f22172c99800f9b4a6c
Author: Pavel Labath <pavel at labath.sk>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M lldb/include/lldb/Utility/Broadcaster.h
M lldb/source/Utility/Broadcaster.cpp
M lldb/source/Utility/Listener.cpp
M lldb/unittests/Utility/ListenerTest.cpp
Log Message:
-----------
[lldb] Make Broadcaster mutexes non-recursive (#97400)
Non-recursive mutexes encourage better locking discipline and avoid bugs
like #96750, where one can unexpectedly re-enter the critical section on
the same thread, and interrupt a presumed-indivisible operation.
In this case, the only needed fix was to remove locking from some
BroadcastManager functions, which were only called from the Listener
class (and the listener already locked those mutexes to preserve lock
ordering).
While doing that, I noticed we don't have unit tests for these
functions, so I added one.
Commit: 1787d4b28417ea9f26c0213e8f597cc5bb289144
https://github.com/llvm/llvm-project/commit/1787d4b28417ea9f26c0213e8f597cc5bb289144
Author: Stefan Gränitz <stefan.graenitz at gmail.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M clang/lib/Interpreter/Interpreter.cpp
M clang/unittests/Interpreter/InterpreterTest.cpp
Log Message:
-----------
[clang-repl] Fix RuntimeInterfaceBuilder for 32-bit systems (#97071)
When generating runtime interface bindings, extend integral types to the
native register size rather than 64-bit per se
Fixes #94994
Commit: aa0851a5a6fd0c8d66dfd8b259c215dba3fabd1e
https://github.com/llvm/llvm-project/commit/aa0851a5a6fd0c8d66dfd8b259c215dba3fabd1e
Author: Michael Buch <michaelbuch12 at gmail.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M lldb/source/Plugins/Language/CPlusPlus/LibCxxMap.cpp
Log Message:
-----------
[lldb][DataFormatter][NFC] Remove redundant variables in std::map formatter
Redundant since:
```
commit be3be28b5d5c97de1c26bf069e0b82043d938f30
Author: Enrico Granata <egranata at apple.com>
Date: Mon Oct 3 23:33:00 2016 +0000
Changes to the std::multimap formatter to make it work against trunk libc++
Fixes rdar://28237486
llvm-svn: 283160
```
Commit: da62f5f8dfe4d4196191b40dc41e1ef2de1bf5cb
https://github.com/llvm/llvm-project/commit/da62f5f8dfe4d4196191b40dc41e1ef2de1bf5cb
Author: Michael Buch <michaelbuch12 at gmail.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M lldb/source/Plugins/Language/CPlusPlus/LibCxxMap.cpp
Log Message:
-----------
[lldb][DataFormatter][NFC] std::map: Add comments and other minor cleanups
Commit: e89890e8e510f2b76c8c4a2b2a6fc323b1e837ad
https://github.com/llvm/llvm-project/commit/e89890e8e510f2b76c8c4a2b2a6fc323b1e837ad
Author: Michael Buch <michaelbuch12 at gmail.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M lldb/source/Plugins/Language/CPlusPlus/LibCxxMap.cpp
Log Message:
-----------
[lldb][DataFormatter][NFC] std::map: minor restructuring in GetChildAtIndex to use early-return
Commit: 40278bb1193720c42911f7297d3bcb4c5af5bc9c
https://github.com/llvm/llvm-project/commit/40278bb1193720c42911f7297d3bcb4c5af5bc9c
Author: Slava Zakharin <szakharin at nvidia.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M flang/lib/Lower/OpenACC.cpp
M flang/test/Lower/OpenACC/acc-data.f90
M flang/test/Lower/OpenACC/acc-enter-data.f90
M flang/test/Lower/OpenACC/acc-exit-data.f90
M flang/test/Lower/OpenACC/acc-parallel.f90
M flang/test/Lower/OpenACC/acc-serial.f90
M flang/test/Lower/OpenACC/acc-update.f90
M mlir/include/mlir/Dialect/OpenACC/OpenACC.h
M mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
M mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
Log Message:
-----------
[mlir][acc] Added async to data clause operations. (#97307)
As long as the data clause operations are not tightly
"associated" with the compute/data operations (e.g.
they can be optimized as SSA producers and made block
arguments), the information about the original async()
clause should be attached to the data clause operations
to make it easier to generate proper runtime actions
for them. This change propagates the async() information
from the OpenACC data/compute constructs to the data clause
operations. This change also adds the CurrentDeviceIdResource
to guarantee proper ordering of the operations that read
and write the current device identifier.
Commit: 68a1944070caa33d73390e1a6d956c6abdbea872
https://github.com/llvm/llvm-project/commit/68a1944070caa33d73390e1a6d956c6abdbea872
Author: Benjamin Maxwell <benjamin.maxwell at arm.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M mlir/lib/Dialect/Vector/IR/ScalableValueBoundsConstraintSet.cpp
M mlir/test/Dialect/Vector/test-scalable-bounds.mlir
Log Message:
-----------
[mlir][vector] Project out anonymous bounds in ScalableValueBoundsConstraintSet (#96499)
If we don't eliminate these columns, then in some cases we fail to
compute a scalable bound. Test case reduced from a real-world example.
Commit: a3571376ad9555de07e4d8f74f92de1eaa4c486e
https://github.com/llvm/llvm-project/commit/a3571376ad9555de07e4d8f74f92de1eaa4c486e
Author: Nikita Popov <npopov at redhat.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/test/Transforms/InstCombine/scalarization.ll
Log Message:
-----------
[InstCombine] Add test for #97053 (NFC)
Commit: 4d2ae88d1617a910ec3a1436ce53579523ac2f97
https://github.com/llvm/llvm-project/commit/4d2ae88d1617a910ec3a1436ce53579523ac2f97
Author: Nikita Popov <npopov at redhat.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
M llvm/test/Transforms/InstCombine/scalarization.ll
Log Message:
-----------
[InstCombine] Fix invalid scalarization of div
If the binop is not speculatable, and the extract index is out of
range, then scalarizing will perform the operation on a poison
operand, resulting in immediate UB, instead of the previous
poison result.
Fixes https://github.com/llvm/llvm-project/issues/97053.
Commit: d8c07342c021f31f08dee7d15e17f7eca0d1aae0
https://github.com/llvm/llvm-project/commit/d8c07342c021f31f08dee7d15e17f7eca0d1aae0
Author: Alexis Engelke <engelke at in.tum.de>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M clang-tools-extra/clangd/index/remote/server/Server.cpp
M clang-tools-extra/clangd/tool/ClangdMain.cpp
M llvm/include/llvm/Support/raw_ostream.h
M llvm/lib/Support/raw_ostream.cpp
M llvm/unittests/Support/raw_ostream_test.cpp
Log Message:
-----------
[Support] Move raw_ostream::tie to raw_fd_ostream (#97396)
Originally, tie was introduced by D81156 to flush stdout before writing
to stderr. 030897523 reverted this due to race conditions. Nonetheless,
it does cost performance, causing an extra check in the "cold" path,
which is actually the hot path for raw_svector_ostream. Given that this
feature is only used for errs(), move it to raw_fd_ostream so that it no
longer affects performance of other stream classes.
Commit: bb260eb87d9bebd93e64051b574fbce0eebbad30
https://github.com/llvm/llvm-project/commit/bb260eb87d9bebd93e64051b574fbce0eebbad30
Author: Alexis Engelke <engelke at in.tum.de>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/CodeGen/PHIElimination.cpp
M llvm/test/CodeGen/AMDGPU/branch-folding-implicit-def-subreg.ll
M llvm/test/CodeGen/X86/bfloat.ll
M llvm/test/CodeGen/X86/div-rem-pair-recomposition-signed.ll
Log Message:
-----------
[CodeGen] Only deduplicate PHIs on critical edges (#97064)
PHIElim deduplicates identical PHI nodes to reduce the number of copies
inserted. There are two cases:
1. Identical PHI nodes are in different blocks. That's the reason for
this optimization; this can't be avoided at SSA-level. A necessary
prerequisite for this is that the predecessors of all basic blocks
(where such a PHI node could occur) are the same. This implies that
all (>= 2) predecessors must have multiple successors, i.e. all edges
into the block are critical edges.
2. Identical PHI nodes are in the same block. CSE can remove these.
There are a few cases, however, where they still occur regardless:
- expand-large-div-rem creates PHI nodes with large integers, which
get lowered into one PHI per MVT. Later, some identical values
(zeroes) get folded, resulting in identical PHI nodes.
- peephole-opt occasionally inserts PHIs for the same value.
- Some pseudo instruction emitters create redundant PHI nodes (e.g.,
AVR's insertShift), merging the same values more than once.
In any case, this happens rarely and MachineCSE handles most cases
anyway, so that PHIElim only gets to see very few of such cases (see
changed test files).
Currently, all PHI nodes are inserted into a DenseMap that checks
equality not by pointer but by operands. This hash map is pretty
expensive (hashing itself and the hash map), but only really useful in
the first case.
Avoid this expensive hashing most of the time by restricting it to basic
blocks with only critical input edges. This improves performance for
code with many PHI nodes, especially at -O0. (Note that Clang often
doesn't generate PHI nodes and -O0 includes no mem2reg. Other
compilers always generate PHI nodes.)
Commit: 3b73cb3bf138d2ad7f354c9d26037d769cfe9d53
https://github.com/llvm/llvm-project/commit/3b73cb3bf138d2ad7f354c9d26037d769cfe9d53
Author: David Green <david.green at arm.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
M llvm/test/CodeGen/AArch64/GlobalISel/combine-shufflevector.mir
Log Message:
-----------
[AArch64][GlobalISel] Create copy rather than single-element concat
The verifier does not accept single-element G_CONCAT_VECTORS, so if there is a
single Op generate a COPY instead.
Commit: 5a1a46722948b79803826f1b11877ffcf102c094
https://github.com/llvm/llvm-project/commit/5a1a46722948b79803826f1b11877ffcf102c094
Author: Dominik Adamski <dominik.adamski at amd.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M clang/lib/Driver/ToolChains/AMDGPUOpenMP.cpp
M clang/test/Driver/amdgpu-openmp-toolchain.c
Log Message:
-----------
Revert "[AMDGPU][OpenMP] Do not attach -fcuda-is-device flag for AMDGPU OpenMP" (#97531)
Reverts llvm/llvm-project#96909 (commit ID: 8bb00cb160830ec8f6029c2aae79d3e46b04b99c)
It breaks OpenMP CI:
https://gitlab.e4s.io/uo-public/llvm-openmp-offloading/-/jobs/283716
Commit: edbbc832a5308e4f6943583965e74254799f13ae
https://github.com/llvm/llvm-project/commit/edbbc832a5308e4f6943583965e74254799f13ae
Author: Ramkumar Ramachandra <ramkumar.ramachandra at codasip.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/include/llvm/IR/ConstantRange.h
M llvm/lib/IR/ConstantRange.cpp
M llvm/unittests/IR/ConstantRangeTest.cpp
Log Message:
-----------
ConstantRange: add query for isAllPositive (#97420)
ConstantRange has queries for isAllNegative and isAllNonNegative, but
misses a query for isAllPositive. Add this function.
Commit: 915ee0b823a528456226de513f303483d5fe0793
https://github.com/llvm/llvm-project/commit/915ee0b823a528456226de513f303483d5fe0793
Author: Ramkumar Ramachandra <ramkumar.ramachandra at codasip.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/Transforms/Scalar/LoopDistribute.cpp
M llvm/test/Transforms/LoopDistribute/debug-print.ll
A llvm/test/tools/UpdateTestChecks/update_analyze_test_checks/Inputs/loop-distribute.ll
A llvm/test/tools/UpdateTestChecks/update_analyze_test_checks/Inputs/loop-distribute.ll.expected
A llvm/test/tools/UpdateTestChecks/update_analyze_test_checks/loop-distribute.test
M llvm/utils/UpdateTestChecks/common.py
M llvm/utils/update_analyze_test_checks.py
Log Message:
-----------
UTC: support debug output from LDist (#93208)
Tweak the LoopDistribute debug output to be prefixed with "LDist: ", get
it to be stable, and extend update_analyze_test_checks.py trivially to
support this output.
Commit: f819302a09dfec201f3ee4ef79b77a1e4c1de00d
https://github.com/llvm/llvm-project/commit/f819302a09dfec201f3ee4ef79b77a1e4c1de00d
Author: Ramkumar Ramachandra <ramkumar.ramachandra at codasip.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M mlir/include/mlir/Analysis/Presburger/IntegerRelation.h
M mlir/include/mlir/Analysis/Presburger/Simplex.h
M mlir/lib/Analysis/FlatLinearValueConstraints.cpp
M mlir/lib/Analysis/Presburger/IntegerRelation.cpp
M mlir/lib/Analysis/Presburger/PresburgerRelation.cpp
M mlir/lib/Analysis/Presburger/Simplex.cpp
M mlir/lib/Analysis/Presburger/Utils.cpp
Log Message:
-----------
mlir/Presburger: reinstate use of LogicalResult (#97415)
Follow up on a desire post-landing d0fee98 (mlir/Presburger: strip
dependency on MLIRSupport) to reinstate the use of LogicalResult in
Presburger. Since db791b2 (mlir/LogicalResult: move into llvm),
LogicalResult is in LLVM, and fulfilling this desire is possible while
still maintaining the goal of stripping the Presburger library of mlir
dependencies.
Commit: da24d3a79d73c725d1b672263e558a3de6cbcde9
https://github.com/llvm/llvm-project/commit/da24d3a79d73c725d1b672263e558a3de6cbcde9
Author: Kazu Hirata <kazu at google.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/AsmParser/LLParser.cpp
Log Message:
-----------
[AsmParser] Use range-based for loops (NFC) (#97499)
Commit: 2b3376f35340d86d766dc8007534f137bf93aed3
https://github.com/llvm/llvm-project/commit/2b3376f35340d86d766dc8007534f137bf93aed3
Author: Allen <zhongyunde at huawei.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
M llvm/test/Transforms/InstCombine/xor.ll
Log Message:
-----------
[InstCombine] Guard noundef for transformation from xor to or disjoint (#96905)
Fix https://github.com/llvm/llvm-project/issues/96857
Commit: b76dd4edbfbba5593b691ef92b755f25cf63f445
https://github.com/llvm/llvm-project/commit/b76dd4edbfbba5593b691ef92b755f25cf63f445
Author: Jay Foad <jay.foad at amd.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp
M llvm/test/CodeGen/AMDGPU/GlobalISel/global-atomic-fadd.f32-rtn.ll
M llvm/test/CodeGen/AMDGPU/global-atomic-fadd.f32-rtn.ll
M llvm/test/CodeGen/AMDGPU/global-atomicrmw-fadd-wrong-subtarget.ll
M llvm/test/CodeGen/AMDGPU/global_atomic_optimizer_fp_rtn.ll
M llvm/test/CodeGen/AMDGPU/local-atomicrmw-fadd.ll
Log Message:
-----------
[AMDGPU] Disable atomic optimization of fadd/fsub with result (#96479)
An atomic fadd instruction like this should return %x:
; value at %ptr is %x
%r = atomicrmw fadd ptr %ptr, float %y
After atomic optimization, if %y is uniform, the result is calculated
as %r = %x + * %y * +0.0. This has a couple of problems:
1. If %y is Inf or NaN, this will return NaN instead of %x.
2. If %x is -0.0 and %y is positive, this will return +0.0 instead of
-0.0.
Avoid these problems by disabling the "%y is uniform" path if there are
any uses of the result.
Commit: 1eec81a831dcf925c0c86c153e8dce019a5b5436
https://github.com/llvm/llvm-project/commit/1eec81a831dcf925c0c86c153e8dce019a5b5436
Author: Nikita Popov <npopov at redhat.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/Analysis/LazyValueInfo.cpp
M llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
M llvm/test/Transforms/CorrelatedValuePropagation/icmp.ll
M llvm/test/Transforms/CorrelatedValuePropagation/vectors.ll
Log Message:
-----------
[CVP][LVI] Add support for vectors (#97428)
The core change here is to add support for converting vector constants
into constant ranges. The rest is just relaxing isIntegerTy() checks and
making sure we don't use APIs that assume vectors.
There are a couple of places that don't support vectors yet, most
notably the "simplest" fold (comparisons to a constant) isn't supported
yet. I'll leave these to a followup.
Commit: a6d289da0cce99b28658f264b7f9496e3648232e
https://github.com/llvm/llvm-project/commit/a6d289da0cce99b28658f264b7f9496e3648232e
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/Target/X86/X86ISelLowering.cpp
M llvm/test/CodeGen/X86/is_fpclass-fp80.ll
M llvm/test/CodeGen/X86/movmsk-bittest.ll
Log Message:
-----------
[X86] Add checkSignTestSetCCCombine - if X86ISD::CMP/OR is testing for signbits, attempt to test for the signbit source instead. (#97433)
There's a lot more we could do here (including the reverse fold back to X86::COND_S/NS with some other X86ISD nodes), but I wanted to address the MOVMSK issue initially.
Fixes #66191
Commit: 298e292a76289d93f7c1a80c26e354830c6080e4
https://github.com/llvm/llvm-project/commit/298e292a76289d93f7c1a80c26e354830c6080e4
Author: Tsz Chan <keithcth2001 at gmail.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/IR/Instructions.cpp
M llvm/unittests/IR/InstructionsTest.cpp
Log Message:
-----------
[IR] Add overflow check in AllocaInst::getAllocationSize (#97170)
Fixes #91380.
Commit: 7de7f50fc9d76ced7a971a66abf59aab6f9e5be6
https://github.com/llvm/llvm-project/commit/7de7f50fc9d76ced7a971a66abf59aab6f9e5be6
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp
M llvm/test/Transforms/PhaseOrdering/X86/blendv-select.ll
M llvm/test/Transforms/PhaseOrdering/X86/pr67803.ll
Log Message:
-----------
[InstCombine][X86] Fold blendv(x,y,shuffle(bitcast(sext(m)))) -> select(shuffle(m),x,y) (#96882)
We already handle blendv(x,y,bitcast(sext(m))) -> select(m,x,y) cases, but this adds support for peeking through one-use shuffles as well. VectorCombine should already have canonicalized the IR to shuffle(bitcast(...)) for us.
The particular use case is where we have split generic 256/512-bit code to use target-specific blendv intrinsics (e.g. AVX1 spoofing AVX2 256-bit ops).
Fixes #58895
Commit: bcb7c38af7de59f3b2201734ee11987839cd7bbe
https://github.com/llvm/llvm-project/commit/bcb7c38af7de59f3b2201734ee11987839cd7bbe
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Headers/float.h
M clang/test/Headers/float.c
M clang/www/c_status.html
Log Message:
-----------
[C23] Add INFINITY and NAN macros to <float.h> (#96659)
This is in support of WG14 N2848 which only define the macros if
an infinity or nan are supported. However, because we support builtins
that can produce an infinity or a NAN, and because we have pragmas
that control infinity or NAN behavior, we always define the macros even
if the user passed -ffinite-math-only on the command line.
Commit: 5fd5b8ada70d9cbdaa8cc5bea50a6314e3140364
https://github.com/llvm/llvm-project/commit/5fd5b8ada70d9cbdaa8cc5bea50a6314e3140364
Author: Sven van Haastregt <sven.vanhaastregt at arm.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M clang/lib/CodeGen/CodeGenModule.cpp
A clang/test/CodeGenOpenCLCXX/version.clcpp
Log Message:
-----------
[OpenCL] Emit opencl.cxx.version metadata for C++ (#92140)
Currently there is no way to tell whether an IR module was generated
using `-cl-std=cl3.0` or `-cl-std=clc++2021`, i.e., whether the origin
was a OpenCL C or C++ for OpenCL source.
Add new `opencl.cxx.version` named metadata when compiling C++. Keep the
`opencl.ocl.version` metadata to convey the compatible OpenCL C version.
Fixes https://github.com/llvm/llvm-project/issues/91912
Commit: d37e7ec2c5c3ecfd6a4612c1798d62d343ceb254
https://github.com/llvm/llvm-project/commit/d37e7ec2c5c3ecfd6a4612c1798d62d343ceb254
Author: Fabian Ritter <fabian.ritter at amd.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/Transforms/Utils/LowerMemIntrinsics.cpp
M llvm/test/CodeGen/AMDGPU/lower-mem-intrinsics.ll
Log Message:
-----------
[LowerMemIntrinsics] Respect the volatile argument of llvm.memmove (#97545)
So far, we ignored if a memmove intrinsic is volatile when lowering it
to loops in the IR. This change generates volatile loads and stores in
this case (similar to how memcpy is handled) and adds tests for volatile
memmoves and memcpys.
Commit: 82f9a5ba965dc1a40fe955b8205dd863bf6385cf
https://github.com/llvm/llvm-project/commit/82f9a5ba965dc1a40fe955b8205dd863bf6385cf
Author: Youngsuk Kim <youngsuk.kim at hpe.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/MC/MCParser/AsmParser.cpp
M llvm/lib/MC/MCParser/MasmParser.cpp
M llvm/lib/Support/JSON.cpp
M llvm/lib/Support/LockFileManager.cpp
M llvm/lib/TableGen/Main.cpp
M llvm/lib/TableGen/SetTheory.cpp
Log Message:
-----------
[llvm] Avoid 'raw_string_ostream::str' (NFC)
Since `raw_string_ostream` doesn't own the string buffer, it is
desirable (in terms of memory safety) for users to directly reference
the string buffer rather than use `raw_string_ostream::str()`.
Work towards TODO comment to remove `raw_string_ostream::str()`.
Commit: 18eef6802c36fc1744834fa761831aa805714d9e
https://github.com/llvm/llvm-project/commit/18eef6802c36fc1744834fa761831aa805714d9e
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp
Log Message:
-----------
Fix signed/unsigned integer comparison warning. NFC.
Commit: c1af97db1e3846db1188149afe86cee6585dfc9a
https://github.com/llvm/llvm-project/commit/c1af97db1e3846db1188149afe86cee6585dfc9a
Author: Timm Bäder <tbaeder at redhat.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M clang/lib/AST/Interp/Interp.h
M clang/lib/AST/Interp/Pointer.cpp
M clang/lib/AST/Interp/Pointer.h
M clang/test/AST/Interp/literals.cpp
Log Message:
-----------
[clang][Interp] Diagnose comparisons against one-past-end pointers
Commit: 52cc7c003a2851e66586dc15c6dc813355e147c6
https://github.com/llvm/llvm-project/commit/52cc7c003a2851e66586dc15c6dc813355e147c6
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
A llvm/test/Transforms/InstCombine/X86/x86-pmulh.ll
A llvm/test/Transforms/InstCombine/X86/x86-pmulhrs.ll
A llvm/test/Transforms/InstCombine/X86/x86-pmulhu.ll
Log Message:
-----------
[InstCombine][X86] Add tests for special case, constant folding and demanded elts handling for PMULH style intrinsics
Commit: fb7f65ba468f462103599e762c86f49b420cd984
https://github.com/llvm/llvm-project/commit/fb7f65ba468f462103599e762c86f49b420cd984
Author: Koakuma <koachan at protonmail.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp
M llvm/lib/Target/Sparc/MCTargetDesc/SparcELFObjectWriter.cpp
M llvm/lib/Target/Sparc/MCTargetDesc/SparcMCTargetDesc.h
A llvm/test/MC/Sparc/elf-sparc-machine-type.s
Log Message:
-----------
[SPARC][IAS] Emit the correct ELF machine type (#96583)
Emit the correct machine type when writing out ELF objects.
This patch is modeled on GCC's behavior:
- `-m32` emits an object of type EM_SPARC;
- `-m32 -mcpu=v9` emits EM_SPARC32PLUS (however, see below); and
- `-m64` emits EM_SPARCV9.
Note that GCC does not guarantee emission of EM_SPARC32PLUS objects,
since GNU as doesn't support user control of emitted machine type.
It will always autodetect the type based on the instruction mix:
- If there's a V9 instruction inside, then emit EM_SPARC32PLUS; and
- Emit EM_SPARC otherwise.
For LLVM we choose deterministic behavior instead for simplicity.
Commit: 7c96469ea86a8d41aaa1bdb51b14894b0fbf16c0
https://github.com/llvm/llvm-project/commit/7c96469ea86a8d41aaa1bdb51b14894b0fbf16c0
Author: Noah Goldstein <goldstein.w.n at gmail.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/Analysis/ValueTracking.cpp
M llvm/test/Transforms/InstCombine/icmp-select-implies-common-op.ll
M llvm/test/Transforms/InstCombine/range-check.ll
M llvm/test/Transforms/LoopVectorize/X86/pr23997.ll
M llvm/test/Transforms/NewGVN/pr35125.ll
Log Message:
-----------
[ValueTracking] Extend LHS/RHS with matching operand to work without constants.
Previously we only handled the `L0 == R0` case if both `L1` and `R1`
where constant.
We can get more out of the analysis using general constant ranges
instead.
For example, `X u> Y` implies `X != 0`.
In general, any strict comparison on `X` implies that `X` is not equal
to the boundary value for the sign and constant ranges with/without
sign bits can be useful in deducing implications.
Closes #85557
Commit: 488fdb7d1245af5651ba77630f81412648ba7ae3
https://github.com/llvm/llvm-project/commit/488fdb7d1245af5651ba77630f81412648ba7ae3
Author: serge-sans-paille <sguelton at mozilla.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M lld/test/ELF/as-needed-no-reloc.s
M lld/test/ELF/as-needed.s
M lld/test/ELF/auxiliary.s
M lld/test/ELF/dynamic-reloc.s
M lld/test/ELF/filter.s
M lld/test/ELF/gc-sections-shared.s
M lld/test/ELF/no-soname.s
M lld/test/ELF/partition-synthetic-sections.s
M lld/test/ELF/push-state.s
M lld/test/ELF/shared-ppc64.s
M lld/test/ELF/shared.s
M lld/test/ELF/soname.s
M lld/test/ELF/soname2.s
M lld/test/ELF/wrap-drop-shared-original.s
M llvm/test/tools/llvm-ifs/write-stub.test
M llvm/test/tools/llvm-readobj/ELF/dynamic-malformed.test
M llvm/test/tools/llvm-readobj/ELF/dynamic-tags.test
M llvm/test/tools/llvm-readobj/ELF/loadname.test
M llvm/tools/llvm-readobj/ELFDumper.cpp
Log Message:
-----------
Revert "[llvm-readobj][ELF] Test multivalued rpath entries and alter the output for readobj to emphasize the single valued nature of NEEDED, SONAME, USED etc. (#96562)"
Reverted due to output change that breaks downstream project, see
https://github.com/llvm/llvm-project/pull/96562#issuecomment-2204938038
This reverts commit 161e1689ba98fabba71cac21f536708c78e9d7b0.
Commit: e8c94149d3ca12d4d02fb8de89981c68ffa278f3
https://github.com/llvm/llvm-project/commit/e8c94149d3ca12d4d02fb8de89981c68ffa278f3
Author: Alexandre Ganea <aganea at havenstudios.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/docs/ReleaseNotes.rst
M llvm/test/tools/llvm-config/paths.test
M llvm/tools/llvm-config/llvm-config.cpp
Log Message:
-----------
[llvm-config] Quote and escape paths if necessary (#97305)
If any of the printed paths by `llvm-config` contains quotes, spaces,
backslashes or dollar sign characters, these paths will be quoted and
the corresponding characters will be escaped.
Following discussion in https://github.com/llvm/llvm-project/pull/76304
Fixes https://github.com/llvm/llvm-project/issues/28117
Commit: 08888d0e6b2e02f1f4f34e2bf71a5d4fe8e0e039
https://github.com/llvm/llvm-project/commit/08888d0e6b2e02f1f4f34e2bf71a5d4fe8e0e039
Author: David Spickett <david.spickett at linaro.org>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/docs/ReleaseNotes.rst
Log Message:
-----------
[llvm][Docs] Add release note for lldb's support for register enums
Commit: d5c9ffd545ebf171346ac69b15fafeee469f0b3c
https://github.com/llvm/llvm-project/commit/d5c9ffd545ebf171346ac69b15fafeee469f0b3c
Author: Yingwei Zheng <dtcxzyw2333 at gmail.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
A llvm/test/CodeGen/AArch64/pr96366.ll
M llvm/test/CodeGen/AMDGPU/dagcombine-fma-crash.ll
A llvm/test/CodeGen/RISCV/pr96366.ll
Log Message:
-----------
[SDAG] Intersect poison-generating flags after CSE (#97434)
This patch fixes a miscompilation when `N` gets CSEed to `Existing`:
```
Existing: t5: i32 = sub nuw Constant:i32<0>, t3
N: t30: i32 = sub Constant:i32<0>, t3
```
Fixes https://github.com/llvm/llvm-project/issues/96366.
Commit: 3e7ddcc3dcbe9b1e82473c0591af8b5fa24cbe7f
https://github.com/llvm/llvm-project/commit/3e7ddcc3dcbe9b1e82473c0591af8b5fa24cbe7f
Author: David Spickett <david.spickett at linaro.org>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/docs/ReleaseNotes.rst
Log Message:
-----------
[llvm][Docs] Fix some incorrect RST syntax in the tools release notes
Commit: c2072d993a443f08ab1bac8a3d5575e1a48663c7
https://github.com/llvm/llvm-project/commit/c2072d993a443f08ab1bac8a3d5575e1a48663c7
Author: Nikita Popov <npopov at redhat.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
M llvm/test/Transforms/CorrelatedValuePropagation/vectors.ll
Log Message:
-----------
[CVP] Support vectors for and elision
Commit: c20695a44817d52abda3dee495ef2a172ca315fa
https://github.com/llvm/llvm-project/commit/c20695a44817d52abda3dee495ef2a172ca315fa
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp
M llvm/test/Transforms/InstCombine/X86/x86-pmulh.ll
M llvm/test/Transforms/InstCombine/X86/x86-pmulhrs.ll
M llvm/test/Transforms/InstCombine/X86/x86-pmulhu.ll
Log Message:
-----------
[InstCombine][X86] simplifyDemandedVectorEltsIntrinsic - add handling for PMULH/PMULHU/PMULHRS intrinsics
Commit: 4ee4bc3cf259419c3d87711df1f96742a0914a0c
https://github.com/llvm/llvm-project/commit/4ee4bc3cf259419c3d87711df1f96742a0914a0c
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp
M llvm/test/Transforms/InstCombine/X86/x86-pmulh.ll
M llvm/test/Transforms/InstCombine/X86/x86-pmulhrs.ll
M llvm/test/Transforms/InstCombine/X86/x86-pmulhu.ll
Log Message:
-----------
[InstCombine][X86] Add zero/undef arg handling for MULH/PMULHU/PMULHRS intrinsics
Commit: acaa0262a98fe8ecc525bdbdc2692d803e50976a
https://github.com/llvm/llvm-project/commit/acaa0262a98fe8ecc525bdbdc2692d803e50976a
Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M clang/lib/Sema/SemaOpenMP.cpp
Log Message:
-----------
[clang][OpenMP] Use leaf constructs in `mapLoopConstruct` (#97446)
This removes mentions of specific combined directives.
Also, add a quote from the OpenMP spec to explain the code dealing with
the `bind` clause.
Commit: 6461b921fd06b1c812f1172685b8b7edc0608af7
https://github.com/llvm/llvm-project/commit/6461b921fd06b1c812f1172685b8b7edc0608af7
Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M clang/lib/Sema/SemaOpenMP.cpp
Log Message:
-----------
[clang][OpenMP] Change `ActOnOpenMPRegionStart` to use captured regions (#97445)
Instead of checking specific directives, this function now gets the list
of captured regions, and processes them individually. This makes this
function directive-agnostic (except a few cases of leaf constructs).
Commit: 0778b5d0d296edaca2ac52f2c8d2c806d492355a
https://github.com/llvm/llvm-project/commit/0778b5d0d296edaca2ac52f2c8d2c806d492355a
Author: Nikita Popov <npopov at redhat.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/test/Transforms/InstCombine/saturating-add-sub.ll
Log Message:
-----------
[InstCombine] Add test for computeConstantRange() with non-splat poison (NFC)
Commit: 2dbb454791044e3ef91c8e7069f953b7406d78c6
https://github.com/llvm/llvm-project/commit/2dbb454791044e3ef91c8e7069f953b7406d78c6
Author: Nikita Popov <npopov at redhat.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/include/llvm/Analysis/ValueTracking.h
M llvm/lib/Analysis/LazyValueInfo.cpp
M llvm/lib/Analysis/ValueTracking.cpp
M llvm/test/Transforms/InstCombine/saturating-add-sub.ll
Log Message:
-----------
[ValueTracking][LVI] Consolidate vector constant range calculation
Add a common helper used for computeConstantRange() and LVI. The
implementation is a mix of both, with the efficient handling for
ConstantDataVector taken from computeConstantRange(), and the
general handling (including non-splat poison) from LVI.
Commit: c1004cad4b62b70c4b316a49c5426271d4e1d740
https://github.com/llvm/llvm-project/commit/c1004cad4b62b70c4b316a49c5426271d4e1d740
Author: Nikita Popov <npopov at redhat.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/include/llvm/Analysis/LazyValueInfo.h
M llvm/lib/Analysis/LazyValueInfo.cpp
Log Message:
-----------
[LVI] Use CmpInst::Predicate in APIs (NFC)
Unfortunately this requires including InstrTypes.h in the header,
but I think that's fine given that that LazyValueInfo.h is not
widely used.
Commit: dde3f17026be48c05a5d3876f12db72fdd6422ed
https://github.com/llvm/llvm-project/commit/dde3f17026be48c05a5d3876f12db72fdd6422ed
Author: David Spickett <david.spickett at linaro.org>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
A lldb/test/API/commands/expression/bitfield_enums/Makefile
A lldb/test/API/commands/expression/bitfield_enums/TestBitfieldEnums.py
A lldb/test/API/commands/expression/bitfield_enums/main.cpp
Log Message:
-----------
[lldb] Fix printing of unsigned enum bitfields when they contain the max value (#96202)
While testing register fields I found that if you put the max value into
a bitfield with an underlying type that is an unsigned enum, lldb would
not print the enum name.
This is because the code to match values to names wasn't checking
whether the enum's type was signed, it just assumed it was.
So for example a 2 bit field with value 3 got signed extended to -1,
which didn't match the enumerator value of 3. So lldb just printed the
number instead of the name.
For a value of 1, the top bit was 0 so the sign extend became a zero
extend, and lldb did print the name of the enumerator.
I added a new test because I needed to use C++ to get typed enums. It
checks min, max and an in between value for signed and unsigned enums
applied to a bitfield.
Commit: 41fddc4ec3302f125a5b84ae86c8027dedc89984
https://github.com/llvm/llvm-project/commit/41fddc4ec3302f125a5b84ae86c8027dedc89984
Author: David Spickett <david.spickett at linaro.org>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
M lldb/test/Shell/SymbolFile/DWARF/x86/debug-types-missing-signature.test
M lldb/unittests/ValueObject/DumpValueObjectOptionsTests.cpp
Log Message:
-----------
[lldb] Print empty enums as if they were unrecognised normal enums (#97553)
Fixes #97514
Given this example:
```
enum E {};
int main()
{
E x = E(0);
E y = E(1);
E z = E(2);
return 0;
}
```
lldb used to print nothing for `x`, but `0x1` for `y` and `0x2` for `z`.
At first this seemed like the 0 case needed fixing but the real issue
here is that en enum with no enumerators was being detected as a
"bitfield like enum".
Which is an enum where all enumerators are a single bit value, or the
sum of previous single bit values.
For these we do not print anything for a value of 0, as we assume it
must be the remainder after we've printed the other bits that were set
(I think this is also unfortunate, but I'm not addressing that here).
Clearly an enum with no enumerators cannot be being used as a bitfield,
so check that up front and print it as if it's a normal enum where we
didn't match any of the enumerators. This means you now get:
```
(lldb) p x
(E) 0
(lldb) p y
(E) 1
(lldb) p z
(E) 2
```
Which is a change to decimal from hex, but I think it's overall more
consistent. Printing hex here was never a concious decision.
Commit: 31015240d366e4bf6f114856caa6e9ce90742b7f
https://github.com/llvm/llvm-project/commit/31015240d366e4bf6f114856caa6e9ce90742b7f
Author: David Spickett <david.spickett at linaro.org>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
M lldb/unittests/ValueObject/DumpValueObjectOptionsTests.cpp
Log Message:
-----------
[lldb] Print "0x0" for bitfield like enums where the value is 0 (#97557)
Enums like this one are treated as bitfield like enums: enum FlagsLike
{B=2, C=4};
lldb recognises them as collections of flags, so you can have "B | C".
If there's any values not covered that's printed as hex "B | C | 0x1".
What happened if the value was 0 was we would not match any of the
enumerators, then the remainder check requires that the remainder is
non-zero. So lldb would print nothing at all.
Which I assume is a bug because knowing that no flags are set is useful,
just as much as knowing that some unkown bit was set to make it
non-zero.
Commit: 50c81128de8616117118564eff22cf508cba7848
https://github.com/llvm/llvm-project/commit/50c81128de8616117118564eff22cf508cba7848
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
A clang/test/C/C23/Inputs/bits.bin
A clang/test/C/C23/Inputs/boop.h
A clang/test/C/C23/Inputs/i.dat
A clang/test/C/C23/Inputs/jump.wav
A clang/test/C/C23/Inputs/s.dat
A clang/test/C/C23/n2322.c
A clang/test/C/C23/n2350.c
A clang/test/C/C23/n2359.c
A clang/test/C/C23/n2508.c
A clang/test/C/C23/n2549.c
A clang/test/C/C23/n2607.c
A clang/test/C/C23/n2670.c
A clang/test/C/C23/n2683.c
A clang/test/C/C23/n2683_2.c
A clang/test/C/C23/n2819.c
A clang/test/C/C23/n2826.c
A clang/test/C/C23/n2836_n2939.c
A clang/test/C/C23/n2838.c
A clang/test/C/C23/n2886.c
A clang/test/C/C23/n2900_n3011.c
A clang/test/C/C23/n2900_n3011_2.c
A clang/test/C/C23/n2927.c
A clang/test/C/C23/n2927_2.c
A clang/test/C/C23/n2930.c
A clang/test/C/C23/n2934.c
A clang/test/C/C23/n2940.c
A clang/test/C/C23/n2975.c
A clang/test/C/C23/n3007.c
A clang/test/C/C23/n3017.c
A clang/test/C/C23/n3018.c
A clang/test/C/C23/n3033.c
A clang/test/C/C23/n3033_2.c
A clang/test/C/C23/n3035.c
A clang/test/C/C23/n3042.c
R clang/test/C/C2x/Inputs/bits.bin
R clang/test/C/C2x/Inputs/boop.h
R clang/test/C/C2x/Inputs/i.dat
R clang/test/C/C2x/Inputs/jump.wav
R clang/test/C/C2x/Inputs/s.dat
R clang/test/C/C2x/n2322.c
R clang/test/C/C2x/n2350.c
R clang/test/C/C2x/n2359.c
R clang/test/C/C2x/n2508.c
R clang/test/C/C2x/n2549.c
R clang/test/C/C2x/n2607.c
R clang/test/C/C2x/n2670.c
R clang/test/C/C2x/n2683.c
R clang/test/C/C2x/n2683_2.c
R clang/test/C/C2x/n2819.c
R clang/test/C/C2x/n2826.c
R clang/test/C/C2x/n2836_n2939.c
R clang/test/C/C2x/n2838.c
R clang/test/C/C2x/n2886.c
R clang/test/C/C2x/n2900_n3011.c
R clang/test/C/C2x/n2900_n3011_2.c
R clang/test/C/C2x/n2927.c
R clang/test/C/C2x/n2927_2.c
R clang/test/C/C2x/n2930.c
R clang/test/C/C2x/n2934.c
R clang/test/C/C2x/n2940.c
R clang/test/C/C2x/n2975.c
R clang/test/C/C2x/n3007.c
R clang/test/C/C2x/n3017.c
R clang/test/C/C2x/n3018.c
R clang/test/C/C2x/n3033.c
R clang/test/C/C2x/n3033_2.c
R clang/test/C/C2x/n3035.c
R clang/test/C/C2x/n3042.c
Log Message:
-----------
Rename C2x to C23; NFC
This renames the test directory for C23 tests.
Commit: 495452e7da8fad7bd311fd041530d72c101da643
https://github.com/llvm/llvm-project/commit/495452e7da8fad7bd311fd041530d72c101da643
Author: Izaak Schroeder <izaak.schroeder at gmail.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M libunwind/src/UnwindCursor.hpp
Log Message:
-----------
[libunwind] Remove needless `sys/uio.h` (#97495)
No reference to `readv` or `writev`. This makes `libcxx` happy when
compiling against clang's `libc` as part of
https://github.com/llvm/llvm-project/issues/97191.
Commit: 9ce895c1ae12ebed4249f2d693dcbff146193c60
https://github.com/llvm/llvm-project/commit/9ce895c1ae12ebed4249f2d693dcbff146193c60
Author: Nikolas Klauser <nikolasklauser at berlin.de>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M libcxx/utils/ci/Dockerfile
Log Message:
-----------
[libc++] Use GCC compilers from compiler explorer (#97219)
This avoids the very recent system requirements for new GCC versions,
making it a lot easier to update GCC in a timely manner.
Commit: 7bb251a91a4f57aed458aa0572c135b5374cd2f2
https://github.com/llvm/llvm-project/commit/7bb251a91a4f57aed458aa0572c135b5374cd2f2
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp
M llvm/test/Transforms/InstCombine/X86/x86-pmulh.ll
M llvm/test/Transforms/InstCombine/X86/x86-pmulhrs.ll
M llvm/test/Transforms/InstCombine/X86/x86-pmulhu.ll
Log Message:
-----------
[InstCombine][X86] Add constant folding for PMULH/PMULHU/PMULHRS intrinsics
Commit: aa3c84c85c8c2ef5b8665932e7934458a44504ce
https://github.com/llvm/llvm-project/commit/aa3c84c85c8c2ef5b8665932e7934458a44504ce
Author: Aaron Ballman <aaron at aaronballman.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M clang/www/cxx_status.html
Log Message:
-----------
Clang 19 isn't yet released; NFC
...just updates the colors in the table.
Commit: 54aa1d28b6a26b4980df4d5448fb64d19dc1a100
https://github.com/llvm/llvm-project/commit/54aa1d28b6a26b4980df4d5448fb64d19dc1a100
Author: Timm Bäder <tbaeder at redhat.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M clang/lib/AST/Interp/Compiler.cpp
M clang/test/CodeGenCXX/atomicinit.cpp
Log Message:
-----------
[clang][Interp] Fix initializing atomic record types
Remove the atomic type when visiting InitListExprs.
Commit: 0865b782f62fadcdb82e5bd7be432c96109228d0
https://github.com/llvm/llvm-project/commit/0865b782f62fadcdb82e5bd7be432c96109228d0
Author: A. Jiang <de34 at live.cn>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M libcxx/include/__exception/nested_exception.h
M libcxx/test/std/language.support/support.exception/except.nested/rethrow_if_nested.pass.cpp
Log Message:
-----------
[libc++] Fix the signatures of `std::rethrow_if_nested` (#91365)
Fixes #54470.
See https://eel.is/c++draft/global.functions#2:
> A call to a non-member function signature described in [support]
> through [thread] and [depr] shall behave as if the implementation
> declared no additional non-member function signatures.
and https://eel.is/c++draft/global.functions#3:
> An implementation shall not declare a non-member function signature
> with additional default arguments.
Commit: 86d456ad8f2aef6edcc36d44d26119025331981e
https://github.com/llvm/llvm-project/commit/86d456ad8f2aef6edcc36d44d26119025331981e
Author: Kirill <77356738+kirillpyasecky at users.noreply.github.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M utils/bazel/examples/http_archive/WORKSPACE
Log Message:
-----------
Fix error: name 'maybe' is not defined (#96741)
Commit: f1a8f94bba8b090a0d667065e4b8b4fc66b6a5cc
https://github.com/llvm/llvm-project/commit/f1a8f94bba8b090a0d667065e4b8b4fc66b6a5cc
Author: OverMighty <its.overmighty at gmail.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M libc/docs/build_and_test.rst
Log Message:
-----------
[libc][docs] Add doc for using containers to test on a different arch (#97431)
Commit: f7b09b5225a58a657fc0315377438077f9e9363f
https://github.com/llvm/llvm-project/commit/f7b09b5225a58a657fc0315377438077f9e9363f
Author: Izaak Schroeder <izaak.schroeder at gmail.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M libc/spec/gnu_ext.td
Log Message:
-----------
[libc] Add function spec for `getauxval` (#97492)
Does what it says on the box.
Commit: 56f0ecd6db9219b7d14a8eda613d6b75060643eb
https://github.com/llvm/llvm-project/commit/56f0ecd6db9219b7d14a8eda613d6b75060643eb
Author: realqhc <caiqihan021 at hotmail.com>
Date: 2024-07-04 (Thu, 04 Jul 2024)
Changed paths:
M llvm/include/llvm/IR/IntrinsicsRISCVXCV.td
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/lib/Target/RISCV/RISCVInstrInfoXCV.td
A llvm/test/CodeGen/RISCV/xcvalu.ll
Log Message:
-----------
[RISCV] Implement Intrinsics Support for XCValu Extension in CV32E40P (#85603)
Implement XCValu intrinsics for CV32E40P according to the specification.
This commit is part of a patch-set to upstream the vendor specific
extensions of CV32E40P that need LLVM intrinsics to implement Clang
builtins.
Contributors: @CharKeaney, @ChunyuLiao, @jeremybennett, @lewis-revill,
@NandniJamnadas, @PaoloS02, @serkm, @simonpcook, @xingmingjie.
Commit: 07fa7fc00f3ad5a349ae53d576f48bfd54121a7f
https://github.com/llvm/llvm-project/commit/07fa7fc00f3ad5a349ae53d576f48bfd54121a7f
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/test/Transforms/InstCombine/X86/x86-pmulh.ll
M llvm/test/Transforms/InstCombine/X86/x86-pmulhrs.ll
M llvm/test/Transforms/InstCombine/X86/x86-pmulhu.ll
Log Message:
-----------
[InstCombine][X86] Add multiply-by-one tests for PMULH/PMULHU/PMULHRS intrinsics
PMULH/PMULHU will simplify, PMULHRS doesn't really and we're better off keeping the intrinsic
Commit: cb48ad6603c237b0832b88cb85530a58a1a6a01c
https://github.com/llvm/llvm-project/commit/cb48ad6603c237b0832b88cb85530a58a1a6a01c
Author: David Green <david.green at arm.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
Log Message:
-----------
[AArch64] Clean up formatting of AArch64FrameLowering. NFC
Commit: 1db4221c6da0f77517e1921f7c17a6f4e493e38f
https://github.com/llvm/llvm-project/commit/1db4221c6da0f77517e1921f7c17a6f4e493e38f
Author: Vyacheslav Levytskyy <vyacheslav.levytskyy at intel.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp
A llvm/test/CodeGen/SPIRV/function/forward-call-type-inference.ll
Log Message:
-----------
[SPIR-V] Fix a crash in SPIRV Backend during the 'finalize lowering' stage on management of function forward calls (#97435)
This PR is to fix a crash in SPIRV Backend during the 'finalize
lowering' stage on management of function forward calls. The reproducer
is committed as a new test case.
Commit: bf9e9e5e843838f9bc905d4a0d575d8d39e9b5f2
https://github.com/llvm/llvm-project/commit/bf9e9e5e843838f9bc905d4a0d575d8d39e9b5f2
Author: Vyacheslav Levytskyy <vyacheslav.levytskyy at intel.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
M llvm/lib/Target/SPIRV/SPIRVBuiltins.h
M llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
M llvm/lib/Target/SPIRV/SPIRVISelLowering.cpp
M llvm/test/CodeGen/SPIRV/transcoding/spirv-event-null.ll
Log Message:
-----------
[SPIR-V] Improve type inference for a known instruction's builtin: OpGroupAsyncCopy (#96895)
This PR improves type inference for a known instruction's builtin:
OpGroupAsyncCopy:
* deduce a type of one source/destination pointer when it's possible to
deduce a type of another argument, and
* validate src and dest types and tries to unfold a parameter if it's a
structure wrapper around a scalar/vector type.
Commit: f60f7b47a92dbf2f3d994868d3cd43b86a18a76c
https://github.com/llvm/llvm-project/commit/f60f7b47a92dbf2f3d994868d3cd43b86a18a76c
Author: Simon Pilgrim <llvm-dev at redking.me.uk>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp
M llvm/test/Transforms/InstCombine/X86/x86-pmulh.ll
M llvm/test/Transforms/InstCombine/X86/x86-pmulhu.ll
Log Message:
-----------
[InstCombine][X86] Add multiply-by-one handling for MULH/PMULHU/PMULHRS intrinsics
MULH/PMULHU simplifies to ASHR/ZERO as they just become a SEXT/ZEXT sign-splat instruction
PMULHRS doesn't simplify as much so I've not attempted to fold it.
Commit: f057130b169fe551b1fec6633fadba26ef19bcdd
https://github.com/llvm/llvm-project/commit/f057130b169fe551b1fec6633fadba26ef19bcdd
Author: Jonas Devlieghere <jonas at devlieghere.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M lldb/include/lldb/Target/Platform.h
M lldb/source/Target/Platform.cpp
Log Message:
-----------
[lldb] Remove commented-out Platform::FindPlugin (NFC)
Commit: 3ab2247d10673419609333a33bca0eca8a56bf3d
https://github.com/llvm/llvm-project/commit/3ab2247d10673419609333a33bca0eca8a56bf3d
Author: Nikita Popov <npopov at redhat.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/IR/ConstantRange.cpp
Log Message:
-----------
[ConstantRange] Optimize icmp() implementation (NFC)
These are pretty hot code paths, so provide direct implementations
for them, instead of going through makeSatisfyingICmpRegion().
Commit: 584e431a4b257098d1ff13a0e9926842222ba601
https://github.com/llvm/llvm-project/commit/584e431a4b257098d1ff13a0e9926842222ba601
Author: Krystian Stasiowski <sdkrystian at gmail.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M clang/lib/Sema/SemaType.cpp
A clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p5-cxx14.cpp
Log Message:
-----------
[Clang][Sema] Treat explicit specializations of static data member templates declared without 'static' as static data members when diagnosing uses of 'auto' (#97425)
After #93873 clang no longer permits declarations of explicit
specializations of static data member templates to use the `auto`
_placeholder-type-specifier_:
```
struct A {
template<int N>
static constexpr auto x = 0;
template<>
constexpr auto x<1> = 1; // error: 'auto' not allowed in non-static struct member
};
```
This patch fixes the issue.
Commit: ab930ee7cad8b8bf7968bb8d0c0d72524e2313c4
https://github.com/llvm/llvm-project/commit/ab930ee7cad8b8bf7968bb8d0c0d72524e2313c4
Author: Fred Grim <fgrim at apple.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M lld/test/ELF/gnu-property-align-32.s
M lld/test/ELF/gnu-property-align.s
M lld/test/ELF/partition-notes.s
M llvm/test/tools/llvm-objcopy/ELF/add-note.test
M llvm/test/tools/llvm-readobj/ELF/AArch64/aarch64-feature-pauth.s
M llvm/test/tools/llvm-readobj/ELF/AArch64/aarch64-note-gnu-property.s
M llvm/test/tools/llvm-readobj/ELF/AArch64/memtag.test
M llvm/test/tools/llvm-readobj/ELF/AArch64/note-android-unknown.test
M llvm/test/tools/llvm-readobj/ELF/gnu-note-size.test
M llvm/test/tools/llvm-readobj/ELF/gnu-notes.test
M llvm/test/tools/llvm-readobj/ELF/note-amd-invalid-v2.test
M llvm/test/tools/llvm-readobj/ELF/note-amd-invalid-v3.test
M llvm/test/tools/llvm-readobj/ELF/note-amd-valid-v2.test
M llvm/test/tools/llvm-readobj/ELF/note-amd-valid-v3.s
M llvm/test/tools/llvm-readobj/ELF/note-amd.s
M llvm/test/tools/llvm-readobj/ELF/note-amdgpu-invalid.s
M llvm/test/tools/llvm-readobj/ELF/note-amdgpu.test
M llvm/test/tools/llvm-readobj/ELF/note-core-ntfile.test
M llvm/test/tools/llvm-readobj/ELF/note-core.test
M llvm/test/tools/llvm-readobj/ELF/note-freebsd-core.test
M llvm/test/tools/llvm-readobj/ELF/note-freebsd.test
M llvm/test/tools/llvm-readobj/ELF/note-generic.s
M llvm/test/tools/llvm-readobj/ELF/note-gnu-property.s
M llvm/test/tools/llvm-readobj/ELF/note-gnu-property2.s
M llvm/test/tools/llvm-readobj/ELF/note-llvmompoffload.test
A llvm/test/tools/llvm-readobj/ELF/note-multiple-sections.test
M llvm/test/tools/llvm-readobj/ELF/note-netbsd-core.test
M llvm/test/tools/llvm-readobj/ELF/note-openbsd-core.test
M llvm/test/tools/llvm-readobj/ELF/note-unknown.s
M llvm/test/tools/llvm-readobj/archive.test
M llvm/tools/llvm-readobj/ELFDumper.cpp
Log Message:
-----------
[llvm-readobj][ELF] Alter JSON/LLVM output on note sections to allow for multiple notes per section in JSON (#96813)
It turns out that the notes section for corefiles (or really any elf
file with multiple notes) is set up in such a way for LLVM formatted
output that the JSON equivalent only has the last note since the notes
are held in a dictionary with every key being Note. This pr alters the
layout for the notes to a list of dictionaries to sidestep this issue
for JSON output. Prior to this pr a note section in the output looked
like (for LLVM output):
```
Notes [
NoteSection {
Name: <?>
Offset: 0x2148
Size: 0x1F864
Note {
Owner: CORE
Data size: 0x150
Type: NT_PRSTATUS (prstatus structure)
Description data (
0000: 06000000 00000000 00000000 06000000 |................|
...
)
}
Note {
Owner: CORE
Data size: 0x88
Type: NT_PRPSINFO (prpsinfo structure)
Description data (
0000: 02440000 00000000 04054040 00000000 |.D........@@....|
....
```
But is now:
```
NoteSections [
NoteSection {
Name: <?>
Offset: 0x2148
Size: 0x1F864
Notes [
{
Owner: CORE
Data size: 0x150
Type: NT_PRSTATUS (prstatus structure)
Description data (
0000: 06000000 00000000 00000000 06000000 |................|
...
)
}
{
Owner: CORE
Data size: 0x88
Type: NT_PRPSINFO (prpsinfo structure)
Description data (
0000: 02440000 00000000 04054040 00000000 |.D........@@....|
...
```
Commit: 3386d24ff4e5dae07e33326c12c8d7dfd29de06a
https://github.com/llvm/llvm-project/commit/3386d24ff4e5dae07e33326c12c8d7dfd29de06a
Author: Kamau Bridgeman <kamau.bridgeman.ibm at gmail.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h
M llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
M llvm/lib/DebugInfo/GSYM/DwarfTransformer.cpp
Log Message:
-----------
Revert "Reduce llvm-gsymutil memory usage" (#97603)
Reverts llvm/llvm-project#91023
Build break found in clang-ppc64le-linux-multistage build no. 583.
Commit: 5da7179cb3ff80203f58ddea71562816b2ae4ff6
https://github.com/llvm/llvm-project/commit/5da7179cb3ff80203f58ddea71562816b2ae4ff6
Author: Jeffrey Byrnes <Jeffrey.Byrnes at amd.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/Target/AMDGPU/AMDGPULateCodeGenPrepare.cpp
M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
A llvm/test/CodeGen/AMDGPU/GlobalISel/vni8-across-blocks.ll
M llvm/test/CodeGen/AMDGPU/amdgpu-codegenprepare-break-large-phis.ll
M llvm/test/CodeGen/AMDGPU/dagcomb-extract-vec-elt-different-sizes.ll
M llvm/test/CodeGen/AMDGPU/extract-subvector-16bit.ll
M llvm/test/CodeGen/AMDGPU/extract-subvector.ll
M llvm/test/CodeGen/AMDGPU/llc-pipeline.ll
M llvm/test/CodeGen/AMDGPU/sdwa-peephole.ll
M llvm/test/CodeGen/AMDGPU/vni8-across-blocks.ll
A llvm/test/CodeGen/AMDGPU/vni8-live-reg-opt.ll
Log Message:
-----------
[AMDGPU] Reland: Add IR LiveReg type-based optimization
Commit: 9667e6044a2fce85f2fb35cd1731cbc8491f1871
https://github.com/llvm/llvm-project/commit/9667e6044a2fce85f2fb35cd1731cbc8491f1871
Author: Jon Roelofs <jonathan_roelofs at apple.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/unittests/TargetParser/TargetParserTest.cpp
Log Message:
-----------
[llvm][AArch64] Drop unused&redundant field in the TargetParserTest. NFC (#97367)
There were a couple of cases where this field was just plain wrong
because we weren't actually testing against it. Instead, drop the
`CPUAttr` field on AArch64 tests.
Commit: 94471e6d238acab291b5b652fc18f17c4815cc7d
https://github.com/llvm/llvm-project/commit/94471e6d238acab291b5b652fc18f17c4815cc7d
Author: Arthur Eubanks <aeubanks at google.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/lib/Analysis/MLInlineAdvisor.cpp
A llvm/test/Transforms/Inline/ML/dead-callee.ll
Log Message:
-----------
[MLInliner] Handle CGSCC changes from #94815 (#96274)
With #94815, the nodes belonging to dead functions are no longer
invalidated, but kept around to batch delete at the end of the call
graph walk.
The ML inliner needs to be updated to handle this. This fixes some
asserts getting hit, e.g. https://crbug.com/348376263.
Commit: 77d131eddb6ca9060c844fae9cb78779fa70c8f0
https://github.com/llvm/llvm-project/commit/77d131eddb6ca9060c844fae9cb78779fa70c8f0
Author: jimingham <jingham at apple.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M lldb/bindings/python/python-wrapper.swig
M lldb/docs/use/python-reference.rst
M lldb/examples/python/cmdtemplate.py
M lldb/include/lldb/Interpreter/CommandObject.h
M lldb/include/lldb/Interpreter/ScriptInterpreter.h
M lldb/source/Commands/CommandObjectCommands.cpp
M lldb/source/Commands/CommandObjectThread.cpp
M lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h
M lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
M lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
M lldb/test/API/commands/command/script/add/TestAddParsedCommand.py
M lldb/test/API/commands/command/script/add/test_commands.py
M lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp
Log Message:
-----------
Add the ability for Script based commands to specify their "repeat command" (#94823)
Among other things, returning an empty string as the repeat command
disables auto-repeat, which can be useful for state-changing commands.
There's one remaining refinement to this setup, which is that for parsed
script commands, it should be possible to change an option value, or add
a new option value that wasn't originally specified, then ask lldb "make
this back into a command string". That would make doing fancy things
with repeat commands easier.
That capability isn't present in the lldb_private side either, however.
So that's for a next iteration.
I haven't added this to the docs on adding commands yet. I wanted to
make sure this was an acceptable approach before I spend the time to do
that.
Commit: 845dee36ba4161df153ba05009cea615e20eda5a
https://github.com/llvm/llvm-project/commit/845dee36ba4161df153ba05009cea615e20eda5a
Author: jimingham <jingham at apple.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M lldb/source/API/SBThread.cpp
M lldb/test/API/python_api/thread/TestThreadAPI.py
M lldb/test/API/python_api/thread/main.cpp
Log Message:
-----------
SBThread::StepInstruction shouldn't discard other plans (#97493)
This was just a typo, none of the external execution control functions
should discard other plans. In particular, it means if you stop in a
hand-called function and step an instruction, the function call thread
plan gets unshipped, popping all the function call frames.
I also added a test that asserts the correct behavior. I tested all the
stepping operations even though only StepInstruction was wrong.
Commit: 9e6b46a9846cf5051c2aaef361af0fe1a76c856e
https://github.com/llvm/llvm-project/commit/9e6b46a9846cf5051c2aaef361af0fe1a76c856e
Author: David Truby <david.truby at arm.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M clang/include/clang/Driver/Options.td
M clang/lib/Driver/ToolChains/Clang.cpp
M clang/lib/Driver/ToolChains/CommonArgs.cpp
M clang/lib/Driver/ToolChains/CommonArgs.h
M clang/lib/Driver/ToolChains/Flang.cpp
M flang/include/flang/Frontend/CodeGenOptions.h
M flang/lib/Frontend/CodeGenOptions.cpp
M flang/lib/Frontend/CompilerInstance.cpp
M flang/lib/Frontend/CompilerInvocation.cpp
M flang/lib/Frontend/FrontendActions.cpp
A flang/test/Driver/large-data-threshold.f90
A flang/test/Driver/mcmodel.f90
A flang/test/Lower/large-data-threshold.f90
A flang/test/Lower/mcmodel.f90
Log Message:
-----------
[flang] Implement -mcmodel flag (#95411)
This patch implements the -mcmodel flag from clang, allowing the Code
Model to be changed for the LLVM module. The same set of mcmodel
flags are accepted as in clang and the same Code Model attributes are
added to the LLVM module for those flags.
Also add `-mlarge-data-threshold` for x86-64, which is automatically set
by the shared command-line code (see below). This is also added as an
attribute into the LLVM module and on the target machine.
A function is created for `addMCModel` that is copied out of clang's
argument handling so that it can be shared with flang.
---------
Co-authored-by: Mats Petersson <mats.petersson at arm.com>
Commit: a0176533766201eca58b20a11e42ab30c73d1b1b
https://github.com/llvm/llvm-project/commit/a0176533766201eca58b20a11e42ab30c73d1b1b
Author: Michael Buch <michaelbuch12 at gmail.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M lldb/source/Plugins/Language/CPlusPlus/LibCxxMap.cpp
Log Message:
-----------
[lldb][DataFormatter][NFC] Factor out MapIterator logic into separate helper (#97544)
This patch factors all the logic for advancing the `MapIterator` out of
`GetChildAtIndex`. This, in my opinion, helps readability, and will be
useful for upcoming cleanups in this area.
While here, some drive-by changes:
* added a couple of clarification comments
* fixed a variable name typo
* turned the `return lldb::ValueObjectSP()` into `return nullptr`
* added an assertion to make sure we keep the iterator cache in a valid
state
Commit: d4f3d24e7f016440083a785ded818b8fb410b7d8
https://github.com/llvm/llvm-project/commit/d4f3d24e7f016440083a785ded818b8fb410b7d8
Author: Hansang Bae <hansang.bae at intel.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M openmp/runtime/src/include/omp-tools.h.var
Log Message:
-----------
[OpenMP] Add ompt_start_tool declaration in omp-tools.h (#97099)
The function ompt_start_tool is a globally-visible C function according
to the specification.
Commit: c0d1d0405cb9f55ec12dfb0cec9c5639d3b357d8
https://github.com/llvm/llvm-project/commit/c0d1d0405cb9f55ec12dfb0cec9c5639d3b357d8
Author: Kirill <pyasetskiyr at gmail.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M utils/bazel/examples/submodule/WORKSPACE
Log Message:
-----------
[bazel] Update WORKSPACE file in examples (#97613)
Commit: c940317d023e6790fc20152f354487571d0e3087
https://github.com/llvm/llvm-project/commit/c940317d023e6790fc20152f354487571d0e3087
Author: Thurston Dang <thurston at google.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
A llvm/test/Instrumentation/MemorySanitizer/vector-track-origins-neon.ll
A llvm/test/Instrumentation/MemorySanitizer/vector-track-origins-struct.ll
Log Message:
-----------
[msan] Add test cases for vector shadow track origins bug (#97611)
These test cases demonstrate a bug in MSan (vector shadow is not always
converted to scalar before zext) that will shortly be fixed in
https://github.com/llvm/llvm-project/pull/96722
The bug is not architecture-specific; we provide both x86 and Arm NEON
test cases.
Since the test cases will crash the compiler (unless it is a release
build), they are marked as UNSUPPORTED.
The buggy codepath is nested inside 'if
(instrumentWithCalls(ConvertedShadow)'. To keep the test cases small, we
set -msan-instrumentation-with-call-threshold=0, though we have observed
this bug in the real world with default settings.
Commit: 96c18a2769a48436e01ccc59154b8de9fe305e22
https://github.com/llvm/llvm-project/commit/96c18a2769a48436e01ccc59154b8de9fe305e22
Author: Alexey Bataev <a.bataev at outlook.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/test/Transforms/SLPVectorizer/X86/entries-different-vf.ll
Log Message:
-----------
[SLP][NFC]Make instructions non-foldable, NFC
Commit: d54802092de3d92c4ecd331801970b0d84fecc25
https://github.com/llvm/llvm-project/commit/d54802092de3d92c4ecd331801970b0d84fecc25
Author: Alexis Engelke <engelke at in.tum.de>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M llvm/include/llvm/MC/MCSectionELF.h
M llvm/lib/MC/ELFObjectWriter.cpp
Log Message:
-----------
[MC][ELF] Eliminate some hash maps from ELFObjectWriter (#97421)
Remove some maps. Mostly cleanup, only a slight performance win.
- Replace SectionIndexMap with layout order: The section layout order is
only used in MachO, so we can repurpose the field as section table
index.
- Store section offsets in MCSectionELF: No need for a map, and
especially not a std::map. Direct access to the underlying (and easily
modifyable) data structure is always faster.
- Improve storage of groups: There's no point in having a DenseMap, the
number of sections and groups are reasonably small to use vectors.
Commit: 39a690160dfc380c97e8579413dab96fd4941807
https://github.com/llvm/llvm-project/commit/39a690160dfc380c97e8579413dab96fd4941807
Author: shawbyoung <shawbyoung at gmail.com>
Date: 2024-07-03 (Wed, 03 Jul 2024)
Changed paths:
M clang-tools-extra/clangd/index/remote/server/Server.cpp
M clang-tools-extra/clangd/tool/ClangdMain.cpp
M clang/docs/ReleaseNotes.rst
M clang/include/clang/Driver/Options.td
M clang/lib/AST/Interp/Compiler.cpp
M clang/lib/AST/Interp/Interp.h
M clang/lib/AST/Interp/Pointer.cpp
M clang/lib/AST/Interp/Pointer.h
M clang/lib/CodeGen/CodeGenModule.cpp
M clang/lib/Driver/ToolChains/AMDGPUOpenMP.cpp
M clang/lib/Driver/ToolChains/Clang.cpp
M clang/lib/Driver/ToolChains/CommonArgs.cpp
M clang/lib/Driver/ToolChains/CommonArgs.h
M clang/lib/Driver/ToolChains/Flang.cpp
M clang/lib/Driver/ToolChains/Gnu.cpp
M clang/lib/Headers/float.h
M clang/lib/Interpreter/Interpreter.cpp
M clang/lib/Sema/SemaOpenMP.cpp
M clang/lib/Sema/SemaType.cpp
M clang/test/AST/Interp/literals.cpp
A clang/test/C/C23/Inputs/bits.bin
A clang/test/C/C23/Inputs/boop.h
A clang/test/C/C23/Inputs/i.dat
A clang/test/C/C23/Inputs/jump.wav
A clang/test/C/C23/Inputs/s.dat
A clang/test/C/C23/n2322.c
A clang/test/C/C23/n2350.c
A clang/test/C/C23/n2359.c
A clang/test/C/C23/n2508.c
A clang/test/C/C23/n2549.c
A clang/test/C/C23/n2607.c
A clang/test/C/C23/n2670.c
A clang/test/C/C23/n2683.c
A clang/test/C/C23/n2683_2.c
A clang/test/C/C23/n2819.c
A clang/test/C/C23/n2826.c
A clang/test/C/C23/n2836_n2939.c
A clang/test/C/C23/n2838.c
A clang/test/C/C23/n2886.c
A clang/test/C/C23/n2900_n3011.c
A clang/test/C/C23/n2900_n3011_2.c
A clang/test/C/C23/n2927.c
A clang/test/C/C23/n2927_2.c
A clang/test/C/C23/n2930.c
A clang/test/C/C23/n2934.c
A clang/test/C/C23/n2940.c
A clang/test/C/C23/n2975.c
A clang/test/C/C23/n3007.c
A clang/test/C/C23/n3017.c
A clang/test/C/C23/n3018.c
A clang/test/C/C23/n3033.c
A clang/test/C/C23/n3033_2.c
A clang/test/C/C23/n3035.c
A clang/test/C/C23/n3042.c
R clang/test/C/C2x/Inputs/bits.bin
R clang/test/C/C2x/Inputs/boop.h
R clang/test/C/C2x/Inputs/i.dat
R clang/test/C/C2x/Inputs/jump.wav
R clang/test/C/C2x/Inputs/s.dat
R clang/test/C/C2x/n2322.c
R clang/test/C/C2x/n2350.c
R clang/test/C/C2x/n2359.c
R clang/test/C/C2x/n2508.c
R clang/test/C/C2x/n2549.c
R clang/test/C/C2x/n2607.c
R clang/test/C/C2x/n2670.c
R clang/test/C/C2x/n2683.c
R clang/test/C/C2x/n2683_2.c
R clang/test/C/C2x/n2819.c
R clang/test/C/C2x/n2826.c
R clang/test/C/C2x/n2836_n2939.c
R clang/test/C/C2x/n2838.c
R clang/test/C/C2x/n2886.c
R clang/test/C/C2x/n2900_n3011.c
R clang/test/C/C2x/n2900_n3011_2.c
R clang/test/C/C2x/n2927.c
R clang/test/C/C2x/n2927_2.c
R clang/test/C/C2x/n2930.c
R clang/test/C/C2x/n2934.c
R clang/test/C/C2x/n2940.c
R clang/test/C/C2x/n2975.c
R clang/test/C/C2x/n3007.c
R clang/test/C/C2x/n3017.c
R clang/test/C/C2x/n3018.c
R clang/test/C/C2x/n3033.c
R clang/test/C/C2x/n3033_2.c
R clang/test/C/C2x/n3035.c
R clang/test/C/C2x/n3042.c
A clang/test/CXX/dcl.dcl/dcl.spec/dcl.type/dcl.spec.auto/p5-cxx14.cpp
M clang/test/CodeGenCXX/atomicinit.cpp
A clang/test/CodeGenOpenCLCXX/version.clcpp
M clang/test/Driver/amdgpu-openmp-toolchain.c
M clang/test/Headers/float.c
M clang/unittests/Interpreter/InterpreterTest.cpp
M clang/www/c_status.html
M clang/www/cxx_status.html
M cross-project-tests/lit.cfg.py
M cross-project-tests/lit.site.cfg.py.in
M flang/include/flang/Frontend/CodeGenOptions.h
M flang/lib/Frontend/CodeGenOptions.cpp
M flang/lib/Frontend/CompilerInstance.cpp
M flang/lib/Frontend/CompilerInvocation.cpp
M flang/lib/Frontend/FrontendActions.cpp
M flang/lib/Lower/OpenACC.cpp
A flang/test/Driver/large-data-threshold.f90
A flang/test/Driver/mcmodel.f90
M flang/test/Lower/OpenACC/acc-data.f90
M flang/test/Lower/OpenACC/acc-enter-data.f90
M flang/test/Lower/OpenACC/acc-exit-data.f90
M flang/test/Lower/OpenACC/acc-parallel.f90
M flang/test/Lower/OpenACC/acc-serial.f90
M flang/test/Lower/OpenACC/acc-update.f90
A flang/test/Lower/large-data-threshold.f90
A flang/test/Lower/mcmodel.f90
M libc/docs/build_and_test.rst
M libc/spec/gnu_ext.td
M libcxx/include/__exception/nested_exception.h
M libcxx/test/std/language.support/support.exception/except.nested/rethrow_if_nested.pass.cpp
M libcxx/utils/ci/Dockerfile
M libunwind/src/UnwindCursor.hpp
M lld/test/ELF/as-needed-no-reloc.s
M lld/test/ELF/as-needed.s
M lld/test/ELF/auxiliary.s
M lld/test/ELF/dynamic-reloc.s
M lld/test/ELF/filter.s
M lld/test/ELF/gc-sections-shared.s
M lld/test/ELF/gnu-property-align-32.s
M lld/test/ELF/gnu-property-align.s
M lld/test/ELF/no-soname.s
M lld/test/ELF/partition-notes.s
M lld/test/ELF/partition-synthetic-sections.s
M lld/test/ELF/push-state.s
M lld/test/ELF/shared-ppc64.s
M lld/test/ELF/shared.s
M lld/test/ELF/soname.s
M lld/test/ELF/soname2.s
M lld/test/ELF/wrap-drop-shared-original.s
M lldb/bindings/python/python-wrapper.swig
M lldb/docs/use/python-reference.rst
M lldb/examples/python/cmdtemplate.py
M lldb/include/lldb/Interpreter/CommandObject.h
M lldb/include/lldb/Interpreter/ScriptInterpreter.h
M lldb/include/lldb/Target/Platform.h
M lldb/include/lldb/Utility/Broadcaster.h
M lldb/source/API/SBThread.cpp
M lldb/source/Commands/CommandObjectCommands.cpp
M lldb/source/Commands/CommandObjectThread.cpp
M lldb/source/Plugins/Language/CPlusPlus/LibCxxMap.cpp
M lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h
M lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
M lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
M lldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp
M lldb/source/Target/Platform.cpp
M lldb/source/Utility/Broadcaster.cpp
M lldb/source/Utility/Listener.cpp
M lldb/test/API/commands/command/script/add/TestAddParsedCommand.py
M lldb/test/API/commands/command/script/add/test_commands.py
A lldb/test/API/commands/expression/bitfield_enums/Makefile
A lldb/test/API/commands/expression/bitfield_enums/TestBitfieldEnums.py
A lldb/test/API/commands/expression/bitfield_enums/main.cpp
M lldb/test/API/lit.cfg.py
M lldb/test/API/lit.site.cfg.py.in
M lldb/test/API/python_api/thread/TestThreadAPI.py
M lldb/test/API/python_api/thread/main.cpp
M lldb/test/Shell/SymbolFile/DWARF/x86/debug-types-missing-signature.test
M lldb/test/Shell/helper/toolchain.py
M lldb/test/Shell/lit.site.cfg.py.in
M lldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp
M lldb/unittests/Utility/ListenerTest.cpp
M lldb/unittests/ValueObject/DumpValueObjectOptionsTests.cpp
M llvm/CMakeLists.txt
M llvm/docs/ReleaseNotes.rst
M llvm/include/llvm/Analysis/LazyValueInfo.h
M llvm/include/llvm/Analysis/ValueTracking.h
M llvm/include/llvm/DebugInfo/DWARF/DWARFUnit.h
M llvm/include/llvm/IR/ConstantRange.h
M llvm/include/llvm/IR/IntrinsicsRISCVXCV.td
M llvm/include/llvm/MC/MCSectionELF.h
M llvm/include/llvm/Support/raw_ostream.h
M llvm/lib/Analysis/LazyValueInfo.cpp
M llvm/lib/Analysis/MLInlineAdvisor.cpp
M llvm/lib/Analysis/ValueTracking.cpp
M llvm/lib/AsmParser/LLParser.cpp
M llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
M llvm/lib/CodeGen/PHIElimination.cpp
M llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
M llvm/lib/DebugInfo/DWARF/DWARFUnit.cpp
M llvm/lib/DebugInfo/GSYM/DwarfTransformer.cpp
M llvm/lib/IR/ConstantRange.cpp
M llvm/lib/IR/Instructions.cpp
M llvm/lib/MC/ELFObjectWriter.cpp
M llvm/lib/MC/MCParser/AsmParser.cpp
M llvm/lib/MC/MCParser/MasmParser.cpp
M llvm/lib/Support/JSON.cpp
M llvm/lib/Support/LockFileManager.cpp
M llvm/lib/Support/raw_ostream.cpp
M llvm/lib/TableGen/Main.cpp
M llvm/lib/TableGen/SetTheory.cpp
M llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
M llvm/lib/Target/AMDGPU/AMDGPUAtomicOptimizer.cpp
M llvm/lib/Target/AMDGPU/AMDGPULateCodeGenPrepare.cpp
M llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/lib/Target/RISCV/RISCVInstrInfoXCV.td
M llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp
M llvm/lib/Target/SPIRV/SPIRVBuiltins.h
M llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
M llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp
M llvm/lib/Target/SPIRV/SPIRVISelLowering.cpp
M llvm/lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp
M llvm/lib/Target/Sparc/MCTargetDesc/SparcELFObjectWriter.cpp
M llvm/lib/Target/Sparc/MCTargetDesc/SparcMCTargetDesc.h
M llvm/lib/Target/X86/X86ISelLowering.cpp
M llvm/lib/Target/X86/X86InstCombineIntrinsic.cpp
M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
M llvm/lib/Transforms/InstCombine/InstCombineVectorOps.cpp
M llvm/lib/Transforms/Scalar/CorrelatedValuePropagation.cpp
M llvm/lib/Transforms/Scalar/LoopDistribute.cpp
M llvm/lib/Transforms/Utils/LowerMemIntrinsics.cpp
M llvm/test/CodeGen/AArch64/GlobalISel/combine-shufflevector.mir
A llvm/test/CodeGen/AArch64/pr96366.ll
M llvm/test/CodeGen/AMDGPU/GlobalISel/global-atomic-fadd.f32-rtn.ll
A llvm/test/CodeGen/AMDGPU/GlobalISel/vni8-across-blocks.ll
M llvm/test/CodeGen/AMDGPU/amdgpu-codegenprepare-break-large-phis.ll
M llvm/test/CodeGen/AMDGPU/branch-folding-implicit-def-subreg.ll
M llvm/test/CodeGen/AMDGPU/dagcomb-extract-vec-elt-different-sizes.ll
M llvm/test/CodeGen/AMDGPU/dagcombine-fma-crash.ll
M llvm/test/CodeGen/AMDGPU/extract-subvector-16bit.ll
M llvm/test/CodeGen/AMDGPU/extract-subvector.ll
M llvm/test/CodeGen/AMDGPU/global-atomic-fadd.f32-rtn.ll
M llvm/test/CodeGen/AMDGPU/global-atomicrmw-fadd-wrong-subtarget.ll
M llvm/test/CodeGen/AMDGPU/global_atomic_optimizer_fp_rtn.ll
M llvm/test/CodeGen/AMDGPU/llc-pipeline.ll
M llvm/test/CodeGen/AMDGPU/local-atomicrmw-fadd.ll
M llvm/test/CodeGen/AMDGPU/lower-mem-intrinsics.ll
M llvm/test/CodeGen/AMDGPU/sdwa-peephole.ll
M llvm/test/CodeGen/AMDGPU/vni8-across-blocks.ll
A llvm/test/CodeGen/AMDGPU/vni8-live-reg-opt.ll
A llvm/test/CodeGen/RISCV/pr96366.ll
A llvm/test/CodeGen/RISCV/xcvalu.ll
A llvm/test/CodeGen/SPIRV/function/forward-call-type-inference.ll
M llvm/test/CodeGen/SPIRV/transcoding/spirv-event-null.ll
M llvm/test/CodeGen/X86/bfloat.ll
M llvm/test/CodeGen/X86/div-rem-pair-recomposition-signed.ll
M llvm/test/CodeGen/X86/is_fpclass-fp80.ll
M llvm/test/CodeGen/X86/movmsk-bittest.ll
A llvm/test/Instrumentation/MemorySanitizer/vector-track-origins-neon.ll
A llvm/test/Instrumentation/MemorySanitizer/vector-track-origins-struct.ll
A llvm/test/MC/Sparc/elf-sparc-machine-type.s
M llvm/test/Transforms/CorrelatedValuePropagation/icmp.ll
M llvm/test/Transforms/CorrelatedValuePropagation/vectors.ll
A llvm/test/Transforms/Inline/ML/dead-callee.ll
A llvm/test/Transforms/InstCombine/X86/x86-pmulh.ll
A llvm/test/Transforms/InstCombine/X86/x86-pmulhrs.ll
A llvm/test/Transforms/InstCombine/X86/x86-pmulhu.ll
M llvm/test/Transforms/InstCombine/icmp-select-implies-common-op.ll
M llvm/test/Transforms/InstCombine/range-check.ll
M llvm/test/Transforms/InstCombine/saturating-add-sub.ll
M llvm/test/Transforms/InstCombine/scalarization.ll
M llvm/test/Transforms/InstCombine/xor.ll
M llvm/test/Transforms/LoopDistribute/debug-print.ll
M llvm/test/Transforms/LoopVectorize/X86/pr23997.ll
M llvm/test/Transforms/NewGVN/pr35125.ll
M llvm/test/Transforms/PhaseOrdering/X86/blendv-select.ll
M llvm/test/Transforms/PhaseOrdering/X86/pr67803.ll
M llvm/test/Transforms/SLPVectorizer/X86/entries-different-vf.ll
A llvm/test/tools/UpdateTestChecks/update_analyze_test_checks/Inputs/loop-distribute.ll
A llvm/test/tools/UpdateTestChecks/update_analyze_test_checks/Inputs/loop-distribute.ll.expected
A llvm/test/tools/UpdateTestChecks/update_analyze_test_checks/loop-distribute.test
M llvm/test/tools/llvm-config/paths.test
M llvm/test/tools/llvm-ifs/write-stub.test
M llvm/test/tools/llvm-objcopy/ELF/add-note.test
M llvm/test/tools/llvm-readobj/ELF/AArch64/aarch64-feature-pauth.s
M llvm/test/tools/llvm-readobj/ELF/AArch64/aarch64-note-gnu-property.s
M llvm/test/tools/llvm-readobj/ELF/AArch64/memtag.test
M llvm/test/tools/llvm-readobj/ELF/AArch64/note-android-unknown.test
M llvm/test/tools/llvm-readobj/ELF/dynamic-malformed.test
M llvm/test/tools/llvm-readobj/ELF/dynamic-tags.test
M llvm/test/tools/llvm-readobj/ELF/gnu-note-size.test
M llvm/test/tools/llvm-readobj/ELF/gnu-notes.test
M llvm/test/tools/llvm-readobj/ELF/loadname.test
M llvm/test/tools/llvm-readobj/ELF/note-amd-invalid-v2.test
M llvm/test/tools/llvm-readobj/ELF/note-amd-invalid-v3.test
M llvm/test/tools/llvm-readobj/ELF/note-amd-valid-v2.test
M llvm/test/tools/llvm-readobj/ELF/note-amd-valid-v3.s
M llvm/test/tools/llvm-readobj/ELF/note-amd.s
M llvm/test/tools/llvm-readobj/ELF/note-amdgpu-invalid.s
M llvm/test/tools/llvm-readobj/ELF/note-amdgpu.test
M llvm/test/tools/llvm-readobj/ELF/note-core-ntfile.test
M llvm/test/tools/llvm-readobj/ELF/note-core.test
M llvm/test/tools/llvm-readobj/ELF/note-freebsd-core.test
M llvm/test/tools/llvm-readobj/ELF/note-freebsd.test
M llvm/test/tools/llvm-readobj/ELF/note-generic.s
M llvm/test/tools/llvm-readobj/ELF/note-gnu-property.s
M llvm/test/tools/llvm-readobj/ELF/note-gnu-property2.s
M llvm/test/tools/llvm-readobj/ELF/note-llvmompoffload.test
A llvm/test/tools/llvm-readobj/ELF/note-multiple-sections.test
M llvm/test/tools/llvm-readobj/ELF/note-netbsd-core.test
M llvm/test/tools/llvm-readobj/ELF/note-openbsd-core.test
M llvm/test/tools/llvm-readobj/ELF/note-unknown.s
M llvm/test/tools/llvm-readobj/archive.test
M llvm/tools/llvm-config/llvm-config.cpp
M llvm/tools/llvm-readobj/ELFDumper.cpp
M llvm/unittests/IR/ConstantRangeTest.cpp
M llvm/unittests/IR/InstructionsTest.cpp
M llvm/unittests/Support/raw_ostream_test.cpp
M llvm/unittests/TargetParser/TargetParserTest.cpp
M llvm/utils/UpdateTestChecks/common.py
M llvm/utils/update_analyze_test_checks.py
M mlir/include/mlir/Analysis/Presburger/IntegerRelation.h
M mlir/include/mlir/Analysis/Presburger/Simplex.h
M mlir/include/mlir/Dialect/OpenACC/OpenACC.h
M mlir/include/mlir/Dialect/OpenACC/OpenACCOps.td
M mlir/lib/Analysis/FlatLinearValueConstraints.cpp
M mlir/lib/Analysis/Presburger/IntegerRelation.cpp
M mlir/lib/Analysis/Presburger/PresburgerRelation.cpp
M mlir/lib/Analysis/Presburger/Simplex.cpp
M mlir/lib/Analysis/Presburger/Utils.cpp
M mlir/lib/Dialect/OpenACC/IR/OpenACC.cpp
M mlir/lib/Dialect/Vector/IR/ScalableValueBoundsConstraintSet.cpp
M mlir/test/Dialect/Vector/test-scalable-bounds.mlir
M openmp/runtime/src/include/omp-tools.h.var
M utils/bazel/examples/http_archive/WORKSPACE
M utils/bazel/examples/submodule/WORKSPACE
Log Message:
-----------
Rebase
Created using spr 1.3.4
Compare: https://github.com/llvm/llvm-project/compare/2e0eae45cd17...39a690160dfc
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list