SuccessChanges

Changes from Git (git http://labmaster3.local/git/llvm-project.git)

Summary

  1. [lldb] Move once_flags in HostInfoLinux so the internal state struct (details)
  2. [PowerPC] Relax register superclasses for paired memops (details)
  3. [lldb] Fix leak in test (details)
  4. Revert "[CMake] Don't use libc++ by default on Windows yet" (details)
  5. Revert "[Driver] Support libc++ in MSVC" (details)
  6. Function Specialization Pass (details)
  7. [gn build] Port c4a0969b9c14 (details)
  8. [mlir] Refactor ComplexOps.td [NFC] (details)
  9. [clang-tidy] LIT test fix for Remark diagnostic (details)
  10. [compiler-rt] [builtins] [AArch64] Add missing AArch64 data synchronization barrier (dsb) to __clear_cache (details)
  11. [OpenCL][NFC] Reorganize ClangOpenCLBuiltinEmitter comments (details)
  12. Fix implicit dependency on <string> header. NFCI. (details)
  13. [Analysis] Pass RecurrenceDescriptor as const reference. NFCI. (details)
  14. SampleProf.h - fix spelling mistake in assert message. NFC. (details)
  15. [X86] Support __tile_stream_loadd intrinsic for new AMX interface (details)
  16. [NFC][VectorCombine] Extract computeAlignmentAfterScalarization() helper function (details)
  17. [VectorCombine] scalarizeLoadExtract(): use computeAlignmentAfterScalarization() helper (details)
  18. [analyzer] Introduce a new interface for tracking (details)
  19. [analyzer] Reimplement trackExpressionValue as ExpressionHandler (details)
  20. [analyzer] Change FindLastStoreBRVisitor to use Tracker (details)
  21. [analyzer] Hide and rename FindLastStoreBRVisitor (details)
  22. [analyzer] Turn ReturnVisitor into a tracking visitor (details)
  23. [analyzer] Refactor trackRValueExpression into ExpressionHandler (details)
  24. [analyzer] Turn TrackControlDependencyCond into a tracking visitor (details)
  25. [analyzer] Refactor trackExpressionValue to accept TrackingOptions (details)
  26. [llvm-stress] Fix dead code preventing us generating per-element vector selects (details)
  27. clang-format: [JS] don't sort named imports if off. (details)
  28. [OpenCL] Fix overloading resolution of addrspace constructors (details)
  29. [CostModel][AArch64] Improve the cost estimate of CTPOP intrinsic (details)
  30. Do not generate calls to the 128-bit function __multi3() on 32-bit ARM (details)
  31. [clang][NFC] Avoid assignment in condition (details)
  32. [ADT] Consistently use StringExtrasTest for the test suite filter. NFCI. (details)
  33. [clang-tidy] NarrowingConversionsCheck should support inhibiting conversions of (details)
  34. [Test] Add loop deletion test with switch (details)
  35. [PowerPC] Allow wa inline asm to also accept floating point arguments (details)
  36. [mlir] Provide minimal Python bindings for the math dialect (details)
  37. precommit tests for D104042 (details)
  38. [Test] One more elaborate test with selects for loop deletion (details)
  39. [clangd] don't rename if the triggering loc is not actually being renamed. (details)
  40. [VP][NFC] Format comment to 80 columns (details)
  41. [ADT] Remove APInt/APSInt toString() std::string variants (details)
  42. [AST] Include the TranslationUnitDecl when traversing with TraversalScope (details)
  43. APInt.h - add missing <utility> header. (details)
  44. [lldb] DumpDataExtractor.cpp - replace APInt::toString() with llvm::toString(APInt) (details)
  45. [Polly][Isl] Removing explicit operator bool() from isl C++ bindings. NFC. (details)
  46. [mlir][[linalg] Remove deprecated structured op interface methods. (details)
  47. Revert "[lldb] Add support for evaluating expressions in static member functions" (details)
  48. [mlir][linalg] Prepare drop unit dims for scalar operands. (details)
  49. Fix Wdocumentation missing parameter warnings. NFCI. (details)
  50. StringExtrasTest.cpp - add missing newline at the end of file. NFCI. (details)
  51. [SimplifyCFG] avoid crash on degenerate loop (details)
  52. Fix extraneous ')' error. (details)
  53. [mlir][linalg] Prepare pad to static bounding box for scalar operands. (details)
  54. Fix for error "'Run' overrides a member function but is not marked (details)
  55. Referencing a static function defined in an opnemp clause, is (details)
  56. Move Function Specialization to its correct location. NFC. (details)
  57. [gn build] Port 9907746f5db7 (details)
  58. [lldb] Unmark TestInlines as XFAIL for gcc (details)
  59. [lldb] Fix compilation after removal of APInt::toString (details)
  60. [lldb] Remove GCC XFAIL for TestTypedefArray (details)
  61. [mlir][VectorToGPU] First step to convert vector ops to GPU MMA ops (details)
  62. [SLP][NFC]Add a test for unordered stores, NFC. (details)
  63. [SLP]Remove unnecessary UndefValue in CreateShuffle. (details)
  64. [lld/mac] Use sectionType() more (details)
  65. [HWASan] Add basic stack tagging support for LAM. (details)
  66. [Sema] Address-space sensitive check for unbounded arrays (v2) (details)
  67. Revert "[Sema] Address-space sensitive check for unbounded arrays (v2)" (details)
  68. [SLP]Allow reordering of insertelements. (details)
  69. [CodeGen][regalloc] Don't align stack slots if the stack can't be realigned (details)
  70. Update the C status page somewhat. (details)
  71. [lldb-vscode] Synchronize calls to SendTerminatedEvent (details)
  72. [HIP] Fix --hip-version flag with 0 as component (details)
Commit 632cbcac79065a62a306dbda7b3a6e1f315e3260 by Raphael Isemann
[lldb] Move once_flags in HostInfoLinux so the internal state struct

The HostInfoLinuxFields struct is supposed to be set up/torn down on
Initialize/Terminate and should contain all the state of the plugin.
`once_flags` are part of this state and should also be reset on `Terminate` so
we can re-initialize these lazy values after the next `Initialize` call.

This itself is NFC as the HostInfoLinux was broken before this patch and is
still broken afterwards. D104091 will be the proper fix.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D104093
The file was modifiedlldb/source/Host/linux/HostInfoLinux.cpp
Commit bc104fdcecc0da1650177f3587ffe233b37f071b by qiucofan
[PowerPC] Relax register superclasses for paired memops

Relaxing superclass constraint for VSX register classes helps reducing
32-byte spills and copies when register pressure is high.

In test case affected, some of them introduces more copies due to new
allocation order. However, this patch should not be the root cause, and
we may be able to fix it in other places of register allocation.

Reviewed By: nemanjai

Differential Revision: https://reviews.llvm.org/D104006
The file was modifiedllvm/test/CodeGen/PowerPC/constant-pool.ll
The file was modifiedllvm/test/CodeGen/PowerPC/mma-acc-spill.ll
The file was modifiedllvm/test/CodeGen/PowerPC/vsx.ll
The file was modifiedllvm/test/CodeGen/PowerPC/paired-vector-intrinsics.ll
The file was modifiedllvm/test/CodeGen/PowerPC/aix-p9-xxinsertw-xxextractuw.ll
The file was modifiedllvm/test/CodeGen/PowerPC/mma-outer-product.ll
The file was modifiedllvm/test/CodeGen/PowerPC/vec_conv_i64_to_fp32_elts.ll
The file was modifiedllvm/test/CodeGen/PowerPC/p9-xxinsertw-xxextractuw.ll
The file was modifiedllvm/test/CodeGen/PowerPC/remove-redundant-moves.ll
The file was modifiedllvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
The file was modifiedllvm/test/CodeGen/PowerPC/mma-intrinsics.ll
Commit f3f904563ec9ce8c7bfda83bbca19790cc4d9afc by Vitaly Buka
[lldb] Fix leak in test

Test leaks if we run
tools/lldb/unittests/Host/HostTests without --gtest_filter

Reviewed By: teemperor

Differential Revision: https://reviews.llvm.org/D104091
The file was modifiedlldb/unittests/Host/HostInfoTest.cpp
The file was modifiedlldb/source/Host/linux/HostInfoLinux.cpp
The file was modifiedlldb/include/lldb/Host/linux/HostInfoLinux.h
Commit 0d5af7a4caaf19ff97ca90e9ca7f2b78a858ab07 by phosek
Revert "[CMake] Don't use libc++ by default on Windows yet"

This reverts commit b413e44200e715c254fa9a41f6a86f8761c9b362.
The file was modifiedclang/cmake/caches/Fuchsia.cmake
The file was modifiedclang/cmake/caches/Fuchsia-stage2.cmake
Commit 22f194909ae24aed817976fb54b759550e90db36 by phosek
Revert "[Driver] Support libc++ in MSVC"

This reverts commit 9625d61eb66c12388875e081b63ebed7e42c6bbb since
libc++ currently has issues with disabled exceptions which breaks
the runtimes build.
The file was removedclang/test/Driver/Inputs/msvc_libcxx_tree/usr/include/x86_64-pc-windows-msvc/c++/v1/.keep
The file was removedclang/test/Driver/msvc-libcxx.cpp
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedclang/lib/Driver/ToolChains/MSVC.cpp
The file was removedclang/test/Driver/Inputs/msvc_libcxx_tree/usr/bin/.keep
The file was removedclang/test/Driver/Inputs/msvc_libcxx_tree/usr/lib/x86_64-pc-windows-msvc/.keep
The file was removedclang/test/Driver/Inputs/msvc_libcxx_tree/usr/lib/.keep
The file was removedclang/test/Driver/Inputs/msvc_libcxx_tree/usr/include/c++/v1/.keep
Commit c4a0969b9c14acc795ae9e841b8289c3d36220b1 by sjoerd.meijer
Function Specialization Pass

This adds a function specialization pass to LLVM. Constant parameters
like function pointers and constant globals are propagated to the callee by
specializing the function.

This is a first version with a number of limitations:
- The pass is off by default, so needs to be enabled on the command line,
- It does not handle specialization of recursive functions,
- It does not yet handle constants and constant ranges,
- Only 1 argument per function is specialised,
- The cost-model could be further looked into, and perhaps related,
- We are not yet caching analysis results.

This is based on earlier work by Matthew Simpson (D36432) and Vinay Madhusudan.
More recently this was also discussed on the list, see:

https://lists.llvm.org/pipermail/llvm-dev/2021-March/149380.html.

The motivation for this work is that function specialisation often comes up as
a reason for performance differences of generated code between LLVM and GCC,
which has this enabled by default from optimisation level -O3 and up. And while
this certainly helps a few cpu benchmark cases, this also triggers in real
world codes and is thus a generally useful transformation to have in LLVM.

Function specialisation has great potential to increase compile-times and
code-size.  The summary from some investigations with this patch is:
- Compile-time increases for short compile jobs is high relatively, but the
  increase in absolute numbers still low.
- For longer compile-jobs, the extra compile time is around 1%, and very much
  in line with GCC.
- It is difficult to blame one thing for compile-time increases: it looks like
  everywhere a little bit more time is spent processing more functions and
  instructions.
- But the function specialisation pass itself is not very expensive; it doesn't
  show up very high in the profile of the optimisation passes.

The goal of this work is to reach parity with GCC which means that eventually
we would like to get this enabled by default. But first we would like to address
some of the limitations before that.

Differential Revision: https://reviews.llvm.org/D93838
The file was modifiedllvm/include/llvm/Transforms/IPO/SCCP.h
The file was modifiedllvm/include/llvm/InitializePasses.h
The file was modifiedllvm/include/llvm/Transforms/IPO.h
The file was modifiedllvm/lib/Passes/PassRegistry.def
The file was addedllvm/test/Transforms/FunctionSpecialization/function-specialization4.ll
The file was addedllvm/test/Transforms/FunctionSpecialization/function-specialization3.ll
The file was modifiedllvm/lib/Transforms/Utils/SCCPSolver.cpp
The file was modifiedllvm/include/llvm/Transforms/Utils/SCCPSolver.h
The file was modifiedllvm/lib/Transforms/Scalar/SCCP.cpp
The file was modifiedllvm/include/llvm/LinkAllPasses.h
The file was addedllvm/lib/Transforms/Scalar/FunctionSpecialization.cpp
The file was addedllvm/test/Transforms/FunctionSpecialization/function-specialization5.ll
The file was addedllvm/test/Transforms/FunctionSpecialization/function-specialization-recursive.ll
The file was modifiedllvm/lib/Passes/PassBuilder.cpp
The file was modifiedllvm/lib/Transforms/IPO/PassManagerBuilder.cpp
The file was modifiedllvm/include/llvm/Transforms/Scalar/SCCP.h
The file was modifiedllvm/lib/Transforms/IPO/SCCP.cpp
The file was addedllvm/test/Transforms/FunctionSpecialization/function-specialization2.ll
The file was modifiedllvm/lib/Transforms/IPO/IPO.cpp
The file was modifiedllvm/lib/Transforms/Scalar/CMakeLists.txt
The file was addedllvm/test/Transforms/FunctionSpecialization/function-specialization.ll
Commit eac994e227dcc0eeb02c6d4d7c221b1c2fb0b9e2 by llvmgnsyncbot
[gn build] Port c4a0969b9c14
The file was modifiedllvm/utils/gn/secondary/llvm/lib/Transforms/Scalar/BUILD.gn
Commit f98b7796142d996861cbba824f3cacef0b446ef8 by akuegel
[mlir] Refactor ComplexOps.td [NFC]

Create a ComplexUnaryOp base class and use it for AbsOp, ReOp and ImOp.
Sort all ops in lexicographic order.

Differential Revision: https://reviews.llvm.org/D104095
The file was modifiedmlir/include/mlir/Dialect/Complex/IR/ComplexOps.td
Commit 47d138c93992f779a5dd0810b0e7402e043df61d by dmitry.polukhin
[clang-tidy] LIT test fix for Remark diagnostic

There is a followup fix for a unit test introduced at D102906. The test file was placed into a temp folder and test assumed that it would be visible without the full path specification.

This behaviour can be changed in future and it would be good to specify full path to the file at the test.

Test Plan:
```
ninja check-clang-tools
```

Reviewed By: DmitryPolukhin

Differential Revision: https://reviews.llvm.org/D104021
The file was modifiedclang-tools-extra/test/clang-tidy/infrastructure/remarks.cpp
Commit 6455418d3d2a2de1a8251cc2ccf2e87b9ae3112d by srhines
[compiler-rt] [builtins] [AArch64] Add missing AArch64 data synchronization barrier (dsb) to __clear_cache

https://developer.arm.com/documentation/den0024/a/Caches/Cache-maintenance
covers how to properly clear caches on AArch64, and the builtin
implementation was missing a `dsb ish` after clearing the icache for the
selected range.

Reviewed By: kristof.beyls

Differential Revision: https://reviews.llvm.org/D104094
The file was modifiedcompiler-rt/lib/builtins/clear_cache.c
Commit ca964b40e6e5d20fb658f2d36238b46a35dd860f by sven.vanhaastregt
[OpenCL][NFC] Reorganize ClangOpenCLBuiltinEmitter comments

Since 8866793b4e0a ("[OpenCL] Add OpenCL builtin test generator",
2021-06-09) there are two emitters in this file, so move the
file-level comment to the appropriate class.
The file was modifiedclang/utils/TableGen/ClangOpenCLBuiltinEmitter.cpp
Commit d789ed11ea01b30a69e8cd9612ebd336398ef3ec by llvm-dev
Fix implicit dependency on <string> header. NFCI.
The file was modifiedllvm/tools/llvm-rust-demangle-fuzzer/llvm-rust-demangle-fuzzer.cpp
Commit 5e6bfb661e8b51b440eda04d0be0c9a00b8713e9 by llvm-dev
[Analysis] Pass RecurrenceDescriptor as const reference. NFCI.

We were passing the RecurrenceDescriptor by value to most of the reduction analysis methods, despite it being rather bulky with TrackingVH members (that can be costly to copy). In all these cases we're only using the RecurrenceDescriptor for rather basic purposes (access to types/kinds etc.).

Differential Revision: https://reviews.llvm.org/D104029
The file was modifiedllvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
The file was modifiedllvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
The file was modifiedllvm/lib/Transforms/Utils/LoopUtils.cpp
The file was modifiedllvm/include/llvm/Analysis/TargetTransformInfo.h
The file was modifiedllvm/lib/Analysis/TargetTransformInfo.cpp
The file was modifiedllvm/include/llvm/Transforms/Utils/LoopUtils.h
The file was modifiedllvm/include/llvm/Analysis/TargetTransformInfoImpl.h
The file was modifiedllvm/lib/Target/RISCV/RISCVTargetTransformInfo.h
The file was modifiedllvm/lib/Transforms/Vectorize/LoopVectorize.cpp
The file was modifiedllvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
Commit f0a68bbc967ab851e9b678feaf9015a2bfadb12e by llvm-dev
SampleProf.h - fix spelling mistake in assert message. NFC.
The file was modifiedllvm/include/llvm/ProfileData/SampleProf.h
Commit 56d5c46b494d2232792a46e9b95de40b082f4164 by bing1.yu
[X86] Support __tile_stream_loadd intrinsic for new AMX interface

Adding support for __tile_stream_loadd intrinsic.

Reviewed By: LuoYuanke

Differential Revision: https://reviews.llvm.org/D103784
The file was modifiedllvm/lib/Target/X86/X86FastTileConfig.cpp
The file was modifiedclang/include/clang/Basic/BuiltinsX86_64.def
The file was modifiedllvm/lib/Target/X86/X86RegisterInfo.cpp
The file was modifiedllvm/lib/Target/X86/X86InstrAMX.td
The file was modifiedllvm/include/llvm/IR/IntrinsicsX86.td
The file was modifiedllvm/lib/Target/X86/X86LowerAMXType.cpp
The file was modifiedllvm/lib/Target/X86/X86ExpandPseudo.cpp
The file was modifiedllvm/lib/Target/X86/X86PreAMXConfig.cpp
The file was modifiedclang/lib/Headers/amxintrin.h
The file was modifiedclang/test/CodeGen/X86/amx_api.c
The file was modifiedllvm/lib/Target/X86/X86ISelDAGToDAG.cpp
The file was modifiedllvm/test/CodeGen/X86/AMX/amx-tile-basic.ll
Commit abc0e0125cc54426cd2e89080b87b706c3385173 by lebedev.ri
[NFC][VectorCombine] Extract computeAlignmentAfterScalarization() helper function
The file was modifiedllvm/lib/Transforms/Vectorize/VectorCombine.cpp
Commit 20542b47d6373dde497987abd1da83e84983fe13 by lebedev.ri
[VectorCombine] scalarizeLoadExtract(): use computeAlignmentAfterScalarization() helper

This results in slightly more optimistic alignments in some cases
The file was modifiedllvm/lib/Transforms/Vectorize/VectorCombine.cpp
The file was modifiedllvm/test/Transforms/VectorCombine/AArch64/load-extractelement-scalarization.ll
Commit 0cc3100bf8d126ce080c0075cf25784b45e5f990 by vsavchenko
[analyzer] Introduce a new interface for tracking

Tracking values through expressions and the stores is fundamental
for producing clear diagnostics.  However, the main components
participating in this process, namely `trackExpressionValue` and
`FindLastStoreBRVisitor`, became pretty bloated.  They have an
interesting dynamic between them (and some other visitors) that
one might call a "chain reaction". `trackExpressionValue` adds
`FindLastStoreBRVisitor`, and the latter calls `trackExpressionValue`.

Because of this design, individual checkers couldn't affect what's
going to happen somewhere in the middle of that chain.  Whether they
want to produce a more informative note or keep the overall tracking
going by utilizing some of the domain expertise.  This all lead to two
biggest problems that I see:

  * Some checkers don't use it
  This should probably never be the case for path-sensitive checks.

  * Some checkers incorporated their logic directly into those
    components
  This doesn't make the maintenance easier, breaks multiple
  architecture principles, and makes the code harder to read adn
  understand, thus, increasing the probability of the first case.

This commit introduces a prototype for a new interface that will be
responsible for tracking.  My main idea here was to make operations
that I want have as a checker developer easy to implement and hook
directly into the tracking process.

Differential Revision: https://reviews.llvm.org/D103605
The file was modifiedclang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h
The file was modifiedclang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
Commit 967c06b3e95ba776fb06ad0ea5aa699cf2e1b59a by vsavchenko
[analyzer] Reimplement trackExpressionValue as ExpressionHandler

This commit moves trackExpressionValue into the Tracker interface
as DefaultExpressionHandler.  It still can be split into smaller
handlers, but that can be a future change.

Additionally, this commit doesn't remove the original trackExpressionValue
interface, so it's not too big.  One of the next commits will address it.

Differential Revision: https://reviews.llvm.org/D103616
The file was modifiedclang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
Commit b6bcf953220db7880f2bb508f6f5c02b41078b2c by vsavchenko
[analyzer] Change FindLastStoreBRVisitor to use Tracker

Additionally, this commit completely removes any uses of
FindLastStoreBRVisitor from the analyzer except for the
one in Tracker.

The next step is actually removing this class altogether
from the header file.

Differential Revision: https://reviews.llvm.org/D103618
The file was modifiedclang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
The file was modifiedclang/lib/StaticAnalyzer/Checkers/UndefCapturedBlockVarChecker.cpp
The file was modifiedclang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h
The file was modifiedclang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp
Commit 87a5c4d3745a06ec0594fa3f7aaf7f58a53315ec by vsavchenko
[analyzer] Hide and rename FindLastStoreBRVisitor

This component should not be used directly at this point and it is
simply an implementation detail, that's why StoreSiteFinder is
out of the header file.

Differential Revision: https://reviews.llvm.org/D103624
The file was modifiedclang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
The file was modifiedclang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h
Commit f853d2601abd4f6ab789ca1513ae8b59ba5d38b7 by vsavchenko
[analyzer] Turn ReturnVisitor into a tracking visitor

Whenever Tracker spawns a visitor that needs to call tracker
back, we have to use TrackingBugReporterVisitor in order to maintain
all the hooks that the checker might've used.

Differential Revision: https://reviews.llvm.org/D103628
The file was modifiedclang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
Commit 3fc8d943c360f801a428ff24569d2dd53a2afe0f by vsavchenko
[analyzer] Refactor trackRValueExpression into ExpressionHandler

Differential Revision: https://reviews.llvm.org/D103630
The file was modifiedclang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
Commit 51d4704d5ec9b8e4e5e445ee69c56a58250e370e by vsavchenko
[analyzer] Turn TrackControlDependencyCond into a tracking visitor

Differential Revision: https://reviews.llvm.org/D103631
The file was modifiedclang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
Commit 57006d2f6d96d8a6836ae901218ed615071b3b8e by vsavchenko
[analyzer] Refactor trackExpressionValue to accept TrackingOptions

Differential Revision: https://reviews.llvm.org/D103633
The file was modifiedclang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h
The file was modifiedclang/lib/StaticAnalyzer/Checkers/MIGChecker.cpp
The file was modifiedclang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
The file was modifiedclang/lib/StaticAnalyzer/Checkers/ObjCContainersChecker.cpp
Commit 646e970d44d7eaf4f56e2956fb58b48eb9360cb3 by llvm-dev
[llvm-stress] Fix dead code preventing us generating per-element vector selects

This has been reported several times by the PVS Studio team as well as coming up in some static analysis.

getRandom() % 1 always returns 0 so we never actually test this codepath, (git blame suggests this has always been like this) - given that we have plenty of other "getRandom() & 1" the typo is pretty obvious, and matches the intention in the comment above - with this change we generate a nice mixture of scalar/vector condition selects of vectors.

I don't know llvm-stress that well - but I don't think we guarantee that the same seed value will always generate the same IR for later versions of the program - just that the same binary would.

Differential Revision: https://reviews.llvm.org/D104022
The file was modifiedllvm/tools/llvm-stress/llvm-stress.cpp
Commit 63042d46bb0c2481a8b7aa1c324405c2720b3603 by martin
clang-format: [JS] don't sort named imports if off.

The previous implementation would accidentally still sort the individual
named imports, even if the module reference was in a clang-format off
block.

Differential Revision: https://reviews.llvm.org/D104101
The file was modifiedclang/unittests/Format/SortImportsTestJS.cpp
The file was modifiedclang/lib/Format/SortJavaScriptImports.cpp
Commit b102e6880ab06654f945284a520f68c099732f44 by olemarius.strohm
[OpenCL] Fix overloading resolution of addrspace constructors

This fixes the prioritization of address spaces when choosing a
constructor, stopping them from being considered equally good,
which made the construction of types that could be constructed
by more than one of the constructors.

It does this by preferring the most specific address space,
which is decided by seeing if one of the address spaces is
a superset of the other, and preferring the other.

Fixes: PR50329

Reviewed By: Anastasia

Differential Revision: https://reviews.llvm.org/D102850
The file was modifiedclang/lib/Sema/SemaOverload.cpp
The file was modifiedclang/test/SemaOpenCLCXX/addrspace-constructors.clcpp
The file was modifiedclang/test/CodeGenOpenCLCXX/addrspace-constructors.clcpp
Commit d7c219a506ec9aabe7c5d36c0da55656af487b73 by rosie.sumpter
[CostModel][AArch64] Improve the cost estimate of CTPOP intrinsic

Added a case for CTPOP to AArch64TTIImpl::getIntrinsicInstrCost so that
the cost estimate matches the codegen in
test/CodeGen/AArch64/arm64-vpopcnt.ll

Differential Revision: https://reviews.llvm.org/D103952
The file was modifiedllvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
The file was modifiedllvm/test/Analysis/CostModel/AArch64/ctpop.ll
Commit 789708617d2023dbb343c65120556b2e6a97044d by rengolin
Do not generate calls to the 128-bit function __multi3() on 32-bit ARM

Re-applying this patch after bots failures. Should be fine now.

The function __multi3() is undefined on 32-bit ARM, so a call to it should
never be emitted. Instead, plain instructions need to be generated to
perform 128-bit multiplications.

Differential Revision: https://reviews.llvm.org/D103906
The file was modifiedllvm/lib/Target/ARM/ARMISelLowering.cpp
The file was modifiedllvm/test/CodeGen/ARM/umulo-128-legalisation-lowering.ll
The file was modifiedllvm/test/CodeGen/Thumb2/umulo-128-legalisation-lowering.ll
The file was modifiedllvm/test/CodeGen/Thumb/umulo-128-legalisation-lowering.ll
The file was modifiedllvm/test/CodeGen/Thumb/pr35836_2.ll
Commit 691ba0f8acb511f7da1e78c59fe9560b64c47f3a by nathan
[clang][NFC] Avoid assignment in condition

Refactor to avoid assignment inside condition by using 'if
(init-decl)'.  Also remove some unnecessary braces on a separate
if-nest.

Differential Revision: https://reviews.llvm.org/D104039
The file was modifiedclang/lib/Sema/SemaDecl.cpp
Commit 955d88992a55223102c74787fcf58cf20757e2dd by llvm-dev
[ADT] Consistently use StringExtrasTest for the test suite filter. NFCI.

Noticed while updating D103888 - some of the tests were using "StringExtras" for the test_suite_name instead of the expected "StringExtrasTest"
The file was modifiedllvm/unittests/ADT/StringExtrasTest.cpp
Commit 1a53fb0596abf4a8a9d5b4633cd5a8dc04f5e602 by hokein.wu
[clang-tidy] NarrowingConversionsCheck should support inhibiting conversions of
mixed integer and floating point types with WarnOnEquivalentBitWidth=0.

Also standardize control flow of handleX conversion functions to make it easier to be consistent.

Patch by Stephen Concannon!

Differential Revision: https://reviews.llvm.org/D103894
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.cpp
The file was modifiedclang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-narrowing-conversions-equivalentbitwidth-option.cpp
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.h
Commit 8dc2c1a0abdd52eadb12e8ae3b75f1eb8becc25c by mkazantsev
[Test] Add loop deletion test with switch
The file was modifiedllvm/test/Transforms/LoopDeletion/eval_first_iteration.ll
Commit c1bb75febe9d1176748f524324b5528347342166 by zarko
[PowerPC] Allow wa inline asm to also accept floating point arguments

GCC documentation for the `wa` constraint states that:
```
wa

    A VSX register (VSR), vs0…vs63. This is either an FPR (vs0…vs31 are f0…f31)
    or a VR (vs32…vs63 are v0…v31).
```
This technically means that we could accept floating point parameters. In fact,
gcc itself does. The following testcase compiles and runs on all PPC platforms with GCC,
whereas clang/llc will assert:
```
#include <stdio.h>
double foo ( vector double a ) {
  double b, c;
  asm("xvabsdp  %x0, %x2        \n"
             "xxsldwi  %x1, %x0, %x0, 2 \n"
      :  "+wa"    (b),
         "=wa"    (c)
      :  "wa"    (a)
      );
  return b+c;
}
int main(void) {
  vector double a = {-3., -4.};
  double t = foo( a );
  printf("%g\n", t);
}
```
This patch allows clang/llc to build and run this testcase.

Reviewed By: nemanjai, #powerpc

Differential Revision: https://reviews.llvm.org/D103409
The file was modifiedllvm/lib/Target/PowerPC/PPCISelLowering.cpp
The file was addedllvm/test/CodeGen/PowerPC/wa-asm-fpr.ll
Commit ad381e39a52604ba07e1e027e7bdec1c287d9089 by zinenko
[mlir] Provide minimal Python bindings for the math dialect

Reviewed By: ulysseB

Differential Revision: https://reviews.llvm.org/D104045
The file was addedmlir/python/mlir/dialects/MathOps.td
The file was addedmlir/python/mlir/dialects/math.py
The file was addedmlir/test/python/dialects/math.py
The file was modifiedmlir/python/mlir/dialects/CMakeLists.txt
Commit 9eedde705fab24200be47b2769a3cd12d24bb230 by jingu.kang
precommit tests for D104042
The file was addedllvm/test/CodeGen/AArch64/neon-sad.ll
Commit 8840c94a338097d8e5ac4556256040baf23b0526 by mkazantsev
[Test] One more elaborate test with selects for loop deletion
The file was modifiedllvm/test/Transforms/LoopDeletion/eval_first_iteration.ll
Commit d30c202d276db86d741734954d1957e7dbbf123c by hokein.wu
[clangd] don't rename if the triggering loc is not actually being renamed.

See context: https://github.com/clangd/clangd/issues/765

Reviewed By: sammccall

Differential Revision: https://reviews.llvm.org/D101816
The file was modifiedclang-tools-extra/clangd/refactor/Rename.cpp
The file was modifiedclang-tools-extra/clangd/unittests/RenameTests.cpp
Commit 71a02ddda10583b7f51611e8aefcbecc47352683 by fraser
[VP][NFC] Format comment to 80 columns
The file was modifiedllvm/include/llvm/IR/VPIntrinsics.def
Commit 61cdaf66fe22be2b5942ddee4f46a998b4f3ee29 by llvm-dev
[ADT] Remove APInt/APSInt toString() std::string variants

<string> is currently the highest impact header in a clang+llvm build:

https://commondatastorage.googleapis.com/chromium-browser-clang/llvm-include-analysis.html

One of the most common places this is being included is the APInt.h header, which needs it for an old toString() implementation that returns std::string - an inefficient method compared to the SmallString versions that it actually wraps.

This patch replaces these APInt/APSInt methods with a pair of llvm::toString() helpers inside StringExtras.h, adjusts users accordingly and removes the <string> from APInt.h - I was hoping that more of these users could be converted to use the SmallString methods, but it appears that most end up creating a std::string anyhow. I avoided trying to use the raw_ostream << operators as well as I didn't want to lose having the integer radix explicit in the code.

Differential Revision: https://reviews.llvm.org/D103888
The file was modifiedclang/lib/AST/ASTDiagnostic.cpp
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/ProBoundsConstantArrayIndexCheck.cpp
The file was modifiedllvm/lib/Target/X86/X86MCInstLower.cpp
The file was modifiedllvm/tools/llvm-pdbutil/MinimalSymbolDumper.cpp
The file was modifiedclang/lib/Sema/SemaStmtAsm.cpp
The file was modifiedclang/lib/AST/TextNodeDumper.cpp
The file was modifiedllvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp
The file was modifiedllvm/tools/llvm-pdbutil/MinimalTypeDumper.cpp
The file was modifiedclang/lib/Sema/SemaExprCXX.cpp
The file was modifiedclang/lib/Sema/SemaTemplate.cpp
The file was modifiedllvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
The file was modifiedclang/lib/AST/TemplateBase.cpp
The file was modifiedclang/lib/Frontend/Rewrite/RewriteModernObjC.cpp
The file was modifiedllvm/lib/Support/APInt.cpp
The file was modifiedclang/lib/Sema/SemaDeclAttr.cpp
The file was modifiedclang/include/clang/ASTMatchers/ASTMatchers.h
The file was modifiedllvm/unittests/ADT/StringExtrasTest.cpp
The file was modifiedclang/lib/Lex/PPExpressions.cpp
The file was modifiedclang/unittests/Tooling/RecursiveASTVisitorTestPostOrderVisitor.cpp
The file was modifiedllvm/unittests/ADT/APIntTest.cpp
The file was modifiedclang-tools-extra/clangd/DumpAST.cpp
The file was modifiedclang/lib/Sema/SemaOpenMP.cpp
The file was modifiedclang/lib/Sema/SemaChecking.cpp
The file was modifiedclang/lib/Frontend/InitPreprocessor.cpp
The file was modifiedclang/lib/AST/StmtPrinter.cpp
The file was modifiedclang/lib/AST/ASTStructuralEquivalence.cpp
The file was modifiedclang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp
The file was modifiedclang/lib/Sema/SemaConcept.cpp
The file was modifiedllvm/include/llvm/ADT/APSInt.h
The file was modifiedclang/unittests/StaticAnalyzer/RangeSetTest.cpp
The file was modifiedclang/lib/Sema/SemaDeclCXX.cpp
The file was modifiedclang/lib/Sema/SemaExpr.cpp
The file was modifiedclang/lib/Frontend/CompilerInvocation.cpp
The file was modifiedclang/lib/AST/ExprConstant.cpp
The file was modifiedclang/lib/Sema/SemaDecl.cpp
The file was modifiedllvm/lib/Transforms/IPO/OpenMPOpt.cpp
The file was modifiedllvm/include/llvm/ADT/StringExtras.h
The file was modifiedclang/lib/Sema/SemaStmt.cpp
The file was modifiedclang-tools-extra/clang-tidy/abseil/DurationRewriter.cpp
The file was modifiedclang/lib/Analysis/ThreadSafetyCommon.cpp
The file was modifiedllvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
The file was modifiedclang/lib/CodeGen/CodeGenModule.cpp
The file was modifiedclang/unittests/Tooling/RecursiveASTVisitorTests/CallbacksCommon.h
The file was modifiedllvm/include/llvm/ADT/APInt.h
The file was modifiedclang-tools-extra/clangd/Hover.cpp
The file was modifiedclang/lib/Sema/SemaInit.cpp
The file was modifiedclang/lib/Sema/SemaCast.cpp
The file was modifiedclang/lib/Sema/SemaType.cpp
The file was modifiedclang/lib/CodeGen/CGBuiltin.cpp
Commit 6aca6032c5b62b5d26999da5f55779a1b08ec6a2 by sam.mccall
[AST] Include the TranslationUnitDecl when traversing with TraversalScope

Given `int foo, bar;`, TraverseAST reveals this tree:
  TranslationUnitDecl
   - foo
   - bar

Before this patch, with the TraversalScope set to {foo}, TraverseAST yields:
  foo

After this patch it yields:
  TranslationUnitDecl
  - foo

Also, TraverseDecl(TranslationUnitDecl) now respects the traversal scope.

---

The main effect of this today is that clang-tidy checks that match the
translationUnitDecl(), either in order to traverse it or check
parentage, should work.

Differential Revision: https://reviews.llvm.org/D104071
The file was modifiedclang-tools-extra/clangd/refactor/tweaks/AddUsing.cpp
The file was modifiedclang/unittests/AST/ASTContextParentMapTest.cpp
The file was modifiedclang/include/clang/AST/ASTContext.h
The file was modifiedclang-tools-extra/clangd/DumpAST.cpp
The file was modifiedclang-tools-extra/clangd/unittests/TestTU.cpp
The file was modifiedclang/include/clang/AST/RecursiveASTVisitor.h
The file was modifiedclang-tools-extra/clangd/unittests/DiagnosticsTests.cpp
The file was modifiedclang/unittests/Tooling/RecursiveASTVisitorTests/TraversalScope.cpp
Commit 0fc4016d913d3ca2f490b1f1b132798ec0a13e00 by llvm-dev
APInt.h - add missing <utility> header.

Some buildbots are complaining about std::move() after rG61cdaf66fe22be2b5942ddee4f46a998b4f3ee29
The file was modifiedllvm/include/llvm/ADT/APInt.h
Commit cd2e500e555e134ffc19d07f26b17d0b0c71efd9 by llvm-dev
[lldb] DumpDataExtractor.cpp - replace APInt::toString() with llvm::toString(APInt)

APInt::toString() was removed rG61cdaf66fe22be2b5942ddee4f46a998b4f3ee29
The file was modifiedlldb/source/Core/DumpDataExtractor.cpp
Commit 7c7978a122fdd6eb1bc6300b3a2582108f13ff89 by patacca
[Polly][Isl] Removing explicit operator bool() from isl C++ bindings. NFC.

This is part of an effort to reduce the differences between the custom C++ bindings used right now by polly in `lib/External/isl/include/isl/isl-noxceptions.h` and the official isl C++ interface.

Changes made:
- Removing explicit operator bool() from all the classes in the isl C++ bindings.
- Replace each call to operator bool() to method `is_null()`.
- isl-noexceptions.h has been generated by this https://github.com/patacca/isl/commit/27396daac5a5ee8228d25511a12f4a814c92ba8f

Reviewed By: Meinersbur

Differential Revision: https://reviews.llvm.org/D103976
The file was modifiedpolly/lib/Analysis/ScopInfo.cpp
The file was modifiedpolly/lib/CodeGen/PPCGCodeGeneration.cpp
The file was modifiedpolly/lib/Transform/ManualOptimizer.cpp
The file was modifiedpolly/lib/Support/SCEVAffinator.cpp
The file was modifiedpolly/include/polly/ScopInfo.h
The file was modifiedpolly/lib/Transform/FlattenAlgo.cpp
The file was modifiedpolly/unittests/DeLICM/DeLICMTest.cpp
The file was modifiedpolly/lib/Transform/ForwardOpTree.cpp
The file was modifiedpolly/lib/CodeGen/IslAst.cpp
The file was modifiedpolly/lib/Transform/ZoneAlgo.cpp
The file was modifiedpolly/lib/Analysis/ScopBuilder.cpp
The file was modifiedpolly/lib/Exchange/JSONExporter.cpp
The file was modifiedpolly/lib/Transform/ScheduleTreeTransform.cpp
The file was modifiedpolly/lib/Transform/ScheduleOptimizer.cpp
The file was modifiedpolly/lib/External/isl/include/isl/isl-noexceptions.h
The file was modifiedpolly/lib/Transform/DeLICM.cpp
The file was modifiedpolly/lib/Analysis/DependenceInfo.cpp
The file was modifiedpolly/lib/Transform/MatmulOptimizer.cpp
The file was modifiedpolly/lib/Support/ISLTools.cpp
Commit 6b4b98d98c94256aaaa8d3d69e3ed0e43b732e2b by gysit
[mlir][[linalg] Remove deprecated structured op interface methods.

Cleanup the refactoring started by https://reviews.llvm.org/D103394.

Differential Revision: https://reviews.llvm.org/D104025
The file was modifiedmlir/include/mlir/Dialect/Linalg/IR/LinalgInterfaces.td
Commit 4125b46232caf6a558470670f87b56ccb46d61aa by Raphael Isemann
Revert "[lldb] Add support for evaluating expressions in static member functions"

This reverts commit 00764c36edf88ae9806e8d57a6addb782e6ceae8 and the
follow up d2223c7a49973a61cc2de62992662afa8d19065a.

The original patch broke that one could use static member variables while
inside a static member functions without having a running target. It seems that
LLDB currently requires that static variables are only found via the global
variable lookup so that they can get materialized and mapped to the argument
struct of the expression.

After 00764c36edf88ae9806e8d57a6addb782e6ceae8 static variables of the current
class could be found via Clang's lookup which LLDB isn't observing. This
resulting in expressions actually containing these variables as normal
globals that can't be rewritten to a member of the argument struct.

More specifically, in the test TestCPPThis, the expression
`expr --j false -- s_a` is now only passing if we have a runnable target.

I'll revert the patch as the possible fixes aren't trivial and it degrades
the debugging experience more than the issue that the revert patch addressed.

The underlying bug can be reproduced before/after this patch by stopping
in `TestCPPThis` main function and running: `e -j false -- my_a; A<int>::s_a`.
The `my_a` will pull in the `A<int>` class and the second expression will
be resolved by Clang on its own (which causes LLDB to not materialize the
static variable).

Note: A workaround is to just do `::s_a` which will force LLDB to take the global
variable lookup.
The file was removedlldb/test/API/lang/cpp/stopped_in_static_member_function/main.cpp
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/ClangExpressionSourceCode.cpp
The file was removedlldb/test/API/lang/cpp/stopped_in_static_member_function/TestStoppedInStaticMemberFunction.py
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/ClangExpressionSourceCode.h
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.h
The file was removedlldb/test/API/lang/cpp/stopped_in_static_member_function/Makefile
Commit f6b4e081dc9cf74fb5c22439f552fa035f2c2651 by gysit
[mlir][linalg] Prepare drop unit dims for scalar operands.

Adapt drop unit dims for structured ops taking scalar operands.

Differential Revision: https://reviews.llvm.org/D103890
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/DropUnitDims.cpp
Commit f7bc9db95aba77157f10b627a4dea32c3174e148 by llvm-dev
Fix Wdocumentation missing parameter warnings. NFCI.
The file was modifiedclang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h
Commit 4295c222a8f12f0d97a7c03f884c5d3f7c93aaa0 by llvm-dev
StringExtrasTest.cpp - add missing newline at the end of file. NFCI.
The file was modifiedllvm/unittests/ADT/StringExtrasTest.cpp
Commit 602ab248335e1540e82667e74fea44b7f042e112 by spatel
[SimplifyCFG] avoid crash on degenerate loop

The problematic code pattern in the test is based on:
https://llvm.org/PR50638

If the IfCond is itself the phi that we are trying to remove,
then the loop around line 2835 can end up with something like:
%cmp = select i1 %cmp, i1 false, i1 true

That can then lead to a use-after-free and assert (although
I'm still not seeing that locally in my release + asserts build).

I think this can only happen with unreachable code.

Differential Revision: https://reviews.llvm.org/D104063
The file was modifiedllvm/test/Transforms/SimplifyCFG/two-entry-phi-return.ll
The file was modifiedllvm/lib/Transforms/Utils/SimplifyCFG.cpp
Commit 307cfad0d639b0397033069473e84e6c7f249056 by llvm-dev
Fix extraneous ')' error.
The file was modifiedlldb/source/Core/DumpDataExtractor.cpp
Commit d2661c6c51756686c1f6be6981ee4ad527cba3d8 by gysit
[mlir][linalg] Prepare pad to static bounding box for scalar operands.

Adapt pad to static bounding box to support structured ops taking scalar operands.

Differential Revision: https://reviews.llvm.org/D103891
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
Commit 7b444a66b33ca7ec9cc7b9737205805e9d8106a2 by zahira.ammarguellat
Fix for error "'Run' overrides a member function but is not marked
'override' [-Werror,-Wsuggest-override]" occuring during windows
debug self-build.
The file was modifiedllvm/lib/Testing/Support/CMakeLists.txt
Commit 150f7cedfb2e072804f4a0887d14c97a7fe3f374 by zahira.ammarguellat
Referencing a static function defined in an opnemp clause, is
generating an erroneous warning.

See here: https://godbolt.org/z/ajKPc36M7
The file was modifiedclang/lib/Sema/Sema.cpp
The file was addedclang/test/OpenMP/declare_variant.cpp
Commit 9907746f5db7c2a91917fa7b312136f7bf03d2f5 by sjoerd.meijer
Move Function Specialization to its correct location. NFC.

As a follow up of rGc4a0969b9c14, and as part of D104102, move it to
the IPO transformations directory.
The file was removedllvm/lib/Transforms/Scalar/FunctionSpecialization.cpp
The file was addedllvm/lib/Transforms/IPO/FunctionSpecialization.cpp
The file was modifiedllvm/lib/Transforms/Scalar/CMakeLists.txt
The file was modifiedllvm/lib/Transforms/IPO/CMakeLists.txt
Commit c783013b1471b444a5384e64ac4677e1653057a9 by llvmgnsyncbot
[gn build] Port 9907746f5db7
The file was modifiedllvm/utils/gn/secondary/llvm/lib/Transforms/IPO/BUILD.gn
The file was modifiedllvm/utils/gn/secondary/llvm/lib/Transforms/Scalar/BUILD.gn
Commit e2d0798bc3e462738c557270528e8a983df0cf02 by Raphael Isemann
[lldb] Unmark TestInlines as XFAIL for gcc

This works for GCC>8.5 and ToT LLDB.
The file was modifiedlldb/test/API/lang/cpp/inlines/TestInlines.py
Commit b1603cb66fc68eb74c21041456c9e36466603244 by Raphael Isemann
[lldb] Fix compilation after removal of APInt::toString
The file was modifiedlldb/source/Utility/Scalar.cpp
The file was modifiedlldb/source/Plugins/Language/ObjC/Cocoa.cpp
Commit ab46490dfc5cded4b2873da75eb47e150d1ad92c by Raphael Isemann
[lldb] Remove GCC XFAIL for TestTypedefArray

This passes with GCC>8.5 and ToT LLDB.
The file was modifiedlldb/test/API/functionalities/data-formatter/typedef_array/TestTypedefArray.py
Commit edd9515bd125634f40ebc2e783d6a127345e7c0d by thomasraoux
[mlir][VectorToGPU] First step to convert vector ops to GPU MMA ops

This is the first step to convert vector ops to MMA operations in order to
target GPUs tensor core ops. This currently only support simple cases,
transpose and element-wise operation will be added later.

Differential Revision: https://reviews.llvm.org/D102962
The file was modifiedmlir/include/mlir/Conversion/Passes.td
The file was addedmlir/include/mlir/Conversion/VectorToGPU/VectorToGPU.h
The file was modifiedmlir/lib/Conversion/CMakeLists.txt
The file was addedmlir/test/Conversion/VectorToGPU/vector-to-mma-ops.mlir
The file was modifiedmlir/include/mlir/Conversion/Passes.h
The file was addedmlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp
The file was addedmlir/lib/Conversion/VectorToGPU/CMakeLists.txt
Commit cd2bb16d563ef515903b2f421c0f0a1899314af5 by a.bataev
[SLP][NFC]Add a test for unordered stores, NFC.
The file was addedllvm/test/Transforms/SLPVectorizer/X86/stores-non-ordered.ll
Commit 74af4bb1f471d042084328271bad80fe2acde8f4 by a.bataev
[SLP]Remove unnecessary UndefValue in CreateShuffle.

No need to use UndefValue in CreateShuffle call.

Differential Revision: https://reviews.llvm.org/D104113
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/resched.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/cmp_commute.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/AArch64/accelerate-vector-functions.ll
The file was modifiedllvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/arith-fp-inseltpoison.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/pr47629-inseltpoison.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/load-merge.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/AArch64/transpose.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/insert-element-build-vector.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/AMDGPU/add_sub_sat.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/PR35865.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/pr49081.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/AMDGPU/add_sub_sat-inseltpoison.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/phi.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/alternate-int.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/alternate-calls-inseltpoison.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/alternate-cast-inseltpoison.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/AArch64/accelerate-vector-functions-inseltpoison.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/sext.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/sext-inseltpoison.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/arith-fp.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/alternate-fp.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/AArch64/transpose-inseltpoison.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/PR35865-inseltpoison.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/AArch64/vectorize-free-extracts-inserts.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/insert-element-build-vector-inseltpoison.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/cmp_commute-inseltpoison.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/pr47629.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/alternate-int-inseltpoison.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/alternate-fp-inseltpoison.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/AArch64/gather-root.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/alternate-calls.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/alternate-cast.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/load-merge-inseltpoison.ll
Commit f2b1a1e10c5a4a3e96cc244adfbacfb5e97c3ca5 by thakis
[lld/mac] Use sectionType() more

Not sure sectionType() carries its weight, but while we have it
we should use it consistently.

No behavior change.

Differential Revision: https://reviews.llvm.org/D104027
The file was modifiedlld/MachO/InputSection.cpp
The file was modifiedlld/MachO/ConcatOutputSection.cpp
Commit 0867edfc643891c22ef089f8f6a4dadc691f0742 by mascasa
[HWASan] Add basic stack tagging support for LAM.

Adds the basic instrumentation needed for stack tagging.

Currently does not support stack short granules or TLS stack histories,
since a different code path is followed for the callback instrumentation
we use.

We may simply wait to support these two features until we switch to
a custom calling convention.

Patch By: xiangzhangllvm, morehouse

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D102901
The file was modifiedcompiler-rt/test/hwasan/TestCases/rich-stack.c
The file was modifiedclang/test/Driver/fsanitize.c
The file was modifiedcompiler-rt/test/hwasan/TestCases/stack-uar-realign.c
The file was addedllvm/test/Instrumentation/HWAddressSanitizer/X86/alloca-with-calls.ll
The file was modifiedcompiler-rt/test/hwasan/TestCases/stack-oob.c
The file was modifiedcompiler-rt/test/hwasan/TestCases/deep-recursion.c
The file was modifiedcompiler-rt/test/hwasan/TestCases/stack-uar-dynamic.c
The file was modifiedllvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
The file was modifiedcompiler-rt/test/hwasan/TestCases/longjmp.c
The file was addedllvm/test/Instrumentation/HWAddressSanitizer/X86/alloca-array.ll
The file was modifiedcompiler-rt/test/hwasan/TestCases/stack-history-length.c
The file was modifiedclang/lib/Driver/SanitizerArgs.cpp
The file was modifiedcompiler-rt/test/hwasan/TestCases/stack-uar.c
The file was addedllvm/test/Instrumentation/HWAddressSanitizer/X86/alloca.ll
The file was modifiedcompiler-rt/test/hwasan/TestCases/mem-intrinsics.c
Commit e42a347b74400b7212ceaaea6d39562a0435df42 by Chris.Hamilton
[Sema] Address-space sensitive check for unbounded arrays (v2)

Check applied to unbounded (incomplete) arrays and pointers to spot
cases where the computed address is beyond the largest possible
addressable extent of the array, based on the address space in which the
array is delcared, or which the pointer refers to.

Check helps to avoid cases of nonsense pointer math and array indexing
which could lead to linker failures or runtime exceptions.  Of
particular interest when building for embedded systems with small
address spaces.

This is version 2 of this patch -- version 1 had some testing issues
due to a sign error in existing code.  That error is corrected and
lit test for this chagne is extended to verify the fix.

Originally reviewed/accepted by: aaron.ballman
Original revision: https://reviews.llvm.org/D86796

Reviewed By: aaron.ballman, ebevhan

Differential Revision: https://reviews.llvm.org/D88174
The file was modifiedclang/lib/Sema/SemaChecking.cpp
The file was addedclang/test/Sema/unbounded-array-bounds.c
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
The file was modifiedclang/test/SemaCXX/constant-expression-cxx14.cpp
The file was modifiedclang/test/Sema/const-eval.c
Commit 7e9822cc55065b7c450dda254340765794e11fe3 by Chris.Hamilton
Revert "[Sema] Address-space sensitive check for unbounded arrays (v2)"

This reverts commit e42a347b74400b7212ceaaea6d39562a0435df42.
The file was modifiedclang/test/Sema/const-eval.c
The file was modifiedclang/lib/Sema/SemaChecking.cpp
The file was removedclang/test/Sema/unbounded-array-bounds.c
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
The file was modifiedclang/test/SemaCXX/constant-expression-cxx14.cpp
Commit a010d4230e13790b6ff7d2b8f49d478185489fb4 by a.bataev
[SLP]Allow reordering of insertelements.

After we added support for non-ordered insertelements, we can allow
their reordering.

Differential Revision: https://reviews.llvm.org/D104057
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/external_user_jumbled_load-inseltpoison.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/insert-element-build-vector-inseltpoison.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/operandorder.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/external_user_jumbled_load.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/insert-element-build-vector.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/AArch64/vectorize-free-extracts-inserts.ll
The file was modifiedllvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Commit 773771ba382b1fbcf6acccc0046bfe731541a599 by tomas.matheson
[CodeGen][regalloc] Don't align stack slots if the stack can't be realigned

Register allocation may spill virtual registers to the stack, which can
increase alignment requirements of the stack frame. If the the function
did not require stack realignment before register allocation, the
registers required to do so may not be reserved/available. This results
in a stack frame that requires realignment but can not be realigned.

Instead, only increase the alignment of the stack if we are still able
to realign.

The register SpillAlignment will be ignored if we can't realign, and the
backend will be responsible for emitting the correct unaligned loads and
stores. This seems to be the assumed behaviour already, e.g.
ARMBaseInstrInfo::storeRegToStackSlot and X86InstrInfo::storeRegToStackSlot
are both `canRealignStack` aware.

Differential Revision: https://reviews.llvm.org/D103602
The file was modifiedllvm/test/CodeGen/X86/div-rem-pair-recomposition-unsigned.ll
The file was modifiedllvm/test/CodeGen/X86/vector-interleaved-load-i16-stride-4.ll
The file was modifiedllvm/test/CodeGen/X86/vec-libcalls.ll
The file was modifiedllvm/test/CodeGen/X86/vec-strict-128.ll
The file was modifiedllvm/test/CodeGen/X86/avx512-bugfix-25270.ll
The file was modifiedllvm/test/CodeGen/X86/fma.ll
The file was modifiedllvm/test/CodeGen/Thumb2/mve-gather-increment.ll
The file was modifiedllvm/test/CodeGen/X86/half.ll
The file was modifiedllvm/test/CodeGen/X86/avx-intrinsics-x86_64.ll
The file was modifiedllvm/test/CodeGen/X86/vector-constrained-fp-intrinsics.ll
The file was modifiedllvm/test/CodeGen/X86/rotate-extract-vector.ll
The file was modifiedllvm/lib/CodeGen/VirtRegMap.cpp
The file was modifiedllvm/test/CodeGen/X86/stack-folding-fp-avx512.ll
The file was modifiedllvm/test/CodeGen/Thumb2/mve-float32regloops.ll
The file was modifiedllvm/test/CodeGen/Thumb2/mve-multivec-spill.ll
The file was modifiedllvm/test/CodeGen/Thumb2/mve-scatter-increment.ll
The file was modifiedllvm/test/CodeGen/X86/avx512-regcall-NoMask.ll
The file was modifiedllvm/test/CodeGen/X86/stack-folding-int-avx512.ll
The file was modifiedllvm/test/CodeGen/Thumb2/mve-vldst4.ll
The file was modifiedllvm/test/CodeGen/Thumb2/mve-vst4.ll
The file was modifiedllvm/test/CodeGen/X86/AMX/amx-across-func.ll
The file was modifiedllvm/test/CodeGen/X86/vector-half-conversions.ll
The file was modifiedllvm/test/CodeGen/Thumb2/mve-postinc-lsr.ll
The file was modifiedllvm/test/CodeGen/X86/AMX/amx-spill-merge.ll
The file was modifiedllvm/test/CodeGen/X86/sext-vsetcc.ll
The file was modifiedllvm/test/CodeGen/Thumb2/mve-phireg.ll
The file was modifiedllvm/test/CodeGen/X86/addsub-constant-folding.ll
The file was modifiedllvm/test/CodeGen/X86/vzero-excess.ll
The file was modifiedllvm/test/CodeGen/Thumb2/mve-vld4.ll
The file was modifiedllvm/test/CodeGen/Thumb2/mve-vecreduce-mlapred.ll
The file was modifiedllvm/test/CodeGen/X86/avx-vzeroupper.ll
The file was modifiedllvm/test/CodeGen/X86/AMX/amx-spill.ll
The file was modifiedllvm/test/CodeGen/Thumb2/mve-gather-scatter-optimisation.ll
The file was modifiedllvm/test/CodeGen/X86/AMX/amx-lower-tile-copy.ll
The file was modifiedllvm/test/CodeGen/X86/div-rem-pair-recomposition-signed.ll
The file was modifiedllvm/test/CodeGen/Thumb2/mve-postinc-dct.ll
Commit 82a3b606b01d2da23a40785222f3f7d15401dda0 by aaron
Update the C status page somewhat.

This adds implementation information for N2607,
clarifies that C17 only resolved defect reports,
and adds -std= information for the different versions.
The file was modifiedclang/www/c_status.html
Commit 5ef5177145b48e6379fe3a6434d3ff593fe7202a by asahay
[lldb-vscode] Synchronize calls to SendTerminatedEvent

If an inferior exits prior to the processing of a disconnect request,
then the threads executing EventThreadFunction and request_discontinue
respectively may call SendTerminatedEvent simultaneously, in turn,
testing and/or setting g_vsc.sent_terminated_event without any
synchronization. In case the thread executing EventThreadFunction sets
it before the thread executing request_discontinue has had a chance to
test it, the latter would move ahead to issue a response to the
disconnect request. Said response may be dispatched ahead of the
terminated event compelling the client to terminate the debug session
without consuming any console output that might've been generated by
the execution of terminateCommands.

Reviewed By: clayborg, wallace

Differential Revision: https://reviews.llvm.org/D103609
The file was modifiedlldb/tools/lldb-vscode/lldb-vscode.cpp
Commit f2cc0427b13ef10e67eed6eab9eefb58e8aef3d9 by enye.shi
[HIP] Fix --hip-version flag with 0 as component

Allow the usage of minor version 0, for hip versions
such as 4.0. Change the default values when performing
version checks.

Reviewed By: yaxunl

Differential Revision: https://reviews.llvm.org/D104062
The file was modifiedclang/test/Driver/hip-version.hip
The file was modifiedclang/lib/Driver/ToolChains/AMDGPU.cpp