Changes

Summary

  1. [scudo][NFC] Split BasicTest further (details)
  2. [clang][driver] Treat -flto=[auto,jobserver] as -flto (details)
  3. [lit][gtest] Support SKIPPED tests (details)
  4. [unittests][CodeGen] Mark tests that cannot be executed with GTEST_SKIP() (details)
  5. Allow incomplete template types in unique_function arguments (details)
  6. [lldb] Match test dependencies name to other LLVM projects. (details)
  7. [dexter] Change line label reference syntax to enable label-relative offsets (1/2) (details)
  8. [dexter] Change line label reference syntax to enable label-relative offsets (2/2) (details)
  9. [dexter] Remove accidentally committed .rej file (details)
  10. [clang-repl] Tell the LLJIT the exact target triple we use. (details)
  11. [clang][deps] Explicitly enable C++ modules in a test (details)
  12. [mlir] Rename MlirLspServerLib -> MLIRLspServerLib (details)
  13. [ARM] Fix the operand used for WLS in ARMLowOverheadLoops (details)
  14. [mlir] Add conversion from Complex to Standard dialect for NotEqualOp. (details)
  15. Recommit: "[Debugify][Original DI] Test dbg var loc preservation"" (details)
  16. [clang] Fix for "Bug 27113 - MSVC-compat __identifier implementation incomplete" (details)
  17. [clang] Fix Wnested-anon-types in ABIArgInfo (details)
  18. [mlir] Add convenience builders for EqualOp and NotEqualOp. (details)
  19. [analyzer][Z3][NFC] Use GTEST_SKIP instead of hacks (details)
  20. [mlir] NFC - Use builder.getI1Type() (details)
  21. [IR][Verifier] Relax restriction on alloca address spaces (details)
  22. [NFC][Debugify][Original DI] Use MapVector insted of DenseMap for DI tracking (details)
  23. [InstSimplify] Properly constrain {insert,extract}_subvector intrinsic fold (details)
  24. 3rd Reapply "[DebugInfo] Use variadic debug values to salvage BinOps and GEP instrs with non-const operands" (details)
  25. [NFC][AMDGPU] Mark C code in AMDGPUUsage.rst (details)
  26. Fix warning: comparison of integer expressions of different signedness.  NFC (details)
  27. NFC: TreeTransform.h: make the function TransformNestedNameSpecifierLoc more beautiful (details)
  28. [CostModel][X86] Add uitpfp v4f32->v4i32 + v8f32->v8i32 SSE/AVX costs (details)
  29. [mlir][Standard] NFC - Drop remaining EDSC usage (details)
  30. [CostModel][X86] Match SSE41 legalized conversion costs as well as SSE2 (details)
  31. [CostModel][X86] Tweak fptoui v4f32->v4i32 + v8f32->v8i32 SSE/AVX costs (details)
  32. [dexter] Add hit_count keyword arg to DexLimitSteps (details)
  33. [OpenCL] Add support of OpenCL C 3.0 __opencl_c_fp64 (details)
  34. [TTI] NFC: Change getRegUsageForType to return InstructionCost. (details)
  35. [TTI] NFC: Change getCostOfKeepingLiveOverCall to return InstructionCost. (details)
  36. [DebugInfo] Salvage dbg.value() during ADCE (details)
  37. [VectorCombine] Add positive test for scalarizing multiple extracts. (details)
  38. [dexter] Add REQUIRES: lldb to the test label_offset.cpp (details)
  39. [mlir] Add additional traits to EqualOp and NotEqualOp. (details)
  40. [mlir][linalg] Add scalar operands inlining pattern (details)
  41. [mlir] Disallow tensor types in VectorToSCF (details)
  42. [SLP][NFC]Add a test for diamond match of broadcast tree nodes. (details)
  43. [mlir][memref] Improve canonicalization of memref.clone (details)
  44. [SLP]Improve handling of compensate external uses cost. (details)
  45. AMDGPU/GlobalISel: Add subtarget to a test (details)
  46. [LoopUnrollAndJam] Change LoopUnrollAndJamPass to LoopNest pass (details)
  47. [X86] Pre-commit test for D90901 (details)
  48. [X86] Don't fold (fneg (fma (fneg X), Y, (fneg Z))) to (fma X, Y, Z) (details)
  49. [libomptarget][amdgpu] Mark alloc, free weak to facilitate local experimentation (details)
  50. [X86] Lower calls with clang.arc.attachedcall bundle (details)
  51. [MLIR][GPU][NVVM] Add conversion of warp synchronous matrix-multiply accumulate GPU ops (details)
  52. [mlir] Add support for fusion into TiledLoopOp. (details)
  53. [PowerPC] Add stack guard tests (details)
  54. Move a definition into cpp from header in advance of other changes [nfc] (details)
  55. [mlir] NFC: Expose tiled_loop->scf pattern. (details)
  56. [mlir][docs] Fix links to index and integer types (details)
  57. [CostModel][X86] Improve fneg costs (details)
  58. [X86] Inline variable to avoid unused warning in Release builds. NFCI. (details)
  59. Revert "[LoopUnrollAndJam] Change LoopUnrollAndJamPass to LoopNest pass" (details)
  60. [NFC][AMDGPU] Add documentation for AMD Instinct MI100 accelerator (details)
  61. [CostModel][X86] Improve f64/v2f64/v4f64 FMUL costs on AVX1 targets to account for slower btver2 (details)
  62. [ORC] Use GTEST_SKIP in ORC C-API unit test. (details)
  63. [ORC-RT] Add missing headers to CMakeLists.txt. (details)
  64. [libomptarget] Fix a bug whereby firstprivates are not copied over to the device (details)
  65. [scudo] Try to re-enabled the test on arm (details)
  66. precommit tests for D102934 and D102928 (details)
  67. [Matrix] Remove unused matrix-propagate-shape option. (details)
  68. [libcxx][ranges] Add ranges::data CPO. (details)
  69. [gn build] Port 9db55b314b5b (details)
  70. [nfc][lit] Relax spacing check (details)
  71. [NFC][lit] Add skipped test into upstream format (details)
  72. [NFC][lit] Add missing UNRESOLVED test (details)
  73. [mlir][sparse] add full dimension ordering support (details)
  74. [InstSimplify] add tests for rem-of-mul; NFC (details)
  75. [libcxx][gardening] Re-order includes across libcxx. (details)
  76. [Verifier] Move some atomicrmw/cmpxchg checks to instruction creation (details)
  77. [LLD][COFF] PR49068: Include the IMAGE_REL_BASED_HIGHLOW relocation base type when the machine is 64 bits and the relocation type is ADDR32 (details)
  78. [OpenMP] libomp: move warnings to after library initialization (details)
  79. RISCV: add a few deprecated aliases for CSRs (details)
  80. [clang] Don't pass multiple backend options if mixing -mimplicit-it and -Wa,-mimplicit-it (details)
  81. [NFC][sanitizer] Fix android bot after D102815 (details)
  82. [NFC][HIP] fix comments in __clang_hip_cmath.h (details)
  83. [compiler-rt][profile] Explicitly specify PROFILE_SOURCES extensions. NFC (details)
  84. [lld][WebAssembly] Fix for PIC output + TLS + non-shared-memory (details)
  85. [mlir][docs] Add memref and sparse_tensor to Passes.md (details)
  86. [IR] make stack-protector-guard-* flags into module attrs (details)
  87. [lit] Print full googletest commad line (details)
  88. [NFC][sanitizer] Remove unused variable (details)
  89. [NewPM] Mark BitcodeWriter as required. (details)
  90. Revert "[NPM] Do not run function simplification pipeline unnecessarily" (details)
  91. Revert "[NewPM] Only invalidate modified functions' analyses in CGSCC passes" (details)
  92. [ORC][C-bindings] Replace LLVMOrcJITTargetMachineBuilderDisposeTargetTriple. (details)
  93. [flang] Fix symbol table bugs with ENTRY statements (details)
  94. [UpdateTestChecks] Default --x86_scrub_rip to False (details)
  95. [docs] ld.lld.1: Mention -z nostart-stop-gc (details)
  96. [ORC] Fix race condtition in CoreAPIsTest. (details)
  97. [ORC] Fix debugging output: printDescription should not have a newline. (details)
  98. [ORC] Check for underflow on SymbolStringPtr ref-counts. (details)
  99. [Polly] Avoid compiler warning. NFC. (details)
  100. [ConstantFolding] Use APFloat for constant folding. NFC (details)
  101. [SelectionDAG] Fix argument copy elision with irregular types (details)
Commit 53ec41a49c2b32bab74bb1ddf435bea4bf4b8a3a by Vitaly Buka
[scudo][NFC] Split BasicTest further

It's still the slowest test under our emulator.
The file was modifiedcompiler-rt/lib/scudo/standalone/tests/combined_test.cpp
Commit 95423c7c990d9100deb0056bd9738717cb2bcf2d by tbaeder
[clang][driver] Treat -flto=[auto,jobserver] as -flto

Instead of ignoring flto=auto and -flto=jobserver, treat them as -flto
and pass -flto=full along.

Differential Revision: https://reviews.llvm.org/D102479
The file was modifiedclang/lib/Driver/Driver.cpp
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedclang/test/Driver/lto.c
Commit 21b40f02d253be1b4b1e89c316c80ba6b6a7aa44 by ikudrin
[lit][gtest] Support SKIPPED tests

This updates the googletest format to support tests that use GTEST_SKIP(),
which is now available with the updated googletest framework.

Differential Revision: https://reviews.llvm.org/D102694
The file was modifiedllvm/utils/lit/tests/Inputs/googletest-format/DummySubDir/OneTest.py
The file was modifiedllvm/utils/lit/lit/formats/googletest.py
The file was modifiedllvm/utils/lit/tests/googletest-format.py
Commit 5bbf1feab5a40337ae8288eb9c9d8d37103c463e by ikudrin
[unittests][CodeGen] Mark tests that cannot be executed with GTEST_SKIP()

This helps to distinguish such tests from successfully passed ones.

Differential Revision: https://reviews.llvm.org/D102754
The file was modifiedllvm/unittests/CodeGen/DIEHashTest.cpp
The file was modifiedllvm/unittests/CodeGen/SelectionDAGAddressAnalysisTest.cpp
The file was modifiedllvm/unittests/CodeGen/TargetOptionsTest.cpp
The file was modifiedllvm/unittests/CodeGen/AsmPrinterDwarfTest.cpp
The file was modifiedllvm/unittests/CodeGen/PassManagerTest.cpp
The file was modifiedllvm/unittests/CodeGen/DIETest.cpp
The file was modifiedllvm/unittests/CodeGen/AArch64SelectionDAGTest.cpp
Commit e3eaff10b29d8bb85a0d09e6bb72fbdb7cc9c3ea by yrouban
Allow incomplete template types in unique_function arguments

We can't declare unique_function that has in its arguments a reference to
a template type with an incomplete argument.
For instance, we can't declare unique_function<void(SmallVectorImpl<A>&)>
when A is forward declared.

This is because SFINAE will trigger a hard error in this case, when instantiating
IsSizeLessThanThresholdT with the incomplete type.

This patch specialize AdjustedParamT for references to remove this error.

Committed on behalf of: @math-fehr (Fehr Mathieu)

Reviewed By: DaniilSuchkov, yrouban
The file was modifiedllvm/include/llvm/ADT/FunctionExtras.h
The file was modifiedllvm/unittests/ADT/FunctionExtrasTest.cpp
Commit 5e327785da36fa3a00767cfea0a47fcb0f0814aa by smeenai
[lldb] Match test dependencies name to other LLVM projects.

Other LLVM projects use the suffix `-depends` for the test dependencies,
however LLDB uses `-deps` and seems to be the only project under the
LLVM to do so.

In order to make the projects more homogeneous, switch all the
references to `lldb-test-deps` to `lldb-test-depends`.

Additionally, provide a compatibility target with the old name and
depending on the new name, in order to not break anyone workflow.

Reviewed By: JDevlieghere

Differential Revision: https://reviews.llvm.org/D102889
The file was modifiedlldb/test/CMakeLists.txt
The file was modifiedlldb/test/API/CMakeLists.txt
The file was modifiedlldb/test/Shell/CMakeLists.txt
The file was modifiedlldb/utils/lldb-repro/CMakeLists.txt
The file was modifiedlldb/utils/lldb-dotest/CMakeLists.txt
The file was modifiedlldb/test/Unit/CMakeLists.txt
Commit 723a8ae5dab25b329c6aebc25564b3630e8e7d17 by orlando.hyams
[dexter] Change line label reference syntax to enable label-relative offsets (1/2)

This patch changes how line labels are resolved in order to enable
label-relative offsets to be used in commands. This is a breaking change in
dexter. Instead of using label references directly as argument values, labels
will instead be referenced through a function `ref(str)`.

    // No way to use offsets currently.
    Currently: DexExpectWatchValue('x', '1', on_line='labled_line')
    Patched:   DexExpectWatchValue('x', '1', on_line=ref('labled_line'))
    Patched:   DexExpectWatchValue('x', '1', on_line=ref('labled_line') + 3)

A dexter command is "parsed" by finding the whole command and sending it off to
`eval`. This change adds a function called `ref` to the `eval` globals map that
simply looks up the name and returns an int. If the line name hasn't been
defined, or a name is defined more than once, an error is reported (see
err_bad_label_ref.cpp and err_duplicate_label.cpp). Label offsets can be
achieved by simply writing the desired expression.

The rationale behind removing the existing label referencing mechanic is for
consistency and to simplify the code required to make labels work.

I've separated the update to llvm's dexter tests into another patch for ease of
review here (D101148). Here is a small python script which can be used to
update tests to use the new syntax:
https://gist.github.com/OCHyams/8255efe7757cac266440ed2ba55f1442

If it helps anyone using dexter on downstream tests we can come up with a
deprecation plan instead out outright removing the existing syntax.

Reviewed By: jmorse

Differential Revision: https://reviews.llvm.org/D101147
The file was modifieddebuginfo-tests/dexter/dex/command/commands/DexLimitSteps.py
The file was addeddebuginfo-tests/dexter/feature_tests/subtools/test/label_offset.cpp
The file was modifieddebuginfo-tests/dexter/Commands.md
The file was modifieddebuginfo-tests/dexter/dex/command/ParseCommand.py
The file was addeddebuginfo-tests/dexter/feature_tests/subtools/test/err_bad_label_ref.cpp
The file was modifieddebuginfo-tests/dexter/dex/command/commands/DexExpectWatchBase.py
The file was addeddebuginfo-tests/dexter/feature_tests/subtools/test/err_duplicate_label.cpp
The file was modifieddebuginfo-tests/dexter/dex/command/commands/DexExpectProgramState.py
Commit 98e7911f9517cd9eab0f566ca445096d9e206a75 by orlando.hyams
[dexter] Change line label reference syntax to enable label-relative offsets (2/2)

Update dexter tests to use the new line label reference syntax introduced in D101147.

Updated with:
https://gist.github.com/OCHyams/8255efe7757cac266440ed2ba55f1442

Reviewed By: chrisjackson, jmorse

Differential Revision: https://reviews.llvm.org/D101148
The file was modifieddebuginfo-tests/dexter-tests/aggregate-indirect-arg.cpp
The file was modifieddebuginfo-tests/dexter/feature_tests/commands/perfect/limit_steps/limit_steps_same_line_conditional.cpp
The file was modifieddebuginfo-tests/dexter-tests/asan.c
The file was addeddebuginfo-tests/dexter/feature_tests/subtools/test/label_another_line.cpp.rej
The file was modifieddebuginfo-tests/dexter-tests/nrvo-string.cpp
The file was modifieddebuginfo-tests/dexter-tests/realigned-frame.cpp
The file was modifieddebuginfo-tests/dexter/feature_tests/subtools/test/source-root-dir.cpp
The file was modifieddebuginfo-tests/dexter/feature_tests/commands/perfect/limit_steps/limit_steps_overlapping_ranges.cpp
The file was modifieddebuginfo-tests/dexter/feature_tests/commands/perfect/limit_steps/unconditional.cpp
The file was modifieddebuginfo-tests/dexter-tests/memvars/const-branch.c
The file was modifieddebuginfo-tests/dexter/feature_tests/commands/penalty/expect_watch_type.cpp
The file was modifieddebuginfo-tests/dexter/feature_tests/commands/penalty/expect_watch_value.cpp
The file was modifieddebuginfo-tests/dexter/feature_tests/commands/perfect/limit_steps/limit_steps_line_mismatch.cpp
The file was modifieddebuginfo-tests/dexter-tests/stack-var.c
The file was modifieddebuginfo-tests/dexter-tests/global-constant.cpp
The file was modifieddebuginfo-tests/dexter-tests/nrvo.cpp
The file was modifieddebuginfo-tests/dexter-tests/memvars/inline-escaping-function.c
The file was modifieddebuginfo-tests/dexter-tests/ctor.cpp
The file was modifieddebuginfo-tests/dexter-tests/memvars/ctrl-flow.c
The file was modifieddebuginfo-tests/dexter-tests/memvars/loop.c
The file was modifieddebuginfo-tests/dexter-tests/memvars/unused-merged-value.c
The file was modifieddebuginfo-tests/dexter-tests/optnone-loops.cpp
The file was modifieddebuginfo-tests/dexter-tests/memvars/bitcast.c
The file was modifieddebuginfo-tests/dexter-tests/dbg-arg.c
The file was modifieddebuginfo-tests/dexter-tests/memvars/merged-store.c
The file was modifieddebuginfo-tests/dexter/feature_tests/commands/perfect/limit_steps/limit_steps_expect_loop.cpp
The file was modifieddebuginfo-tests/dexter-tests/asan-deque.cpp
The file was modifieddebuginfo-tests/dexter-tests/deferred_globals.cpp
The file was modifieddebuginfo-tests/dexter-tests/inline-line-gap.cpp
The file was modifieddebuginfo-tests/dexter-tests/optnone-fastmath.cpp
The file was modifieddebuginfo-tests/dexter-tests/memvars/inlining-dse.c
The file was modifieddebuginfo-tests/dexter-tests/namespace.cpp
The file was modifieddebuginfo-tests/dexter-tests/vla.c
The file was modifieddebuginfo-tests/dexter-tests/memvars/ptr-to.c
The file was modifieddebuginfo-tests/dexter/feature_tests/subtools/view.cpp
The file was modifieddebuginfo-tests/dexter-tests/memvars/inlining.c
The file was modifieddebuginfo-tests/dexter/feature_tests/commands/perfect/expect_watch_type.cpp
The file was modifieddebuginfo-tests/dexter-tests/optnone-struct-and-methods.cpp
The file was modifieddebuginfo-tests/dexter-tests/memvars/implicit-ptr.c
The file was modifieddebuginfo-tests/dexter-tests/memvars/struct-dse.c
The file was modifieddebuginfo-tests/dexter/feature_tests/commands/penalty/expect_program_state.cpp
The file was modifieddebuginfo-tests/dexter/feature_tests/commands/perfect/expect_watch_value.cpp
The file was modifieddebuginfo-tests/dexter/feature_tests/commands/perfect/limit_steps/limit_steps_check_json_step_count.cpp
The file was modifieddebuginfo-tests/dexter/feature_tests/subtools/test/label_another_line.cpp
The file was modifieddebuginfo-tests/dexter-tests/hello.c
The file was modifieddebuginfo-tests/dexter/feature_tests/commands/perfect/expect_program_state.cpp
The file was modifieddebuginfo-tests/dexter/feature_tests/commands/perfect/limit_steps/limit_steps_expect_value.cpp
The file was modifieddebuginfo-tests/dexter-tests/optnone-simple-functions.cpp
The file was modifieddebuginfo-tests/dexter-tests/optnone-vectors-and-functions.cpp
Commit 2348b5c943198ffedb3494b8443ae172ba96c00e by orlando.hyams
[dexter] Remove accidentally committed .rej file

The file was added in 98e7911f9517.
The file was removeddebuginfo-tests/dexter/feature_tests/subtools/test/label_another_line.cpp.rej
Commit 49f9532165f0cc0485a7da84662ebf63d155652c by v.g.vassilev
[clang-repl] Tell the LLJIT the exact target triple we use.

Some systems use a different data layout. For instance, s390x the layout of
machines with vector registers is different from the ones without. In such
cases, the JIT will automatically detect the vector registers and go out of
sync.

This patch tells the JIT what is the target triple of the generated code so that
both ends are in sync.

Discussion available in https://reviews.llvm.org/D96033. Thanks to @uweigand for
helping understand the issue.

Differential revision https://reviews.llvm.org/D102756
The file was modifiedclang/lib/Interpreter/IncrementalExecutor.h
The file was modifiedclang/lib/Interpreter/IncrementalExecutor.cpp
The file was modifiedclang/lib/Interpreter/Interpreter.cpp
Commit 89ea60f392aa0a98e8d7ed8baa8ccbbec14d4050 by Jan Svoboda
[clang][deps] Explicitly enable C++ modules in a test

In Apple Clang, enabling modules for C++ input requires additional flag: -fcxx-modules.
The file was modifiedclang/test/ClangScanDeps/Inputs/modules_inferred_cdb.json
Commit 0297506d20dfeb5dd10c69d9327cd927a2d8c3ad by kkleine
[mlir] Rename MlirLspServerLib -> MLIRLspServerLib

I noticed while packaging mlir that most mlir library names start
with `libMLIR`. The only different libary was `libMlirLspServerLib.a`.

That's why I changed the library to be similarly named to the others.

Differential Revision: https://reviews.llvm.org/D102881
The file was modifiedmlir/lib/Tools/mlir-lsp-server/CMakeLists.txt
The file was modifiedmlir/tools/mlir-lsp-server/CMakeLists.txt
Commit e7a6df68a6f5cd1122582b89f8cb3d4ebfa49c71 by david.green
[ARM] Fix the operand used for WLS in ARMLowOverheadLoops

The Loop start instruction handled by the ARMLowOverheadLoops are:
$lr = t2DoLoopStart $r0
$lr = t2DoLoopStartTP $r1, $r0
$lr = t2WhileLoopStartLR $r0, %bb, implicit-def dead $cpsr
All three of these will have LR as the 0 argument, the trip count as the
1 argument.

This patch updated a few places in ARMLowOverheadLoops where the 0th arg
was being used for t2WhileLoopStartLR instructions as the trip count.
One place was entirely removed as it does not seem valid any more, the
case the code is trying to protect against should not be able to occur
with our correct-by-construction low overhead loops.

Differential Revision: https://reviews.llvm.org/D102620
The file was modifiedllvm/test/CodeGen/Thumb2/mve-memtp-loop.ll
The file was modifiedllvm/test/CodeGen/Thumb2/LowOverheadLoops/it-block-chain-store.mir
The file was modifiedllvm/lib/Target/ARM/ARMLowOverheadLoops.cpp
The file was modifiedllvm/test/CodeGen/Thumb2/LowOverheadLoops/vmldava_in_vpt.mir
Commit fb8b2b86d3d1ba6e26a5d9296e2b235eb36d10b8 by akuegel
[mlir] Add conversion from Complex to Standard dialect for NotEqualOp.

Differential Revision: https://reviews.llvm.org/D102902
The file was modifiedmlir/lib/Conversion/ComplexToStandard/ComplexToStandard.cpp
The file was modifiedmlir/test/Conversion/ComplexToStandard/full-conversion.mlir
The file was modifiedmlir/test/Conversion/ComplexToStandard/convert-to-standard.mlir
Commit b9076d119a5b2d380d8868ee5e4dc4fdc5ba04a6 by djtodoro
Recommit: "[Debugify][Original DI] Test dbg var loc preservation""

    [Debugify][Original DI] Test dbg var loc preservation

    This is an improvement of [0]. This adds checking of
    original llvm.dbg.values()/declares() instructions in
    optimizations.

    We have picked a real issue that has been found with
    this (actually, picked one variable location missing
    from [1] and resolved the issue), and the result is
    the fix for that -- D100844.

    Before applying the D100844, using the options from [0]
    (but with this patch applied) on the compilation of GDB 7.11,
    the final HTML report for the debug-info issues can be found
    at [1] (please scroll down, and look for
    "Summary of Variable Location Bugs"). After applying
    the D100844, the numbers has improved a bit -- please take
    a look into [2].

    [0] https://llvm.org/docs/HowToUpdateDebugInfo.html#\
        test-original-debug-info-preservation-in-optimizations
    [1] https://djolertrk.github.io/di-check-before-adce-fix/
    [2] https://djolertrk.github.io/di-check-after-adce-fix/

    Differential Revision: https://reviews.llvm.org/D100845

The Unit test was failing because the pass from the test that
modifies the IR, in its runOnFunction() didn't return 'true',
so the expensive-check configuration triggered an assertion.
The file was modifiedllvm/lib/Transforms/Utils/Debugify.cpp
The file was modifiedllvm/unittests/Transforms/Utils/DebugifyTest.cpp
The file was modifiedllvm/include/llvm/Transforms/Utils/Debugify.h
The file was modifiedllvm/test/tools/llvm-original-di-preservation/Inputs/expected-sample.html
The file was modifiedllvm/utils/llvm-original-di-preservation.py
The file was modifiedllvm/docs/HowToUpdateDebugInfo.rst
Commit b5b3843f8d9327039bbcc08b61ff768081a2220d by hans
[clang] Fix for "Bug 27113 - MSVC-compat __identifier implementation incomplete"

this patch fixes Bug 27113 by adding support for string literals to the
implementation of the MS extension __identifier.

Differential revision: https://reviews.llvm.org/D100252
The file was modifiedclang/lib/Lex/PPMacroExpansion.cpp
The file was modifiedclang/test/Parser/MicrosoftExtensions.cpp
Commit ebd25fde5e04fa954f3fbad3fa0ee89f511a907a by Raphael Isemann
[clang] Fix Wnested-anon-types in ABIArgInfo

D98794 added the DirectAttr/IndirectAttr struct fields to that union, but
declaring anonymous structs in an anonymous union triggers `-Wnested-anon-types`
warnings. We can't just give them a name as they are in an anonymous union, so
this just declares the type outside.

```
clang/include/clang/CodeGen/CGFunctionInfo.h:97:5: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
    struct {
    ^
clang/include/clang/CodeGen/CGFunctionInfo.h:101:5: warning: anonymous types declared in an anonymous union are an extension [-Wnested-anon-types]
    struct {
    ^
```

Reviewed By: chill

Differential Revision: https://reviews.llvm.org/D102903
The file was modifiedclang/include/clang/CodeGen/CGFunctionInfo.h
Commit 7eb85cdb103e60582ec6a8dffa2f2d97da616ee0 by akuegel
[mlir] Add convenience builders for EqualOp and NotEqualOp.

The result type is always I1. This additional builder allows to omit the result type.

Differential Revision: https://reviews.llvm.org/D102905
The file was modifiedmlir/include/mlir/Dialect/Complex/IR/ComplexOps.td
Commit 3febf0b507e6257414d92744fd646840aa38e5d2 by balazs.benics
[analyzer][Z3][NFC] Use GTEST_SKIP instead of hacks

Since @bkramer bumped gtest to 1.10.0 I think it's a good time to clean
up some of my hacks.

Reviewed By: Szelethus

Differential Revision: https://reviews.llvm.org/D102643
The file was modifiedclang/unittests/StaticAnalyzer/FalsePositiveRefutationBRVisitorTest.cpp
Commit a1a429dc1d95112bc1122432d9b632512e1e636e by akuegel
[mlir] NFC - Use builder.getI1Type()
The file was modifiedmlir/include/mlir/Dialect/Complex/IR/ComplexOps.td
Commit 81bc732816107f6aff4fd61980f7b03cc92332b5 by wingo
[IR][Verifier] Relax restriction on alloca address spaces

In the WebAssembly target, we would like to allow alloca in two address
spaces.  The alloca instruction already has an address space argument,
but the verifier asserts that the address space of an alloca is the
default alloca address space from the datalayout.  This patch removes
this restriction.  Targets that would like to impose additional
restrictions should do so via target-specific verification passes.

Differential Revision: https://reviews.llvm.org/D101045
The file was removedllvm/test/Assembler/datalayout-alloca-addrspace-mismatch-0.ll
The file was removedllvm/test/Assembler/datalayout-alloca-addrspace-mismatch-2.ll
The file was removedllvm/test/CodeGen/AMDGPU/invalid-alloca.ll
The file was modifiedllvm/lib/IR/Verifier.cpp
The file was modifiedllvm/test/Assembler/drop-debug-info-nonzero-alloca.ll
The file was modifiedllvm/docs/LangRef.rst
The file was removedllvm/test/Assembler/datalayout-alloca-addrspace-mismatch-1.ll
Commit 35490329cb161029329152a956783ef1873824ea by djtodoro
[NFC][Debugify][Original DI] Use MapVector insted of DenseMap for DI tracking

By using MapVector instead of DenseMap, reporting issues will be in
deterministic order.

Differential Revision: https://reviews.llvm.org/D102841
The file was modifiedllvm/include/llvm/Transforms/Utils/Debugify.h
Commit 5a476987f7d653eb7ce2d8ba0ddf0125f481117e by joe.ellis
[InstSimplify] Properly constrain {insert,extract}_subvector intrinsic fold

The previous rule:

   (insert_vector _, (extract_vector X, 0), 0) -> X

is not quite correct. The correct fold should be:

   (insert_vector Y, (extract_vector X, 0), 0) -> X
   where: Y is X, or Y is undef

This commit updates the pattern.

Reviewed By: peterwaller-arm, paulwalker-arm

Differential Revision: https://reviews.llvm.org/D102699
The file was modifiedllvm/lib/Analysis/InstructionSimplify.cpp
The file was modifiedllvm/test/Transforms/InstSimplify/insert-vector.ll
Commit 36ec97f76ac0d8be76fb16ac521f55126766267d by stephen.tozer
3rd Reapply "[DebugInfo] Use variadic debug values to salvage BinOps and GEP instrs with non-const operands"

This reapplies c0f3dfb9, which was reverted following the discovery of
crashes on linux kernel and chromium builds - these issues have since
been fixed, allowing this patch to re-land.

This reverts commit 4397b7095d640f9b9426c4d0135e999c5a1de1c5.
The file was modifiedllvm/include/llvm/IR/Operator.h
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
The file was modifiedllvm/lib/Transforms/Utils/Local.cpp
The file was addedllvm/test/DebugInfo/salvage-nonconst-binop.ll
The file was modifiedllvm/include/llvm/IR/Instructions.h
The file was modifiedllvm/include/llvm/IR/IntrinsicInst.h
The file was modifiedllvm/lib/IR/IntrinsicInst.cpp
The file was modifiedllvm/include/llvm/Transforms/Utils/Local.h
The file was modifiedllvm/test/Transforms/InstCombine/debuginfo-sink.ll
The file was addedllvm/test/DebugInfo/salvage-gep.ll
The file was modifiedllvm/lib/IR/Operator.cpp
The file was modifiedllvm/test/DebugInfo/NVPTX/debug-info.ll
The file was modifiedllvm/include/llvm/IR/DebugInfoMetadata.h
The file was modifiedllvm/lib/Transforms/Coroutines/CoroFrame.cpp
The file was modifiedllvm/lib/IR/DebugInfoMetadata.cpp
The file was modifiedllvm/lib/IR/Instructions.cpp
The file was modifiedllvm/test/Transforms/Reassociate/undef_intrinsics_when_deleting_instructions.ll
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DebugLocEntry.h
Commit b408efe4ffcd7a27dd80bb5824a10e8b221bb6aa by Tony.Tye
[NFC][AMDGPU] Mark C code in AMDGPUUsage.rst

Reviewed By: foad

Differential Revision: https://reviews.llvm.org/D102910
The file was modifiedllvm/docs/AMDGPUUsage.rst
Commit e2815398ce0c81cb59df0269d4e02ffbe44b0d9e by pengfei.wang
Fix warning: comparison of integer expressions of different signedness.  NFC

This patch resolves the Wsign-compare warning that I observed on armv7l and x86 with both gcc and clang.

Reviewed By: pengfei

Differential Revision: https://reviews.llvm.org/D102792
The file was modifiedllvm/lib/Target/X86/X86TileConfig.cpp
Commit e6ec7ab5820f85016ece401bd49db12837d0715d by pengfei.wang
NFC: TreeTransform.h: make the function TransformNestedNameSpecifierLoc more beautiful

Hi,
I am new to LLVM, and I really want to get involved in LLVM community.

I guess if the following switch case of function
TransformNestedNameSpecifierLoc could possibly made more beautiful with
'break' stmt moved inside of the right brace.

I think move of 'break' stmt will not change the invoking destructor of
IdInfo.

Thanks for your effort.

I have done make check-all on x86_64-linux
Signed-off-by: Zhouyi Zhou <zhouzhouyi@gmail.com>

Reviewed By: pengfei

Differential Revision: https://reviews.llvm.org/D102577
The file was modifiedclang/lib/Sema/TreeTransform.h
Commit eb6429d0fb94fd467e03d229177ae6ff3a44e3cc by llvm-dev
[CostModel][X86] Add uitpfp v4f32->v4i32 + v8f32->v8i32 SSE/AVX costs

These were using (default) scalarized values.
The file was modifiedllvm/test/Analysis/CostModel/X86/fptoui.ll
The file was modifiedllvm/lib/Target/X86/X86TargetTransformInfo.cpp
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/alternate-cast-inseltpoison.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/alternate-cast.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/fptoui.ll
Commit 8eb18a0f3ecc6cad534fab27f7653f2ed46c7f01 by nicolas.vasilache
[mlir][Standard] NFC - Drop remaining EDSC usage

Drop the remaining EDSC subdirectories and update all uses.

Differential Revision: https://reviews.llvm.org/D102911
The file was modifiedflang/tools/tco/CMakeLists.txt
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/DropUnitDims.cpp
The file was modifiedmlir/lib/Conversion/ShapeToStandard/CMakeLists.txt
The file was modifiedmlir/include/mlir/Dialect/Linalg/Utils/Utils.h
The file was removedmlir/include/mlir/Dialect/Math/EDSC/Intrinsics.h
The file was removedmlir/lib/Dialect/StandardOps/EDSC/Builders.cpp
The file was modifiedmlir/lib/CMakeLists.txt
The file was modifiedmlir/lib/Conversion/LinalgToLLVM/CMakeLists.txt
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
The file was modifiedmlir/lib/Dialect/GPU/Transforms/MemoryPromotion.cpp
The file was removedmlir/include/mlir/Dialect/StandardOps/EDSC/Intrinsics.h
The file was modifiedmlir/lib/Dialect/Affine/IR/CMakeLists.txt
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Generalization.cpp
The file was removedmlir/include/mlir/Dialect/StandardOps/EDSC/Builders.h
The file was modifiedmlir/lib/Dialect/GPU/CMakeLists.txt
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Interchange.cpp
The file was modifiedmlir/lib/Conversion/VectorToSCF/CMakeLists.txt
The file was modifiedmlir/lib/Dialect/StandardOps/CMakeLists.txt
The file was removedmlir/include/mlir/Dialect/Linalg/EDSC/FoldedIntrinsics.h
The file was modifiedmlir/docs/OpDefinitions.md
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Vectorization.cpp
The file was modifiedmlir/tools/mlir-vulkan-runner/CMakeLists.txt
The file was modifiedmlir/lib/Conversion/LinalgToLLVM/LinalgToLLVM.cpp
The file was modifiedmlir/tools/mlir-lsp-server/CMakeLists.txt
The file was modifiedmlir/lib/Conversion/LinalgToStandard/CMakeLists.txt
The file was modifiedmlir/tools/mlir-spirv-cpu-runner/CMakeLists.txt
The file was modifiedmlir/tools/mlir-reduce/CMakeLists.txt
The file was removedmlir/lib/EDSC/CMakeLists.txt
The file was modifiedmlir/lib/Dialect/Affine/Transforms/CMakeLists.txt
The file was removedmlir/lib/EDSC/Builders.cpp
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Tiling.cpp
The file was removedmlir/docs/EDSC.md
The file was modifiedmlir/lib/Dialect/Linalg/Utils/Utils.cpp
The file was removedmlir/lib/Dialect/StandardOps/EDSC/Intrinsics.cpp
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Fusion.cpp
The file was modifiedmlir/tools/mlir-cpu-runner/CMakeLists.txt
The file was modifiedmlir/tools/mlir-opt/CMakeLists.txt
The file was removedmlir/include/mlir/EDSC/Builders.h
Commit 4865ed3020363f65b954e5d93781ca9e8263cd6f by llvm-dev
[CostModel][X86] Match SSE41 legalized conversion costs as well as SSE2
The file was modifiedllvm/lib/Target/X86/X86TargetTransformInfo.cpp
The file was modifiedllvm/test/Analysis/CostModel/X86/uitofp.ll
Commit 3ae7f7ae0a33961be48948205981aea91920d3aa by llvm-dev
[CostModel][X86] Tweak fptoui v4f32->v4i32 + v8f32->v8i32 SSE/AVX costs

Adjust for worst case for atom/slm (SSE), btver2/sandybridge (AVX1) and haswell/znver* (AVX2)
The file was modifiedllvm/lib/Target/X86/X86TargetTransformInfo.cpp
The file was modifiedllvm/test/Analysis/CostModel/X86/cast.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/alternate-cast.ll
The file was modifiedllvm/test/Analysis/CostModel/X86/uitofp.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/alternate-cast-inseltpoison.ll
Commit 469833f418e1704331f8dccb06ccd391f8d726e1 by orlando.hyams
[dexter] Add hit_count keyword arg to DexLimitSteps

The DexLimitSteps command leading breakpoint will be deleted after triggering
'hit_count' number of times if the argument is provided.

All the lit tests pass on linux (with lldb), and I've tested this on windows
(with vs2017) manually as the lit tests for DexLimitSteps are currently
unsupported on windows.

Reviewed By: StephenTozer, chrisjackson

Differential Revision: https://reviews.llvm.org/D101527
The file was modifieddebuginfo-tests/dexter/Commands.md
The file was modifieddebuginfo-tests/dexter/dex/debugger/DebuggerControllers/ConditionalController.py
The file was addeddebuginfo-tests/dexter/feature_tests/commands/perfect/limit_steps/hit_count.cpp
The file was modifieddebuginfo-tests/dexter/dex/command/commands/DexLimitSteps.py
Commit 826905787ae4c8540bb8a2384fac59c606c7eaff by anton.zabaznov
[OpenCL] Add support of OpenCL C 3.0 __opencl_c_fp64

There already exists cl_khr_fp64 extension. So OpenCL C 3.0
and higher should use the feature, earlier versions still
use the extension. OpenCL C 3.0 API spec states that extension
will be not described in the option string if corresponding
optional functionality is not supported (see 4.2. Querying Devices).
Due to that fact the usage of features for OpenCL C 3.0 must
be as follows:

```
$ clang -Xclang -cl-ext=+cl_khr_fp64,+__opencl_c_fp64 ...

$ clang -Xclang -cl-ext=-cl_khr_fp64,-__opencl_c_fp64 ...
```

e.g. the feature and the equivalent extension (if exists)
must be set to the same values

Reviewed By: Anastasia

Differential Revision: https://reviews.llvm.org/D96524
The file was modifiedclang/test/CodeGenOpenCL/printf.cl
The file was modifiedclang/lib/Sema/SemaExpr.cpp
The file was modifiedclang/docs/OpenCLSupport.rst
The file was modifiedclang/lib/Frontend/CompilerInstance.cpp
The file was modifiedclang/lib/Basic/Targets/NVPTX.h
The file was removedclang/test/SemaOpenCL/extensions.cl
The file was modifiedclang/lib/Basic/Targets/AMDGPU.h
The file was addedclang/test/SemaOpenCL/fp64-fp16-options.cl
The file was modifiedclang/lib/Basic/Targets.cpp
The file was modifiedclang/lib/Sema/SemaType.cpp
The file was modifiedclang/include/clang/Basic/DiagnosticCommonKinds.td
The file was addedclang/test/Misc/opencl-c-3.0.incorrect_options.cl
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
Commit e8e88c3353900d32eea515cb509a1d733d6bddf1 by daniil.fukalov
[TTI] NFC: Change getRegUsageForType to return InstructionCost.

This patch migrates the TTI cost interfaces to return an InstructionCost.

See this patch for the introduction of the type: https://reviews.llvm.org/D91174
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2020-November/146408.html

Reviewed By: sdesmalen

Differential Revision: https://reviews.llvm.org/D102541
The file was modifiedllvm/include/llvm/Analysis/TargetTransformInfo.h
The file was modifiedllvm/lib/Analysis/TargetTransformInfo.cpp
The file was modifiedllvm/include/llvm/Analysis/TargetTransformInfoImpl.h
The file was modifiedllvm/include/llvm/CodeGen/BasicTTIImpl.h
The file was modifiedllvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Commit e1cb98be2d2527800a66ec73cbf9b852d685c354 by daniil.fukalov
[TTI] NFC: Change getCostOfKeepingLiveOverCall to return InstructionCost.

This patch migrates the TTI cost interfaces to return an InstructionCost.

See this patch for the introduction of the type: https://reviews.llvm.org/D91174
See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2020-November/146408.html

Reviewed By: sdesmalen

Differential Revision: https://reviews.llvm.org/D102831
The file was modifiedllvm/include/llvm/Analysis/TargetTransformInfoImpl.h
The file was modifiedllvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
The file was modifiedllvm/lib/Analysis/TargetTransformInfo.cpp
The file was modifiedllvm/include/llvm/Analysis/TargetTransformInfo.h
The file was modifiedllvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
Commit cd49b3ae1af5325a01a17b7e0e66b8c5b32feed2 by djtodoro
[DebugInfo] Salvage dbg.value() during ADCE

This has been found by using the [0].

[0] https://llvm.org/docs/HowToUpdateDebugInfo.html#\
    test-original-debug-info-preservation-in-optimizations

Differential Revision: https://reviews.llvm.org/D100844
The file was modifiedllvm/lib/Transforms/Scalar/ADCE.cpp
The file was addedllvm/test/Transforms/ADCE/adce-salvage-dbg-value.ll
Commit 4efb4f674cb6798949d943bd5755798a7f80e3d9 by flo
[VectorCombine] Add positive test for scalarizing multiple extracts.

As suggested in D100273. Also adds an out-of-bound access test
The file was modifiedllvm/test/Transforms/VectorCombine/AArch64/load-extractelement-scalarization.ll
Commit 35a7c4b4b1d0745775f79d7e5d946e782d923712 by orlando.hyams
[dexter] Add REQUIRES: lldb to the test label_offset.cpp

The test feature_tests/subtools/test/label_offset.cpp was added in 723a8ae5
for D101147.
The file was modifieddebuginfo-tests/dexter/feature_tests/subtools/test/label_offset.cpp
Commit 28844212fe4054784549a1f552b78fe675fe4ebf by akuegel
[mlir] Add additional traits to EqualOp and NotEqualOp.

This matches the traits of the other binary ops.

Differential Revision: https://reviews.llvm.org/D102916
The file was modifiedmlir/include/mlir/Dialect/Complex/IR/ComplexOps.td
Commit 884a6291f0b995579d2cd203bfdc5b6aa427be31 by herhut
[mlir][linalg] Add scalar operands inlining pattern

This pattern inlines operands to a linalg.generic operation that use a constant
index and hence are loop-invariant scalars. This reduces the number of
linalg.generic operands and unlocks some canonicalizations that rely on seeing
an explicit tensor.extract.

Differential Revision: https://reviews.llvm.org/D102682
The file was modifiedmlir/lib/IR/AffineMap.cpp
The file was modifiedmlir/include/mlir/Dialect/Linalg/Passes.td
The file was modifiedmlir/include/mlir/IR/AffineMap.h
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/CMakeLists.txt
The file was addedmlir/test/Dialect/Linalg/inline-scalar-operands.mlir
The file was modifiedmlir/include/mlir/Dialect/Linalg/Passes.h
The file was addedmlir/lib/Dialect/Linalg/Transforms/InlineScalarOperands.cpp
The file was modifiedmlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
Commit 8fb4897934dc054974083ebc82b849fba08a4af7 by springerm
[mlir] Disallow tensor types in VectorToSCF

Support for tensor types can be added if needed.

Differential Revision: https://reviews.llvm.org/D102749
The file was modifiedmlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
Commit 117a247e8e495fa6529650d45ee100befde0c1e4 by a.bataev
[SLP][NFC]Add a test for diamond match of broadcast tree nodes.
The file was addedllvm/test/Transforms/SLPVectorizer/X86/diamond_broadcast.ll
Commit 90e55dfcf4bec092ca63ba540e833ed42ee169bf by herhut
[mlir][memref] Improve canonicalization of memref.clone

The previous implementation did not handle casting behavior properly and
did not consider aliases.

Differential Revision: https://reviews.llvm.org/D102785
The file was modifiedmlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
The file was modifiedmlir/test/Dialect/MemRef/canonicalize.mlir
The file was modifiedmlir/lib/Transforms/BufferDeallocation.cpp
Commit 8dab25954b0acb53731c4aa73e9a7f4f98263030 by a.bataev
[SLP]Improve handling of compensate external uses cost.

External insertelement users can be represented as a result of shuffle
of the vectorized element and noconsecutive insertlements too. Added
support for handling non-consecutive insertelements.

Differential Revision: https://reviews.llvm.org/D101555
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/insert-element-build-vector.ll
The file was modifiedllvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Commit 7521fcd2698740cbb81495de7dfe1a3a4b39b21b by konndennsa
AMDGPU/GlobalISel: Add subtarget to a test

SelectionDAG forces us to have a weird ABI for 16-bit values without
legal 16-bit operations, but currently GlobalISel bypasses this and
sometimes ends up using the gfx8+ ABI in some contexts. Make sure
we're testing the normal ABI to avoid a test change in a future patch.
The file was modifiedllvm/lib/CodeGen/RegAllocBase.cpp
Commit cea7a3fe3d1fc91a00cb54cee3ac6f361343417e by konndennsa
[LoopUnrollAndJam] Change LoopUnrollAndJamPass to LoopNest pass

This patch changes LoopUnrollAndJamPass from FunctionPass to LoopNest pass.
The next patch will utilize LoopNest to effectively handle loop nests.

Reviewed By: Whitney

Differential Revision: https://reviews.llvm.org/D99149
The file was modifiedllvm/include/llvm/Transforms/Scalar/LoopUnrollAndJamPass.h
The file was modifiedllvm/lib/Transforms/Scalar/LoopUnrollAndJamPass.cpp
The file was modifiedllvm/lib/Passes/PassRegistry.def
The file was modifiedllvm/test/Transforms/LoopUnrollAndJam/innerloop.ll
The file was modifiedllvm/lib/Passes/PassBuilder.cpp
Commit 35e5c3310fb0d974b6a151c775ac46a3c3a0e151 by jim
[X86] Pre-commit test for D90901

Differential Revision: https://reviews.llvm.org/D102621
The file was addedllvm/test/CodeGen/X86/fma-signed-zero.ll
Commit 445680593889199667d60207e302bc870f650fa5 by jim
[X86] Don't fold (fneg (fma (fneg X), Y, (fneg Z))) to (fma X, Y, Z)

Check if it has no signed zeros flag (nsz) in getNegatedExpression for x86.
This patch fixed miscompilation: https://alive2.llvm.org/ce/z/XxwBAJ

Reviewed By: RKSimon, spatel

Differential Revision: https://reviews.llvm.org/D90901
The file was modifiedllvm/test/CodeGen/X86/avx2-fma-fneg-combine.ll
The file was modifiedllvm/test/CodeGen/X86/fma_patterns.ll
The file was modifiedllvm/test/CodeGen/X86/fma-fneg-combine.ll
The file was modifiedllvm/test/CodeGen/X86/fma-signed-zero.ll
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
The file was modifiedllvm/test/CodeGen/X86/fma_patterns_wide.ll
Commit d54712ab4deb5b83ef58db73ce18ed466201f4e1 by jonathanchesterfield
[libomptarget][amdgpu] Mark alloc, free weak to facilitate local experimentation

[libomptarget][amdgpu] Mark alloc, free weak to facilitate local experimentation

There are a lot of different ways we might implement the devicertl local alloc
and free functions. Via host, local buffers (stack or arena), specialising per
kernel etc. It is not yet clear what the right design is. This change makes the
alloc and free functions weak, so one can override them from local tests while
comparing options.

Not strictly necessary, as a comparable patch can be applied locally each time,
but would be convenient for out of tree dev. Plan would be to drop the weak
attribute at the same time as introducing a working allocator to trunk.

Reviewed By: tianshilei1992

Differential Revision: https://reviews.llvm.org/D102499
The file was modifiedopenmp/libomptarget/deviceRTLs/amdgcn/src/target_impl.hip
Commit c2d44bd2309c1e232d900fd6979aba320c913357 by flo
[X86] Lower calls with clang.arc.attachedcall bundle

This patch adds support for lowering function calls with the
`clang.arc.attachedcall` bundle. The goal is to expand such calls to the
following sequence of instructions:

    callq   @fn
    movq  %rax, %rdi
    callq   _objc_retainAutoreleasedReturnValue / _objc_unsafeClaimAutoreleasedReturnValue

This sequence of instructions triggers Objective-C runtime optimizations,
hence we want to ensure no instructions get moved in between them.
This patch achieves that by adding a new CALL_RVMARKER ISD node,
which gets turned into the CALL64_RVMARKER pseudo, which eventually gets
expanded into the sequence mentioned above.

The ObjC runtime function to call is determined by the
argument in the bundle, which is passed through as a
target constant to the pseudo.

@ahatanak is working on using this attribute in the front- & middle-end.

Together with the front- & middle-end changes, this should address
PR31925 for X86.

This is the X86 version of 46bc40e50246c1902a1ca7916c8286cb837643ee,
which added similar support for AArch64.

Reviewed By: ab

Differential Revision: https://reviews.llvm.org/D94597
The file was modifiedllvm/lib/Target/X86/X86InstrInfo.td
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.h
The file was modifiedllvm/lib/Target/X86/X86InstrCompiler.td
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
The file was modifiedllvm/lib/Target/X86/X86ExpandPseudo.cpp
The file was modifiedllvm/lib/Target/X86/X86InstrControl.td
The file was modifiedllvm/test/CodeGen/X86/call-rv-marker.ll
The file was addedllvm/test/CodeGen/X86/expand-call-rvmarker.mir
Commit eaaf7a6a09da905cc314201f93e2be11773726a0 by uday
[MLIR][GPU][NVVM] Add conversion of warp synchronous matrix-multiply accumulate GPU ops

Add conversion of warp synchronous matrix-multiply
accumulate GPU ops
Add conversion of warp synchronous matrix-multiply accumulate GPU ops to
NVVM ops. The following conversions are added :-
  1.) subgroup_mma_load_matrix -> wmma.m16n16k16.load.[a,b,c]..row.stride
  2.) subgroup_mma_store_matrix -> wmma.m16n16k16.store.d.[f16,f32].row.stride
  3.) subgroup_mma_compute -> wmma.m16n16k16.mma.row.row.[f16,f32].[f16,f32]

Reviewed By: bondhugula, ftynse

Differential Revision: https://reviews.llvm.org/D95331
The file was modifiedmlir/lib/Conversion/GPUToNVVM/CMakeLists.txt
The file was modifiedmlir/include/mlir/Conversion/GPUToNVVM/GPUToNVVMPass.h
The file was addedmlir/lib/Conversion/GPUToNVVM/WmmaOpsToNvvm.cpp
The file was modifiedmlir/lib/Conversion/GPUToNVVM/LowerGpuOpsToNVVMOps.cpp
The file was addedmlir/test/Conversion/GPUToNVVM/wmma-ops-to-nvvm.mlir
Commit 9ecc8178d72097c8f9e31ea7c50085748d187aff by pifon
[mlir] Add support for fusion into TiledLoopOp.

Differential Revision: https://reviews.llvm.org/D102722
The file was modifiedmlir/test/Dialect/Linalg/fusion-tensor-pattern.mlir
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Fusion.cpp
The file was modifiedmlir/test/lib/Dialect/Linalg/TestLinalgFusionTransforms.cpp
The file was modifiedmlir/tools/mlir-opt/mlir-opt.cpp
The file was modifiedmlir/include/mlir/Dialect/Linalg/IR/LinalgOps.td
Commit f8bb0d97cb99adf7857854a18f96f8d499fff07d by Jinsong Ji
[PowerPC] Add stack guard tests

Copied from X86 and test powerpc triple.
Preparing for AIX stack guard tests.
The file was addedllvm/test/CodeGen/PowerPC/stack-guard-oob.ll
Commit cc5f6ae4b4a2f812cc8d3964532c60a337fa79e9 by listmail
Move a definition into cpp from header in advance of other changes [nfc]
The file was modifiedllvm/lib/Analysis/LoopUnrollAnalyzer.cpp
The file was modifiedllvm/include/llvm/Analysis/LoopUnrollAnalyzer.h
Commit 335fa1802854d651b89e4e79916a10ca87795ff2 by pifon
[mlir] NFC: Expose tiled_loop->scf pattern.

Differential Revision: https://reviews.llvm.org/D102921
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Loops.cpp
The file was modifiedmlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
Commit b3127c94dddf6abb03dcf6abac272dbb52827c52 by marius.brehler
[mlir][docs] Fix links to index and integer types

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D102922
The file was modifiedmlir/docs/Dialects/Affine.md
The file was modifiedmlir/docs/Tutorials/DefiningAttributesAndTypes.md
The file was modifiedmlir/docs/Tutorials/Toy/Ch-7.md
The file was modifiedmlir/docs/Dialects/SPIR-V.md
Commit 2fca5558660e227d7e35923ddb229a47a8ea1f69 by llvm-dev
[CostModel][X86] Improve fneg costs

These are always lowered as xor ops, so are always cheap
The file was modifiedllvm/lib/Target/X86/X86TargetTransformInfo.cpp
The file was modifiedllvm/test/Transforms/LoopVectorize/X86/fneg-cost.ll
The file was modifiedllvm/test/Analysis/CostModel/X86/arith-fp.ll
Commit ea438b489828f717db9bb5433863854c1f61c7d7 by benny.kra
[X86] Inline variable to avoid unused warning in Release builds. NFCI.
The file was modifiedllvm/lib/Target/X86/X86ExpandPseudo.cpp
Commit fd53cb414813444cf232903acfe7a9ddc72b5f21 by konndennsa
Revert "[LoopUnrollAndJam] Change LoopUnrollAndJamPass to LoopNest pass"

This reverts commit cea7a3fe3d1fc91a00cb54cee3ac6f361343417e.
To investigate sanitizer-x86_64-linux-fast failure.
The file was modifiedllvm/test/Transforms/LoopUnrollAndJam/innerloop.ll
The file was modifiedllvm/lib/Transforms/Scalar/LoopUnrollAndJamPass.cpp
The file was modifiedllvm/include/llvm/Transforms/Scalar/LoopUnrollAndJamPass.h
The file was modifiedllvm/lib/Passes/PassBuilder.cpp
The file was modifiedllvm/lib/Passes/PassRegistry.def
Commit 355114a7532d9beb53bce792effd81d6064aa85b by Tony.Tye
[NFC][AMDGPU] Add documentation for AMD Instinct MI100 accelerator

Add link to documentation for "AMD Instinct MI100 Instruction Set
Architecture" to AMDGPUUsage.rst.

Reviewed By: kzhuravl, rampitec, dp

Differential Revision: https://reviews.llvm.org/D102859
The file was modifiedllvm/docs/AMDGPUUsage.rst
Commit fe6c11c5710e95eedbb16c2aac58a5d992e55434 by llvm-dev
[CostModel][X86] Improve f64/v2f64/v4f64 FMUL costs on AVX1 targets to account for slower btver2

BTVER2 has a weaker f64 multiplier that other AVX1-era targets, so we need to bump the worst case cost slightly - llvm-mca reports the new vectorization in simplebb is beneficial on btver2, bdver2 and sandybridge AVX1 targets
The file was modifiedllvm/test/Analysis/CostModel/X86/reduce-fmul.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/simplebb.ll
The file was modifiedllvm/test/Analysis/CostModel/X86/arith-fp.ll
The file was modifiedllvm/lib/Target/X86/X86TargetTransformInfo.cpp
Commit 95612afc1d69ff470943b10210bb902fa14fc4e8 by Lang Hames
[ORC] Use GTEST_SKIP in ORC C-API unit test.

Now that gtest has been updated to 1.10 which supports GTEST_SKIP, we can use
that over return;

Patch by Mats Larsen. Thanks Mats!

Reviewed By: lhames, ikudrin

Differential Revision: https://reviews.llvm.org/D102710
The file was modifiedllvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
Commit 16b284e99e4bca8d1e571310f545f10512dc979b by Lang Hames
[ORC-RT] Add missing headers to CMakeLists.txt.
The file was modifiedcompiler-rt/lib/orc/CMakeLists.txt
Commit d0bc04d6b91d6bc5f15c981da9d2b911fb578c59 by georgios.rokos
[libomptarget] Fix a bug whereby firstprivates are not copied over to the device

The check for the TO flag when processing firstprivates is missing. As a result,
sometimes the device copy of a firstprivate never gets initialized. Currectly we
try to force lambda structs to be allocated immediately by marking them as a
non-firstprivate, so that PrivateArgumentManagerTy::addArg allocates memory for
them immediately. However, calling addArg with IsFirstPrivate=false makes the
function skip initializing the device copy. Whether an argument is firstprivate
and whether we need to allocate memory immediately are not synonyms, so this
patch introduces one more control variable for immediate allocation and sets it
apart from initialization.

Differential Revision: https://reviews.llvm.org/D102890
The file was modifiedopenmp/libomptarget/src/omptarget.cpp
The file was addedopenmp/libomptarget/test/mapping/lambda_by_value.cpp
Commit 1c6272a481fda287f9b506a83ed21d74131742af by Vitaly Buka
[scudo] Try to re-enabled the test on arm

It's probably fixed by D102886.

Builder to watch https://lab.llvm.org/buildbot/#/builders/clang-cmake-armv7-full

Reviewed By: hctim, cryptoad

Differential Revision: https://reviews.llvm.org/D102887
The file was modifiedcompiler-rt/lib/scudo/standalone/tests/secondary_test.cpp
Commit 317c105c6a4429aa1b51a4157719ed3ca8e858bf by listmail
precommit tests for D102934 and D102928
The file was addedllvm/test/Transforms/LoopUnroll/unroll-cost-symbolic-execute.ll
Commit a0ce6439cace9806aa303fa4a412c7b5cea7eca4 by flo
[Matrix] Remove unused matrix-propagate-shape option.

The option was used during the initial bringup, but it does not add any
value at this point. Remove it.

Reviewed By: anemet

Differential Revision: https://reviews.llvm.org/D102930
The file was modifiedllvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
Commit 9db55b314b5b9e387ed36fe61b829efcc98b7c7b by zoecarver
[libcxx][ranges] Add ranges::data CPO.

This is the second to last one! Based on D101396. Depends on D100255. Refs D101079 and D101193.

Differential Revision: https://reviews.llvm.org/D101476
The file was addedlibcxx/include/__ranges/data.h
The file was addedlibcxx/test/std/ranges/range.access/range.prim/data.incomplete.verify.cpp
The file was modifiedlibcxx/include/CMakeLists.txt
The file was modifiedlibcxx/include/ranges
The file was addedlibcxx/test/std/ranges/range.access/range.prim/data.pass.cpp
Commit 9039ade209ab2922ebfe4b8415e3e987642eea07 by llvmgnsyncbot
[gn build] Port 9db55b314b5b
The file was modifiedllvm/utils/gn/secondary/libcxx/include/BUILD.gn
Commit fa62a44e4e6975bbb9a67e92129e694d39f553d0 by Vitaly Buka
[nfc][lit] Relax spacing check
The file was modifiedllvm/utils/lit/tests/googletest-upstream-format.py
The file was modifiedllvm/utils/lit/tests/googletest-format.py
Commit 329400130407b73a70070ac761b6f8506f4a1361 by Vitaly Buka
[NFC][lit] Add skipped test into upstream format

Missing from D102694
The file was modifiedllvm/utils/lit/tests/googletest-format.py
The file was modifiedllvm/utils/lit/tests/googletest-upstream-format.py
The file was modifiedllvm/utils/lit/tests/Inputs/googletest-upstream-format/DummySubDir/OneTest.py
Commit bbdabb044d45fcb08b4f2d6ca874c40ec9c6856c by Vitaly Buka
[NFC][lit] Add missing UNRESOLVED test

D102899 will change it behavour.
The file was modifiedllvm/utils/lit/tests/Inputs/googletest-format/DummySubDir/OneTest.py
The file was modifiedllvm/utils/lit/tests/Inputs/googletest-upstream-format/DummySubDir/OneTest.py
The file was modifiedllvm/utils/lit/tests/googletest-upstream-format.py
The file was modifiedllvm/utils/lit/tests/googletest-format.py
Commit c194b49c9c8dfe01804ecd0b90814d1e98382fc1 by ajcbik
[mlir][sparse] add full dimension ordering support

This revision completes the "dimension ordering" feature
of sparse tensor types that enables the programmer to
define a preferred order on dimension access (other than
the default left-to-right order). This enables e.g. selection
of column-major over row-major storage for sparse matrices,
but generalized to any rank, as in:

dimOrdering = affine_map<(i,j,k,l,m,n,o,p) -> (p,o,j,k,i,l,m,n)>

Reviewed By: bixia

Differential Revision: https://reviews.llvm.org/D102856
The file was modifiedmlir/test/Dialect/SparseTensor/sparse_lower.mlir
The file was modifiedmlir/test/Dialect/SparseTensor/conversion.mlir
The file was modifiedmlir/test/Dialect/SparseTensor/sparse_lower_inplace.mlir
The file was modifiedmlir/lib/ExecutionEngine/SparseUtils.cpp
The file was modifiedmlir/include/mlir/ExecutionEngine/CRunnerUtils.h
The file was modifiedmlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp
The file was addedmlir/test/Dialect/SparseTensor/sparse_lower_col.mlir
The file was addedmlir/test/Integration/Dialect/SparseTensor/CPU/sparse_flatten.mlir
The file was modifiedmlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp
Commit 3c4b79481d457b60a1c80fbdac5335be681a9dbe by spatel
[InstSimplify] add tests for rem-of-mul; NFC

These are baseline tests for D102864
The file was modifiedllvm/test/Transforms/InstSimplify/rem.ll
Commit 8110a7316401b30632d7efb0211f6059243260ac by zoecarver
[libcxx][gardening] Re-order includes across libcxx.

This commit alphabetizes all includes in libcxx. This is a NFC.

This can also serve as a pseudo "announcement" for how we should order these headers going forward (note: double underscores go before other headers).

Differential Revision: https://reviews.llvm.org/D102941
The file was modifiedlibcxx/include/__iterator/concepts.h
The file was modifiedlibcxx/include/__ranges/size.h
The file was modifiedlibcxx/include/__support/ibm/xlocale.h
The file was modifiedlibcxx/include/__support/openbsd/xlocale.h
The file was modifiedlibcxx/include/__support/win32/limits_msvc_win32.h
The file was modifiedlibcxx/include/__bsd_locale_fallbacks.h
The file was modifiedlibcxx/include/__support/win32/locale_win32.h
The file was modifiedlibcxx/include/__memory/shared_ptr.h
The file was modifiedlibcxx/include/__ranges/data.h
The file was modifiedlibcxx/include/__iterator/iterator_traits.h
Commit 7a29a1230148385e93493891cc7eb7f7f3b4a6cb by aeubanks
[Verifier] Move some atomicrmw/cmpxchg checks to instruction creation

These checks already exist as asserts when creating the corresponding
instruction. Anybody creating these instructions already need to take
care to not break these checks.

Move the checks for success/failure ordering in cmpxchg from the
verifier to the LLParser and BitcodeReader plus an assert.

Add some tests for cmpxchg ordering. The .bc files are created from the
.ll files with an llvm-as with these checks disabled.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D102803
The file was addedllvm/test/Bitcode/Inputs/invalid-cmpxchg-ordering.bc
The file was modifiedllvm/include/llvm/IR/Instructions.h
The file was modifiedllvm/lib/IR/Instructions.cpp
The file was addedllvm/test/Assembler/cmpxchg-ordering-4.ll
The file was modifiedllvm/test/Bitcode/invalid.test
The file was addedllvm/test/Assembler/cmpxchg-ordering-2.ll
The file was addedllvm/test/Assembler/cmpxchg-ordering.ll
The file was addedllvm/test/Bitcode/Inputs/invalid-cmpxchg-ordering-2.bc
The file was modifiedllvm/lib/AsmParser/LLParser.cpp
The file was modifiedllvm/lib/IR/Verifier.cpp
The file was modifiedllvm/lib/Bitcode/Reader/BitcodeReader.cpp
The file was addedllvm/test/Assembler/cmpxchg-ordering-3.ll
The file was addedllvm/test/Bitcode/Inputs/invalid-cmpxchg-ordering-3.bc
The file was addedllvm/test/Bitcode/Inputs/invalid-cmpxchg-ordering-4.bc
Commit 4fb131b49795ea11f7f56af1f4896fb6996faf0f by martin
[LLD][COFF] PR49068: Include the IMAGE_REL_BASED_HIGHLOW relocation base type when the machine is 64 bits and the relocation type is ADDR32

The COFF driver produces an ABSOLUTE relocation base for an ADDR32
relocation type and the system is 64 bits (machine=AMD64). The
relocation information won't be added in the output and could
produce an incorrect address access during run-time. This change
set checks if the relocation type is IMAGE_REL_AMD64_ADDR32 and
if so, adds the relocated symbol as IMAGE_REL_BASED_HIGHLOW base.

Differential Revision: https://reviews.llvm.org/D96619
The file was modifiedlld/COFF/Chunks.cpp
The file was addedlld/test/COFF/reloc-x64-add32.s
Commit aa6e7e8da8f5a2706f0b330718df203b3650408e by Andrey.Churbanov
[OpenMP] libomp: move warnings to after library initialization

Warnings on deprecated api cannot be suppressed if the library is not initialized.
With this change it is possible to set KMP_WARNINGS=false to suppress the warnings.

Differential Revision: https://reviews.llvm.org/D102676
The file was addedopenmp/runtime/test/api/omp_deprecated.c
The file was modifiedopenmp/runtime/src/kmp_ftn_entry.h
Commit 6c6b3e3afe7cbf43d6ab2aa780367e6942f1b6b4 by Saleem Abdulrasool
RISCV: add a few deprecated aliases for CSRs

This adds the {s,u,m}badaddr CSR aliases as well as the sptbr alias.
These are for compatibility with binutils.  Furthermore, these are used
by the RISC-V Proxy Kernel and are required to enable building the Proxy
Kernel with the LLVM IAS.

The aliases here are deprecated.  These are being introduced in order to
provide a compatibility story for the existing GNU toolchain, which
still supports the deprecated spelling in the assembler.  However, in
order to encourage the migration of existing coding, we provide warnings
indicating that the aliased CSRs are deprecated and should be replaced.

Differential Revision: https://reviews.llvm.org/D101919
Reviewed By: Craig Topper
The file was modifiedllvm/lib/Target/RISCV/AsmParser/RISCVAsmParser.cpp
The file was addedllvm/test/MC/RISCV/deprecated-csr-names.s
The file was modifiedllvm/lib/Target/RISCV/RISCVSystemOperands.td
The file was modifiedllvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h
Commit 4468e5b8999291cc84b78f33f207dcd0e58146bc by martin
[clang] Don't pass multiple backend options if mixing -mimplicit-it and -Wa,-mimplicit-it

If multiple instances of the -arm-implicit-it option is passed to
the backend, it errors out.

Also fix cases where there are multiple -Wa,-mimplicit-it; the existing
tests indicate that the last one specified takes effect, while in
practice it passed double options, which didn't work as intended.

Differential Revision: https://reviews.llvm.org/D102812
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was modifiedclang/test/Driver/arm-target-as-mimplicit-it.s
Commit f50b87e9ef42efe80e2b3364df848d102075dd11 by Vitaly Buka
[NFC][sanitizer] Fix android bot after D102815

https://lab.llvm.org/buildbot/#/builders/77/builds/6519
The file was modifiedcompiler-rt/lib/sanitizer_common/tests/CMakeLists.txt
The file was modifiedcompiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cpp
Commit 91dfd68e90156dab3cbf11c9ae677cf60b2df65c by Yaxun.Liu
[NFC][HIP] fix comments in __clang_hip_cmath.h
The file was modifiedclang/lib/Headers/__clang_hip_cmath.h
Commit cc9c895d8844d69a6962a5a5952034a9e466b2f0 by Jon Roelofs
[compiler-rt][profile] Explicitly specify PROFILE_SOURCES extensions. NFC
The file was modifiedcompiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
Commit 8544b40b6e1d4e34650af66e25102ebcdf360e62 by sbc
[lld][WebAssembly] Fix for PIC output + TLS + non-shared-memory

Prior to this change build with `-shared/-pie` and using TLS (but
without -shared-memory) would hit this assert:

  "Currenly only a single data segment is supported in PIC mode"

This is because we were not including TLS data when merging data
segments.  However, when we build without shared-memory (i.e.  without
threads) we effectively lower away TLS into a normal active data
segment.. so we were ending up with two active data segments: the merged
data, and the lowered TLS data.

To fix this problem we can instead avoid combining data segments at
all when running in shared memory mode (because in this case all
segment initialization is passive).  And then in non-shared memory
mode we know that TLS has been lowered and therefore we can can
and should combine all segments.

So with this new behavior we have two different modes:

1. With shared memory / mutli-threaded: Never combine data segments
   since it is not necessary.  (All data segments as passive already).

2. Wihout shared memory / single-threaded: Combine *all* data segments
   since we treat TLS as normal data.  (We end up with a single
   active data segment).

Differential Revision: https://reviews.llvm.org/D102937
The file was removedlld/test/wasm/tls-no-shared.s
The file was modifiedlld/wasm/Relocations.cpp
The file was modifiedlld/test/wasm/relocation-bad-tls.s
The file was modifiedlld/wasm/OutputSections.cpp
The file was modifiedlld/wasm/Writer.cpp
The file was addedlld/test/wasm/tls-non-shared-memory.s
The file was modifiedlld/test/wasm/data-segments.ll
Commit ab3cd2601bac99b26952c6f1015387d60800d2e2 by youngar17
[mlir][docs] Add memref and sparse_tensor to Passes.md

These pass documents belong on the main pass page, and not generated as
top level pages.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D102947
The file was modifiedmlir/docs/Passes.md
Commit 033138ea452f5f493fb5095e5963419905ad12e1 by ndesaulniers
[IR] make stack-protector-guard-* flags into module attrs

D88631 added initial support for:

- -mstack-protector-guard=
- -mstack-protector-guard-reg=
- -mstack-protector-guard-offset=

flags, and D100919 extended these to AArch64. Unfortunately, these flags
aren't retained for LTO. Make them module attributes rather than
TargetOptions.

Link: https://github.com/ClangBuiltLinux/linux/issues/1378

Reviewed By: tejohnson

Differential Revision: https://reviews.llvm.org/D102742
The file was modifiedllvm/test/CodeGen/X86/stack-protector-3.ll
The file was addedclang/test/CodeGen/stack-protector-guard.c
The file was modifiedllvm/lib/CodeGen/CommandFlags.cpp
The file was modifiedclang/lib/CodeGen/CodeGenModule.cpp
The file was modifiedllvm/include/llvm/Target/TargetOptions.h
The file was addedllvm/test/Linker/stack-protector-guard-module-attrs.ll
The file was modifiedllvm/lib/IR/Module.cpp
The file was modifiedllvm/test/CodeGen/AArch64/stack-guard-sysreg.ll
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
The file was modifiedllvm/include/llvm/IR/Module.h
The file was modifiedllvm/lib/CodeGen/StackProtector.cpp
The file was modifiedclang/lib/CodeGen/BackendUtil.cpp
The file was modifiedllvm/include/llvm/CodeGen/CommandFlags.h
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedllvm/lib/Target/AArch64/AArch64InstrInfo.cpp
Commit 01c5904907318e4c13ac664567f993428602643a by Vitaly Buka
[lit] Print full googletest commad line

Similar to regular output of LIT tests:
https://github.com/llvm/llvm-project/blob/c162f086ba632ffaedfe92d63bf21571bc8ae4da/llvm/utils/lit/lit/TestRunner.py#L1569

Differential Revision: https://reviews.llvm.org/D102899
The file was modifiedllvm/utils/lit/tests/googletest-upstream-format.py
The file was modifiedllvm/utils/lit/tests/googletest-timeout.py
The file was modifiedllvm/utils/lit/lit/formats/googletest.py
The file was modifiedllvm/utils/lit/tests/googletest-format.py
Commit 599282300836c1c3860aeeab63c253f41863a95a by Vitaly Buka
[NFC][sanitizer] Remove unused variable
The file was modifiedcompiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cpp
Commit f8e7b28c99e9e1fdbca6600fc9d9182d7aefa162 by efriedma
[NewPM] Mark BitcodeWriter as required.

The textual IR writer has an equivalent marking.  It looks like this got
missed in e6ea877.
The file was modifiedllvm/include/llvm/Bitcode/BitcodeWriterPass.h
The file was modifiedllvm/test/Other/opt-bisect-new-pass-manager.ll
Commit a52530dd6a6d2aa3b63637ad40e4fce8e89c34c2 by aeubanks
Revert "[NPM] Do not run function simplification pipeline unnecessarily"

This reverts commit 97ab068034161fb35e5c9a7b293bf1e569cf077b.

Depends on D100917, which is to be reverted.
The file was modifiedllvm/lib/Analysis/CGSCCPassManager.cpp
The file was modifiedllvm/lib/Passes/PassRegistry.def
The file was removedllvm/test/Other/new-pass-manager-cgscc-fct-proxy.ll
The file was modifiedllvm/lib/Passes/PassBuilder.cpp
The file was modifiedllvm/include/llvm/Analysis/CGSCCPassManager.h
The file was modifiedllvm/unittests/Analysis/CGSCCPassManagerTest.cpp
Commit f7788e1bff223a58292b8b1d0818dac63b713ead by aeubanks
Revert "[NewPM] Only invalidate modified functions' analyses in CGSCC passes"

This reverts commit d14d84af2f5ebb8ae2188ce6884a29a586dc0a40.

Causes unacceptable memory regressions.
The file was removedllvm/test/Transforms/Inline/analysis-invalidation.ll
The file was modifiedllvm/test/Transforms/Inline/cgscc-incremental-invalidate.ll
The file was modifiedclang/test/CodeGen/thinlto-distributed-newpm.ll
The file was modifiedllvm/lib/Analysis/CGSCCPassManager.cpp
The file was modifiedllvm/lib/Transforms/IPO/Inliner.cpp
The file was modifiedllvm/lib/Transforms/IPO/FunctionAttrs.cpp
The file was modifiedllvm/lib/Transforms/IPO/ArgumentPromotion.cpp
The file was modifiedllvm/test/Other/opt-O3-pipeline-enable-matrix.ll
Commit 40df1b15b4f718d203272290cc831c7b174c1a55 by Lang Hames
[ORC][C-bindings] Replace LLVMOrcJITTargetMachineBuilderDisposeTargetTriple.

The implementation and intent behind freeing the triple string here is the same
as LLVMGetDefaultTargetTriple (and any other owned c string returned from the C
API), so we should use LLVMDisposeMessage for to free the string for
consistency.

Patch by Mats Larsen -- thanks Mats!

Reviewed By: lhames

Differential Revision: https://reviews.llvm.org/D102957
The file was modifiedllvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
The file was modifiedllvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp
The file was modifiedllvm/include/llvm-c/Orc.h
Commit e162dc6f281e817e6dd000be71bfaf6bad358d79 by pklausler
[flang] Fix symbol table bugs with ENTRY statements

Dummy arguments of ENTRY statements in execution parts were
not being created as objects, nor were they being implicitly
typed.

When the symbol corresponding to an alternate ENTRY point
already exists (by that name) due to having been referenced
in an earlier call, name resolution used to delete the extant
symbol.  This isn't the right thing to do -- the extant
symbol will be pointed to by parser::Name nodes in the parse
tree while no longer being part of any Scope.

Differential Review: https://reviews.llvm.org/D102948
The file was modifiedflang/test/Semantics/resolve18.f90
The file was modifiedflang/lib/Semantics/resolve-names.cpp
Commit 5d9ea36baffe682649923d29161cc58ca3d1a243 by i
[UpdateTestChecks] Default --x86_scrub_rip to False

True is a bad default: the useful symbol names and `@GOTPCREL` are scrubbed.

Change the default and add global variable tests to x86-basic.ll
(renamed from x86_function_name.ll since we now also test variables).
I updated some tests to show the differences.

Updated LCPI regex to include Darwin style `LCPI_[0-9]+_[0-9]+` (no
leading dot).

Reviewed By: pengfei

Differential Revision: https://reviews.llvm.org/D102588
The file was modifiedllvm/test/CodeGen/X86/WidenArith.ll
The file was modifiedllvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86_generated_funcs.ll.nogenerated.expected
The file was addedllvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-basic.ll
The file was addedllvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-basic.ll.expected
The file was removedllvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86_function_name.ll.expected
The file was addedllvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-constant-pool.ll
The file was addedllvm/test/tools/UpdateTestChecks/update_llc_test_checks/x86-constant-pool.test
The file was modifiedllvm/utils/UpdateTestChecks/asm.py
The file was modifiedllvm/utils/update_llc_test_checks.py
The file was modifiedllvm/test/CodeGen/X86/abi-isel.ll
The file was removedllvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86_function_name.ll
The file was modifiedllvm/test/CodeGen/X86/2009-03-23-MultiUseSched.ll
The file was removedllvm/test/tools/UpdateTestChecks/update_llc_test_checks/x86-function-name.test
The file was modifiedllvm/test/tools/UpdateTestChecks/update_llc_test_checks/basic.test
The file was modifiedllvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86_generated_funcs.ll.generated.expected
The file was modifiedllvm/test/CodeGen/X86/xor.ll
The file was addedllvm/test/tools/UpdateTestChecks/update_llc_test_checks/Inputs/x86-constant-pool.ll.expected
The file was addedllvm/test/tools/UpdateTestChecks/update_llc_test_checks/x86-basic.test
Commit 7f0acc4e4f97a359f00da67f62f94d1232a0a45c by i
[docs] ld.lld.1: Mention -z nostart-stop-gc
The file was modifiedlld/docs/ld.lld.1
Commit fda4300da8296ed831b3975a49f217a630045760 by Lang Hames
[ORC] Fix race condtition in CoreAPIsTest.

This test has been failing intermittently on some builders, probably due to a
race on the WorkThreads vector. This patch should fix that.
The file was modifiedllvm/unittests/ExecutionEngine/Orc/CoreAPIsTest.cpp
Commit 20634ece159ba60c694149fef95ca13f8a10cc63 by Lang Hames
[ORC] Fix debugging output: printDescription should not have a newline.
The file was modifiedllvm/lib/ExecutionEngine/Orc/Core.cpp
Commit 4272fca2db9c27ab836082f796d281e5e68b0638 by Lang Hames
[ORC] Check for underflow on SymbolStringPtr ref-counts.
The file was modifiedllvm/include/llvm/ExecutionEngine/Orc/SymbolStringPool.h
Commit 86008477a4eb9ecac27f469539c4ac5e0fce44dc by llvm-project
[Polly] Avoid compiler warning. NFC.

Avoid the warning

    /polly/lib/Support/RegisterPasses.cpp:833:3: warning: default label in switch which covers all enumeration values [-Wcovered-switch-default]
      default:
      ^

since all cases are now handled.

Thanks to Luke Benes for reporting.
The file was modifiedpolly/lib/Support/RegisterPasses.cpp
Commit c9c05a91c4843c243d508c39bdfbc5e26f311af2 by sepavloff
[ConstantFolding] Use APFloat for constant folding. NFC

Replace use of host floating types with operations on APFloat when it is
possible. Use of APFloat makes analysis more convenient and facilitates
constant folding in the case of non-default FP environment.

Differential Revision: https://reviews.llvm.org/D102672
The file was modifiedllvm/lib/Analysis/ConstantFolding.cpp
Commit fd5cc418186ab0fc0650ec373fdf016101eba21d by thatlemon
[SelectionDAG] Fix argument copy elision with irregular types

D29668 enabled to avoid a useless copy of the argument value into an alloca if the caller places it in memory (as it often happens on x86) by directly forwarding the pointer to it. This optimization is illegal if the type contains padding bytes: if a truncating store into the alloca is replaced the upper bits are filled with garbage and produce code misbehaving at runtime.

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D102153
The file was modifiedllvm/test/CodeGen/X86/arg-copy-elide.ll
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp