FailedChanges

Summary

  1. Set parallel tests to 8 on LLDB Arm/AArch64 Linux builders (details)
Commit 40dd3891d6e81726fb450af140659f52c12bcf43 by omair.javaid
Set parallel tests to 8 on LLDB Arm/AArch64 Linux builders
The file was modifiedbuildbot/osuosl/master/config/builders.py (diff)

Summary

  1. [clang-tidy] Update lang restrictions on perf module (details)
  2. [InstCombine] Add tests for assume implication (NFC) (details)
  3. [NFC][PowerPC] Add run lines to test DivRemPairsPass. (details)
  4. [x86] add tests for rsqrt opportunities; NFC (details)
  5. [VectorCombine] add test for scalable vectors; NFC (details)
  6. Revert "[VectorCombine] add test for scalable vectors; NFC" (details)
  7. [VectorCombine] add test for scalable vectors; NFC (details)
  8. [Coroutines] Optimize the lifespan of temporary co_await object (details)
  9. [NFC][ScalarEvolution] Add a test showing SCEV failure to recognize 'urem' (details)
  10. [libc] This commit fixes the strcmp fuzzing test. It uses a single input and (details)
  11. [X86] Explicitly add popcnt feature to Intel CPUs with SSE4.2 in the frontend. (details)
  12. [SimplifyCFG] Regenerate test checks (NFC) (details)
  13. [SimplifyCFG] Make test more robust (NFC) (details)
  14. [NFC] CallGraph related cleanup (details)
  15. [Clang][OpenMP][OMPBuilder] Moving OMP allocation and cache creation code to OMPBuilderCBHelpers (details)
  16. Revert "[clang-tidy] Reworked enum options handling(again)" (details)
  17. [clangd][Hover] Dont crash on null types (details)
  18. [mlir] Modernize LLVM dialect rountrip test (details)
  19. [mlir] do not hardcode the name of the undefined function in the error message (details)
  20. [ObjectYAML][DWARF] Collect diagnostic message when YAMLParser fails. (details)
  21. [gn build] Port 8f9ca561a2b (details)
  22. [clang-tidy] relanding b9306fd (details)
  23. [MLIR][Shape] Lower `shape.get_extent` to `std.dim` when possible (details)
  24. [MLIR][Shape] Lower `shape.get_extent` to `extract_element` when possible (details)
  25. Revert "[clang-tidy] relanding b9306fd" (details)
  26. Fix invalid alignment in DAGCombiner::isLegalNarrowLdSt (details)
  27. [llvm-objcopy] Emit error if removing symtab referenced by group section (details)
  28. [mlir] LLVM dialect: use addressof instead of constant to create function pointers (details)
  29. [mlir] make the bitwidth of device side index computations configurable (reland) (details)
  30. Add tests for sequences of callbacks that RecursiveASTVisitor produces (details)
  31. [OpenMP][Tool] Fix buffer overflow in ompt-multiplex.h (details)
  32. [TargetLowering] Add DemandedElts arg to ShrinkDemandedConstant (details)
  33. Move TestClangConfig into libClangTesting and use it in AST Matchers tests (details)
  34. [gn build] Port 8e5a56865f2 (details)
  35. [AArch64][SVE] Bail out of performPostLD1Combine for scalable types (details)
  36. [AArch64][SVE] Add bfloat16 support to svext intrinsic (details)
  37. [openmp][NFC] Cleanup: guard __kmp_mic_type by KMP_MIC_SUPPORTED macro. (details)
  38. [X86] Add vector support to targetShrinkDemandedConstant for OR/XOR opcodes (details)
  39. [Alignment][NFC] migrate DataLayout::getPreferredAlignment (details)
  40. [Alignment][NFC] Migrate AMDGPU backend to Align (details)
  41. [Driver] When forcing a crash print the bug report message (details)
  42. [NFC] Introduce a helper in BasicTTIImpl.h to cast to T (details)
  43. [AArch64][SVE] NFCI: Choose consistent naming for predicated SDAG nodes (details)
  44. Add intrinsic helper function (details)
  45. [ADT] Add Bitfield utilities (details)
  46. [gn build] Port b56b467a9a8 (details)
  47. [NFC] Fix typos (details)
  48. [OpenCL] Reject block arguments (details)
  49. [lldb] Deduplicate Scalar integral getters (details)
  50. [Analyzer][StreamChecker] Use BugType instead of BuiltinBug (NFC) . (details)
  51. [RISCV] Split the pseudo instruction splitting pass (details)
  52. [gn build] Port 2cb0644f90b (details)
  53. [VectorCombine] refactor - make helper function for extract to shuffle logic; NFC (details)
  54. [clang-format] Preserve whitespace in selected macros (details)
  55. AMDGPU: Use IsSSA property check instead of asserting on isSSA (details)
  56. [CodeGen] Use the common semantic for fixed-point codegen, not the result semantic. (details)
  57. [clang-tidy] Fix hicpp-named-paramater (details)
  58. [mlir] Clean up NVVM intrinsics definitions a little. (details)
  59. [VectorCombine] try to form vector compare and binop to eliminate scalar ops (details)
  60. Inliner: Add missing test for alignment assume with byval (details)
  61. [lldb/Test] Skip TestVSCode_disconnect on Darwin (details)
  62. [PowerPC] Don't combine SCALAR_TO_VECTOR without VSX (details)
  63. [X86][SSE] MatchVectorAllZeroTest - handle OR vector reductions (REAPPLIED) (details)
  64. [analyzer][NFC] Add unittest for FalsePositiveRefutationBRVisitor (details)
  65. [llvm-objcopy] Fix "unused-function" warning in NDEBUG builds (details)
  66. Revert "[analyzer][NFC] Add unittest for FalsePositiveRefutationBRVisitor" (details)
  67. Fix MSVC truncation of constant value warning. (details)
  68. [ARM] Better reductions (details)
  69. Compile the RecursiveASTVisitor callbacks test with "/bigobj" (details)
  70. [clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files (details)
  71. RecursiveASTVisitor: inline a macro that is only used once (details)
  72. [AMDGPU] Moving SI_RETURN_TO_EPILOG handling out of SIInsertSkips. (details)
  73. [libc++] Do not try creating llvm-lit when LIBCXX_INCLUDE_TESTS is OFF in the standalone build (details)
  74. [NFC] Fixed ignored .hip test. (details)
  75. [sve][acle] Implement some of the C intrinsics for brain float. (details)
  76. Correctly report Changed status in FoldBranchToCommonDest (details)
  77. [analyzer][NFC] Add unittest for FalsePositiveRefutationBRVisitor (details)
  78. [gn build] Port fe0a555aa3c (details)
  79. [LLDB] skip TestCreateDuringInstructionStep on aarch64/linux (details)
  80. [libc++] Provide a default LLVM_PATH when building standalone (details)
  81. [libc++] Enable tests and documentation by default when building standalone (details)
  82. [Sphinx] Support older recommonmark versions. (details)
  83. [AArch64][SVE] clang: Add missing svbfloat16_t tests (details)
  84. [analyzer][Z3-refutation] Fix a refutation BugReporterVisitor bug (details)
  85. [AArch64][SVE] Add bfloat16 to outstanding tuple vector intrinsics (details)
  86. [PowerPC] Fix crash for shuffle canonicalization with elt 0 from RHS (details)
  87. [SVE] Remove calls to VectorType::getNumElements from mlir (details)
Commit bfd99be0fc58fe644aff76d180b333e6d840126a by n.james93
[clang-tidy] Update lang restrictions on perf module
The file was modifiedclang-tools-extra/clang-tidy/performance/FasterStringFindCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/performance/ImplicitConversionInLoopCheck.h
The file was modifiedclang-tools-extra/clang-tidy/performance/UnnecessaryCopyInitialization.h
The file was modifiedclang-tools-extra/clang-tidy/performance/InefficientVectorOperationCheck.h
The file was modifiedclang-tools-extra/clang-tidy/performance/FasterStringFindCheck.h
The file was modifiedclang-tools-extra/clang-tidy/performance/ForRangeCopyCheck.h
Commit 8758e14c6f12777b6c6beee0680824cdf3b2f9e4 by nikita.ppv
[InstCombine] Add tests for assume implication (NFC)
The file was addedllvm/test/Transforms/InstCombine/assume_icmp.ll
Commit 2b325f69cac9979ec2fba1393e3e10541e144afa by esme.yi
[NFC][PowerPC] Add run lines to test DivRemPairsPass.
The file was modifiedllvm/test/CodeGen/PowerPC/ppc64-P9-mod.ll
Commit af01642424105d1182e8eaf2eeb94e34ffbd5305 by spatel
[x86] add tests for rsqrt opportunities; NFC
The file was modifiedllvm/test/CodeGen/X86/sqrt-fastmath.ll
Commit 700ec6b848c02ca3de9751d63a7a5a26671c3fe9 by spatel
[VectorCombine] add test for scalable vectors; NFC
The file was modifiedllvm/test/Transforms/PhaseOrdering/X86/vector-reductions.ll
The file was modifiedllvm/test/Transforms/VectorCombine/X86/extract-cmp-binop.ll
Commit 2f3549f8136dbeef1bfaeeb113932161eaf1692a by spatel
Revert "[VectorCombine] add test for scalable vectors; NFC"

This reverts commit 700ec6b848c02ca3de9751d63a7a5a26671c3fe9.
An extra test diff snuck here.
The file was modifiedllvm/test/Transforms/PhaseOrdering/X86/vector-reductions.ll
The file was modifiedllvm/test/Transforms/VectorCombine/X86/extract-cmp-binop.ll
Commit 931411136af6061a7a48553344ff750d2a362d68 by spatel
[VectorCombine] add test for scalable vectors; NFC
The file was modifiedllvm/test/Transforms/VectorCombine/X86/extract-cmp-binop.ll
Commit c8755b6378c2a1f32d9a90bad6c56a1cc5a830c3 by xun
[Coroutines] Optimize the lifespan of temporary co_await object

Summary:
If we ever assign co_await to a temporary variable, such as foo(co_await expr),
we generate AST that looks like this: MaterializedTemporaryExpr(CoawaitExpr(...)).
MaterializedTemporaryExpr would emit an intrinsics that marks the lifetime start of the
temporary storage. However such temporary storage will not be used until co_await is ready
to write the result. Marking the lifetime start way too early causes extra storage to be
put in the coroutine frame instead of the stack.
As you can see from https://godbolt.org/z/zVx_eB, the frame generated for get_big_object2 is 12K, which contains a big_object object unnecessarily.
After this patch, the frame size for get_big_object2 is now only 8K. There are still room for improvements, in particular, GCC has a 4K frame for this function. But that's a separate problem and not addressed in this patch.

The basic idea of this patch is during CoroSplit, look for every local variable in the coroutine created through AllocaInst, identify all the lifetime start/end markers and the use of the variables, and sink the lifetime.start maker to the places as close to the first-ever use as possible.

Reviewers: lewissbaker, modocache, junparser

Reviewed By: junparser

Subscribers: hiraditya, llvm-commits, rsmith, ChuanqiXu, cfe-commits

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D82314
The file was modifiedllvm/test/Transforms/Coroutines/coro-split-02.ll
The file was modifiedllvm/lib/Transforms/Coroutines/CoroSplit.cpp
The file was addedllvm/test/Transforms/Coroutines/coro-split-sink-lifetime.ll
Commit 25521150d7b577f6f1b402826f2afbb0ec5fb59b by lebedev.ri
[NFC][ScalarEvolution] Add a test showing SCEV failure to recognize 'urem'

While InstCombine trivially converts that `srem` into a `urem`,
it might happen later than wanted. SCEV should recognize this natively.
The file was addedllvm/test/Analysis/ScalarEvolution/srem.ll
Commit b07feef8736d52e11c41631d3813a57a3b3ce6e5 by gyurgyikcp
[libc] This commit fixes the strcmp fuzzing test. It uses a single input and
splits it into two by using the value of the first byte to determine the
length of the first string. Reviewed-by: PaulkaToast, Differential
Revision: https://reviews.llvm.org/D82427

Summary:
[libc] Since only one input is given, it is necessary to split the string into two containers so that they can be compared for the purposes of this fuzz test. This is done in the following manner:

1. Take the value of the first byte; this is size1. (Credits to @PaulkaToast for this idea).
2. size2 is the value of size - size1.
3. Copy the characters to new containers, data1 and data2 with corresponding sizes.
4. Add a null terminator to the first container, and verify the second container has a null terminator.
5. Verify output of strcmp.

A simpler alternative considered was simply splitting the input data into two, but this means the two strings are always within +- 1 character of each other. This above implementation avoids this.

ninja check-libc was run; no issues.

Reviewers: PaulkaToast, sivachandra

Reviewed By: PaulkaToast

Subscribers: mgorny, tschuett, ecnelises, libc-commits, PaulkaToast

Tags: #libc-project

Differential Revision: https://reviews.llvm.org/D82427
The file was modifiedlibc/fuzzing/string/strcmp_fuzz.cpp
The file was modifiedlibc/fuzzing/string/CMakeLists.txt
Commit 20a60f46f505fc790e126b8b860c689870355f36 by craig.topper
[X86] Explicitly add popcnt feature to Intel CPUs with SSE4.2 in the frontend.

Previously we inferred it if sse4.2 ended up being enabled after
all feature processing. But writing -march=nehalem -mno-sse4.2
should have popcnt enabled.
The file was modifiedclang/test/Preprocessor/x86_target_features.c
The file was modifiedclang/lib/Basic/Targets/X86.cpp
Commit d5a482acf9904ff13e71ab5bad686dc7f93cfbf8 by nikita.ppv
[SimplifyCFG] Regenerate test checks (NFC)
The file was modifiedllvm/test/Transforms/SimplifyCFG/X86/switch_to_lookup_table.ll
The file was modifiedllvm/test/Transforms/SimplifyCFG/duplicate-landingpad.ll
The file was modifiedllvm/test/Transforms/SimplifyCFG/wc-widen-block.ll
The file was modifiedllvm/test/Transforms/SimplifyCFG/ForwardSwitchConditionToPHI.ll
Commit a28d38a6bca1726d56c9b373f4c7dc5264fc7716 by nikita.ppv
[SimplifyCFG] Make test more robust (NFC)

Avoid changing this test if blocks get merged.
The file was modifiedllvm/test/Transforms/SimplifyCFG/switch-dead-default.ll
Commit 1becd298b82ed2f1a8ba5e61c5ad2ce7fe32d812 by serguei.n.dmitriev
[NFC] CallGraph related cleanup

Summary: Tidy up some CallGraph-related code in preparation for D82572.

Reviewers: jdoerfert

Reviewed By: jdoerfert

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D82686
The file was modifiedllvm/include/llvm/Analysis/CallGraph.h
The file was modifiedllvm/lib/Analysis/CallGraphSCCPass.cpp
The file was modifiedllvm/lib/Transforms/IPO/SyntheticCountsPropagation.cpp
Commit 80e15b4574f4a11792472249f64bac790145cc56 by fghanim84
[Clang][OpenMP][OMPBuilder] Moving OMP allocation and cache creation code to OMPBuilderCBHelpers

Summary:
Modified the OMPBuilderCBHelpers in the following ways:
- Moved location of class definition and deleted all constructors
- Moved OpenMP-specific address allocation of local variables
- Moved threadprivate variable creation for the current thread

Reviewers: jdoerfert

Subscribers: yaxunl, guansong, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D79676
The file was modifiedclang/lib/CodeGen/CGExpr.cpp
The file was modifiedclang/lib/CodeGen/CodeGenFunction.h
The file was modifiedclang/lib/CodeGen/CGDecl.cpp
The file was modifiedclang/lib/CodeGen/CGStmtOpenMP.cpp
Commit 8f73c4432b5fa8510c99a5053c07dc70a610e1fb by thakis
Revert "[clang-tidy] Reworked enum options handling(again)"

This reverts commit b9306fd042ce1c11d84f05d2124dfdc65b8331fe
and follow-up 42a51587c79a673045aec3586f4070630e5e7af3.

It seems to build check-clang-tools on macOS, see comments on
https://reviews.llvm.org/D82188
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/ProBoundsConstantArrayIndexCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/utils/TransformerClangTidyCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/abseil/StringFindStartswithCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/modernize/ReplaceAutoPtrCheck.cpp
The file was modifiedclang-tools-extra/unittests/clang-tidy/ClangTidyOptionsTest.cpp
The file was modifiedclang-tools-extra/clang-tidy/utils/IncludeSorter.cpp
The file was modifiedclang-tools-extra/clang-tidy/modernize/ReplaceRandomShuffleCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.h
The file was modifiedclang-tools-extra/clang-tidy/ClangTidyCheck.h
The file was modifiedclang-tools-extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/utils/IncludeSorter.h
The file was modifiedclang-tools-extra/clang-tidy/ClangTidyCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/performance/TypePromotionInMathFnCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/InitVariablesCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/modernize/PassByValueCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/performance/MoveConstructorInitCheck.cpp
Commit 117b9230a74cfbfe5e409adc2aa2d33c9c584a81 by kadircet
[clangd][Hover] Dont crash on null types

Reviewers: hokein, sammccall

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D82701
The file was modifiedclang-tools-extra/clangd/Hover.cpp
The file was modifiedclang-tools-extra/clangd/unittests/HoverTests.cpp
Commit fbeceb9cededf28fe4e8c46f209b20af276c1989 by zinenko
[mlir] Modernize LLVM dialect rountrip test

This test largely predates MLIR testing guidelines. Update it to match the
guidelines. In particular, avoid pattern-matching SSA value names, avoid
unnecessary CHECK-NEXT, relax assumptions about the form of SSA names.
Value-returning operations are still matched agaist _any_ name in order to
check that the operation indeed produces values.

Differential Revision: https://reviews.llvm.org/D82656
The file was modifiedmlir/test/Dialect/LLVMIR/roundtrip.mlir
Commit 42de94f839f259950df7bb142e8f2bb388825a06 by zinenko
[mlir] do not hardcode the name of the undefined function in the error message

The error message in the `std.constant` verifier for function-typed constants
had the name of the undefined function hardcoded to `bar`. Report the actual
name instead.

Differential Revision: https://reviews.llvm.org/D82666
The file was modifiedmlir/lib/Dialect/StandardOps/IR/Ops.cpp
The file was modifiedmlir/test/IR/invalid.mlir
Commit 8f9ca561a2bd9d373d4a4ad0cd79a118c5abe4fb by Xing
[ObjectYAML][DWARF] Collect diagnostic message when YAMLParser fails.

Before this patch, the diagnostic message is printed to `errs()` directly, which makes it difficult to use `FailedWithMessage()` in unit testing.
In this patch, we add a custom error handler for YAMLParser, which helps collect diagnostic messages and make it easy to use `FailedWithMessage()` to check error messages.

Reviewed By: jhenderson, MaskRay

Differential Revision: https://reviews.llvm.org/D82630
The file was modifiedllvm/unittests/ObjectYAML/CMakeLists.txt
The file was modifiedllvm/lib/ObjectYAML/DWARFEmitter.cpp
The file was addedllvm/unittests/ObjectYAML/DWARFYAMLTest.cpp
Commit 5edecc151dfcb54f3fcdcef0b62a94687aafd46f by llvmgnsyncbot
[gn build] Port 8f9ca561a2b
The file was modifiedllvm/utils/gn/secondary/llvm/unittests/ObjectYAML/BUILD.gn
Commit 37cc4fa2eaa3d03ca8cd4947eb0d4c60e3c9b45c by n.james93
[clang-tidy] relanding b9306fd

Added some sanity checks to figure out the cause of a (seemingly unrelated) test failure on mac.
These can be removed should no issues arise on that platform again.
The file was modifiedclang-tools-extra/clang-tidy/ClangTidyCheck.h
The file was modifiedclang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/utils/TransformerClangTidyCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/utils/IncludeSorter.h
The file was modifiedclang-tools-extra/clang-tidy/performance/TypePromotionInMathFnCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/modernize/PassByValueCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/performance/MoveConstructorInitCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp
The file was modifiedclang-tools-extra/unittests/clang-tidy/ClangTidyOptionsTest.cpp
The file was modifiedclang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.h
The file was modifiedclang-tools-extra/unittests/clang-tidy/ClangTidyDiagnosticConsumerTest.cpp
The file was modifiedclang-tools-extra/clang-tidy/modernize/ReplaceAutoPtrCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/utils/IncludeSorter.cpp
The file was modifiedclang-tools-extra/clang-tidy/modernize/ReplaceRandomShuffleCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/ClangTidyCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/ProBoundsConstantArrayIndexCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/abseil/StringFindStartswithCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/InitVariablesCheck.cpp
Commit 76d72c941df19779a7abfdfda66d3f452cef1db8 by frgossen
[MLIR][Shape] Lower `shape.get_extent` to `std.dim` when possible

When the shape is derived from a tensor argument the shape extent can be derived
directly from that tensor with `std.dim`.
This lowering pattern circumvents the necessity to materialize the shape in
memory.

Differential Revision: https://reviews.llvm.org/D82644
The file was modifiedmlir/test/Conversion/ShapeToStandard/shape-to-standard.mlir
The file was modifiedmlir/lib/Conversion/ShapeToStandard/ShapeToStandardPatterns.td
Commit d876e3202af3057cc180d7540d0de8b20234f114 by frgossen
[MLIR][Shape] Lower `shape.get_extent` to `extract_element` when possible

When the origin of a shape is an extent tensor the operation `get_extent` can be
lowered directly to `extract_element`.
This choice circumvents the necessity to materialize the shape in memory.

Differential Revision: https://reviews.llvm.org/D82645
The file was modifiedmlir/lib/Conversion/ShapeToStandard/ShapeToStandardPatterns.td
The file was modifiedmlir/test/Conversion/ShapeToStandard/shape-to-standard.mlir
Commit e34523c87c3f1cfabcf741568dede026bbb12d3a by n.james93
Revert "[clang-tidy] relanding b9306fd"

This reverts commit 37cc4fa2eaa3d03ca8cd4947eb0d4c60e3c9b45c. More investigation needed
The file was modifiedclang-tools-extra/clang-tidy/performance/MoveConstructorInitCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/utils/IncludeSorter.h
The file was modifiedclang-tools-extra/clang-tidy/modernize/LoopConvertCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/InitVariablesCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/modernize/PassByValueCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/modernize/ReplaceAutoPtrCheck.cpp
The file was modifiedclang-tools-extra/unittests/clang-tidy/ClangTidyOptionsTest.cpp
The file was modifiedclang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/ClangTidyCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/performance/TypePromotionInMathFnCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/utils/IncludeSorter.cpp
The file was modifiedclang-tools-extra/clang-tidy/modernize/MakeSmartPtrCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.h
The file was modifiedclang-tools-extra/clang-tidy/abseil/StringFindStartswithCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/modernize/ReplaceRandomShuffleCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/ClangTidyCheck.h
The file was modifiedclang-tools-extra/clang-tidy/utils/TransformerClangTidyCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/ProBoundsConstantArrayIndexCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp
The file was modifiedclang-tools-extra/unittests/clang-tidy/ClangTidyDiagnosticConsumerTest.cpp
Commit 3500d9ec95741c1421d62b914bfa36aa6bbc6b4f by gchatelet
Fix invalid alignment in DAGCombiner::isLegalNarrowLdSt

`ShAmt / 8` can be a non power of two, this can lead to an invalid alignment.
context: https://reviews.llvm.org/D41350#inline-749165

Differential Revision: https://reviews.llvm.org/D82565
The file was modifiedllvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
The file was modifiedllvm/test/CodeGen/ARM/and-load-combine.ll
Commit e503851d80e7a8a72e014bcb975157e828dab800 by james.henderson
[llvm-objcopy] Emit error if removing symtab referenced by group section

SHT_GROUP sections contain a reference to a symbol indicating their
"signature" symbol. The symbol table containing this symbol is referred
to by the group section's sh_link field. If llvm-objcopy is instructed
to remove the symbol table, it will emit an error.

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

Reviewed By: jhenderson, Higuoxing

Differential Revision: https://reviews.llvm.org/D82274
The file was modifiedllvm/test/tools/llvm-objcopy/ELF/group.test
The file was modifiedllvm/tools/llvm-objcopy/ELF/Object.cpp
Commit cba733edf5383344243688dfb249f0960bef33bf by zinenko
[mlir] LLVM dialect: use addressof instead of constant to create function pointers

`llvm.mlir.constant` was originally introduced as an LLVM dialect counterpart
to `std.constant`. As such, it was supporting "function pointer" constants
derived from the symbol name. This is different from `std.constant` that allows
for creation of a "function" constant since MLIR, unlike LLVM IR, supports
this. Later, `llvm.mlir.addressof` was introduced as an Op that obtains a
constant pointer to a global in the LLVM dialect. It naturally extends to
functions (in LLVM IR, functions are globals) and should be used for defining
"function pointer" values instead.

Fixes PR46344.

Differential Revision: https://reviews.llvm.org/D82667
The file was modifiedmlir/docs/Dialects/LLVM.md
The file was modifiedmlir/test/Dialect/LLVMIR/roundtrip.mlir
The file was modifiedmlir/test/Target/llvmir.mlir
The file was modifiedmlir/test/Conversion/StandardToLLVM/convert-funcs.mlir
The file was modifiedmlir/test/Dialect/LLVMIR/global.mlir
The file was modifiedmlir/test/Target/import.ll
The file was modifiedmlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
The file was modifiedmlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
The file was modifiedmlir/include/mlir/Dialect/LLVMIR/LLVMOps.td
The file was modifiedmlir/lib/Target/LLVMIR/ModuleTranslation.cpp
The file was modifiedmlir/test/Dialect/LLVMIR/invalid.mlir
The file was modifiedmlir/lib/Target/LLVMIR/ConvertFromLLVMIR.cpp
Commit 10643c9ad85bf072816bd271239281ec50a52e31 by tobias.gysi
[mlir] make the bitwidth of device side index computations configurable (reland)

Summary:
The patch makes the index type lowering of the GPU to NVVM/ROCDL conversion configurable. It introduces a pass option that controls the bitwidth used when lowering index computations and uses the LowerToLLVMOptions structure to control the Standard to LLVM lowering.

This commit fixes a use-after-free bug introduced by the reverted commit d10b1a3. It implements the following changes:
- Added a getDefaultOptions method to the LowerToLLVMOptions struct that returns a reference to statically allocated default options.
- Use the getDefaultOptions method to provide default LowerToLLVMOptions (instead of an initializer list).
- Added comments to clarify the required lifetime of the LowerToLLVMOptions

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D82475
The file was modifiedmlir/include/mlir/Conversion/StandardToLLVM/ConvertStandardToLLVMPass.h
The file was modifiedmlir/test/Conversion/GPUToNVVM/gpu-to-nvvm.mlir
The file was modifiedmlir/include/mlir/Conversion/GPUToNVVM/GPUToNVVMPass.h
The file was modifiedmlir/lib/Conversion/GPUToNVVM/LowerGpuOpsToNVVMOps.cpp
The file was modifiedmlir/lib/Conversion/GPUToROCDL/LowerGpuOpsToROCDLOps.cpp
The file was modifiedmlir/include/mlir/Conversion/Passes.td
The file was modifiedmlir/include/mlir/Conversion/GPUToROCDL/GPUToROCDLPass.h
The file was modifiedmlir/test/Conversion/GPUToROCDL/gpu-to-rocdl.mlir
The file was modifiedmlir/include/mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h
The file was modifiedmlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
Commit 8e5a56865f28f01480880de305402e6c4348d26f by gribozavr
Add tests for sequences of callbacks that RecursiveASTVisitor produces

Summary:
These tests show a bug: post-order traversal introduces an extra call to
WalkUp*, that is not present in pre-order traversal. I'm fixing this bug
in a follow-up commit.

Reviewers: ymandel, eduucaldas

Reviewed By: ymandel, eduucaldas

Subscribers: gribozavr2, mgorny, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D82485
The file was addedclang/unittests/Tooling/RecursiveASTVisitorTests/Callbacks.cpp
The file was modifiedclang/unittests/Tooling/CMakeLists.txt
Commit d4230c67bf8a2b4f9c4d80898f54fd00db719ae9 by protze
[OpenMP][Tool] Fix buffer overflow in ompt-multiplex.h

Reviewed by: runlieb

Differential Revision: https://reviews.llvm.org/D82452
The file was modifiedopenmp/tools/multiplex/ompt-multiplex.h
Commit 973685fc784a937d39293be972e95c2c4ec4c97e by llvm-dev
[TargetLowering] Add DemandedElts arg to ShrinkDemandedConstant

Pre-commit for D82257, this adds a DemandedElts arg to ShrinkDemandedConstant/targetShrinkDemandedConstant which will allow future patches to (optionally) add vector support.
The file was modifiedllvm/lib/Target/ARM/ARMISelLowering.cpp
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.h
The file was modifiedllvm/include/llvm/CodeGen/TargetLowering.h
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelLowering.cpp
The file was modifiedllvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
The file was modifiedllvm/lib/Target/ARM/ARMISelLowering.h
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelLowering.h
Commit 339ed1e042c03c8819d2b7384fd48baaf1f0ed30 by gribozavr
Move TestClangConfig into libClangTesting and use it in AST Matchers tests

Summary:
Previously, AST Matchers tests were using a custom way to run a test
with a specific C++ standard version. I'm migrating them to a shared
infrastructure to specify a Clang target from libClangTesting. I'm also
changing tests for AST Matchers to run in multiple language standards
versions, and under multiple triples that have different behavior with
regards to templates.

To keep the size of the patch manageable, in this patch I'm only
migrating one file to get the process started and get feedback on this
approach.

One caveat is that increasing the number of test configuration does
significantly increase the runtime of AST Matchers tests. On my machine,
the test runtime increases from 2.0 to 6.0s. I think it is worth the
improved test coverage.

Reviewers: jdoerfert, ymandel

Reviewed By: ymandel

Subscribers: gribozavr2, jfb, sstefan1, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D82179
The file was modifiedclang/unittests/ASTMatchers/ASTMatchersTest.h
The file was addedclang/include/clang/Testing/TestClangConfig.h
The file was modifiedclang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
The file was modifiedclang/unittests/Tooling/Syntax/TreeTest.cpp
Commit 07af106810958bdde0a5ca28b2f69b4281cd10a2 by llvmgnsyncbot
[gn build] Port 8e5a56865f2
The file was modifiedllvm/utils/gn/secondary/clang/unittests/Tooling/BUILD.gn
Commit bb6603f0132b4e42633d1402076acfa634c034e0 by kerry.mclaughlin
[AArch64][SVE] Bail out of performPostLD1Combine for scalable types

Summary:
performPostLD1Combine will introduce either a LD1LANEpost
or LD1DUPpost node, which will cause selection failure if the
return type is a scalable vector.

Reviewers: sdesmalen, c-rhodes, efriedma

Reviewed By: efriedma

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

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D82670
The file was addedllvm/test/CodeGen/AArch64/sve-ld-post-inc.ll
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelLowering.cpp
Commit d5fc592b7c26e96556d2667d2b65a8bd18094a75 by cullen.rhodes
[AArch64][SVE] Add bfloat16 support to svext intrinsic

Reviewers: sdesmalen, kmclaughlin, efriedma, david-arm, fpetrogalli

Reviewed By: sdesmalen, fpetrogalli

Differential Revision: https://reviews.llvm.org/D82391
The file was modifiedllvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
The file was modifiedllvm/test/CodeGen/AArch64/sve-intrinsics-perm-select.ll
The file was addedclang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_ext-bfloat.c
The file was modifiedclang/include/clang/Basic/arm_sve.td
Commit 7f3d9cc1c059688b70cb35e673100c9eeadc4c46 by Andrey.Churbanov
[openmp][NFC] Cleanup: guard __kmp_mic_type by KMP_MIC_SUPPORTED macro.

Differential Revision: https://reviews.llvm.org/D82301
The file was modifiedopenmp/runtime/src/kmp_affinity.cpp
Commit 3521ecf1f8a3cf5e4811f93a9a809fc722462bbf by llvm-dev
[X86] Add vector support to targetShrinkDemandedConstant for OR/XOR opcodes

If a constant is only allsignbits in the demanded/active bits, then sign extend it to an allsignbits bool pattern for OR/XOR ops.

This also requires SimplifyDemandedBits XOR handling to be modified to call ShrinkDemandedConstant on any (non-NOT) XOR pattern to account for non-splat cases.

Next step towards fixing PR45808 - with this patch we now get a <-1,-1,0,0> v4i64 constant instead of <1,1,0,0>.

Differential Revision: https://reviews.llvm.org/D82257
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
The file was modifiedllvm/test/CodeGen/X86/setcc-lowering.ll
The file was modifiedllvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
The file was modifiedllvm/test/CodeGen/X86/promote-cmp.ll
Commit 368a5e3a666ff38432be538370c46ff800fface1 by gchatelet
[Alignment][NFC] migrate DataLayout::getPreferredAlignment

This patch is part of a series to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790

Differential Revision: https://reviews.llvm.org/D82752
The file was modifiedllvm/lib/Transforms/IPO/ConstantMerge.cpp
The file was modifiedllvm/include/llvm/IR/DataLayout.h
The file was modifiedllvm/lib/CodeGen/GlobalMerge.cpp
The file was modifiedllvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
The file was modifiedllvm/lib/IR/DataLayout.cpp
The file was modifiedllvm/lib/IR/Value.cpp
The file was modifiedllvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp
The file was modifiedllvm/lib/ExecutionEngine/ExecutionEngine.cpp
The file was modifiedllvm/lib/Target/PowerPC/PPCAsmPrinter.cpp
The file was modifiedllvm/lib/Target/ARM/ARMISelLowering.cpp
The file was modifiedllvm/lib/Target/Target.cpp
Commit 52911428ef50556edbddd9e32220c22e8755a002 by gchatelet
[Alignment][NFC] Migrate AMDGPU backend to Align

This patch is part of a series to introduce an Alignment type.
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html
See this patch for the introduction of the type: https://reviews.llvm.org/D64790

Differential Revision: https://reviews.llvm.org/D82743
The file was modifiedllvm/lib/Target/AMDGPU/R600ISelLowering.cpp
The file was modifiedllvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
The file was modifiedllvm/lib/Target/AMDGPU/SIISelLowering.h
The file was modifiedllvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.cpp
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
The file was modifiedllvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUPromoteAlloca.cpp
The file was modifiedllvm/lib/Target/AMDGPU/MCTargetDesc/AMDGPUTargetStreamer.h
The file was modifiedllvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.h
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUCodeGenPrepare.cpp
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUMachineFunction.cpp
The file was modifiedllvm/lib/Target/AMDGPU/SIISelLowering.cpp
Commit ce1fa201af77e60d31b48571ffa1f85b919f6245 by john.brawn
[Driver] When forcing a crash print the bug report message

Commit a945037e8fd0c30e250a62211469eea6765a36ae moved the printing of the
"PLEASE submit a bug report" message to the crash handler, but that means we
don't print it when forcing a crash using FORCE_CLANG_DIAGNOSTICS_CRASH. Fix
this by adding a function to get the bug report message and printing it when
forcing a crash.

Differential Revision: https://reviews.llvm.org/D81672
The file was modifiedclang/test/Driver/crash-report-null.test
The file was modifiedclang/test/Driver/crash-report-modules.m
The file was modifiedllvm/include/llvm/Support/PrettyStackTrace.h
The file was modifiedllvm/lib/Support/PrettyStackTrace.cpp
The file was modifiedclang/test/Driver/crash-report-crashfile.m
The file was modifiedclang/tools/driver/driver.cpp
Commit 4822291da5b3a2db3b83d80a0876b26f7d6dd00a by gchatelet
[NFC] Introduce a helper in BasicTTIImpl.h to cast to T

This patch makes access to `this` as a `T` uniform accross the file.

Differential Revision: https://reviews.llvm.org/D82648
The file was modifiedllvm/include/llvm/CodeGen/BasicTTIImpl.h
Commit 39f6a36a24ce8b047f21d69ec1277e12ce6236d0 by sander.desmalen
[AArch64][SVE] NFCI: Choose consistent naming for predicated SDAG nodes

This patch proposes a naming convention for operations that take
a general predicate (and are thus predicated) that specifies
what happens to the false lanes.

Currently the _PRED suffix is used, which doesn't really say much other
than that it takes a predicate. In some instances this means it has
merging predication and in other cases it means zeroing-predication.

This patch also changes the order of operands to
AArch64ISD::DUP_MERGE_PASSTHRU, to pass the predicate as the first
operand, which is in line with all other predicates nodes. It takes the
passthru value as an explicit passthru value, which is always passed as
the last operand.

Reviewers: paulwalker-arm, cameron.mcinally, eli.friedman, dancgr, efriedma

Reviewed By: paulwalker-arm

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81850
The file was modifiedllvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
The file was modifiedllvm/lib/Target/AArch64/SVEInstrFormats.td
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelLowering.h
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelLowering.cpp
Commit 874fcd4e8ffc42717a41e57ddcedb4ab63e63854 by sebastian.neubauer
Add intrinsic helper function

It simplifies getting generic argument types from intrinsics.

Differential Revision: https://reviews.llvm.org/D81084
The file was modifiedllvm/lib/IR/Function.cpp
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
The file was modifiedllvm/include/llvm/IR/Intrinsics.h
Commit b56b467a9a84510bd1c5a573c863cb86c98afbcd by gchatelet
[ADT] Add Bitfield utilities

Context:
--------
There are places in LLVM where we need to pack typed fields into opaque values.
For instance, the `XXXInst` classes in `llvm/include/llvm/IR/Instructions.h` that extract informations from `Value::SubclassData` via `getSubclassDataFromInstruction()`.
The bit twiddling is done manually: this impairs readability and prevent consistent handling of out of range values (e.g. https://github.com/llvm/llvm-project/blob/435b458ad0a4630e6126246a6865748104ccad06/llvm/include/llvm/IR/Instructions.h#L564)
More importantly, the bit pattern is scattered throughout the implementation making it hard to pack additionnal fields or check for overlapping bits.

Design decisions:
-----------------
The Bitfield structs are to be declared together so it is clear which bits are used or not.
The code is designed with simplicity in mind, hence a few limitations:
- Storage is limited to a single integer,
- Enum values have to be `unsigned`,
- Storage type has to be `unsigned`,
- There are no automatic detection of overlapping fields (packed bitfield declaration should help though),
- The interface is C like so `storage` needs to be passed in everytime (code is simpler and lifetime considerations more obvious)

RFC: http://lists.llvm.org/pipermail/llvm-dev/2020-June/142196.html

Differential Revision: https://reviews.llvm.org/D81580
The file was addedllvm/unittests/ADT/BitFieldsTest.cpp
The file was addedllvm/include/llvm/ADT/Bitfields.h
The file was modifiedllvm/unittests/ADT/CMakeLists.txt
Commit db5500a1a5ae8708be702f52ecad63d7612d6baa by llvmgnsyncbot
[gn build] Port b56b467a9a8
The file was modifiedllvm/utils/gn/secondary/llvm/unittests/ADT/BUILD.gn
Commit b7ca06b74505fb2daaee746403cc9ee3b78ac1d0 by gchatelet
[NFC] Fix typos
The file was modifiedllvm/include/llvm/ADT/Bitfields.h
Commit bd46a56474d3b27a4fb520503d5714e23097d495 by sven.vanhaastregt
[OpenCL] Reject block arguments

OpenCL 2.0 does not allow block arguments, primarily because it is
difficult to support function pointers on the various architectures
that OpenCL targets.  Clang was still accepting them.

Rename and reuse the `err_opencl_half_param` diagnostic.

Fixes PR46324.

Differential Revision: https://reviews.llvm.org/D82313
The file was modifiedclang/test/CodeGenOpenCL/blocks.cl
The file was modifiedclang/test/SemaOpenCL/invalid-block.cl
The file was modifiedclang/test/Frontend/opencl.cl
The file was modifiedclang/lib/Sema/SemaType.cpp
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
Commit 48ca15592f16fb6d8e2cef112f14345738e29cf4 by pavel
[lldb] Deduplicate Scalar integral getters

These functions all follow the same pattern. Use template functions to
deduplicate.
The file was modifiedlldb/include/lldb/Utility/Scalar.h
The file was modifiedlldb/source/Utility/Scalar.cpp
Commit d1df56023132914b877e34f6cf475758a96540f2 by 1.int32
[Analyzer][StreamChecker] Use BugType instead of BuiltinBug (NFC) .

Summary:
I do not like the BuiltinBug class.
And it takes no SuppressOnSink parameter that may be needed in the future.

Reviewers: Szelethus, baloghadamsoftware, gamesh411

Reviewed By: Szelethus

Subscribers: rnkovacs, xazax.hun, baloghadamsoftware, szepet, a.sidorin, mikhail.ramalho, Szelethus, donat.nagy, dkrupp, gamesh411, Charusso, martong, ASDenysPetrov, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D82741
The file was modifiedclang/lib/StaticAnalyzer/Checkers/StreamChecker.cpp
Commit 2cb0644f90b7deda78fd5a4df4b74e25bd1db701 by luismarques
[RISCV] Split the pseudo instruction splitting pass

Extracts the atomic pseudo-instructions' splitting from `riscv-expand-pseudo`
/ `RISCVExpandPseudo` into its own pass, `riscv-expand-atomic-pseudo` /
`RISCVExpandAtomicPseudo`. This allows for the expansion of atomic operations
to continue to happen late (the new pass is added in `addPreEmitPass2`, so
those expansions continue to happen in the same place), while the remaining
pseudo-instructions can now be expanded earlier and benefit from more
optimization passes. The nonatomics pass is now added in `addPreSched2`.

Differential Revision: https://reviews.llvm.org/D79635
The file was modifiedllvm/lib/Target/RISCV/RISCV.h
The file was modifiedllvm/lib/Target/RISCV/RISCVTargetMachine.cpp
The file was modifiedllvm/lib/Target/RISCV/CMakeLists.txt
The file was modifiedllvm/lib/Target/RISCV/RISCVExpandPseudoInsts.cpp
The file was addedllvm/lib/Target/RISCV/RISCVExpandAtomicPseudoInsts.cpp
The file was modifiedllvm/test/CodeGen/RISCV/codemodel-lowering.ll
Commit 876df18aecb6e7ce15b6c47684774bd33e169eb9 by llvmgnsyncbot
[gn build] Port 2cb0644f90b
The file was modifiedllvm/utils/gn/secondary/llvm/lib/Target/RISCV/BUILD.gn
Commit 3b95d8346d58396c119e4ac9cc00aeddfb74f00d by spatel
[VectorCombine] refactor - make helper function for extract to shuffle logic; NFC

Preliminary for D82474
The file was modifiedllvm/lib/Transforms/Vectorize/VectorCombine.cpp
Commit 0c332a7784c649038bd237a60fa18b45a3dea90d by Jake.Merdich
[clang-format] Preserve whitespace in selected macros

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

When the c preprocessor stringizes tokens, the generated string literals
are affected by the whitespace. This means clang-format can affect
codegen silently, adding spaces and newlines to strings.  Practically
speaking, the vast majority of cases will be harmless, only affecting
single identifiers or debug macros.

In the interest of doing no harm in other cases though, this introduces
a blacklist option 'WhitespaceSensitiveMacros', which contains a list of
names of function-like macros whose contents should not be touched by
clang-format, period. Clang-format can't automatically detect these
without a real compile context, so users will have to specify it
explicitly (it still beats clang-format off'ing at every invocation).

Defaults include "STRINGIZE", "PP_STRINGIZE", and "BOOST_PP_STRINGIZE".

Subscribers: kristof.beyls, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D82620
The file was modifiedclang/lib/Format/Format.cpp
The file was modifiedclang/lib/Format/FormatTokenLexer.cpp
The file was modifiedclang/unittests/Format/FormatTest.cpp
The file was modifiedclang/include/clang/Format/Format.h
The file was modifiedclang/lib/Format/TokenAnnotator.cpp
The file was modifiedclang/lib/Format/FormatToken.h
The file was modifiedclang/docs/ClangFormatStyleOptions.rst
Commit d0b0b252e1e09f6203ca35ff87b58a2d4eafb8aa by Matthew.Arsenault
AMDGPU: Use IsSSA property check instead of asserting on isSSA

Also fix an SSA violation in a test the MIRParser/verifier fails to
catch. It's illegal to define a subregister in SSA. For the purpose of
the test, it just needs to define the super-register to use the
subregister in the use operand.
The file was modifiedllvm/lib/Target/AMDGPU/R600OptimizeVectorRegisters.cpp
The file was modifiedllvm/lib/Target/AMDGPU/SILoadStoreOptimizer.cpp
The file was modifiedllvm/test/CodeGen/AMDGPU/merge-load-store-vreg.mir
The file was modifiedllvm/lib/Target/AMDGPU/GCNDPPCombine.cpp
Commit fefa34faf551d10967cf2547003f2dd1b2efa887 by bevin.hansson
[CodeGen] Use the common semantic for fixed-point codegen, not the result semantic.

Summary:
Using the result semantic is wrong in some cases, such as
unsigned fixed-point + signed integer. In this case, the
result semantic is unsigned and the common semantic is
signed.

Reviewers: leonardchan

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D82662
The file was modifiedclang/test/Frontend/fixed_point_sub.c
The file was modifiedclang/test/Frontend/fixed_point_mul.c
The file was modifiedclang/lib/CodeGen/CGExprScalar.cpp
The file was modifiedclang/test/Frontend/fixed_point_div.c
The file was modifiedclang/test/Frontend/fixed_point_add.c
Commit 1f228e572da238c656958bf7f85b371d773eb588 by n.james93
[clang-tidy] Fix hicpp-named-paramater

Currently this alias instantiates the readability-identifier-naming check, just swap it out to use the readability-named-paramater check.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D82711
The file was modifiedclang-tools-extra/clang-tidy/hicpp/HICPPTidyModule.cpp
Commit 67ecd7e296d1beabeaf96f984f0f592b22728633 by herhut
[mlir] Clean up NVVM intrinsics definitions a little.

Differential Revision: https://reviews.llvm.org/D82750
The file was modifiedmlir/include/mlir/Dialect/LLVMIR/NVVMOps.td
Commit b6315aee5b420aa5a0be5f1ea86c3c963760a3f2 by spatel
[VectorCombine] try to form vector compare and binop to eliminate scalar ops

binop i1 (cmp Pred (ext X, Index0), C0), (cmp Pred (ext X, Index1), C1)
-->
vcmp = cmp Pred X, VecC
ext (binop vNi1 vcmp, (shuffle vcmp, Index1)), Index0

This is a larger pattern than the existing extractelement folds because we can't
reasonably vectorize the sub-patterns with constants based on cost model calcs
(it doesn't usually make sense to replace a single extracted scalar op with
constant operand with a vector op).

I salvaged as much of the existing logic as I could, but there might be better
ways to share and reduce code.

The motivating case from PR43745:
https://bugs.llvm.org/show_bug.cgi?id=43745
...is the special case of a 2-way reduction. We tried to get SLP to handle that
particular pattern in D59710, but that caused crashing and regressions.
This patch is more general, but hopefully safer.

The v2f64 test with SSE2 surprised me - the cost model accounting looks like this:
OldCost = 0 (free extract of f64 at index 0) + 1 (extract of f64 at index 1) + 2 (scalar fcmps) + 1 (and of bools) = 4
NewCost = 2 (vector fcmp) + 1 (shuffle) + 1 (vector 'and') + 1 (extract of bool) = 5

Differential Revision: https://reviews.llvm.org/D82474
The file was modifiedllvm/test/Transforms/PhaseOrdering/X86/vector-reductions.ll
The file was modifiedllvm/lib/Transforms/Vectorize/VectorCombine.cpp
The file was modifiedllvm/test/Transforms/VectorCombine/X86/extract-cmp-binop.ll
Commit 3621a520d33e64b8c8fb31a2c4b49b33d2938c1f by Matthew.Arsenault
Inliner: Add missing test for alignment assume with byval

No tests were stressing the behavior for hasPassPointeeByValueAttr.
The file was addedllvm/test/Transforms/Inline/byval-align.ll
Commit 6292702d1231378f86a0560a68603fd006911f2f by Jonas Devlieghere
[lldb/Test] Skip TestVSCode_disconnect on Darwin

It's failing on the sanitized bot on GreenDragon.
The file was modifiedlldb/test/API/tools/lldb-vscode/disconnect/TestVSCode_disconnect.py
Commit 57ad8f4730c982813c6f4672c45f4b73f0f0d79f by nemanja.i.ibm
[PowerPC] Don't combine SCALAR_TO_VECTOR without VSX

Most of the patterns for PPCISD::SCALAR_TO_VECTOR_PERMUTED require
VSX. So don't emit them if the subtarget doesn't have VSX.
This resolves the issue reported on
https://reviews.llvm.org/rG1fed131660b2c5d3ea7007e273a7a5da80699445
The file was modifiedllvm/test/CodeGen/PowerPC/canonical-merge-shuffles.ll
The file was modifiedllvm/lib/Target/PowerPC/PPCISelLowering.cpp
Commit 333aa690f4cd16b5c96631c104d1e0d4cf8fe78b by llvm-dev
[X86][SSE] MatchVectorAllZeroTest - handle OR vector reductions (REAPPLIED)

This patch extends MatchVectorAllZeroTest to handle OR vector reduction patterns where the result is compared against zero.

Reapplied with a fix for a chromium regression due to a missing isNullConstant() check in combineSetCC: https://bugs.chromium.org/p/chromium/issues/detail?id=1097758

Fixes PR45378

Differential Revision: https://reviews.llvm.org/D81547
The file was modifiedllvm/test/CodeGen/X86/pr45378.ll
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
The file was modifiedllvm/test/CodeGen/X86/vector-reduce-or-cmp.ll
Commit e22cae32c5c4cf8c49b674cea34c105a6cb015f9 by benicsbalazs
[analyzer][NFC] Add unittest for FalsePositiveRefutationBRVisitor

Adds the test infrastructure for testing the FalsePositiveRefutationBRVisitor.
It will be extended in the D78457 patch, which demonstrates and fixes a bug in
the visitor.

Differential Revision: https://reviews.llvm.org/D78704
The file was modifiedclang/unittests/StaticAnalyzer/CMakeLists.txt
The file was modifiedclang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
The file was modifiedclang/unittests/StaticAnalyzer/CheckerRegistration.h
The file was addedclang/unittests/StaticAnalyzer/FalsePositiveRefutationBRVisitorTest.cpp
Commit cc836950ab2a4309ae68d78a1b2330fd922fa3a2 by bjorn.a.pettersson
[llvm-objcopy] Fix "unused-function" warning in NDEBUG builds

Fixup of commit b925ca37a8f28851 to allow building with
-Werror -Wunused-function.
The file was modifiedllvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp
Commit a44425f25b5ca417e7ecee6e7e00040224e50a69 by gribozavr
Revert "[analyzer][NFC] Add unittest for FalsePositiveRefutationBRVisitor"

This reverts commit e22cae32c5c4cf8c49b674cea34c105a6cb015f9. It broke
the build:

FalsePositiveRefutationBRVisitorTest.cpp:112:3: error: use of undeclared identifier 'LLVM_WITH_Z3'
The file was modifiedclang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
The file was modifiedclang/unittests/StaticAnalyzer/CheckerRegistration.h
The file was removedclang/unittests/StaticAnalyzer/FalsePositiveRefutationBRVisitorTest.cpp
The file was modifiedclang/unittests/StaticAnalyzer/CMakeLists.txt
Commit 5447e5d973bfccb5a32d3ca9cb0105340f178b85 by llvm-dev
Fix MSVC truncation of constant value warning.
The file was modifiedllvm/include/llvm/ADT/Bitfields.h
Commit deb72ce29860f61fe91ddcf97e89abfc9544cf42 by david.green
[ARM] Better reductions

MVE has native reductions for integer add and min/max. The others need
to be expanded to a series of extract's and scalar operators to reduce
the vector into a single scalar. The default codegen for that expands
the reduction into a series of in-order operations.

This modifies that to something more suitable for MVE. The basic idea is
to use vector operations until there are 4 remaining items then switch
to pairwise operations. For example a v8f16 fadd reduction would become:
Y = VREV X
Z = ADD(X, Y)
z0 = Z[0] + Z[1]
z1 = Z[2] + Z[3]
return z0 + z1

The awkwardness (there is always some) comes in from something like a
v4f16, which is first legalized by adding identity values to the extra
lanes of the reduction, and which can then not be optimized away through
the vrev; fadd combo, the inserts remain. I've made sure they custom
lower so that we can produce the pairwise additions before the extra
values are added.

Differential Revision: https://reviews.llvm.org/D81397
The file was modifiedllvm/test/CodeGen/Thumb2/mve-vecreduce-bit.ll
The file was modifiedllvm/test/CodeGen/Thumb2/mve-vecreduce-fminmax.ll
The file was modifiedllvm/test/CodeGen/Thumb2/mve-vecreduce-fmul.ll
The file was modifiedllvm/test/CodeGen/Thumb2/mve-vecreduce-mul.ll
The file was modifiedllvm/lib/Target/ARM/ARMISelLowering.cpp
The file was modifiedllvm/test/CodeGen/Thumb2/mve-vecreduce-loops.ll
The file was modifiedllvm/test/CodeGen/Thumb2/mve-vecreduce-fadd.ll
Commit 1cf2e45c19ffc0635c96279779df43ba51630bba by gribozavr
Compile the RecursiveASTVisitor callbacks test with "/bigobj"

Summary:
This file was exceeding a limit in MSVC:

fatal error C1128: number of sections exceeded object file format limit: compile with /bigobj

Reviewers: erichkeane

Reviewed By: erichkeane

Subscribers: jmorse, gribozavr2, mgorny, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D82766
The file was modifiedclang/unittests/Tooling/CMakeLists.txt
Commit 860aefd0784ed05ffc0d56f36b0d56009776002a by n.james93
[clang-tidy][NFC] Remove unnecessary includes throughout clang-tidy header files

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D82661
The file was modifiedclang-tools-extra/clang-tidy/modernize/ReplaceDisallowCopyAndAssignMacroCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/google/AvoidUnderscoreInGoogletestNameCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/InitVariablesCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/objc/NSInvocationArgumentLifetimeCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/utils/TransformerClangTidyCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/AvoidGotoCheck.h
The file was modifiedclang-tools-extra/clang-tidy/bugprone/PosixReturnCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/bugprone/MisplacedPointerArithmeticInAllocCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/SpecialMemberFunctionsCheck.h
The file was modifiedclang-tools-extra/clang-tidy/abseil/DurationAdditionCheck.h
The file was modifiedclang-tools-extra/clang-tidy/abseil/DurationFactoryScaleCheck.h
The file was modifiedclang-tools-extra/clang-tidy/utils/TransformerClangTidyCheck.h
The file was modifiedclang-tools-extra/clang-tidy/ClangTidyProfiling.h
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/ProTypeUnionAccessCheck.h
The file was modifiedclang-tools-extra/clang-tidy/portability/RestrictSystemIncludesCheck.h
The file was modifiedclang-tools-extra/clang-tidy/abseil/NoNamespaceCheck.h
The file was modifiedclang-tools-extra/clang-tidy/abseil/StringFindStartswithCheck.h
The file was modifiedclang-tools-extra/clang-tidy/readability/RedundantPreprocessorCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/abseil/TimeComparisonCheck.h
The file was modifiedclang-tools-extra/clang-tidy/abseil/DurationUnnecessaryConversionCheck.h
The file was modifiedclang-tools-extra/clang-tidy/modernize/ConcatNestedNamespacesCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/google/UpgradeGoogletestCaseCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/ClangTidy.cpp
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/NoMallocCheck.h
The file was modifiedclang-tools-extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/bugprone/BranchCloneCheck.h
The file was modifiedclang-tools-extra/clang-tidy/hicpp/MultiwayPathsCoveredCheck.h
The file was modifiedclang-tools-extra/clang-tidy/readability/ConvertMemberFunctionsToStatic.cpp
The file was modifiedclang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.h
The file was modifiedclang-tools-extra/clang-tidy/abseil/DurationSubtractionCheck.h
The file was modifiedclang-tools-extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.h
The file was modifiedclang-tools-extra/clang-tidy/ClangTidyModule.cpp
The file was modifiedclang-tools-extra/clang-tidy/abseil/RedundantStrcatCallsCheck.h
The file was modifiedclang-tools-extra/clang-tidy/bugprone/ReservedIdentifierCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/ClangTidy.h
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/SlicingCheck.h
The file was modifiedclang-tools-extra/clang-tidy/abseil/DurationFactoryFloatCheck.h
The file was modifiedclang-tools-extra/clang-tidy/performance/NoexceptMoveConstructorCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/readability/UppercaseLiteralSuffixCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/bugprone/BadSignalToKillThreadCheck.cpp
The file was modifiedclang-tools-extra/clangd/unittests/ParsedASTTests.cpp
The file was modifiedclang-tools-extra/clang-tidy/abseil/DurationDivisionCheck.h
The file was modifiedclang-tools-extra/clang-tidy/readability/ElseAfterReturnCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/abseil/UpgradeDurationConversionsCheck.h
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/OwningMemoryCheck.h
The file was modifiedclang-tools-extra/clang-tidy/abseil/FasterStrsplitDelimiterCheck.h
The file was modifiedclang-tools-extra/clang-tidy/bugprone/SuspiciousIncludeCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/readability/ConvertMemberFunctionsToStatic.h
The file was modifiedclang-tools-extra/clang-tidy/modernize/AvoidBindCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/bugprone/MisplacedOperatorInStrlenInAllocCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/ProBoundsPointerArithmeticCheck.h
The file was modifiedclang-tools-extra/clang-tidy/objc/SuperSelfCheck.h
The file was modifiedclang-tools-extra/clang-tidy/bugprone/BranchCloneCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
The file was modifiedclang-tools-extra/clang-tidy/abseil/DurationDivisionCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/hicpp/NoAssemblerCheck.h
The file was modifiedclang-tools-extra/clang-tidy/readability/MakeMemberFunctionConstCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/ProBoundsConstantArrayIndexCheck.h
The file was modifiedclang-tools-extra/clang-tidy/abseil/DurationComparisonCheck.h
The file was modifiedclang-tools-extra/clang-tidy/readability/MagicNumbersCheck.h
The file was modifiedclang-tools-extra/clang-tidy/modernize/UseUncaughtExceptionsCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/openmp/ExceptionEscapeCheck.h
The file was modifiedclang-tools-extra/clang-tidy/abseil/UpgradeDurationConversionsCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/abseil/TimeSubtractionCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/ProBoundsArrayToPointerDecayCheck.h
The file was modifiedclang-tools-extra/clang-tidy/google/AvoidNSObjectNewCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/ProTypeReinterpretCastCheck.h
The file was modifiedclang-tools-extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/MacroUsageCheck.h
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/ProTypeStaticCastDowncastCheck.h
The file was modifiedclang-tools-extra/clang-tidy/utils/IncludeSorter.cpp
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/ProTypeConstCastCheck.h
The file was modifiedclang-tools-extra/clang-tidy/utils/ExprSequence.cpp
The file was modifiedclang-tools-extra/clang-tidy/ClangTidyCheck.h
The file was modifiedclang-tools-extra/clang-tidy/abseil/NoInternalDependenciesCheck.h
The file was modifiedclang-tools-extra/clang-tidy/abseil/StringFindStrContainsCheck.h
The file was modifiedclang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
The file was modifiedclang-tools-extra/clang-tidy/fuchsia/DefaultArgumentsDeclarationsCheck.cpp
The file was modifiedclang-tools-extra/unittests/clang-tidy/ClangTidyTest.h
The file was modifiedclang-tools-extra/clang-tidy/abseil/TimeSubtractionCheck.h
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.h
The file was modifiedclang-tools-extra/clang-tidy/hicpp/ExceptionBaseclassCheck.h
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/ProTypeVarargCheck.h
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.h
The file was modifiedclang-tools-extra/clang-tidy/hicpp/SignedBitwiseCheck.h
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/ProTypeCstyleCastCheck.h
The file was modifiedclang-tools-extra/clang-tidy/llvmlibc/RestrictSystemLibcHeadersCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/abseil/StringFindStartswithCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.h
The file was modifiedclang-tools-extra/clang-tidy/abseil/DurationFactoryFloatCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/openmp/UseDefaultNoneCheck.h
The file was modifiedclang-tools-extra/clang-tidy/misc/UnusedParametersCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/abseil/StrCatAppendCheck.h
The file was modifiedclang-tools-extra/clang-tidy/readability/UseAnyOfAllOfCheck.h
The file was modifiedclang-tools-extra/clang-tidy/ClangTidyModule.h
The file was modifiedclang-tools-extra/clang-tidy/abseil/DurationConversionCastCheck.h
The file was modifiedclang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.h
The file was modifiedclang-tools-extra/clang-tidy/utils/HeaderGuard.h
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/InterfacesGlobalInitCheck.h
The file was modifiedclang-tools-extra/clangd/ParsedAST.cpp
The file was modifiedclang-tools-extra/clang-tidy/llvm/PreferIsaOrDynCastInConditionalsCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/llvm/HeaderGuardCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/MacroUsageCheck.cpp
Commit 58f2be9671a802acda2f74d2d8105a59ed119933 by gribozavr
RecursiveASTVisitor: inline a macro that is only used once

Reviewers: eduucaldas, ymandel

Reviewed By: ymandel

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D82760
The file was modifiedclang/include/clang/AST/RecursiveASTVisitor.h
Commit 226cda58d50555f626737c3cb9dffef0cf3d906c by Christudasan.Devadasan
[AMDGPU] Moving SI_RETURN_TO_EPILOG handling out of SIInsertSkips.

For now, moving it to SIPreEmitPeephole.
Should find a right place to have this code.

Reviewed By: nhaehnle

Differential revision: https://reviews.llvm.org/D77544
The file was modifiedllvm/lib/Target/AMDGPU/SIPreEmitPeephole.cpp
The file was addedllvm/test/CodeGen/AMDGPU/transform-block-with-return-to-epilog.ll
The file was modifiedllvm/lib/Target/AMDGPU/SIInsertSkips.cpp
Commit eb68a0ab5ee8a8354f1539fb00409f027a7137b2 by Louis Dionne
[libc++] Do not try creating llvm-lit when LIBCXX_INCLUDE_TESTS is OFF in the standalone build

Doing so doesn't work reliably, since it relies on LLVM_* implementation
detail variables being set. Furthermore, since we rely on the lit.site.cfg
being generated, running the tests requires LIBCXX_INCLUDE_TESTS=ON anyway.
The file was modifiedlibcxx/CMakeLists.txt
Commit 8cc722ffc749b83fcd9f55264ee359ff41cb0ac8 by dfukalov
[NFC] Fixed ignored .hip test.

Reviewers: hliao

Reviewed By: hliao

Subscribers: yaxunl, cfe-commits, llvm-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D82764
The file was addedclang/test/CodeGenHIP/lit.local.cfg
Commit 67e4330facfbf798ecc40cd2449f70e6758078b9 by francesco.petrogalli
[sve][acle] Implement some of the C intrinsics for brain float.

Summary:
The following intrinsics have been extended to support brain float types:

svbfloat16_t svclasta[_bf16](svbool_t pg, svbfloat16_t fallback, svbfloat16_t data)
bfloat16_t svclasta[_n_bf16](svbool_t pg, bfloat16_t fallback, svbfloat16_t data)
bfloat16_t svlasta[_bf16](svbool_t pg, svbfloat16_t op)

svbfloat16_t svclastb[_bf16](svbool_t pg, svbfloat16_t fallback, svbfloat16_t data)
bfloat16_t svclastb[_n_bf16](svbool_t pg, bfloat16_t fallback, svbfloat16_t data)
bfloat16_t svlastb[_bf16](svbool_t pg, svbfloat16_t op)

svbfloat16_t svdup[_n]_bf16(bfloat16_t op)
svbfloat16_t svdup[_n]_bf16_m(svbfloat16_t inactive, svbool_t pg, bfloat16_t op)
svbfloat16_t svdup[_n]_bf16_x(svbool_t pg, bfloat16_t op)
svbfloat16_t svdup[_n]_bf16_z(svbool_t pg, bfloat16_t op)

svbfloat16_t svdupq[_n]_bf16(bfloat16_t x0, bfloat16_t x1, bfloat16_t x2, bfloat16_t x3, bfloat16_t x4, bfloat16_t x5, bfloat16_t x6, bfloat16_t x7)
svbfloat16_t svdupq_lane[_bf16](svbfloat16_t data, uint64_t index)

svbfloat16_t svinsr[_n_bf16](svbfloat16_t op1, bfloat16_t op2)

Reviewers: sdesmalen, kmclaughlin, c-rhodes, ctetreau, efriedma

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

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D82345
The file was addedclang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_clastb-bfloat.c
The file was addedclang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_insr-bfloat.c
The file was modifiedllvm/test/CodeGen/AArch64/sve-intrinsics-perm-select.ll
The file was modifiedllvm/test/CodeGen/AArch64/sve-intrinsics-scalar-to-vec.ll
The file was modifiedclang/include/clang/Basic/arm_sve.td
The file was addedclang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_lastb-bfloat.c
The file was addedclang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_lasta-bfloat.c
The file was addedclang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_dup-bfloat.c
The file was modifiedllvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
The file was addedclang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_clasta-bfloat.c
The file was modifiedclang/lib/CodeGen/CGBuiltin.cpp
The file was modifiedllvm/test/CodeGen/AArch64/sve-intrinsics-shifts.ll
The file was addedclang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_dupq-bfloat.c
The file was modifiedllvm/test/CodeGen/AArch64/sve-intrinsics-dup-x.ll
The file was modifiedllvm/test/CodeGen/AArch64/sve-vector-splat.ll
Commit b4130e6e99640046b60452272264823bf0f8813f by sguelton
Correctly report Changed status in FoldBranchToCommonDest

It's possible for the first loop trip(s) to set the `Changed` Status, and to a
later one to early exit, in which case `Changed` must be return.

Differential Revision: https://reviews.llvm.org/D82753
The file was modifiedllvm/lib/Transforms/Utils/SimplifyCFG.cpp
Commit fe0a555aa3c6f37a5b5d79942215b07587893efa by benicsbalazs
[analyzer][NFC] Add unittest for FalsePositiveRefutationBRVisitor

Adds the test infrastructure for testing the FalsePositiveRefutationBRVisitor.
It will be extended in the D78457 patch, which demonstrates and fixes a bug in
the visitor.

Differential Revision: https://reviews.llvm.org/D78704
The file was modifiedclang/unittests/StaticAnalyzer/CheckerRegistration.h
The file was addedclang/unittests/StaticAnalyzer/FalsePositiveRefutationBRVisitorTest.cpp
The file was modifiedclang/unittests/StaticAnalyzer/CMakeLists.txt
Commit 0f95f4c65939af7da23ad1b864219cd119018eef by llvmgnsyncbot
[gn build] Port fe0a555aa3c
The file was modifiedllvm/utils/gn/secondary/clang/unittests/StaticAnalyzer/BUILD.gn
Commit 3936b753bacc17aae4bb421bd8a27f428a9a4173 by omair.javaid
[LLDB] skip TestCreateDuringInstructionStep on aarch64/linux

TestCreateDuringInstructionStep have started failing again on
aarch64/linux after moving to new machine. I am going mark it skipped
for aarch64/linux.
The file was modifiedlldb/test/API/linux/thread/create_during_instruction_step/TestCreateDuringInstructionStep.py
Commit 09943e8de1586dd7f28aa24879fd68717a859588 by Louis Dionne
[libc++] Provide a default LLVM_PATH when building standalone

Since we require that libc++ is built as part of the monorepo layout, we
can assume the path of the rest of LLVM and avoid requiring that LLVM_PATH
be set explicitly.
The file was modifiedlibcxx/docs/BuildingLibcxx.rst
The file was modifiedlibcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake
Commit da940b1a2d06382f11ead4369a48edf617697183 by Louis Dionne
[libc++] Enable tests and documentation by default when building standalone

Since we can always find the rest of the LLVM tree, we can always run the
tests in the standalone mode. Do it so that the default behavior is the
same in the standalone and non-standalone modes.
The file was modifiedlibcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake
Commit 29ea1b4baaa8b9ec5dbd25f91693e422c958db2d by Jonas Devlieghere
[Sphinx] Support older recommonmark versions.

The "new way" of enabling recommonmark is only supported in recommonmark
0.5 and later. Use the deprecated approach with versions of Sphinx that
still support it.

If I understand correctly there's no way to use older versions of
recommonmark (<0.5) with newer versions of Sphinx (>3.0) because the old
approach got removed.

Differential revision: https://reviews.llvm.org/D75284
The file was modifiedllvm/docs/conf.py
Commit 1ef75f53e9e6aeb35a1d46798b3063192ee86f0f by cullen.rhodes
[AArch64][SVE] clang: Add missing svbfloat16_t tests

Summary:
Patch adds tests for mangling of svbfloat16_t and several other type
related tests.

Reviewers: sdesmalen, kmclaughlin, fpetrogalli, efriedma

Reviewed By: sdesmalen, fpetrogalli

Differential Revision: https://reviews.llvm.org/D82668
The file was modifiedclang/test/CodeGenCXX/aarch64-mangle-sve-vectors.cpp
The file was modifiedclang/test/CodeGenCXX/aarch64-sve-typeinfo.cpp
The file was modifiedclang/test/CodeGen/aarch64-sve.c
The file was modifiedclang/test/PCH/aarch64-sve-types.c
The file was modifiedclang/test/Sema/aarch64-sve-types.c
The file was modifiedclang/test/SemaObjC/aarch64-sve-types.m
The file was modifiedclang/test/CodeGenObjC/aarch64-sve-types.m
Commit de361df3f6d0f20bf16a8deb9e6219556d028b81 by benicsbalazs
[analyzer][Z3-refutation] Fix a refutation BugReporterVisitor bug

FalsePositiveRefutationBRVisitor had a bug where the constraints were not
properly collected thus crosschecked with Z3.
This patch demonstratest and fixes that bug.

Bug:
The visitor wanted to collect all the constraints on a BugPath.
Since it is a visitor, it stated the visitation of the BugPath with the node
before the ErrorNode. As a final step, it visited the ErrorNode explicitly,
before it processed the collected constraints.

In principle, the ErrorNode should have visited before every other node.
Since the constraints were collected into a map, mapping each symbol to its
RangeSet, if the map already had a mapping with the symbol, then it was skipped.

This behavior was flawed if:
We already had a constraint on a symbol, but at the end in the ErrorNode we have
a tighter constraint on that. Therefore, this visitor would not utilize that
tighter constraint during the crosscheck validation.

Differential Revision: https://reviews.llvm.org/D78457
The file was modifiedclang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
The file was modifiedclang/unittests/StaticAnalyzer/FalsePositiveRefutationBRVisitorTest.cpp
The file was modifiedclang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporterVisitors.h
The file was modifiedclang/lib/StaticAnalyzer/Core/BugReporter.cpp
Commit e73c3bb06b5a35d13cf96d574ce3b849c5d3d56d by cullen.rhodes
[AArch64][SVE] Add bfloat16 to outstanding tuple vector intrinsics

Summary:
* svget2/3/4
* svset2/3/4
* svcreate2/3/4
* svundef/2/3/4

Reviewers: sdesmalen, kmclaughlin, fpetrogalli, efriedma

Reviewed By: fpetrogalli

Differential Revision: https://reviews.llvm.org/D82665
The file was addedclang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_get4-bfloat.c
The file was addedclang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_create4-bfloat.c
The file was addedclang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_create2-bfloat.c
The file was addedclang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_create3-bfloat.c
The file was addedclang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_get2-bfloat.c
The file was addedclang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_set4-bfloat.c
The file was modifiedclang/include/clang/Basic/arm_sve.td
The file was addedclang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_set2-bfloat.c
The file was addedclang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_get3-bfloat.c
The file was addedclang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_undef2-bfloat.c
The file was addedclang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_undef4-bfloat.c
The file was modifiedllvm/test/CodeGen/AArch64/sve-intrinsics-create-tuple.ll
The file was addedclang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_set3-bfloat.c
The file was addedclang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_undef-bfloat.c
The file was addedclang/test/CodeGen/aarch64-sve-intrinsics/acle_sve_undef3-bfloat.c
Commit d2533d96e14118a86904a69fd2a192c008642f14 by nemanja.i.ibm
[PowerPC] Fix crash for shuffle canonicalization with elt 0 from RHS

Commit 1fed131660b2 assumed that shuffle vector canonicalization will
always ensure that the shuffle mask will be ordered so that element
zero comes from the LHS vector. However there is code out there for
which this is not the case. This patch simply removes that unsafe
assumption and makes the code work regardless of the source of the
first element.
The file was modifiedllvm/lib/Target/PowerPC/PPCISelLowering.cpp
The file was modifiedllvm/test/CodeGen/PowerPC/canonical-merge-shuffles.ll
Commit 5cba1c6336c790877b631e4fcd3cb6e49452a00c by ctetreau
[SVE] Remove calls to VectorType::getNumElements from mlir

Reviewers: efriedma, ftynse, rriddle

Reviewed By: ftynse, rriddle

Subscribers: tschuett, rkruppe, psnobl, mehdi_amini, rriddle, jpienaar, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, aartbik, liufengdb, stephenneuendorffer, Joonsoo, grosul1, Kayjukh, jurahul, msifontes

Tags: #mlir

Differential Revision: https://reviews.llvm.org/D82583
The file was modifiedmlir/lib/Dialect/LLVMIR/IR/LLVMDialect.cpp
The file was modifiedmlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
The file was modifiedmlir/lib/Target/LLVMIR/ModuleTranslation.cpp

Summary

  1. Set parallel tests to 8 on LLDB Arm/AArch64 Linux builders (details)
Commit 40dd3891d6e81726fb450af140659f52c12bcf43 by omair.javaid
Set parallel tests to 8 on LLDB Arm/AArch64 Linux builders
The file was modifiedbuildbot/osuosl/master/config/builders.py