SuccessChanges

Summary

  1. [libc++abi] Fix incorrect XFAILs for mis-aligned _Unwind_Exception on Apple (details)
  2. AMDGPU: Switch test to generated checks (details)
  3. second attempt to fix build after add51e1 (details)
  4. [X86][AVX] getFauxShuffleMask - fix sub vector size check in INSERT_SUBVECTOR(X,SHUFFLE(Y,Z)) (details)
  5. [libcxx testing] Fix more bogus timeouts: condvarany/notify_all.pass.cpp (details)
  6. ARM: Reduce debug info testcase (details)
  7. [SveEmitter] Add SVE ACLE for svld1ro. (details)
  8. [AIX] Update data directives for AIX assembly (details)
  9. [ELF] Append " [--no-allow-shlib-undefined]" to the corresponding diagnostics (details)
  10. [HIP] Change default --gpu-max-threads-per-block value to 1024 (details)
  11. [DAG] SimplifyDemandedBits - peek through SHL if we only demand sign bits. (details)
  12. Fix gcc -Wdocumentation warning. NFC. (details)
  13. [BPF] Remove unnecessary MOV_32_64 instructions (details)
  14. [CodeGen][SVE] Replace deprecated calls in getCopyFromPartsVector() (details)
  15. [LiveVariables] Don't set undef reg PHI used as live for FromMBB (details)
  16. [libcxx testing] Fix bot failure in my last commit (details)
  17. lld: ignore the `-search_paths_first` option on MachO (details)
  18. [CodeGen] Enable tail call position check for speculatable functions (details)
  19. [analyzer] Add support for ObjCIndirectCopyRestoreExpr. (details)
  20. [analyzer] ObjCAutoreleaseWriteChecker: Support explicit autoreleasepools. (details)
  21. [libc++] Support move construction and assignment in <thread> in C++03 (details)
  22. [MLIR] Shape to standard dialect lowering (details)
  23. [lldb/Test] Don't print 'command invoked' (details)
  24. [doc] Fix typo. (details)
  25. [libc++] Fix test broken in C++03 due to requiring C++11 features from vector (details)
  26. [profile] Sync InstrProfData.inc with llvm. (details)
  27. [XCOFF][AIX] Use 'L..' instead of 'L' for PrivateGlobalPrefix (details)
  28. [InstSimplify] fix bug in matching or-with-not op (PR46083) (details)
  29. [AIX] Change the default target CPU to power4 for AIX on Power (details)
  30. [doc] Fix use of ` where `` was intended in attribute docs. (details)
  31. [VectorCombine] Add multi-use multiply test for D80885 (details)
  32. [JITLink] Skip debug sections in MachO objects. (details)
  33. [NewGVN] Add test to ensure metadata is preserved for ssa_copy (NFC) (details)
  34. [AArch64] Add ld3 test case for renaming in ldst-opt (NFC). (details)
  35. [VectorCombine] Add multi-use shl test for D80885 (details)
  36. CoroSplit: Fix coroutine splitting for retcon and retcon.once (details)
  37. lld: use `std::make_unique` (NFC) (details)
  38. [AArch64] Fix stp-opt-with-renaming-ld3.mir with expensive checks. (details)
  39. [lldb/StringPrinter] Convert DecodedCharBuffer to a class, NFC (details)
  40. [lldb/StringPrinter] Support strings with invalid utf8 sub-sequences (details)
  41. [lldb][NFC] Fix documentation formatting in ASTResultSynthesizer (details)
  42. Define __SPIR__ macro for spir/spir64 targets. (details)
  43. [clang-format] [PR46159] Linux kernel 'C' code uses 'try' as a variable name, allow clang-format to handle such cases (details)
  44. [clang-format] [PR46157] Wrong spacing of negative literals with use of operator (details)
  45. [mlir] Remove unneeded inference trait/fns (details)
  46. [IRInterpreter] Unused. Drive-by cleanup. NFCI. (details)
  47. Replace separator in OpenMP variant name mangling. (details)
  48. [Darwin] Improve runtime OS version checks (details)
  49. X86: Switch fastregalloc test to use generated checks (details)
  50. RegAllocFast: Record internal state based on register units (details)
  51. [clang-tidy]: Added modernize-replace-disallow-copy-and-assign-macro (details)
  52. [SVE] Eliminate calls to default-false VectorType::get() from IR (details)
  53. [WebAssembly] Add support for -mexec-model=reactor (details)
  54. Reland "[WebAssembly] Eliminate range checks on br_tables" (details)
  55. [gn build] Fix link with ld.bfd and gold. (details)
  56. [X86] Separate X86_CPU_TYPE_COMPAT_WITH_ALIAS from X86_CPU_TYPE_COMPAT. NFC (details)
Commit bf61891146be78a693ff6a52f05e1a7c8147ba4d by Louis Dionne
[libc++abi] Fix incorrect XFAILs for mis-aligned _Unwind_Exception on Apple

The problem mentioned in the XFAILs has been resolved in macosx10.15, so
the test is now XPASSing on that platform.

rdar://63640184
The file was modifiedlibcxxabi/test/test_exception_address_alignment.pass.cpp
Commit 070362e252e9a8f449aa2537757f77477f3d5203 by Matthew.Arsenault
AMDGPU: Switch test to generated checks

This is was a very frustrating test to update manually.
The file was modifiedllvm/test/CodeGen/AMDGPU/partial-sgpr-to-vgpr-spills.ll
Commit 6780be4c63e582466a35d7644c35e09ba85d4f67 by n.james93
second attempt to fix build after add51e1
The file was modifiedclang-tools-extra/test/clang-tidy/checkers/readability-use-anyofallof.cpp
Commit d9d28b35599cfe39331ae37b74a21ccfb5f78af0 by llvm-dev
[X86][AVX] getFauxShuffleMask - fix sub vector size check in INSERT_SUBVECTOR(X,SHUFFLE(Y,Z))

We were bailing on subvector shuffle inputs that were smaller than the subvector type instead of larger than it.

Fixes PR46178
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
The file was modifiedllvm/test/CodeGen/X86/vector-shuffle-combining-avx512bwvl.ll
Commit 6ce71d2dada6334d6d11cbf51cdac42f40ce12dd by dave
[libcxx testing] Fix more bogus timeouts: condvarany/notify_all.pass.cpp

On slow/busy machines, timing cannot be guaranteed.
The file was modifiedlibcxx/test/std/thread/thread.condition/thread.condition.condvarany/notify_all.pass.cpp
Commit 056a375b7cb54a8f333ace74f4ca564acaecba56 by Matthew.Arsenault
ARM: Reduce debug info testcase

This had multiple functions and only one vague check. Reduce it.
The file was modifiedllvm/test/CodeGen/ARM/2010-08-04-StackVariable.ll
Commit 36b8af11d343911e05c919fc68d1352f49bc087c by francesco.petrogalli
[SveEmitter] Add SVE ACLE for svld1ro.

Reviewers: sdesmalen, efriedma

Subscribers: tschuett, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D80740
The file was modifiedclang/include/clang/Basic/arm_sve.td
The file was addedclang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_ld1ro.c
Commit d20fdcabf82fb30239a3f361950814e39e4c20a8 by daltenty
[AIX] Update data directives for AIX assembly

Summary:
The standard data emission directives (e.g. .short, .long) in the AIX assembler
have the unintended consequence of aligning their output to the natural byte
boundary. This cause problems because we aren't expecting behavior from the
Data*bitsDirectives, so the final alignment of data isn't correct in some cases
on AIX.

This patch updated the Data*bitsDirectives to use .vbyte pseudo-ops instead to emit the
data, since we will emit the .align directives as needed. We update the existing
testcases and add a test for emission of struct data.

Reviewers: hubert.reinterpretcast, Xiangling_L, jasonliu

Reviewed By: hubert.reinterpretcast, jasonliu

Subscribers: wuzish, nemanjai, hiraditya, kbarton, arphaman, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D80934
The file was modifiedllvm/test/CodeGen/PowerPC/aix-xcoff-mergeable-const.ll
The file was modifiedllvm/test/CodeGen/PowerPC/aix-extern.ll
The file was modifiedllvm/test/CodeGen/PowerPC/aix-xcoff-lower-comm.ll
The file was modifiedllvm/test/CodeGen/PowerPC/aix-xcoff-rodata.ll
The file was modifiedllvm/test/CodeGen/PowerPC/aix-reference-func-addr-const.ll
The file was modifiedllvm/test/CodeGen/PowerPC/aix-lower-constant-pool-index.ll
The file was modifiedllvm/lib/Target/PowerPC/MCTargetDesc/PPCMCAsmInfo.cpp
The file was modifiedllvm/test/CodeGen/PowerPC/aix-readonly-with-relocation.ll
The file was modifiedllvm/lib/MC/MCAsmInfoXCOFF.cpp
The file was modifiedllvm/test/CodeGen/PowerPC/aix-extern-weak.ll
The file was modifiedllvm/test/CodeGen/PowerPC/aix-weak.ll
The file was modifiedllvm/test/CodeGen/PowerPC/aix-xcoff-mergeable-str.ll
The file was modifiedllvm/test/CodeGen/PowerPC/aix-lower-jump-table.ll
The file was modifiedllvm/test/CodeGen/PowerPC/aix-xcoff-data.ll
The file was modifiedllvm/test/CodeGen/PowerPC/test_func_desc.ll
Commit 3eb4bf13bae85fb48c4eca8c59c84491015fb4d6 by maskray
[ELF] Append " [--no-allow-shlib-undefined]" to the corresponding diagnostics

--no-allow-shlib-undefined (enabled by default when linking an
executable) rejects unresolved references in shared objects.

Users may be confused by the common diagnostics of unresolved symbols in
object files (LLD: "undefined symbol: foo"; GNU ld/gold: "undefined reference to")

Learn from GCC/clang " [-Wfoo]": append the option name to the
diagnostics. Users can find relevant information by searching
"--no-allow-shlib-undefined".  It should also be obvious to them that
the positive form --allow-shlib-undefined can suppress the error.

Also downgrade the error to a warning if --noinhibit-exec is used (compatible
with GNU ld and gold).

Reviewed By: grimar, psmith

Differential Revision: https://reviews.llvm.org/D81028
The file was modifiedlld/ELF/Writer.cpp
The file was modifiedlld/test/ELF/wrap-shlib-undefined.s
The file was modifiedlld/test/ELF/allow-shlib-undefined.s
Commit 04abbb3a78186aa92809866b43217c32cba90b71 by Yaxun.Liu
[HIP] Change default --gpu-max-threads-per-block value to 1024

Differential Revision: https://reviews.llvm.org/D76795
The file was modifiedclang/test/CodeGenCUDA/kernel-amdgcn.cu
The file was modifiedclang/include/clang/Basic/LangOptions.def
The file was modifiedclang/lib/CodeGen/TargetInfo.cpp
The file was modifiedclang/test/CodeGenCUDA/amdgpu-kernel-attrs.cu
Commit ea80b40669457d474e79bec1131f2b56cd795893 by llvm-dev
[DAG] SimplifyDemandedBits - peek through SHL if we only demand sign bits.

If we're only demanding the (shifted) sign bits of the shift source value, then we can use the value directly.

This handles SimplifyDemandedBits/SimplifyMultipleUseDemandedBits for both ISD::SHL and X86ISD::VSHLI.

Differential Revision: https://reviews.llvm.org/D80869
The file was modifiedllvm/test/CodeGen/X86/promote-cmp.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/sdiv.ll
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
The file was modifiedllvm/test/CodeGen/X86/bitcast-setcc-128.ll
The file was modifiedllvm/test/CodeGen/X86/vector-reduce-and-bool.ll
The file was modifiedllvm/test/CodeGen/X86/sdiv_fix_sat.ll
The file was modifiedllvm/test/CodeGen/X86/vector-mulfix-legalize.ll
The file was modifiedllvm/test/CodeGen/X86/funnel-shift.ll
The file was modifiedllvm/test/CodeGen/X86/vector-reduce-or-bool.ll
The file was modifiedllvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
Commit 3653c1bbed012a8a0441ad854d4cb9e51093857d by llvm-dev
Fix gcc -Wdocumentation warning. NFC.

gcc doesn't recognise @llvm.experimental.guard as a code snippet
The file was modifiedllvm/include/llvm/Analysis/ScalarEvolution.h
Commit 3659559cf39b8d94a7df2d6ed0dea3ace51e3722 by yhs
[BPF] Remove unnecessary MOV_32_64 instructions

Commit 13f6c81c5d9a ("[BPF] simplify zero extension
with MOV_32_64") tried to use MOV_32_64 instructions
instead of lshift/rshift instructions for zero extension.
This has the benefit to remove the number of instructions
and may help verifier too.

But the same commit also removed the old MOV_32_64
pruning as it deems unsafe as MOV_32_64 does have the
side effect, zeroing out the top 32bit in the register.
This caused the following failure in kernel selftest
test_cls_redirect.o. In linux kernel, we have
     struct __sk_buff {
        __u32 data;
        __u32 data_end;
     };
The compiler will generate 32bit load for __sk_buff->data
and __sk_buff->data_end. But kernel verifier will actually
loads an address (64bit address on 64bit kernel) to the
result register. In this particular example, the explicit zext
was not optimized away and destroyed top 32bit
address and the verifier rejected the program :
     w2 = *(u32 *)(r1 + 76)
     ...
     r2 = w2  /* MOV_32_64: this will clear top 32bit */

Currently, if the load and the zext are next to each other, the
instruction pattern match can actually capture this to
avoid MOV_32_64, e.g., in BPFInstrInfo.td, we have
  def : Pat<(i64 (zextloadi32 ADDRri:$src)),
            (SUBREG_TO_REG (i64 0), (LDW32 ADDRri:$src), sub_32)>;

However, if they are not next to each other, LDW32 and
MOV_32_64 are generated, which may cause the above mentioned
problem.

BPF Backend already tried to optimize away pattern
   mov_32_64 + lshift + rshift

Commit 13f6c81c5d9a may generate mov_32_64 not followed by shifts.
This patch added optimization for only mov_32_64 too.

Differential Revision: https://reviews.llvm.org/D81048
The file was addedllvm/test/CodeGen/BPF/remove_truncate_7.ll
The file was modifiedllvm/lib/Target/BPF/BPFMIPeephole.cpp
Commit c57e41c000c40e2efd441bc819b472feb49c94bf by dancgr
[CodeGen][SVE] Replace deprecated calls in getCopyFromPartsVector()

Summary: Replaced getVectorNumElements() with getVectorElementCount(). Added operator overloads for class ElementCount. Fixes warning in several AArch64 unit tests.

Reviewers: sdesmalen, kmclaughlin, dancgr, efriedma, each, andwar, rengolin

Reviewed By: efriedma

Subscribers: tschuett, kristof.beyls, hiraditya, rkruppe, psnobl, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D80826
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Commit 2cc77b2b8a022c0f6c7c60bf3eda157f62007d88 by shkzhang
[LiveVariables] Don't set undef reg PHI used as live for FromMBB

Summary:
In the patch D73152, it adds a new function LiveVariables::addNewBlock.
This new function will add the reg which PHI used to the MBB which reg
is from.
But the new function may cause LiveVariable Verification failed when the
Src reg in PHI is undef.

Reviewed By: bjope

Differential Revision: https://reviews.llvm.org/D80077
The file was addedllvm/test/CodeGen/AArch64/PHIElimination-crash.mir
The file was modifiedllvm/lib/CodeGen/LiveVariables.cpp
Commit e25f01be0c4c4f0355ae645599b3f54acb712ddd by dave
[libcxx testing] Fix bot failure in my last commit
The file was modifiedlibcxx/test/std/thread/thread.condition/thread.condition.condvarany/notify_all.pass.cpp
Commit 37d93b528c1c6dc0f77ee517936de61816707023 by Saleem Abdulrasool
lld: ignore the `-search_paths_first` option on MachO

ld64 provides the `-search_path_firsts` which will search each path in
the library search path order for both `lib[name].dylib`, `lib[name].a`
before moving on (searching all paths for the dylib and then falling
back to the static library if a shared library was not found).

This option has been the default for a long time, but the command line
flag still exists.  Ignore it for compatibility.
The file was modifiedlld/MachO/Options.td
Commit 3abe7aca455b9a8b9b0f1e1efdaffb50193516dd by wei.huang
[CodeGen] Enable tail call position check for speculatable functions

In the function "Analysis.cpp:isInTailCallPosition", it only checks whether
a call is in a tail call position if the call has side effects, access memory
or it is not safe to speculative execute. Therefore, a speculatable function
will not go through tail call position check and improperly tail called when
it is not in a tail-call position. This patch enables tail call position check
for speculatable functions.

Differential Revision: https://reviews.llvm.org/D80661
The file was addedllvm/test/CodeGen/PowerPC/tailcall-speculatable-callee.ll
The file was modifiedllvm/lib/CodeGen/Analysis.cpp
Commit e94192198f8a949c7880620b06e9ef85d87ad4b3 by Artem Dergachev
[analyzer] Add support for ObjCIndirectCopyRestoreExpr.

Idiomatic objc using ARC will generate this expression regularly due to
NSError out-param passing.  Providing an implementation for this
expression allows the analyzer to explore many more codepaths in ARC
projects.

The current implementation is not perfect but the differences are hopefully
subtle enough to not cause much problems.

rdar://63918914

Differential Revision: https://reviews.llvm.org/D81071
The file was modifiedclang/lib/StaticAnalyzer/Core/ExprEngine.cpp
The file was addedclang/test/Analysis/objc-indirect-copy-restore.m
Commit 7113271528a4c6efc8b57f25ead28f65b5e48757 by Artem Dergachev
[analyzer] ObjCAutoreleaseWriteChecker: Support explicit autoreleasepools.

The checker currently supports only a whitelist of block-enumeration
methods which are known to internally clear an autorelease pool.
Extend this checker to detect writes within the scope of explicit
@autoreleasepool statements.

rdar://25301111

Differential Revision: https://reviews.llvm.org/D81072
The file was modifiedclang/lib/StaticAnalyzer/Checkers/ObjCAutoreleaseWriteChecker.cpp
The file was modifiedclang/test/Analysis/autoreleasewritechecker_test.m
Commit 62cfa3a0b5d20e6d0d5abe95412ab271d934083c by Louis Dionne
[libc++] Support move construction and assignment in <thread> in C++03

Libc++ provides support for <thread> in C++03 as an extension. Furthermore,
it does not support any compiler that doesn't have rvalue references. It
is hence possible to provide the move constructor and move assignment
operator in C++03.
The file was modifiedlibcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.constr/move.pass.cpp
The file was modifiedlibcxx/include/thread
The file was modifiedlibcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.assign/move2.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.threads/thread.thread.class/thread.thread.assign/move.pass.cpp
Commit 3713314bfae3dc9a793c152e8a698a2ca1444f6c by frgossen
[MLIR] Shape to standard dialect lowering

Add a new pass to lower operations from the `shape` to the `std` dialect.
The conversion applies only to the `size_to_index` and `index_to_size`
operations and affected types.
Other patterns will be added as needed.

Differential Revision: https://reviews.llvm.org/D81091
The file was addedmlir/lib/Conversion/ShapeToStandard/CMakeLists.txt
The file was addedmlir/lib/Conversion/ShapeToStandard/ShapeToStandard.cpp
The file was modifiedmlir/include/mlir/InitAllPasses.h
The file was modifiedmlir/include/mlir/Conversion/Passes.td
The file was addedmlir/test/Conversion/ShapeToStandard/shape-to-standard.mlir
The file was addedmlir/include/mlir/Conversion/ShapeToStandard/ShapeToStandard.h
The file was modifiedmlir/lib/Conversion/CMakeLists.txt
Commit 96e7d19a1f22f5d2018377b70b4c98e0f59ea412 by Jonas Devlieghere
[lldb/Test] Don't print 'command invoked'

The different tools constructing dotest invocations (lit and
lldb-dotest) already print the command invocation so there's no need to
print it again in the dotest output.

My motivation for removing it is that it doesn't include the Python
interpreter and every time I accidentally copy it, the command fails
with an `ImportError`.

Differential revision: https://reviews.llvm.org/D81032
The file was modifiedlldb/packages/Python/lldbsuite/test/dotest.py
Commit bee2c2708f3e38261825439bc8b0fbe8b795854d by noreply
[doc] Fix typo.

The absence of a space here caused this codeblock to be missing from the rendered output.
The file was modifiedclang/include/clang/Basic/AttrDocs.td
Commit 2bbfa6b02b3e5bb2458eae8bc8ef4e1517e994ce by Louis Dionne
[libc++] Fix test broken in C++03 due to requiring C++11 features from vector
The file was modifiedlibcxx/test/std/thread/thread.condition/thread.condition.condvarany/notify_all.pass.cpp
Commit 14bb6770f2c6597e61d8a696da28483c66f37aed by yamauchi
[profile] Sync InstrProfData.inc with llvm.

Reviewers: davidxl

Subscribers: #sanitizers, llvm-commits

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D81038
The file was modifiedcompiler-rt/include/profile/InstrProfData.inc
Commit f5415f7c5a06e8563c650a3ecfd6435d36ca3a66 by jasonliu
[XCOFF][AIX] Use 'L..' instead of 'L' for PrivateGlobalPrefix

Without this change, names start with 'L' will get created as
temporary symbol in MCContext::createSymbol.

Some other potential prefix considered:
.L, does not work for AIX, as a function start with L will end
up with .L as prefix for its function entry point.

..L could work, but it does not play well with the convention
on AIX that anything start with '.' are considered as entry point.

L. could work, but not sure if it's safe enough, as it's possible
to have suffixes like .something append to a plain L, giving L.something
which is not necessarily a temporary.

That's why we picked L.. for now.

Differential Revision: https://reviews.llvm.org/D80831
The file was modifiedllvm/test/CodeGen/PowerPC/aix-cc-byval-mem.ll
The file was modifiedllvm/test/CodeGen/PowerPC/aix-lower-block-address.ll
The file was modifiedllvm/test/CodeGen/PowerPC/aix-extern.ll
The file was modifiedllvm/test/CodeGen/PowerPC/aix-lower-constant-pool-index.ll
The file was modifiedllvm/test/CodeGen/PowerPC/aix-xcoff-toc.ll
The file was modifiedllvm/test/CodeGen/PowerPC/lower-globaladdr32-aix-asm.ll
The file was modifiedllvm/lib/MC/MCAsmInfoXCOFF.cpp
The file was modifiedllvm/test/CodeGen/PowerPC/aix-cc-byval.ll
The file was modifiedllvm/test/CodeGen/PowerPC/lower-globaladdr64-aix-asm.ll
The file was modifiedllvm/test/CodeGen/PowerPC/aix-lower-jump-table.ll
The file was modifiedllvm/test/CodeGen/PowerPC/aix-cc-abi.ll
The file was modifiedllvm/test/CodeGen/PowerPC/aix-weak.ll
The file was modifiedllvm/test/CodeGen/PowerPC/aix64-cc-byval.ll
The file was addedllvm/test/CodeGen/PowerPC/aix-xcoff-externL.ll
The file was modifiedllvm/test/CodeGen/PowerPC/aix-extern-weak.ll
Commit a9fe69c359de653015c39e413e48630d069abe27 by spatel
[InstSimplify] fix bug in matching or-with-not op (PR46083)
The file was modifiedllvm/lib/Analysis/InstructionSimplify.cpp
The file was modifiedllvm/test/Transforms/InstSimplify/or.ll
Commit ba4afe6f7a8453b24ee0b664e40d157d15a54034 by wanyu9511
[AIX] Change the default target CPU to power4 for AIX on Power

Summary: This patch changes the AIX default target CPU to power4 since this is the the lowest arch for the lowest OS level supported.

Reviewers: hubert.reinterpretcast, cebowleratibm, daltenty

Reviewed By: hubert.reinterpretcast

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D80835
The file was addedclang/test/Driver/aix-mcpu-default.c
The file was modifiedclang/lib/Driver/ToolChains/CommonArgs.cpp
Commit 5f478651eb31ac81acf9a521c3d44c5e1c4af49a by noreply
[doc] Fix use of ` where `` was intended in attribute docs.

`...` is rST syntax for hyperlinks etc. ``...`` should be used for code snippets.
The file was modifiedclang/include/clang/Basic/AttrDocs.td
Commit 9f8ea2e6cf7c855aa4f89993a6c696390cb07d07 by llvm-dev
[VectorCombine] Add multi-use multiply test for D80885
The file was modifiedllvm/test/Transforms/VectorCombine/X86/insert-binop-with-constant.ll
Commit d27cbf03cf9c43b4b98f031d63f23cfcfe3d587a by Lang Hames
[JITLink] Skip debug sections in MachO objects.

Debug sections will not be linked into the final executable and may contain
ambiguous relocations*. Skipping them avoids both some unnecessary processing
cost and the hassle of dealing with the problematic relocations.

* E.g. __debug_ranges contains non-extern relocations to the end of functions
hat begin with named symbols. Under the usual rules for interpreting non-extern
relocations these will be incorrectly associated with the following block, or
no block at all (if there is a gap between one block and the next).
The file was modifiedllvm/lib/ExecutionEngine/JITLink/MachO_arm64.cpp
The file was addedllvm/test/ExecutionEngine/JITLink/X86/MachO_skip_debug_sections.s
The file was modifiedllvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.cpp
The file was modifiedllvm/lib/ExecutionEngine/JITLink/MachO_x86_64.cpp
The file was modifiedllvm/lib/ExecutionEngine/JITLink/MachOLinkGraphBuilder.h
Commit 195fa4bfae102c0d6fd6966618ed3d3c39b1d400 by flo
[NewGVN] Add test to ensure metadata is preserved for ssa_copy (NFC)

Add a new test that checks that metadata is preserved when ssa_copy
calls introduced by PredicateInfo are replaced by their original
values.
The file was addedllvm/test/Transforms/NewGVN/preserve-metadata-for-predicate-replacements.ll
Commit fd24bdbe50fa4aece574d0b53e68c37d23f7df35 by flo
[AArch64] Add ld3 test case for renaming in ldst-opt (NFC).

The test case highlights a mis-compile reported in PR46105, where
a consecutive register list is renamed, which invalidates some other
used registers.
The file was addedllvm/test/CodeGen/AArch64/stp-opt-with-renaming-ld3.mir
Commit c2e27ac1ce3e3141f9cf0c4f6982cd56347bc323 by llvm-dev
[VectorCombine] Add multi-use shl test for D80885
The file was modifiedllvm/test/Transforms/VectorCombine/X86/insert-binop-with-constant.ll
Commit 2e4c5d1c483a986dbb3fc6486bdb2f0eb2adc8c8 by aschwaighofer
CoroSplit: Fix coroutine splitting for retcon and retcon.once

Summary:
For retcon and retcon.once coroutines we assume that all uses of spills
can be sunk past coro.begin. This simplifies handling of instructions
that escape the address of an alloca.

The current implementation would have issues if the address of the
alloca is escaped before coro.begin. (It also has issues with casts before and
uses of those casts after the coro.begin instruction)

  %alloca_addr = alloca ...
  %escape  = ptrtoint %alloca_addr
  coro.begin
  store %escape to %alloca_addr

rdar://60272809

Subscribers: hiraditya, modocache, mgrang, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81023
The file was modifiedllvm/lib/Transforms/Coroutines/CoroFrame.cpp
The file was addedllvm/test/Transforms/Coroutines/coro-retcon-frame.ll
Commit 9cb2badc596497f49ec2631bb5b8a2300656e75c by Saleem Abdulrasool
lld: use `std::make_unique` (NFC)

The LLVM code base already uses C++14, use std::make_unique
to avoid the explicit constructor invocation via new and to avoid
spelling out the type twice.
The file was modifiedlld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp
Commit a3fcd6476a4e4270ea19137656d94d395d303349 by flo
[AArch64] Fix stp-opt-with-renaming-ld3.mir with expensive checks.

Unconditionally use -verify-machineinstrs and XFAIL the test until
fixed.
The file was modifiedllvm/test/CodeGen/AArch64/stp-opt-with-renaming-ld3.mir
Commit 7822b8a817d85827110f3047f4ec63f6825743a4 by Vedant Kumar
[lldb/StringPrinter] Convert DecodedCharBuffer to a class, NFC

The m_size and m_data members of DecodedCharBuffer are meant to be
private.
The file was modifiedlldb/source/DataFormatters/StringPrinter.cpp
Commit 4699a7e23010b7c0df49b64f8bea63919825a787 by Vedant Kumar
[lldb/StringPrinter] Support strings with invalid utf8 sub-sequences

Support printing strings which contain invalid utf8 sub-sequences, e.g.
strings like "hello world \xfe", instead of bailing out with "Summary
Unavailable".

I took the opportunity here to delete some hand-rolled utf8 -> utf32
conversion code and replace it with calls into llvm's Support library.

rdar://61554346
The file was modifiedlldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/string/main.cpp
The file was modifiedlldb/unittests/DataFormatter/StringPrinterTests.cpp
The file was modifiedlldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx/string/TestDataFormatterLibcxxString.py
The file was modifiedlldb/source/DataFormatters/StringPrinter.cpp
Commit a23d0a06d4b7996a86c3d1a7e47a4e56d6181b10 by Raphael Isemann
[lldb][NFC] Fix documentation formatting in ASTResultSynthesizer

This comment apparently didn't survive the great LLDB reformatting unharmed.
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/ASTResultSynthesizer.cpp
Commit 3a1b07506c1fc6e6aee528289341aa0d0d806814 by vyacheslav.p.zakharin
Define __SPIR__ macro for spir/spir64 targets.

Differential Revision: https://reviews.llvm.org/D80655
The file was modifiedclang/test/Preprocessor/predefined-macros.c
The file was modifiedclang/lib/Basic/Targets/SPIR.cpp
Commit 6a0484f04b628870fb7cd0757a72d73294ff5346 by mydeveloperday
[clang-format] [PR46159] Linux kernel 'C' code uses 'try' as a variable name, allow clang-format to handle such cases

Reviewed By: curdeius

Differential Revision: https://reviews.llvm.org/D80940
The file was modifiedclang/lib/Format/FormatTokenLexer.h
The file was modifiedclang/lib/Format/FormatTokenLexer.cpp
The file was modifiedclang/unittests/Format/FormatTest.cpp
Commit 6de794e2074b8d0ceb6215f808fb788555fc683d by mydeveloperday
[clang-format] [PR46157] Wrong spacing of negative literals with use of operator

Summary:
see https://bugs.llvm.org/show_bug.cgi?id=46157

Reviewed By: curdeius

Differential Revision: https://reviews.llvm.org/D80933
The file was modifiedclang/lib/Format/TokenAnnotator.cpp
The file was modifiedclang/unittests/Format/FormatTest.cpp
Commit 5b454b98d6488a27decbe7e21a361b2579376ec2 by jpienaar
[mlir] Remove unneeded inference trait/fns

Therse are all handled with the simple return type inference in ODS.
Also update some summaries to match what is recommended in ODS doc.
The file was modifiedmlir/lib/Dialect/Shape/IR/Shape.cpp
The file was modifiedmlir/include/mlir/Dialect/Shape/IR/ShapeOps.td
Commit 7c1b060c3c65cac50edec5cceb6653957c344d96 by ditaliano
[IRInterpreter] Unused. Drive-by cleanup. NFCI.
The file was modifiedlldb/source/Expression/IRInterpreter.cpp
Commit 8bd7e4188a096b063065aac70ce39129c479f124 by tianshilei1992
Replace separator in OpenMP variant name mangling.

Summary:
Nvidia PTX does not allow `.` to appear in identifiers, so OpenMP variant mangling now uses `$` to separate segments of the mangled name for variants of functions declared via `declare variant`.

Reviewers: jdoerfert, Hahnfeld

Reviewed By: jdoerfert

Subscribers: yaxunl, guansong, sstefan1, cfe-commits

Tags: #openmp, #clang

Differential Revision: https://reviews.llvm.org/D80439
The file was addedclang/test/OpenMP/nvptx_declare_variant_name_mangling.cpp
The file was modifiedclang/lib/AST/OpenMPClause.cpp
The file was modifiedclang/include/clang/AST/Decl.h
Commit ba6b1b4353e33a7a36bcbad1d1c1157826197fd2 by julian.lettner
[Darwin] Improve runtime OS version checks

Use a struct to represent numerical versions instead of encoding release
names in an enumeration. This avoids the need to extend the enumeration
every time there is a new release.

Rename `GetMacosVersion() -> GetMacosAlignedVersion()` to better reflect
how this is used on non-MacOS platforms.

Reviewed By: delcypher

Differential Revision: https://reviews.llvm.org/D79970
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_mac.h
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_mac.cpp
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_symbolizer_mac.cpp
The file was modifiedcompiler-rt/lib/tsan/rtl/tsan_platform_mac.cpp
Commit a574edbba2b24fcfb733aa2d82308131f5b7d2d6 by Matthew.Arsenault
X86: Switch fastregalloc test to use generated checks
The file was modifiedllvm/test/CodeGen/X86/2010-06-28-FastAllocTiedOperand.ll
Commit 66251f7e1de79a7c1620659b7f58352b8c8e892e by Matthew.Arsenault
RegAllocFast: Record internal state based on register units

Record internal state based on register units. This is often more
efficient as there are typically fewer register units to update
compared to iterating over all the aliases of a register.

Original patch by Matthias Braun, but I've been rebasing and fixing it
for almost 2 years and fixed a few bugs causing intermediate failures
to make this patch independent of the changes in
https://reviews.llvm.org/D52010.
The file was modifiedllvm/test/CodeGen/AMDGPU/spill-m0.ll
The file was modifiedllvm/test/CodeGen/X86/extend-set-cc-uses-dbg.ll
The file was modifiedllvm/test/CodeGen/X86/pr32451.ll
The file was modifiedllvm/test/CodeGen/X86/pr30430.ll
The file was modifiedllvm/test/CodeGen/X86/regalloc-fast-missing-live-out-spill.mir
The file was modifiedllvm/test/CodeGen/X86/pr1489.ll
The file was modifiedllvm/test/CodeGen/Mips/GlobalISel/llvm-ir/fptosi_and_fptoui.ll
The file was modifiedllvm/test/CodeGen/X86/pr44749.ll
The file was modifiedllvm/test/CodeGen/X86/swifterror.ll
The file was modifiedllvm/test/CodeGen/X86/pr32284.ll
The file was modifiedllvm/test/CodeGen/AArch64/arm64-vcvt_f.ll
The file was modifiedllvm/test/CodeGen/Mips/atomic-min-max.ll
The file was modifiedllvm/test/CodeGen/ARM/legalize-bitcast.ll
The file was modifiedllvm/test/CodeGen/Mips/implicit-sret.ll
The file was modifiedllvm/test/CodeGen/AArch64/fast-isel-sp-adjust.ll
The file was modifiedllvm/test/CodeGen/X86/pr34592.ll
The file was modifiedllvm/test/CodeGen/X86/swift-return.ll
The file was modifiedllvm/test/CodeGen/X86/atomic-unordered.ll
The file was modifiedllvm/test/CodeGen/X86/atomic32.ll
The file was modifiedllvm/test/CodeGen/X86/pr32241.ll
The file was modifiedllvm/test/CodeGen/X86/atomic64.ll
The file was modifiedllvm/test/CodeGen/AArch64/arm64-fast-isel-conversion-fallback.ll
The file was modifiedllvm/test/CodeGen/PowerPC/addegluecrash.ll
The file was modifiedllvm/test/CodeGen/X86/pr32340.ll
The file was modifiedllvm/test/CodeGen/X86/pr39733.ll
The file was modifiedllvm/test/CodeGen/X86/pr32345.ll
The file was modifiedllvm/test/CodeGen/AArch64/arm64-fast-isel-conversion.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/partial-sgpr-to-vgpr-spills.ll
The file was modifiedllvm/lib/CodeGen/RegAllocFast.cpp
The file was modifiedllvm/test/CodeGen/X86/2009-04-14-IllegalRegs.ll
The file was modifiedllvm/test/DebugInfo/X86/op_deref.ll
The file was modifiedllvm/test/CodeGen/X86/crash-O0.ll
The file was modifiedllvm/test/CodeGen/X86/pr30813.ll
The file was modifiedllvm/test/CodeGen/PowerPC/vsx.ll
The file was modifiedllvm/test/CodeGen/X86/fast-isel-nontemporal.ll
The file was modifiedllvm/test/CodeGen/X86/avx-load-store.ll
The file was modifiedllvm/test/CodeGen/X86/avx512-mask-zext-bugfix.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/indirect-addressing-term.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/wwm-reserved.ll
The file was modifiedllvm/test/CodeGen/Mips/atomic.ll
The file was modifiedllvm/test/CodeGen/X86/pr27591.ll
Commit e636e6b79ac06b13059e46b49acb4d9de204c75b by kkleine
[clang-tidy]: Added modernize-replace-disallow-copy-and-assign-macro

Summary:
This check finds macro expansions of `DISALLOW_COPY_AND_ASSIGN(Type)` and
replaces them with a deleted copy constructor and a deleted assignment operator.

Before the `delete` keyword was introduced in C++11 it was common practice to
declare a copy constructor and an assignment operator as a private members. This
effectively makes them unusable to the public API of a class.

With the advent of the `delete` keyword in C++11 we can abandon the
`private` access of the copy constructor and the assignment operator and
delete the methods entirely.

Migration example:

```
lang=dif
class Foo {
  private:
  -  DISALLOW_COPY_AND_ASSIGN(Foo);
  +  Foo(const Foo &) = delete;
  +  const Foo &operator=(const Foo &) = delete;
  };
```

Reviewers: alexfh, hokein, aaron.ballman, njames93

Reviewed By: njames93

Subscribers: Eugene.Zelenko, mgorny, xazax.hun, cfe-commits

Tags: #clang, #clang-tools-extra

Differential Revision: https://reviews.llvm.org/D80531
The file was addedclang-tools-extra/clang-tidy/modernize/ReplaceDisallowCopyAndAssignMacroCheck.cpp
The file was addedclang-tools-extra/test/clang-tidy/checkers/modernize-replace-disallow-copy-and-assign-macro.cpp
The file was addedclang-tools-extra/clang-tidy/modernize/ReplaceDisallowCopyAndAssignMacroCheck.h
The file was addedclang-tools-extra/docs/clang-tidy/checks/modernize-replace-disallow-copy-and-assign-macro.rst
The file was modifiedclang-tools-extra/clang-tidy/modernize/ModernizeTidyModule.cpp
The file was modifiedclang-tools-extra/clang-tidy/modernize/CMakeLists.txt
The file was modifiedclang-tools-extra/docs/ReleaseNotes.rst
The file was modifiedclang-tools-extra/docs/clang-tidy/checks/list.rst
Commit 900f78a714c583dd87432a9c89f6ccade8430fac by ctetreau
[SVE] Eliminate calls to default-false VectorType::get() from IR

Reviewers: efriedma, kmclaughlin, sdesmalen, dexonsmith, dblaikie

Reviewed By: efriedma

Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D80261
The file was modifiedllvm/lib/IR/Constants.cpp
The file was modifiedllvm/lib/IR/ConstantFold.cpp
The file was modifiedllvm/lib/IR/IRBuilder.cpp
The file was modifiedllvm/lib/IR/AutoUpgrade.cpp
The file was modifiedllvm/lib/IR/Core.cpp
The file was modifiedllvm/include/llvm/IR/MatrixBuilder.h
The file was modifiedllvm/lib/IR/DataLayout.cpp
Commit d496437a0bfd6d135343026cdb7b6a69cb6af536 by sunfish
[WebAssembly] Add support for -mexec-model=reactor

This adds a -mexec-model= command-line flag. The default value is "command"
which is no change from the current behavior. The other option is "reactor"
which enables the WASI Reactor ABI:

https://github.com/WebAssembly/WASI/blob/master/design/application-abi.md

Differential Revision: https://reviews.llvm.org/D62922
The file was modifiedclang/lib/Driver/ToolChains/WebAssembly.cpp
The file was modifiedclang/docs/ClangCommandLineReference.rst
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedclang/test/Driver/wasm-toolchain.c
Commit 7f50c15be5c020b2789f83dc3c87d28f8294664f by tlively
Reland "[WebAssembly] Eliminate range checks on br_tables"

This reverts commit 755a89591528b692315ad0325347e2fd4637271b.
Although I was not able to reproduce any test failures locally,
aheejin was able to reproduce them and found a fix, applied here.
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
The file was modifiedllvm/test/CodeGen/WebAssembly/indirectbr.ll
The file was modifiedllvm/lib/Target/WebAssembly/MCTargetDesc/WebAssemblyMCTargetDesc.h
The file was modifiedllvm/test/CodeGen/WebAssembly/cfg-stackify.ll
The file was modifiedllvm/lib/Target/WebAssembly/CMakeLists.txt
The file was modifiedllvm/lib/Target/WebAssembly/WebAssembly.h
The file was modifiedllvm/test/CodeGen/WebAssembly/stack-insts.ll
The file was addedllvm/test/CodeGen/WebAssembly/switch-unreachable-default.ll
The file was addedllvm/lib/Target/WebAssembly/WebAssemblyFixBrTableDefaults.cpp
The file was modifiedllvm/test/CodeGen/WebAssembly/switch.ll
Commit a946cb1813c228ac44a94e0ddf712258b9018ea9 by thakis
[gn build] Fix link with ld.bfd and gold.

lld's symbol resolution algorithm makes it not depend on
the order of object files and libraries, but ld.bfd and
gold require listing dependencies later on the link line.
Put {{libs}} after {{inputs}} so that e.g. -lpthreads
appears after the object files, not before it.

Differential Revision: https://reviews.llvm.org/D81035
The file was modifiedllvm/utils/gn/build/toolchain/BUILD.gn
Commit dd863ccae1346a44e4380fb17d22ae7041fee898 by craig.topper
[X86] Separate X86_CPU_TYPE_COMPAT_WITH_ALIAS from X86_CPU_TYPE_COMPAT. NFC

Add a separate X86_CPU_TYPE_COMPAT_ALIAS that carries alias string
and the enum from X86_CPU_TYPE_COMPAT.
The file was modifiedclang/lib/CodeGen/CGBuiltin.cpp
The file was modifiedclang/lib/Basic/Targets/X86.cpp
The file was modifiedllvm/include/llvm/Support/X86TargetParser.def