Changes

Summary

  1. [CostModel][AArch64] Improve the cost estimate of CTPOP intrinsic (details)
  2. Do not generate calls to the 128-bit function __multi3() on 32-bit ARM (details)
  3. [clang][NFC] Avoid assignment in condition (details)
  4. [ADT] Consistently use StringExtrasTest for the test suite filter. NFCI. (details)
  5. [clang-tidy] NarrowingConversionsCheck should support inhibiting conversions of (details)
  6. [Test] Add loop deletion test with switch (details)
  7. [PowerPC] Allow wa inline asm to also accept floating point arguments (details)
  8. [mlir] Provide minimal Python bindings for the math dialect (details)
  9. precommit tests for D104042 (details)
  10. [Test] One more elaborate test with selects for loop deletion (details)
  11. [clangd] don't rename if the triggering loc is not actually being renamed. (details)
  12. [VP][NFC] Format comment to 80 columns (details)
  13. [ADT] Remove APInt/APSInt toString() std::string variants (details)
  14. [AST] Include the TranslationUnitDecl when traversing with TraversalScope (details)
  15. APInt.h - add missing <utility> header. (details)
  16. [lldb] DumpDataExtractor.cpp - replace APInt::toString() with llvm::toString(APInt) (details)
  17. [Polly][Isl] Removing explicit operator bool() from isl C++ bindings. NFC. (details)
  18. [mlir][[linalg] Remove deprecated structured op interface methods. (details)
  19. Revert "[lldb] Add support for evaluating expressions in static member functions" (details)
  20. [mlir][linalg] Prepare drop unit dims for scalar operands. (details)
  21. Fix Wdocumentation missing parameter warnings. NFCI. (details)
  22. StringExtrasTest.cpp - add missing newline at the end of file. NFCI. (details)
  23. [SimplifyCFG] avoid crash on degenerate loop (details)
  24. Fix extraneous ')' error. (details)
  25. [mlir][linalg] Prepare pad to static bounding box for scalar operands. (details)
  26. Fix for error "'Run' overrides a member function but is not marked (details)
  27. Referencing a static function defined in an opnemp clause, is (details)
  28. Move Function Specialization to its correct location. NFC. (details)
  29. [gn build] Port 9907746f5db7 (details)
  30. [lldb] Unmark TestInlines as XFAIL for gcc (details)
  31. [lldb] Fix compilation after removal of APInt::toString (details)
  32. [lldb] Remove GCC XFAIL for TestTypedefArray (details)
  33. [mlir][VectorToGPU] First step to convert vector ops to GPU MMA ops (details)
  34. [SLP][NFC]Add a test for unordered stores, NFC. (details)
  35. [SLP]Remove unnecessary UndefValue in CreateShuffle. (details)
  36. [lld/mac] Use sectionType() more (details)
  37. [HWASan] Add basic stack tagging support for LAM. (details)
  38. [Sema] Address-space sensitive check for unbounded arrays (v2) (details)
  39. Revert "[Sema] Address-space sensitive check for unbounded arrays (v2)" (details)
  40. [SLP]Allow reordering of insertelements. (details)
  41. [CodeGen][regalloc] Don't align stack slots if the stack can't be realigned (details)
  42. Update the C status page somewhat. (details)
  43. [lldb-vscode] Synchronize calls to SendTerminatedEvent (details)
  44. [HIP] Fix --hip-version flag with 0 as component (details)
  45. [Matrix] In transpose opts, handle a^t * a^t (details)
  46. [libcxx][ranges] Add range.subrange. (details)
  47. [gn build] Port 9106047ee3dd (details)
  48. [libc++] Enable the synchronization library on Apple platforms (details)
  49. [X86FixupLEAs] Sub register usage of LEA dest should block LEA/SUB optimization (details)
  50. [libc++] NFC: Move indirect_concepts.h to __iterator/concepts.h (details)
  51. [gn build] Port c54d3050f7b9 (details)
  52. [SLP][NFC] Fix condition that was supposed to save a bit of compile time. (details)
  53. [lldb] Enable TestRuntimeTypes on Apple Silicon (details)
  54. [lldb] Support new objective-c hash table layout (details)
  55. Introduce alloca_scope op (details)
  56. [Sema] Address-space sensitive check for unbounded arrays (v2) (details)
  57. CodeGen: Fix missing const (details)
  58. GlobalISel: Reduce indentation and remove dead path (details)
  59. AMDGPU/GlobalISel: Fix indentation (details)
  60. AMDGPU/GlobalISel: Remove leftover hack for argument memory sizes (details)
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/test/Analysis/CostModel/AArch64/ctpop.ll (diff)
The file was modifiedllvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp (diff)
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 (diff)
The file was modifiedllvm/test/CodeGen/Thumb/umulo-128-legalisation-lowering.ll (diff)
The file was modifiedllvm/test/CodeGen/Thumb/pr35836_2.ll (diff)
The file was modifiedllvm/test/CodeGen/Thumb2/umulo-128-legalisation-lowering.ll (diff)
The file was modifiedllvm/test/CodeGen/ARM/umulo-128-legalisation-lowering.ll (diff)
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 (diff)
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 (diff)
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/test/clang-tidy/checkers/cppcoreguidelines-narrowing-conversions-equivalentbitwidth-option.cpp (diff)
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.cpp (diff)
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.h (diff)
Commit 8dc2c1a0abdd52eadb12e8ae3b75f1eb8becc25c by mkazantsev
[Test] Add loop deletion test with switch
The file was modifiedllvm/test/Transforms/LoopDeletion/eval_first_iteration.ll (diff)
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 addedllvm/test/CodeGen/PowerPC/wa-asm-fpr.ll
The file was modifiedllvm/lib/Target/PowerPC/PPCISelLowering.cpp (diff)
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 modifiedmlir/python/mlir/dialects/CMakeLists.txt (diff)
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
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 (diff)
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 (diff)
The file was modifiedclang-tools-extra/clangd/unittests/RenameTests.cpp (diff)
Commit 71a02ddda10583b7f51611e8aefcbecc47352683 by fraser
[VP][NFC] Format comment to 80 columns
The file was modifiedllvm/include/llvm/IR/VPIntrinsics.def (diff)
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/Sema/SemaTemplate.cpp (diff)
The file was modifiedllvm/include/llvm/ADT/StringExtras.h (diff)
The file was modifiedllvm/lib/Support/APInt.cpp (diff)
The file was modifiedclang/lib/Sema/SemaInit.cpp (diff)
The file was modifiedclang/lib/Sema/SemaDeclAttr.cpp (diff)
The file was modifiedclang/lib/Sema/SemaOpenMP.cpp (diff)
The file was modifiedclang/lib/AST/ASTDiagnostic.cpp (diff)
The file was modifiedclang/lib/Analysis/ThreadSafetyCommon.cpp (diff)
The file was modifiedclang/lib/Frontend/Rewrite/RewriteModernObjC.cpp (diff)
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/ProBoundsConstantArrayIndexCheck.cpp (diff)
The file was modifiedclang/lib/Sema/SemaDecl.cpp (diff)
The file was modifiedclang/unittests/Tooling/RecursiveASTVisitorTestPostOrderVisitor.cpp (diff)
The file was modifiedclang/lib/AST/ExprConstant.cpp (diff)
The file was modifiedllvm/unittests/ADT/APIntTest.cpp (diff)
The file was modifiedclang/lib/Sema/SemaExprCXX.cpp (diff)
The file was modifiedclang/lib/Sema/SemaExpr.cpp (diff)
The file was modifiedclang/lib/Sema/SemaType.cpp (diff)
The file was modifiedllvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp (diff)
The file was modifiedclang/lib/Sema/SemaStmtAsm.cpp (diff)
The file was modifiedclang/lib/Frontend/InitPreprocessor.cpp (diff)
The file was modifiedllvm/tools/llvm-pdbutil/MinimalSymbolDumper.cpp (diff)
The file was modifiedclang-tools-extra/clangd/DumpAST.cpp (diff)
The file was modifiedclang/unittests/Tooling/RecursiveASTVisitorTests/CallbacksCommon.h (diff)
The file was modifiedllvm/lib/Target/X86/X86MCInstLower.cpp (diff)
The file was modifiedclang/include/clang/ASTMatchers/ASTMatchers.h (diff)
The file was modifiedllvm/include/llvm/ADT/APInt.h (diff)
The file was modifiedclang/lib/Frontend/CompilerInvocation.cpp (diff)
The file was modifiedllvm/lib/Transforms/IPO/OpenMPOpt.cpp (diff)
The file was modifiedllvm/unittests/ADT/StringExtrasTest.cpp (diff)
The file was modifiedclang/lib/Sema/SemaConcept.cpp (diff)
The file was modifiedclang/lib/Sema/SemaChecking.cpp (diff)
The file was modifiedllvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp (diff)
The file was modifiedclang/unittests/StaticAnalyzer/RangeSetTest.cpp (diff)
The file was modifiedllvm/tools/llvm-exegesis/lib/BenchmarkResult.cpp (diff)
The file was modifiedclang-tools-extra/clang-tidy/abseil/DurationRewriter.cpp (diff)
The file was modifiedclang/lib/CodeGen/CodeGenModule.cpp (diff)
The file was modifiedclang/lib/Sema/SemaStmt.cpp (diff)
The file was modifiedclang/lib/Sema/SemaDeclCXX.cpp (diff)
The file was modifiedclang/lib/AST/TemplateBase.cpp (diff)
The file was modifiedclang-tools-extra/clangd/Hover.cpp (diff)
The file was modifiedclang/lib/Lex/PPExpressions.cpp (diff)
The file was modifiedclang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp (diff)
The file was modifiedclang/lib/AST/TextNodeDumper.cpp (diff)
The file was modifiedclang/lib/AST/StmtPrinter.cpp (diff)
The file was modifiedllvm/include/llvm/ADT/APSInt.h (diff)
The file was modifiedllvm/tools/llvm-pdbutil/MinimalTypeDumper.cpp (diff)
The file was modifiedclang/lib/CodeGen/CGBuiltin.cpp (diff)
The file was modifiedclang/lib/Sema/SemaCast.cpp (diff)
The file was modifiedclang/lib/AST/ASTStructuralEquivalence.cpp (diff)
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/include/clang/AST/ASTContext.h (diff)
The file was modifiedclang/include/clang/AST/RecursiveASTVisitor.h (diff)
The file was modifiedclang-tools-extra/clangd/unittests/DiagnosticsTests.cpp (diff)
The file was modifiedclang/unittests/Tooling/RecursiveASTVisitorTests/TraversalScope.cpp (diff)
The file was modifiedclang-tools-extra/clangd/unittests/TestTU.cpp (diff)
The file was modifiedclang-tools-extra/clangd/DumpAST.cpp (diff)
The file was modifiedclang-tools-extra/clangd/refactor/tweaks/AddUsing.cpp (diff)
The file was modifiedclang/unittests/AST/ASTContextParentMapTest.cpp (diff)
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 (diff)
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 (diff)
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/Transform/FlattenAlgo.cpp (diff)
The file was modifiedpolly/include/polly/ScopInfo.h (diff)
The file was modifiedpolly/lib/Analysis/DependenceInfo.cpp (diff)
The file was modifiedpolly/lib/Transform/ZoneAlgo.cpp (diff)
The file was modifiedpolly/lib/Exchange/JSONExporter.cpp (diff)
The file was modifiedpolly/lib/CodeGen/PPCGCodeGeneration.cpp (diff)
The file was modifiedpolly/lib/Analysis/ScopInfo.cpp (diff)
The file was modifiedpolly/lib/Transform/ManualOptimizer.cpp (diff)
The file was modifiedpolly/unittests/DeLICM/DeLICMTest.cpp (diff)
The file was modifiedpolly/lib/Support/ISLTools.cpp (diff)
The file was modifiedpolly/lib/Transform/ScheduleOptimizer.cpp (diff)
The file was modifiedpolly/lib/Analysis/ScopBuilder.cpp (diff)
The file was modifiedpolly/lib/CodeGen/IslAst.cpp (diff)
The file was modifiedpolly/lib/Support/SCEVAffinator.cpp (diff)
The file was modifiedpolly/lib/Transform/DeLICM.cpp (diff)
The file was modifiedpolly/lib/Transform/ScheduleTreeTransform.cpp (diff)
The file was modifiedpolly/lib/Transform/ForwardOpTree.cpp (diff)
The file was modifiedpolly/lib/External/isl/include/isl/isl-noexceptions.h (diff)
The file was modifiedpolly/lib/Transform/MatmulOptimizer.cpp (diff)
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 (diff)
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 modifiedlldb/source/Plugins/ExpressionParser/Clang/ClangExpressionSourceCode.cpp (diff)
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.h (diff)
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/ClangExpressionSourceCode.h (diff)
The file was removedlldb/test/API/lang/cpp/stopped_in_static_member_function/Makefile
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp (diff)
The file was removedlldb/test/API/lang/cpp/stopped_in_static_member_function/main.cpp
The file was removedlldb/test/API/lang/cpp/stopped_in_static_member_function/TestStoppedInStaticMemberFunction.py
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp (diff)
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.h (diff)
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 (diff)
Commit f7bc9db95aba77157f10b627a4dea32c3174e148 by llvm-dev
Fix Wdocumentation missing parameter warnings. NFCI.
The file was modifiedclang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h (diff)
Commit 4295c222a8f12f0d97a7c03f884c5d3f7c93aaa0 by llvm-dev
StringExtrasTest.cpp - add missing newline at the end of file. NFCI.
The file was modifiedllvm/unittests/ADT/StringExtrasTest.cpp (diff)
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/lib/Transforms/Utils/SimplifyCFG.cpp (diff)
The file was modifiedllvm/test/Transforms/SimplifyCFG/two-entry-phi-return.ll (diff)
Commit 307cfad0d639b0397033069473e84e6c7f249056 by llvm-dev
Fix extraneous ')' error.
The file was modifiedlldb/source/Core/DumpDataExtractor.cpp (diff)
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 (diff)
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 (diff)
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 (diff)
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 modifiedllvm/lib/Transforms/IPO/CMakeLists.txt (diff)
The file was removedllvm/lib/Transforms/Scalar/FunctionSpecialization.cpp
The file was modifiedllvm/lib/Transforms/Scalar/CMakeLists.txt (diff)
The file was addedllvm/lib/Transforms/IPO/FunctionSpecialization.cpp
Commit c783013b1471b444a5384e64ac4677e1653057a9 by llvmgnsyncbot
[gn build] Port 9907746f5db7
The file was modifiedllvm/utils/gn/secondary/llvm/lib/Transforms/Scalar/BUILD.gn (diff)
The file was modifiedllvm/utils/gn/secondary/llvm/lib/Transforms/IPO/BUILD.gn (diff)
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 (diff)
Commit b1603cb66fc68eb74c21041456c9e36466603244 by Raphael Isemann
[lldb] Fix compilation after removal of APInt::toString
The file was modifiedlldb/source/Plugins/Language/ObjC/Cocoa.cpp (diff)
The file was modifiedlldb/source/Utility/Scalar.cpp (diff)
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 (diff)
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 (diff)
The file was addedmlir/test/Conversion/VectorToGPU/vector-to-mma-ops.mlir
The file was addedmlir/lib/Conversion/VectorToGPU/CMakeLists.txt
The file was addedmlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp
The file was addedmlir/include/mlir/Conversion/VectorToGPU/VectorToGPU.h
The file was modifiedmlir/include/mlir/Conversion/Passes.h (diff)
The file was modifiedmlir/lib/Conversion/CMakeLists.txt (diff)
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/pr47629-inseltpoison.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/resched.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/sext.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/cmp_commute.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/AMDGPU/add_sub_sat-inseltpoison.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/alternate-fp-inseltpoison.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/pr47629.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/AArch64/transpose.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/phi.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/AArch64/transpose-inseltpoison.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/AArch64/vectorize-free-extracts-inserts.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/PR35865-inseltpoison.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/PR35865.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/alternate-fp.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/AArch64/gather-root.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/load-merge-inseltpoison.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/insert-element-build-vector-inseltpoison.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/alternate-int.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/arith-fp-inseltpoison.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/sext-inseltpoison.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/AArch64/accelerate-vector-functions-inseltpoison.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/pr49081.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/cmp_commute-inseltpoison.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/alternate-calls.ll (diff)
The file was modifiedllvm/lib/Transforms/Vectorize/SLPVectorizer.cpp (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/alternate-calls-inseltpoison.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/alternate-cast.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/AArch64/accelerate-vector-functions.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/alternate-cast-inseltpoison.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/alternate-int-inseltpoison.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/AMDGPU/add_sub_sat.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/arith-fp.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/insert-element-build-vector.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/load-merge.ll (diff)
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/ConcatOutputSection.cpp (diff)
The file was modifiedlld/MachO/InputSection.cpp (diff)
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 modifiedclang/test/Driver/fsanitize.c (diff)
The file was addedllvm/test/Instrumentation/HWAddressSanitizer/X86/alloca.ll
The file was modifiedcompiler-rt/test/hwasan/TestCases/stack-uar.c (diff)
The file was modifiedcompiler-rt/test/hwasan/TestCases/stack-uar-dynamic.c (diff)
The file was modifiedcompiler-rt/test/hwasan/TestCases/stack-uar-realign.c (diff)
The file was addedllvm/test/Instrumentation/HWAddressSanitizer/X86/alloca-array.ll
The file was modifiedllvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp (diff)
The file was modifiedcompiler-rt/test/hwasan/TestCases/deep-recursion.c (diff)
The file was addedllvm/test/Instrumentation/HWAddressSanitizer/X86/alloca-with-calls.ll
The file was modifiedcompiler-rt/test/hwasan/TestCases/rich-stack.c (diff)
The file was modifiedclang/lib/Driver/SanitizerArgs.cpp (diff)
The file was modifiedcompiler-rt/test/hwasan/TestCases/longjmp.c (diff)
The file was modifiedcompiler-rt/test/hwasan/TestCases/stack-history-length.c (diff)
The file was modifiedcompiler-rt/test/hwasan/TestCases/mem-intrinsics.c (diff)
The file was modifiedcompiler-rt/test/hwasan/TestCases/stack-oob.c (diff)
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 (diff)
The file was addedclang/test/Sema/unbounded-array-bounds.c
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td (diff)
The file was modifiedclang/test/SemaCXX/constant-expression-cxx14.cpp (diff)
The file was modifiedclang/test/Sema/const-eval.c (diff)
Commit 7e9822cc55065b7c450dda254340765794e11fe3 by Chris.Hamilton
Revert "[Sema] Address-space sensitive check for unbounded arrays (v2)"

This reverts commit e42a347b74400b7212ceaaea6d39562a0435df42.
The file was removedclang/test/Sema/unbounded-array-bounds.c
The file was modifiedclang/test/SemaCXX/constant-expression-cxx14.cpp (diff)
The file was modifiedclang/test/Sema/const-eval.c (diff)
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td (diff)
The file was modifiedclang/lib/Sema/SemaChecking.cpp (diff)
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/AArch64/vectorize-free-extracts-inserts.ll (diff)
The file was modifiedllvm/lib/Transforms/Vectorize/SLPVectorizer.cpp (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/external_user_jumbled_load-inseltpoison.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/insert-element-build-vector.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/operandorder.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/external_user_jumbled_load.ll (diff)
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/insert-element-build-vector-inseltpoison.ll (diff)
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-signed.ll (diff)
The file was modifiedllvm/test/CodeGen/Thumb2/mve-phireg.ll (diff)
The file was modifiedllvm/test/CodeGen/Thumb2/mve-postinc-dct.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/avx512-bugfix-25270.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/vec-libcalls.ll (diff)
The file was modifiedllvm/test/CodeGen/Thumb2/mve-vldst4.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/avx512-regcall-NoMask.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/half.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/addsub-constant-folding.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/AMX/amx-spill-merge.ll (diff)
The file was modifiedllvm/test/CodeGen/Thumb2/mve-vld4.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/vzero-excess.ll (diff)
The file was modifiedllvm/test/CodeGen/Thumb2/mve-vecreduce-mlapred.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/fma.ll (diff)
The file was modifiedllvm/test/CodeGen/Thumb2/mve-vst4.ll (diff)
The file was modifiedllvm/test/CodeGen/Thumb2/mve-gather-increment.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/div-rem-pair-recomposition-unsigned.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/vector-interleaved-load-i16-stride-4.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/avx-intrinsics-x86_64.ll (diff)
The file was modifiedllvm/test/CodeGen/Thumb2/mve-scatter-increment.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/sext-vsetcc.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/AMX/amx-across-func.ll (diff)
The file was modifiedllvm/lib/CodeGen/VirtRegMap.cpp (diff)
The file was modifiedllvm/test/CodeGen/X86/avx-vzeroupper.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/vec-strict-128.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/AMX/amx-lower-tile-copy.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/AMX/amx-spill.ll (diff)
The file was modifiedllvm/test/CodeGen/Thumb2/mve-multivec-spill.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/vector-constrained-fp-intrinsics.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/stack-folding-int-avx512.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/rotate-extract-vector.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/stack-folding-fp-avx512.ll (diff)
The file was modifiedllvm/test/CodeGen/Thumb2/mve-postinc-lsr.ll (diff)
The file was modifiedllvm/test/CodeGen/Thumb2/mve-float32regloops.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/vector-half-conversions.ll (diff)
The file was modifiedllvm/test/CodeGen/Thumb2/mve-gather-scatter-optimisation.ll (diff)
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 (diff)
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 (diff)
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/lib/Driver/ToolChains/AMDGPU.cpp (diff)
The file was modifiedclang/test/Driver/hip-version.hip (diff)
Commit e0efebb8eb7cec4a90c73d693c9e1e7fbce8d637 by anemet
[Matrix] In transpose opts, handle a^t * a^t

Without the fix the testcase crashes because we remove the same instruction
twice.

Differential Revision: https://reviews.llvm.org/D104127
The file was modifiedllvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp (diff)
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/transpose-opts.ll (diff)
Commit 9106047ee3dd93a250deb1ef34b890f486dee710 by zoecarver
[libcxx][ranges] Add range.subrange.

Basically the title.

Differential Revision: https://reviews.llvm.org/D102006
The file was addedlibcxx/test/std/ranges/range.utility/range.subrange/ctor/begin_end_size.pass.cpp
The file was addedlibcxx/test/std/ranges/range.utility/range.subrange/ctor/range.pass.cpp
The file was addedlibcxx/test/std/ranges/range.utility/range.subrange/ctor/begin_end.pass.cpp
The file was addedlibcxx/test/std/ranges/range.utility/range.subrange/ctor/range_size.pass.cpp
The file was addedlibcxx/test/std/ranges/range.utility/range.subrange/ctad.compile.pass.cpp
The file was addedlibcxx/test/std/ranges/range.utility/range.subrange/general.compile.pass.cpp
The file was addedlibcxx/include/__ranges/subrange.h
The file was addedlibcxx/test/std/ranges/range.utility/range.subrange/access/advance.pass.cpp
The file was addedlibcxx/test/std/ranges/range.utility/range.subrange/ctor/pair_like_conv.pass.cpp
The file was modifiedlibcxx/include/CMakeLists.txt (diff)
The file was modifiedlibcxx/include/ranges (diff)
The file was addedlibcxx/test/std/ranges/range.utility/range.subrange/access/primitives.pass.cpp
The file was addedlibcxx/test/std/ranges/range.utility/range.subrange/access/get.pass.cpp
The file was addedlibcxx/test/std/ranges/range.utility/range.subrange/subrange_test_types.h
Commit 2244a0f5fe627bacd32e493604b5c604ef41d361 by llvmgnsyncbot
[gn build] Port 9106047ee3dd
The file was modifiedllvm/utils/gn/secondary/libcxx/include/BUILD.gn (diff)
Commit f84dbd2f2befb628ac2ac151fed495d70a2d05be by Louis Dionne
[libc++] Enable the synchronization library on Apple platforms

The synchronization library was marked as disabled on Apple platforms
up to now because we were not 100% sure that it was going to be ABI
stable. However, it's been some time since we shipped it in upstream
libc++ now and there's been no changes so far. This patch enables the
synchronization library on Apple platforms, and hence commits the ABI
stability as far as that vendor is concerned.

Differential Revision: https://reviews.llvm.org/D96790
The file was modifiedlibcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.wait/atomic_wait.pass.cpp (diff)
The file was modifiedlibcxx/test/std/thread/thread.barrier/arrive.pass.cpp (diff)
The file was modifiedlibcxx/test/std/thread/thread.latch/arrive_and_wait.pass.cpp (diff)
The file was modifiedlibcxx/test/std/thread/thread.semaphore/try_acquire.pass.cpp (diff)
The file was modifiedlibcxx/test/std/thread/thread.semaphore/timed.pass.cpp (diff)
The file was modifiedlibcxx/test/std/thread/thread.barrier/completion.pass.cpp (diff)
The file was modifiedlibcxx/test/std/thread/thread.barrier/arrive_and_wait.pass.cpp (diff)
The file was modifiedlibcxx/test/std/thread/thread.latch/count_down.pass.cpp (diff)
The file was modifiedlibcxx/test/std/thread/thread.barrier/arrive_and_drop.pass.cpp (diff)
The file was modifiedlibcxx/test/std/thread/thread.semaphore/acquire.pass.cpp (diff)
The file was modifiedlibcxx/include/__availability (diff)
The file was modifiedlibcxx/test/std/thread/thread.semaphore/release.pass.cpp (diff)
The file was modifiedlibcxx/test/std/thread/thread.semaphore/binary.pass.cpp (diff)
The file was modifiedlibcxx/test/std/thread/thread.latch/try_wait.pass.cpp (diff)
Commit f35bcea1d4748889b8240defdf00cb7a71cbe070 by carrot
[X86FixupLEAs] Sub register usage of LEA dest should block LEA/SUB optimization

In function searchALUInst, sub register usage of LEA dest should also block LEA/SUB optimization, otherwise the sub register usage gets an undefined value.

This patch fixes https://bugs.llvm.org/show_bug.cgi?id=50615.

Differential Revision: https://reviews.llvm.org/D103922
The file was modifiedllvm/lib/Target/X86/X86FixupLEAs.cpp (diff)
The file was modifiedllvm/test/CodeGen/X86/lea-opt2.ll (diff)
Commit c54d3050f7b9fa550144f792d79ec5b2d5de31c5 by Louis Dionne
[libc++] NFC: Move indirect_concepts.h to __iterator/concepts.h

There's no fundamental reason to separate those from the other iterator
concepts.

Differential Revision: https://reviews.llvm.org/D104048
The file was removedlibcxx/include/__iterator/indirect_concepts.h
The file was modifiedlibcxx/include/CMakeLists.txt (diff)
The file was modifiedlibcxx/include/iterator (diff)
The file was modifiedlibcxx/include/__iterator/concepts.h (diff)
The file was modifiedlibcxx/include/__iterator/projected.h (diff)
Commit ee98f600de9ed1498fae75a08382a1f73c1d69bb by llvmgnsyncbot
[gn build] Port c54d3050f7b9
The file was modifiedllvm/utils/gn/secondary/libcxx/include/BUILD.gn (diff)
Commit 94a07c79cf108b8b9566acfa64d11aca27d60a84 by valery.n.dmitriev
[SLP][NFC] Fix condition that was supposed to save a bit of compile time.

It was found by chance revealing discrepancy between comment (few lines above),
the condition and how re-ordering of instruction is done inside the if statement
it guards. The condition was always evaluated to true.

Differential Revision: https://reviews.llvm.org/D104064
The file was modifiedllvm/lib/Transforms/Vectorize/SLPVectorizer.cpp (diff)
Commit c7dee6aefd5b5f1d92d279ddd40b81217b496d50 by Jonas Devlieghere
[lldb] Enable TestRuntimeTypes on Apple Silicon
The file was modifiedlldb/test/API/lang/objc/foundation/TestRuntimeTypes.py (diff)
Commit fc71a5c6e8e8bd28e43cf58faabad6e7e2fcc652 by Jonas Devlieghere
[lldb] Support new objective-c hash table layout

Update LLDB for thew new Objective-C hash table layout in the dyld
shared cache found in macOS Monterey.

rdar://72863911
The file was modifiedlldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp (diff)
The file was modifiedlldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.h (diff)
The file was modifiedlldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCClassDescriptorV2.h (diff)
The file was modifiedlldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCClassDescriptorV2.cpp (diff)
Commit fdc0d4360b4e072bd91cdf9133fdf570d8fb16a2 by zinenko
Introduce alloca_scope op

## Introduction

This proposal describes the new op to be added to the `std` (and later moved `memref`)
dialect called `alloca_scope`.

## Motivation

Alloca operations are easy to misuse, especially if one relies on it while doing
rewriting/conversion passes. For example let's consider a simple example of two
independent dialects, one defines an op that wants to allocate on-stack and
another defines a construct that corresponds to some form of looping:

```
dialect1.looping_op {
  %x = dialect2.stack_allocating_op
}
```

Since the dialects might not know about each other they are going to define a
lowering to std/scf/etc independently:

```
scf.for … {
   %x_temp = std.alloca …
   … // do some domain-specific work using %x_temp buffer
   … // and store the result into %result
   %x = %result
}
```

Later on the scf and `std.alloca` is going to be lowered to llvm using a
combination of `llvm.alloca` and unstructured control flow.

At this point the use of `%x_temp` is bound to either be either optimized by
llvm (for example using mem2reg) or in the worst case: perform an independent
stack allocation on each iteration of the loop. While the llvm optimizations are
likely to succeed they are not guaranteed to do so, and they provide
opportunities for surprising issues with unexpected use of stack size.

## Proposal

We propose a new operation that defines a finer-grain allocation scope for the
alloca-allocated memory called `alloca_scope`:

```
alloca_scope {
   %x_temp = alloca …
   ...
}
```

Here the lifetime of `%x_temp` is going to be bound to the narrow annotated
region within `alloca_scope`. Moreover, one can also return values out of the
alloca_scope with an accompanying `alloca_scope.return` op (that behaves
similarly to `scf.yield`):

```
%result = alloca_scope {
   %x_temp = alloca …
   …
   alloca_scope.return %myvalue
}
```

Under the hood the `alloca_scope` is going to lowered to a combination of
`llvm.intr.stacksave` and `llvm.intr.strackrestore` that are going to be invoked
automatically as control-flow enters and leaves the body of the `alloca_scope`.

The key value of the new op is to allow deterministic guaranteed stack use
through an explicit annotation in the code which is finer-grain than the
function-level scope of `AutomaticAllocationScope` interface. `alloca_scope`
can be inserted at arbitrary locations and doesn’t require non-trivial
transformations such as outlining.

## Which dialect

Before memref dialect is split, `alloca_scope` can temporarily reside in `std`
dialect, and later on be moved to `memref` together with the rest of
memory-related operations.

## Implementation

An implementation of the op is available [here](https://reviews.llvm.org/D97768).

Original commits:

* Add initial scaffolding for alloca_scope op
* Add alloca_scope.return op
* Add no region arguments and variadic results
* Add op descriptions
* Add failing test case
* Add another failing test
* Initial implementation of lowering for std.alloca_scope
* Fix backticks
* Fix getSuccessorRegions implementation

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D97768
The file was modifiedmlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp (diff)
The file was modifiedmlir/test/Dialect/MemRef/ops.mlir (diff)
The file was modifiedmlir/lib/Dialect/MemRef/IR/MemRefOps.cpp (diff)
The file was addedmlir/test/Conversion/StandardToLLVM/convert-alloca-scope.mlir
The file was modifiedmlir/include/mlir/Dialect/MemRef/IR/MemRefOps.td (diff)
The file was modifiedmlir/include/mlir/Dialect/MemRef/IR/MemRef.h (diff)
Commit ce44fe199bbfd4b5a44764b678c431fdc117116a 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/test/SemaCXX/constant-expression-cxx14.cpp (diff)
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td (diff)
The file was addedclang/test/Sema/unbounded-array-bounds.c
The file was modifiedclang/lib/Sema/SemaChecking.cpp (diff)
The file was modifiedclang/test/Sema/const-eval.c (diff)
Commit 93f3c7cc3efc4911af2a7848fbae339ebbc5c3a0 by Matthew.Arsenault
CodeGen: Fix missing const
The file was modifiedllvm/lib/CodeGen/MachineFunction.cpp (diff)
The file was modifiedllvm/include/llvm/CodeGen/MachineFunction.h (diff)
Commit 9d7299b6f0ab1ff1df244151ca788904a043f5af by Matthew.Arsenault
GlobalISel: Reduce indentation and remove dead path
The file was modifiedllvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp (diff)
Commit 6dd54dada3b1f60340078fe4e82e8a62258d8d6b by Matthew.Arsenault
AMDGPU/GlobalISel: Fix indentation
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp (diff)
Commit a845dc1e562c20db54018a121eb01970e76602db by Matthew.Arsenault
AMDGPU/GlobalISel: Remove leftover hack for argument memory sizes

Since the call lowering code now tries to respect the tablegen
reported argument types, this is no longer necessary.
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp (diff)