SuccessChanges

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

Summary

  1. jenkins/jobs: Move verify-machineinstrs globalisel to green-dragon-12 (details)
Commit 2f552349709c399d27c5b4c73986f37fad9925b4 by Azharuddin Mohammed
jenkins/jobs: Move verify-machineinstrs globalisel to green-dragon-12

That's the node where rest of the verify-machineinstrs jobs are pinned.
The file was modifiedzorg/jenkins/jobs/jobs/test-suite-verify-machineinstrs-aarch64-globalisel-O0-g

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

Summary

  1. [Clang] Skip adding begin source location for PragmaLoopHint'd loop when (details)
  2. [libc++] Don't trigger unsigned conversion warnings in std::advance (details)
  3. [VectorCombine] scalarize compares with insertelement operand(s) (details)
  4. [lldb/Python] Fix the infinitely looping Python prompt bug (details)
  5. [AIX][compiler-rt] Pick the right form of COMPILER_RT_ALIAS for AIX (details)
  6. [TLI] Add four C++17 delete variants. (details)
  7. Fix ubsan error in tblgen with signed left shift (details)
  8. [MLIR] Rework generate-test-checks.py to attach CHECK lines to the source (test) file. (details)
  9. [MLIR] Remove generated spaces at eof for generate-test-checks.py. (details)
  10. GlobalISel: Use Register (details)
  11. GlobalISel: Make special case handling clearer (details)
  12. [MLIR] Add documentation for generate-check-lines.py (details)
  13. GlobalISel: Use early return and reduce indentation (details)
  14. [mlir] Introduce callback-based builders to SCF Parallel and Reduce ops (details)
  15. [mlir] refactor Linalg LoopNestBuilder to use common infra (details)
  16. Driver: Accept multiple --config options if filenames are the same (details)
  17. [lit] Improve consistency for showing result groups (details)
  18. [Matrix] Add align info to some more loads/stores (NFC). (details)
  19. [PowerPC] Add -m[no-]power10-vector clang and llvm option (details)
  20. GlobalISel: Fix not failing on widening G_INSERT_VECTOR_ELT (details)
  21. [SVE] Eliminate calls to default-false VectorType::get() from Vectorize (details)
  22. [OPENMP]Fix PR46347: several ordered directives in a single region. (details)
  23. remove gold linker (details)
  24. [Clang] Add a "#pragma unroll" test case for correct error reporting (details)
  25. Revert "remove gold linker" (details)
  26. [OPENMP50]Codegen for scan directive in for simd regions. (details)
  27. [SVE] Fix bad FixedVectorType cast in simplifyDivRem (details)
  28. [NFC] Bail out for scalable vectors before calling getNumElements (details)
  29. [SVE] Eliminate calls to default-false VectorType::get() from AArch64 (details)
  30. [lldb/Test] Pass the lldb_tool_dir when setting the lldb-repro substitutions (details)
  31. [MLIR][Standard] Lower `std.dim` with dynamic dimension operand to LLVM (details)
  32. Revert "[OPENMP50]Codegen for scan directive in for simd regions." (details)
  33. [CGP] Add `--match-full-lines` to make sure we don't have a dbg attachment. (details)
  34. [MLIR][Standard] Fix use of `dyn_cast_or_null` (details)
  35. [gicombiner] Allow generated CombinerHelpers to have additional arguments (details)
  36. [gcov] Refactor llvm-cov gcov and add SourceInfo (details)
  37. [gcov] Add -i --intermediate-format (details)
  38. [CallPrinter] Adding heat coloring to CallPrinter (details)
  39. [SVE] Remove invalid calls to VectorType::getNumElements from BasicTTIImpl (details)
  40. [gicombiner] Allow generated combiners to store additional members (details)
  41. Remove the try/catch codepath if `swap` is `noexcept`. (details)
  42. [llvm-cov gcov] Don't suppress .gcov output if .gcda is corrupted (details)
  43. [SelectionDAG] Add MVT::bf16 to getConstantFP() (details)
  44. [mlir] Fix case in MLIRGPUtoSPIRVTransforms (details)
  45. [SVE] Deprecate default false variant of VectorType::get (details)
  46. [flang] Upstream the Mangler module from lowering. (details)
  47. [lldb/Test] Cleanup TestJITLoaderGDB and make it compatible with reproducers (details)
  48. [NFC] Use EXPECT_FALSE(...) in test rather than EXPECT_EQ(false, ...) (details)
  49. lld: remove old test support path (details)
  50. [SVE] Generalize size checks in Verifier to use getElementCount (details)
  51. [MLIR] Add an Op util which returns its name with the dialect stripped. (details)
  52. [gicombiner] Allow disable-rule option to disable all-except-... (details)
  53. test: add library search path to repair the test (details)
  54. [CodeGen][TLS] Set TLS Model for __tls_guard as well. (details)
  55. [builtins][test] Delete unneeded file headers (details)
  56. [lld-macho][test] Fix dylink-lazy.s after 0a5228a02c32cb5b10d43cb154d6d0abaf360ba7 (details)
  57. AMDGPU: Remove intermediate DAG node for trig_preop intrinsic (details)
  58. [ObjectYAML][DWARF] Let writeVariableSizedInteger() return Error. (details)
  59. [lld-macho] Use uint64_t for getSize() instead of size_t (details)
  60. [PowerPC] remove wrong added FIXME in testcases, NFC (details)
  61. Don't assert if we find a dependently-typed variable in the (details)
  62. DR458: Search template parameter scopes in the right order. (details)
  63. AMDGPU/GlobalISel: Fix obvious bug in ported 32-bit udiv/urem (details)
  64. [IR] Add missing GlobalAlias copying of ThreadLocalMode attribute (details)
  65. [DA] propagate loop live-out values that get used in a branch (details)
  66. [DebugInfo] Support parsing and dumping of DWARF64 macro units. (details)
  67. [clang] [MinGW] Link kernel32 once after the last instance of msvcrt (details)
  68. [clang] Don't emit warn_cxx_ms_struct when MSBitfields is enabled globally (details)
  69. [clang] Enable -mms-bitfields by default for mingw targets (details)
  70. [Support] Get process statistics in ExecuteAndWait and Wait (details)
  71. Revert "DR458: Search template parameter scopes in the right order." (details)
  72. [www] Update cxx_dr_status page for recent fixes. (details)
  73. [NFC]][PowerPC] Remove unused intrinsic for old CTR loop pass (details)
  74. [OpenMP][Tool] Header-only multiplexing of OMPT tools (details)
  75. subdirectories should not use cmake project command (details)
  76. [SystemZ] Bugfix in storeLoadCanUseBlockBinary(). (details)
  77. [SafeStack,NFC] Move SafeStackColoring code (details)
  78. [SafeStack,NFC] Fix names after files move (details)
  79. [gn build] Port 6754a0e2edd (details)
  80. [DebugInfo] Unify Cursor usage for all debug line opcodes (details)
  81. [Test] Add missing opportunity for replacement of select with Phi (details)
  82. Use explicitly unsigned zero to prevent from a warning (details)
  83. [MemDep] Also remove load instructions from NonLocalDesCache. (details)
  84. [clangd] Depend on llvm-config for lit tests (details)
  85. [SveEmitter] Add builtins for svtbl2 (details)
  86. [CallPrinter] Fix maxFreq = 0 case (details)
  87. [CallPrinter] Handle freq = 0 case (details)
  88. [TTI] Refactor emitGetActiveLaneMask (details)
  89. [LV] Emit @llvm.get.active.mask for tail-folded loops (details)
  90. [SCCP] Move common code to simplify basic block to helper (NFC). (details)
  91. [NFC] Add API for edge domination check in dom tree (details)
  92. Revert "[LV] Emit @llvm.get.active.mask for tail-folded loops" (details)
  93. Fix LoopIdiomRecognize pass return status (details)
  94. [IR] Don't copy profile metadata in createCallMatchingInvoke() (details)
  95. [FileCheck] Implement * and / operators for ExpressionValue. (details)
  96. [NFC] Run clang-format on clang/test/OpenMP/nvptx_target_codegen.cpp (details)
  97. Return "[InstCombine] Simplify compare of Phi with constant inputs against a constant" (details)
  98. [lldb] Remove xfail aarch64/linux from TestBuiltinTrap.py (details)
  99. [SCCP] Precommit some sext tests (NFC). (details)
  100. [CallPrinter] Remove static constructor. (details)
  101. [AMDGPU] Fix failure in VCC spilling (details)
  102. [llvm-readobj] - Split the printGnuHashTable(). NFCI. (details)
  103. [llvm-readobj] - Do not crash when GnuHashTable->symndx is greater than the dynamic symbols count. (details)
  104. [LSR] Filter for postinc formulae (details)
  105. [SYCL][OpenMP] Implement thread-local storage restriction (details)
  106. Recommit "[LV] Emit @llvm.get.active.lane.mask for tail-folded loops" (details)
  107. Follow up of rGe345d547a0d5, and attempt to pacify buildbot: (details)
  108. Remove global std::strings. NFCI. (details)
  109. [SCCP] Add a few more additional sext tests (NFC). (details)
  110. [OPENMP50]Codegen for scan directive in for simd regions. (details)
  111. [OPENMP]Fix overflow during counting the number of iterations. (details)
  112. Revert "GlobalISel: Make LLT constructors constexpr" (details)
  113. [clang-tidy] warnings-as-error no longer exits with ErrorCount (details)
  114. [InlineCost] InlineCostAnnotationWriterPass introduced (details)
  115. [InlineCost] PrinterPass prints constants to which instructions are simplified (details)
  116. [InlineCost] GetElementPtr with constant operands (details)
  117. Revert "[InlineCost] GetElementPtr with constant operands" (details)
  118. Revert "[InlineCost] PrinterPass prints constants to which instructions are simplified" (details)
  119. Revert "[InlineCost] InlineCostAnnotationWriterPass introduced" (details)
  120. [ARM] Reimplement MVE Tail-Predication pass using @llvm.get.active.lane.mask (details)
  121. ScalarEvolution.h - reduce LoopInfo.h include to forward declarations. NFC. (details)
  122. [X86] Regenerate mixed-ptr tests checks (details)
  123. [AMDGPU] Simplify GCNPassConfig::addOptimizedRegAlloc. NFC. (details)
  124. [OpenMPOPT][NFC] Introducing OMPInformationCache. (details)
  125. [NFC] Move getAll{S,V}GPR{32,128} methods to SIFrameLowering (details)
  126. [clangd] Make use of preamble bounds from the patch inside ReplayPreamble (details)
  127. [AMDGPU] Skip CFIInstructions in SIInsertWaitcnts (details)
  128. [Clang][Driver] Remove gold linker support for PS4 toolchain (details)
  129. [llvm] [CommandLine] Do not suggest really hidden opts in nearest lookup (details)
  130. [llvm] Avoid linking llvm-cfi-verify to duplicate libs (details)
  131. [llvm] Disable linking llvm-exegesis to dylib (details)
  132. [clang-tools-extra] Prevent linking to duplicate .a libs and dylib (details)
  133. [lldb/Test] Fix tests that rely on logfiles with reproducers. (details)
  134. [llvm-cov gcov] Support clang<11 fake 4.2 format (details)
  135. [X86] Change signature of EmitNops. NFC. (details)
  136. [X86] For 32-bit targets, emit two-byte NOP when possible (details)
  137. [xray] Option to omit the function index (details)
  138. [CGP] Reset the debug location when promoting zext(s). (details)
  139. [llvm-readobj] set --elf-cg-profile as alias of --cg-profile (details)
  140. [OpenMP][NFC] Added DeviceID and Event pointer to __tgt_async_info (details)
  141. [lit] Avoid re-iterating result codes in different places (details)
  142. [libc][benchmarks] Link the memory benchmark exes to functions from LLVM libc. (details)
  143. [mlir] [VectorOps] Add create mask integration tests (details)
  144. BreakCriticalEdges for callbr indirect dests (details)
  145. [clang-tidy][NFC] Remove the double look-up on IncludeInserter (details)
  146. [InlineSpiller] add assert about spills post terminators (details)
  147. Revert "[OpenMP][NFC] Added DeviceID and Event pointer to __tgt_async_info" (details)
  148. [flang] Fix out-of-tree builds (details)
  149. [clang-tidy] Prune dead code. NFC. (details)
  150. This is a test commit (details)
  151. Revert 'This is a test commit - ded57e1a06a6ba (details)
  152. [WebAssembly] Fix bug in FixBrTables and use branch analysis utils (details)
  153. [NFC][InstCombine] Negator: do not include unneeded "llvm/IR/DerivedTypes.h" header (details)
  154. [NFC][InstCombine] Negator: add thin negate() wrapped before visit() (details)
  155. [InstCombine] Negator: cache negation results (PR46362) (details)
  156. [InstCombine] Negator: while there, add detection for cycles during negation (details)
  157. [Driver] Delete CC1 -fxray-function-index and clean up some tests (details)
  158. [NFC] Silence compiler warning [-Wmissing-braces]. (details)
  159. Remove code duplication from RegisterContextPOSIX_* (details)
Commit 4676cf444ea2678660ee48279be99efde4bf60e9 by Yuanfang Chen
[Clang] Skip adding begin source location for PragmaLoopHint'd loop when
the range start is already set

The range start could be set already in some invalid cases. Fixes
PR46336.
The file was modifiedclang/lib/Parse/ParseStmt.cpp
Commit 12b01ab7fa10939d67ac7cb2da1d3ca8a41b5fcd by Louis Dionne
[libc++] Don't trigger unsigned conversion warnings in std::advance

The Standard documents the signature of std::advance as

    template <class Iter, class Distance>
    constexpr void advance(Iter& i, Distance n);

Furthermore, it does not appear to put any restriction on what the type
of Distance should be. While it is understood that it should usually
be std::iterator_traits::difference_type, I couldn't find any wording
that mandates that. Similarly, I couldn't find wording that forces the
distance to be a signed type.

This patch changes std::advance to accept any type in the second argument,
which appears to be what the Standard mandates. We then coerce it to the
iterator's difference type, but that's an implementation detail.

Differential Revision: https://reviews.llvm.org/D81425
The file was modifiedlibcxx/include/iterator
The file was modifiedlibcxx/test/std/iterators/iterator.primitives/iterator.operations/advance.pass.cpp
Commit ed67f5e7ab59d378bb09153a0df132333c43c9cb by spatel
[VectorCombine] scalarize compares with insertelement operand(s)

Generalize scalarization (recently enhanced with D80885)
to allow compares as well as binops.
Similar to binops, we are avoiding scalarization of a loaded
value because that could avoid a register transfer in codegen.
This requires 1 extra predicate that I am aware of: we do not
want to scalarize the condition value of a vector select. That
might also invert a transform that we do in instcombine that
prefers a vector condition operand for a vector select.

I think this is the final step in solving PR37463:
https://bugs.llvm.org/show_bug.cgi?id=37463

Differential Revision: https://reviews.llvm.org/D81661
The file was modifiedllvm/test/Transforms/VectorCombine/X86/scalarize-cmp.ll
The file was modifiedllvm/lib/Transforms/Vectorize/VectorCombine.cpp
Commit 4dd3dfe8e3266459d855008af78d611071ff99e2 by Jonas Devlieghere
[lldb/Python] Fix the infinitely looping Python prompt bug

Executing commands below will get you bombarded by a wall of Python
command prompts (>>> ).

$ echo 'foo' | ./bin/lldb -o script
$ cat /tmp/script
script
print("foo")
$ lldb --source /tmp/script

The issue is that our custom input reader doesn't handle EOF. According
to the Python documentation, file.readline always includes a trailing
newline character unless the file ends with an incomplete line. An empty
string signals EOF. This patch raises an EOFError when that happens.

[1] https://docs.python.org/2/library/stdtypes.html#file.readline

Differential revision: https://reviews.llvm.org/D81898
The file was addedlldb/test/Shell/ScriptInterpreter/Python/eof.test
The file was modifiedlldb/source/Interpreter/embedded_interpreter.py
Commit 8aef01eed41b66039926ea8e72bf927cfe240762 by daltenty
[AIX][compiler-rt] Pick the right form of COMPILER_RT_ALIAS for AIX

Summary: we use the alias attribute, similar to what is done for ELF.

Reviewers: ZarkoCA, jasonliu, hubert.reinterpretcast, sfertile

Reviewed By: jasonliu

Subscribers: dberris, aheejin, mstorsjo, #sanitizers

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D81120
The file was modifiedcompiler-rt/lib/builtins/int_lib.h
Commit 6bc2b042f4a9e8d912901679bd4614d46f6fafed by yamauchi
[TLI] Add four C++17 delete variants.

Summary:
delete(void*, unsigned int, align_val_t)
delete(void*, unsigned long, align_val_t)
delete[](void*, unsigned int, align_val_t)
delete[](void*, unsigned long, align_val_t)

Differential Revision: https://reviews.llvm.org/D81853
The file was modifiedllvm/lib/Analysis/TargetLibraryInfo.cpp
The file was modifiedllvm/include/llvm/Analysis/TargetLibraryInfo.def
The file was modifiedllvm/test/Transforms/InstCombine/malloc-free-delete.ll
The file was modifiedllvm/unittests/Analysis/TargetLibraryInfoTest.cpp
The file was modifiedllvm/lib/Analysis/MemoryBuiltins.cpp
Commit 3f0c9c1634237834af6b74e9319cb15f6ab89d11 by Stanislav.Mekhanoshin
Fix ubsan error in tblgen with signed left shift

UBSAN complains when tblgen performs SHL of a negative
value.

Differential Revision: https://reviews.llvm.org/D81952
The file was modifiedllvm/lib/Target/AMDGPU/SMInstructions.td
The file was modifiedllvm/lib/TableGen/Record.cpp
Commit 25b3806788aed8633fa32afbe842b0dd48552938 by timshen
[MLIR] Rework generate-test-checks.py to attach CHECK lines to the source (test) file.

Summary:
This patch adds --source flag to indicate the source file. Then it tries to find insert
points in the source file and insert corresponding checks at those places.

Example output from Tensorflow XLA:

// -----

// CHECK-LABEL:   func @main.3(
// CHECK-SAME:                 %[[VAL_0:.*]]: memref<2x2xf32> {xla_lhlo.params = 0 : index},
// CHECK-SAME:                 %[[VAL_1:.*]]: memref<16xi8> {xla_lhlo.alloc = 0 : index, xla_lhlo.liveout = true}) {
// CHECK:           %[[VAL_2:.*]] = constant 0 : index
// CHECK:           %[[VAL_3:.*]] = constant 0 : index
// CHECK:           %[[VAL_4:.*]] = std.view %[[VAL_1]]{{\[}}%[[VAL_3]]][] : memref<16xi8> to memref<2x2xf32>
// CHECK:           "xla_lhlo.tanh"(%[[VAL_0]], %[[VAL_4]]) : (memref<2x2xf32>, memref<2x2xf32>) -> ()
// CHECK:           return
// CHECK:         }
func @main(%value0: tensor<2x2xf32>) -> tensor<2x2xf32> {
  %res = "xla_hlo.tanh"(%value0) : (tensor<2x2xf32>) -> tensor<2x2xf32>
  return %res : tensor<2x2xf32>
}

Differential Revision: https://reviews.llvm.org/D81903
The file was modifiedmlir/utils/generate-test-checks.py
Commit a6150de4473a47500898831fc5c71a4e472f15ea by timshen
[MLIR] Remove generated spaces at eof for generate-test-checks.py.
The file was modifiedmlir/utils/generate-test-checks.py
Commit d98a7c3cf4610e5963a05e5d5a12bf43fea8e22c by Matthew.Arsenault
GlobalISel: Use Register
The file was modifiedllvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h
Commit 91bec1d385c3d460866f98828f3c4965d9a3289e by Matthew.Arsenault
GlobalISel: Make special case handling clearer

The special case here is really G_UNMERGE_VALUES, not G_EXTRACT. The
other opcodes can hardcode index 1 like G_EXTRACT.
The file was modifiedllvm/include/llvm/CodeGen/GlobalISel/LegalizationArtifactCombiner.h
Commit b877f33d93a2ca87a8f280baebd2e51abb5c562a by timshen
[MLIR] Add documentation for generate-check-lines.py
The file was modifiedmlir/utils/generate-test-checks.py
Commit 8a3340d25d19928086b9c0a537c724998d75e941 by Matthew.Arsenault
GlobalISel: Use early return and reduce indentation
The file was modifiedllvm/lib/CodeGen/GlobalISel/Utils.cpp
Commit 3adced3494d07ac6072a9336cb8ae3802f660c7a by zinenko
[mlir] Introduce callback-based builders to SCF Parallel and Reduce ops

Similarly to `scf::ForOp`, introduce additional `function_ref` arguments to
`::build` functions of SCF `ParallelOp` and `ReduceOp`. The provided functions
will be called to construct the body of the respective operations while
constructing the operation itself. Exercise them in LoopUtils.

Differential Revision: https://reviews.llvm.org/D81872
The file was modifiedmlir/include/mlir/Dialect/SCF/SCFOps.td
The file was modifiedmlir/lib/Transforms/Utils/LoopUtils.cpp
The file was modifiedmlir/lib/Dialect/SCF/SCF.cpp
Commit b4bc72afb78477dca7ba06b98b1b0002716297b7 by zinenko
[mlir] refactor Linalg LoopNestBuilder to use common infra

Recent work has introduced support for constructing loops via `::build` with
callbacks that construct loop bodies using only the core OpBuilder. This is now
supported on all loop types that Linalg lowers to. Refactor LoopNestBuilder in
Linalg to rely on this functionality instead of using a custom EDSC-based
approach to creating loop nests.

The specialization targeting parallel loops is also simplified by factoring out
the recursive call into a separate static function and considering only two
alternatives: top-level loop is parallel or sequential.

This removes the last remaining in-tree use of edsc::LoopBuilder, which is now
deprecated and will be removed soon.

Differential Revision: https://reviews.llvm.org/D81873
The file was modifiedmlir/include/mlir/Dialect/Linalg/Utils/Utils.h
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Tiling.cpp
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Loops.cpp
The file was modifiedmlir/lib/Dialect/Linalg/Utils/Utils.cpp
Commit d970ab63e22eb5918774953da6b99ac27e5832a0 by tstellar
Driver: Accept multiple --config options if filenames are the same

Summary:
We're trying to use the --config options to pass distro specific
options for Fedora via the CFLAGS variable.  However, some projects
end up using the CFLAGS variable multiple times in their command line,
which leads to an error when --config is used.

This patch resolves this issue by allowing more than one --config option
on the command line as long as the file names are the same.

Reviewers: sepavloff, hfinkel

Reviewed By: sepavloff

Subscribers: cfe-commits, llvm-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D81424
The file was modifiedclang/test/Driver/config-file.c
The file was modifiedclang/lib/Driver/Driver.cpp
Commit 7837de13943ff28648f0a443e8ba21c81bbe9679 by julian.lettner
[lit] Improve consistency for showing result groups

Before this change we showed all result groups with a code that was not
explicitly hard-coded set.  This set missed the FLAKYPASS result code.

Let's generalize the code to always show failures and the additionally
requested result codes.
The file was modifiedllvm/utils/lit/lit/main.py
The file was modifiedllvm/utils/lit/lit/cl_arguments.py
The file was modifiedllvm/utils/lit/tests/custom-result-category.py
Commit 08f62ff8ef3c8892a68073fe80ac6d8ef95201f2 by flo
[Matrix] Add align info to some more loads/stores (NFC).

Some tests were missing alignment info. Subsequent changes properly
preserve the set alignment. Set it properly beforehand, to avoid
unnecessary test changes.
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/multiply-fused-multiple-blocks.ll
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/propagate-mixed-users.ll
The file was modifiedllvm/test/Transforms/LowerMatrixIntrinsics/propagate-forward.ll
Commit 37e72f47a41d83bd2509798a304f2f30ae094488 by saghir
[PowerPC] Add -m[no-]power10-vector clang and llvm option

Summary: This patch adds command line option for enabling power10-vector support.

Reviewers: hfinkel, nemanjai, lei, amyk, #powerpc

Reviewed By: lei, amyk, #powerpc

Subscribers: wuzish, kbarton, hiraditya, shchenz, cfe-commits, llvm-commits

Tags: #llvm, #clang, #powerpc

Differential Revision: https://reviews.llvm.org/D80758
The file was modifiedllvm/lib/Target/PowerPC/PPCSubtarget.h
The file was modifiedclang/lib/Basic/Targets/PPC.cpp
The file was modifiedclang/test/Driver/ppc-dependent-options.cpp
The file was modifiedclang/lib/Basic/Targets/PPC.h
The file was modifiedclang/test/Driver/ppc-features.cpp
The file was modifiedllvm/lib/Target/PowerPC/PPC.td
The file was modifiedllvm/lib/Target/PowerPC/PPCSubtarget.cpp
The file was modifiedclang/include/clang/Driver/Options.td
Commit e4f19d1dda90e546737e0e7e9beada51fb74b27e by Matthew.Arsenault
GlobalISel: Fix not failing on widening G_INSERT_VECTOR_ELT

This doesn't actually handled type idx 0, but was reporting Legalized
on it. No test changes because nothing was trying to use this.
The file was modifiedllvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
Commit ff628f5f5ede319a170d586ce97a349fcb2b81f6 by ctetreau
[SVE] Eliminate calls to default-false VectorType::get() from Vectorize

Reviewers: efriedma, fhahn, spatel, sdesmalen, kmclaughlin

Reviewed By: efriedma

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

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81521
The file was modifiedllvm/lib/Transforms/Vectorize/LoopVectorize.cpp
The file was modifiedllvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Commit 3488e8c21cec8bac7dabd8f6b7c642dbace31d65 by a.bataev
[OPENMP]Fix PR46347: several ordered directives in a single region.

Summary:
According to OpenMP, During execution of an iteration of a worksharing-loop or a loop nest within a worksharing-loop, simd, or worksharing-loop SIMD region, a thread must not execute more than one ordered region corresponding to an ordered construct without a depend clause.
Need to report an error in this case.

Reviewers: jdoerfert

Subscribers: yaxunl, guansong, sstefan1, cfe-commits, caomhin

Tags: #clang

Differential Revision: https://reviews.llvm.org/D81951
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
The file was modifiedclang/test/OpenMP/ordered_messages.cpp
The file was modifiedclang/lib/Sema/SemaOpenMP.cpp
Commit 719c87edc58018a0e9f3ee04305e081d4b582c2b by Yuanfang Chen
remove gold linker
The file was modifiedclang/lib/Driver/ToolChains/PS4CPU.cpp
The file was modifiedclang/test/Driver/ps4-linker-non-win.c
The file was modifiedclang/test/Driver/ps4-linker-win.c
Commit 8c6c606cdc72c3ddd55f382d91ef1afc3cb9f2a8 by Yuanfang Chen
[Clang] Add a "#pragma unroll" test case for correct error reporting

For PR46336.
The file was modifiedclang/test/Parser/pragma-unroll.cpp
Commit 8d4a806ef0b988200111b7d99f792361bcd3f7d1 by Yuanfang Chen
Revert "remove gold linker"

This reverts commit 719c87edc58018a0e9f3ee04305e081d4b582c2b.

Checked in by accident. Sorry.
The file was modifiedclang/test/Driver/ps4-linker-win.c
The file was modifiedclang/lib/Driver/ToolChains/PS4CPU.cpp
The file was modifiedclang/test/Driver/ps4-linker-non-win.c
Commit 6e78a3086a7f563cc55d2ba83a8697b3320857fb by a.bataev
[OPENMP50]Codegen for scan directive in for simd regions.

Summary:
Added codegen for scan directives in parallel for regions.

Emits the code for the directive with inscan reductions.
Original code:
```
#pragma omp for simd reduction(inscan, op : ...)
for(...) {
  <input phase>;
  #pragma omp scan (in)exclusive(...)
  <scan phase>
}
```
is transformed to something:
```
size num_iters = <num_iters>;
<type> buffer[num_iters];
#pragma omp for simd
for (i: 0..<num_iters>) {
  <input phase>;
  buffer[i] = red;
}
#pragma omp barrier
for (int k = 0; k != ceil(log2(num_iters)); ++k)
for (size cnt = last_iter; cnt >= pow(2, k); --k)
  buffer[i] op= buffer[i-pow(2,k)];
#pragma omp for simd
for (0..<num_iters>) {
  red = InclusiveScan ? buffer[i] : buffer[i-1];
  <scan phase>;
}
```

Reviewers: jdoerfert

Subscribers: yaxunl, guansong, sstefan1, cfe-commits, caomhin

Tags: #clang

Differential Revision: https://reviews.llvm.org/D81658
The file was modifiedclang/lib/CodeGen/CGStmtOpenMP.cpp
The file was addedclang/test/OpenMP/for_simd_scan_codegen.cpp
Commit 747486991cc452f7a1861e4a7a30d069d5f34aab by ctetreau
[SVE] Fix bad FixedVectorType cast in simplifyDivRem

Summary:
simplifyDivRem attempts to walk a VectorType elementwise. Ensure that it
only does so for FixedVectorType

Reviewers: efriedma, spatel, lebedev.ri, david-arm, kmclaughlin

Reviewed By: spatel, david-arm

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

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81856
The file was modifiedllvm/lib/Analysis/InstructionSimplify.cpp
Commit b265cad93e70815cfad5eaaacfb095276a9a4213 by ctetreau
[NFC] Bail out for scalable vectors before calling getNumElements

Summary:
Move the bail out logic to before constructing the Result and Lane
vectors. This is both potentially faster, and avoids calling
getNumElements on a potentially scalable vector

Reviewers: efriedma, sunfish, chandlerc, c-rhodes, fpetrogalli

Reviewed By: fpetrogalli

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81619
The file was modifiedllvm/lib/Analysis/ConstantFolding.cpp
Commit 616d8d942be495693aaa09bf4d91415ee7942ec4 by ctetreau
[SVE] Eliminate calls to default-false VectorType::get() from AArch64

Reviewers: efriedma, c-rhodes, david-arm, samparker, greened

Reviewed By: efriedma

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

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81518
The file was modifiedllvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
Commit c0f1dcf31ee853c33e214d54f12658cf852bf288 by Jonas Devlieghere
[lldb/Test] Pass the lldb_tool_dir when setting the lldb-repro substitutions

Otherwise LIT can't find the lldb-repro script in standalone builds.
The file was modifiedlldb/test/Shell/helper/toolchain.py
Commit 0990f1a3adefb6121573c63fec4879dc2b2010c0 by frgossen
[MLIR][Standard] Lower `std.dim` with dynamic dimension operand to LLVM

Implement the missing lowering from `std.dim` to the LLVM dialect in case of a
dynamic dimension.

Differential Revision: https://reviews.llvm.org/D81834
The file was modifiedmlir/include/mlir/Conversion/StandardToLLVM/ConvertStandardToLLVM.h
The file was modifiedmlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
The file was modifiedmlir/lib/Dialect/StandardOps/IR/Ops.cpp
The file was modifiedmlir/test/Conversion/StandardToLLVM/convert-dynamic-memref-ops.mlir
Commit 0f631bd3bb6496fbca96a450719a9e99837de6c0 by a.bataev
Revert "[OPENMP50]Codegen for scan directive in for simd regions."

This reverts commit 6e78a3086a7f563cc55d2ba83a8697b3320857fb to solve
the problem with mem leak.
The file was removedclang/test/OpenMP/for_simd_scan_codegen.cpp
The file was modifiedclang/lib/CodeGen/CGStmtOpenMP.cpp
Commit 6a5641eff6cd2069e7d64cdb8507bad60cb2894a by ditaliano
[CGP] Add `--match-full-lines` to make sure we don't have a dbg attachment.
The file was modifiedllvm/test/Transforms/CodeGenPrepare/X86/promoted-trunc-loc.ll
Commit 6f2943fb1960a698b8fb876fdcc10f4508fd45f6 by frgossen
[MLIR][Standard] Fix use of `dyn_cast_or_null`

The value may be a function argument in which case `getDefiningOp` will return a
`nullptr`.

Differential Revision: https://reviews.llvm.org/D81965
The file was modifiedmlir/lib/Dialect/StandardOps/IR/Ops.cpp
Commit 28ebdf1a02eb26f1fc539991e97b41510bfd031f by daniel_l_sanders
[gicombiner] Allow generated CombinerHelpers to have additional arguments

Summary:
This allows combiners to delegate to other helpers or depend
on additional information. It's not great as an overall
solution though as callers must provide the argument on every call, even for
static data like an additional helper. Another patch will follow to
support additional members of the generated combiner.

Reviewers: aditya_nandakumar, bogner, aemerson, paquette, volkan, arsenm

Reviewed By: aditya_nandakumar

Subscribers: wdng, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81862
The file was modifiedllvm/utils/TableGen/GICombinerEmitter.cpp
The file was modifiedllvm/include/llvm/Target/GlobalISel/Combine.td
Commit 4cd7ba7eca194feccc80413d3b8021ebd03a4f2d by maskray
[gcov] Refactor llvm-cov gcov and add SourceInfo
The file was modifiedllvm/lib/ProfileData/GCOV.cpp
The file was modifiedllvm/test/tools/llvm-cov/llvm-cov.test
The file was modifiedllvm/include/llvm/ProfileData/GCOV.h
The file was modifiedllvm/tools/llvm-cov/gcov.cpp
Commit def21563895d757c7769de41d4ee8d9cb99714db by maskray
[gcov] Add -i --intermediate-format

Between gcov 4.9~8, `gcov -i $file` prints coverage information to
$file.gcov in an intermediate text format (single file, instead of
$source.gcov for each source file).

lcov newer than 2019-05-24 detects -i support and uses it to increase
processing speed.  gcov 9 (GCC r265587) removed --intermediate-format
and -i was changed to mean --json-format. However, we consider this
format still useful and support it. geninfo (part of lcov) supports this
format even if we announce that we are compatible with gcov 9.0.0
The file was modifiedllvm/lib/ProfileData/GCOV.cpp
The file was addedllvm/test/tools/llvm-cov/gcov-intermediate-format.test
The file was modifiedllvm/test/tools/llvm-cov/gcov-8.c
The file was modifiedllvm/tools/llvm-cov/gcov.cpp
The file was modifiedllvm/include/llvm/ProfileData/GCOV.h
Commit 369d00df60dce4b107734a061c299971972ae55d by knaumov
[CallPrinter] Adding heat coloring to CallPrinter

This patch introduces the heat coloring of the Call Printer which is based
on the relative "hotness" of each function. The patch is a part of sequence of
three patches, related to graphs Heat Coloring.
Another feature added is the flag similar to "-cfg-dot-filename-prefix",
which allows to write the graph into a named .pdf

Reviewers: rcorcs, apilipenko, davidxl, sfertile, fedor.sergeev, eraman, bollu

Differential Revision: https://reviews.llvm.org/D77172
The file was modifiedllvm/test/Other/heat-colors-graphs.ll
The file was modifiedllvm/include/llvm/Analysis/HeatUtils.h
The file was addedllvm/test/Other/heat-colors-multigraph.ll
The file was modifiedllvm/lib/Analysis/CallPrinter.cpp
The file was modifiedllvm/lib/Analysis/HeatUtils.cpp
Commit b3e77c6d55853eea5f5c32ec8a3510c0b0e438e1 by ctetreau
[SVE] Remove invalid calls to VectorType::getNumElements from BasicTTIImpl

Summary:
Most of these operations are reasonable for scalable vectors. Due to
this, we have decided not to change the interface to specifically take
FixedVectorType despite the fact that the current implementations make
fixed width assumptions. Instead, we cast to FixedVectorType and assert
in the body. If a developer makes some change in the future that causes
one of these asserts to fire, they should either change their code or
make the function they are trying to call handle scalable vectors.

Reviewers: efriedma, samparker, RKSimon, craig.topper, sdesmalen, c-rhodes

Reviewed By: efriedma

Subscribers: tschuett, rkruppe, psnobl, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81495
The file was modifiedllvm/include/llvm/CodeGen/BasicTTIImpl.h
Commit e35ba09961c89faa4801b45c33b70a8b3a64fe84 by daniel_l_sanders
[gicombiner] Allow generated combiners to store additional members

Summary:
Adds the ability to add members to a generated combiner via
a State base class. In the current AArch64PreLegalizerCombiner
this is used to make Helper available without having to
provide it to every call.

As part of this, split the command line processing into a
separate object so that it still only runs once even though
the generated combiner is constructed more frequently.

Depends on D81862

Reviewers: aditya_nandakumar, bogner, volkan, aemerson, paquette, arsenm

Reviewed By: arsenm

Subscribers: jvesely, wdng, nhaehnle, kristof.beyls, hiraditya, kerbowa, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81863
The file was modifiedllvm/lib/Target/AArch64/GISel/AArch64PostLegalizerCombiner.cpp
The file was modifiedllvm/lib/Target/AArch64/GISel/AArch64PreLegalizerCombiner.cpp
The file was modifiedllvm/include/llvm/Target/GlobalISel/Combine.td
The file was modifiedllvm/utils/TableGen/GICombinerEmitter.cpp
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUPreLegalizerCombiner.cpp
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPURegBankCombiner.cpp
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp
The file was modifiedllvm/lib/Target/AArch64/AArch64Combine.td
Commit ada2a8ea4a9c5b2141c30c77b80b85945e346999 by mcypark
Remove the try/catch codepath if `swap` is `noexcept`.

Summary:
In the case where `swap` is `noexcept`, we should avoid the extension to provide strong-exception guarantee.

Fixes https://bugs.llvm.org/show_bug.cgi?id=46342

Reviewers: #libc, ldionne

Reviewed By: #libc, ldionne

Subscribers: dexonsmith, mclow.lists, miscco, ldionne, zoecarver, libcxx-commits

Tags: #libc

Differential Revision: https://reviews.llvm.org/D81954
The file was modifiedlibcxx/include/variant
Commit 7f7cb79b57838155a2faf46300491d45eedf8907 by maskray
[llvm-cov gcov] Don't suppress .gcov output if .gcda is corrupted

If .gcda is corrupted, gcov continues to produce a .gcov and just
assumes execution counts are zeros. This is reasonable, because the
program can corrupt its .gcda output. The code path should be similar to
the code path without .gcda.
The file was modifiedllvm/tools/llvm-cov/gcov.cpp
The file was modifiedllvm/include/llvm/ProfileData/GCOV.h
The file was modifiedllvm/lib/ProfileData/GCOV.cpp
The file was modifiedllvm/test/tools/llvm-cov/llvm-cov.test
Commit 7e01675ea50ec88eb78cd6fcb4017baa614027c0 by aaron.smith
[SelectionDAG] Add MVT::bf16 to getConstantFP()

Summary:
This was probably overlooked in recent bfloat patches.
Needed to handle bf16 constants in SelectionDAG.

  ConstantFP:bf16<APFloat(0)>

Reviewers: stuij

Reviewed By: stuij

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81779
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
Commit cd93906f93e6ff8c6619e0551b86a55ff3f4eafc by antiagainst
[mlir] Fix case in MLIRGPUtoSPIRVTransforms

This patch changes the casing of MLIRGPUtoSPIRVTransforms
to be consistent with other transforms libraries.

Differential Revision: https://reviews.llvm.org/D81902
The file was modifiedmlir/lib/Conversion/GPUToSPIRV/CMakeLists.txt
Commit eb81c85afdcd3aa6d5e3c1ab73821a659630b799 by ctetreau
[SVE] Deprecate default false variant of VectorType::get

Reviewers: efriedma, fpetrogalli, kmclaughlin, huntergr

Reviewed By: fpetrogalli

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

Tags: #llvm, #clang

Differential Revision: https://reviews.llvm.org/D80342
The file was modifiedllvm/unittests/Analysis/VectorUtilsTest.cpp
The file was modifiedllvm/unittests/FuzzMutate/OperationsTest.cpp
The file was modifiedllvm/unittests/CodeGen/LowLevelTypeTest.cpp
The file was modifiedclang/lib/CodeGen/CGBuiltin.cpp
The file was modifiedllvm/unittests/IR/ConstantsTest.cpp
The file was modifiedllvm/include/llvm/IR/DerivedTypes.h
The file was modifiedllvm/unittests/IR/VectorTypesTest.cpp
The file was modifiedllvm/unittests/IR/InstructionsTest.cpp
The file was modifiedllvm/unittests/IR/PatternMatch.cpp
The file was modifiedllvm/unittests/IR/IRBuilderTest.cpp
Commit 30db1776935ef921314937313fe9ec9dac48b693 by eschweitz
[flang] Upstream the Mangler module from lowering.

This upstreams the internal name mangling used in the bridge to generate
unique names from symbols.

Replace InternalNamesTest with the actual, functional unittest.

Differential revision: https://reviews.llvm.org/D81764
The file was modifiedflang/lib/Lower/CMakeLists.txt
The file was modifiedflang/include/flang/Optimizer/Support/InternalNames.h
The file was addedflang/lib/Lower/Mangler.cpp
The file was modifiedflang/unittests/Optimizer/InternalNamesTest.cpp
The file was addedflang/include/flang/Lower/Mangler.h
The file was modifiedflang/lib/Optimizer/Support/InternalNames.cpp
Commit c151230533e07b8fb3dd20b9a83ba0d79677f54c by Jonas Devlieghere
[lldb/Test] Cleanup TestJITLoaderGDB and make it compatible with reproducers
The file was modifiedlldb/test/API/functionalities/jitloader_gdb/TestJITLoaderGDB.py
Commit 1a1849c99b894aa20294713ba935a340ba181aa0 by ctetreau
[NFC] Use EXPECT_FALSE(...) in test rather than EXPECT_EQ(false, ...)

Summary: Silence GCC -Wconversion-null warning from GTest

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81976
The file was modifiedllvm/unittests/IR/ModuleTest.cpp
Commit 73312976ad8c541d2bb769c26f1172ccc26ad531 by Saleem Abdulrasool
lld: remove old test support path

This removes the stub library that lld injected to satisfy the
dependency on the libSystem.  Now with TBD support, we can provide the
stub library to permit the tests to function properly as they would on a
real system.

Reviewed By: smeenai
Differential Revision: https://reviews.llvm.org/D81418
The file was modifiedlld/test/MachO/symbol-order.s
The file was modifiedlld/MachO/InputFiles.h
The file was modifiedlld/test/MachO/link-search-order.s
The file was modifiedlld/MachO/InputFiles.cpp
The file was modifiedlld/MachO/Driver.cpp
Commit 8e204f807b9df3c0a6fd14fcb038a46591b23f0b by ctetreau
[SVE] Generalize size checks in Verifier to use getElementCount

Summary:
Attempts to call getNumElements on scalable vectors identified by test
LLVM.Other::scalable-vectors-core-ir.ll. Since these checks are all
attempting to find if two vectors are the same size, calling
getElementCount will only increase safety.

Reviewers: efriedma, aprantl, reames, kmclaughlin, sdesmalen

Reviewed By: efriedma

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

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81895
The file was modifiedllvm/lib/IR/Verifier.cpp
Commit 7b226fde6781aea59400aef880764c4632ee3b64 by lucyfox
[MLIR] Add an Op util which returns its name with the dialect stripped.

Differential Revision: https://reviews.llvm.org/D81435
The file was modifiedmlir/lib/IR/MLIRContext.cpp
The file was modifiedmlir/include/mlir/IR/OperationSupport.h
The file was modifiedmlir/lib/IR/Operation.cpp
Commit 778db88723d77e5ec1d55a57d0ea979ead988cf4 by daniel_l_sanders
[gicombiner] Allow disable-rule option to disable all-except-...

Summary:
Adds two features to the generated rule disable option:
- '*' - Disable all rules
- '!<foo>' - Re-enable rule(s)
  - '!foo' - Enable rule named 'foo'
  - '!5' - Enable rule five
  - '!4-9' - Enable rule four to nine
  - '!foo-bar' - Enable rules from 'foo' to (and including) 'bar'
(the '!' is available to the generated disable option but is not part of the underlying and determines whether to call setRuleDisabled() or setRuleEnabled())

This is intended to support unit testing of combine rules so
that you can do:
  GeneratedCfg.setRuleDisabled("*")
  GeneratedCfg.setRuleEnabled("foo")
to ensure only a specific rule is in effect. The rule is still
required to be included in a combiner though

Also added --...-only-enable-rule=X,Y which is effectively an
alias for --...-disable-rule=*,!X,!Y and as such interacts
properly with disable-rule.

Reviewers: aditya_nandakumar, bogner, volkan, aemerson, paquette, arsenm

Subscribers: wdng, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81889
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/prelegalizercombiner-copy-prop-disabled.mir
The file was modifiedllvm/utils/TableGen/GICombinerEmitter.cpp
Commit 0a5228a02c32cb5b10d43cb154d6d0abaf360ba7 by Saleem Abdulrasool
test: add library search path to repair the test

Update the test to no longer rely on the testing workaround in the
linker and use the external libSystem stub.
The file was modifiedlld/test/MachO/dylink-lazy.s
Commit 4a1776979fd8e9473e433d7ec6f2bbf4bf9523ff by JunMa
[CodeGen][TLS] Set TLS Model for __tls_guard as well.

Differential Revision: https://reviews.llvm.org/D81543
The file was modifiedclang/lib/CodeGen/CodeGenModule.h
The file was modifiedclang/lib/CodeGen/CodeGenModule.cpp
The file was removedclang/test/CodeGen/tls-model.c
The file was modifiedclang/test/CodeGenCXX/ms-thread_local.cpp
The file was modifiedclang/lib/CodeGen/MicrosoftCXXABI.cpp
The file was addedclang/test/CodeGen/tls-model.cpp
The file was modifiedclang/lib/CodeGen/ItaniumCXXABI.cpp
Commit 70f9cfc857f14ce7ae4057aea7b3568e6aa41d38 by maskray
[builtins][test] Delete unneeded file headers

We don't add file headers to tests. The comments are useless as well -
their purpose can be easily inferred from the filenames.
The file was modifiedcompiler-rt/test/builtins/Unit/arm/aeabi_uidivmod_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/fixunstfsi_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/mulxc3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/powixf2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/umoddi3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/modsi3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/ctzti2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/divdi3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/mulosi4_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/fixsfdi_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/arm/aeabi_frsub_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/adddf3vfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/subdf3vfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/powidf2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/negvsi2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/ctzsi2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/eqtf2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/trunctfdf2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/divdc3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/extendsfdf2vfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/divdf3vfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/arm/aeabi_cfcmpeq_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/endianness.h
The file was modifiedcompiler-rt/test/builtins/Unit/muldc3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/mulvti3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/fixtfti_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/divtc3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/eqsf2vfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/lesf2vfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/fixunsxfti_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/arm/aeabi_drsub_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/divsi3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/arm/aeabi_idivmod_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/ledf2vfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/ashrdi3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/unordsf2vfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/floatsisfvfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/floatuntidf_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/floatuntisf_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/ltdf2vfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/arm/call_apsr.S
The file was modifiedcompiler-rt/test/builtins/Unit/powitf2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/trampoline_setup_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/ffssi2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/nesf2vfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/fixunstfdi_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/mulvdi3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/compiler_rt_logbf_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/umodti3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/cmpdi2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/popcountti2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/netf2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/divsc3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/floatundixf_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/fixunsdfsivfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/trunctfsf2_test.c
The file was modifiedcompiler-rt/test/profile/profile_test.h
The file was modifiedcompiler-rt/test/builtins/Unit/floatdixf_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/addsf3vfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/floatundisf_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/floatdisf_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/fixunsdfdi_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/floatunsitf_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/bswapsi2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/gtsf2vfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/mulsf3vfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/truncdfsf2vfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/divdf3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/gesf2vfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/udivsi3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/negsf2vfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/extenddftf2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/fp_test.h
The file was modifiedcompiler-rt/test/builtins/Unit/lttf2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/udivti3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/muldi3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/multi3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/arm/aeabi_cdcmpeq_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/subsf3vfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/lshrti3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/divmodsi4_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/floatuntitf_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/unorddf2vfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/mulsc3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/truncdfsf2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/floatditf_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/subtf3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/ltsf2vfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/arm/aeabi_cfcmple_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/floatsitf_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/fixsfsivfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/fixxfti_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/muloti4_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/subvsi3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/absvsi2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/extendhfsf2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/enable_execute_stack_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/floatunssidfvfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/fixunssfsi_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/arm/call_apsr.h
The file was modifiedcompiler-rt/test/builtins/Unit/riscv/mulsi3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/fixsfti_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/comparedf2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/fixdfti_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/fixtfdi_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/unordtf2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/floatdidf_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/ashldi3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/negvdi2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/fixdfsivfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/muldf3vfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/divtf3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/udivmodsi4_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/mulodi4_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/cpu_model_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/floatunssisfvfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/truncsfhf2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/fixtfsi_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/fixunsxfsi_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/arm/aeabi_uldivmod_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/clzdi2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/subvti3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/floattidf_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/negdf2vfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/compiler_rt_logb_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/mulvsi3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/extendsftf2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/bswapdi2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/gcc_personality_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/ashlti3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/floatsidfvfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/multf3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/moddi3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/ffsdi2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/floatundidf_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/fixdfdi_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/floatunditf_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/negdi2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/gedf2vfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/compiler_rt_logbl_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/subvdi3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/fixunsdfti_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/fixunssfti_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/udivdi3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/multc3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/negvti2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/popcountdi2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/gttf2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/fixunsxfdi_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/fixunsdfsi_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/fixunssfsivfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/modti3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/parityti2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/floattitf_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/fixunssfdi_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/clear_cache_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/floattisf_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/ucmpti2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/gcc_personality_test_helper.cxx
The file was modifiedcompiler-rt/test/builtins/Unit/negti2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/popcountsi2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/powisf2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/comparesf2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/ucmpdi2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/fixunstfti_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/paritydi2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/fixxfdi_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/ashrti3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/cmpti2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/absvti2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/gtdf2vfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/addvsi3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/absvdi2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/getf2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/addvti3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/letf2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/truncdfhf2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/eqdf2vfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/paritysi2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/divsf3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/divxc3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/lshrdi3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/udivmodti4_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/clzti2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/udivmoddi4_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/ffsti2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/nedf2vfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/arm/aeabi_cdcmple_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/umodsi3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/floatuntixf_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/floattixf_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/addvdi3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/addtf3_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/divsf3vfp_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/ctzdi2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/clzsi2_test.c
The file was modifiedcompiler-rt/test/builtins/Unit/divti3_test.c
Commit a649802c5998768d9519ca68e2ffa98b7cff2d32 by maskray
[lld-macho][test] Fix dylink-lazy.s after 0a5228a02c32cb5b10d43cb154d6d0abaf360ba7
The file was modifiedlld/test/MachO/dylink-lazy.s
Commit c5c58fd6b5c5b000df0fa2b9abdcbc76635c0368 by Matthew.Arsenault
AMDGPU: Remove intermediate DAG node for trig_preop intrinsic

We weren't doing anything with this, and keeping it would just add
more boilerplate for GlobalISel.
The file was modifiedllvm/include/llvm/IR/IntrinsicsAMDGPU.td
The file was modifiedllvm/lib/Target/AMDGPU/VOP3Instructions.td
The file was addedllvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.trig.preop.ll
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUInstrInfo.td
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUISelLowering.h
The file was modifiedllvm/lib/Target/AMDGPU/SIISelLowering.cpp
Commit 9aaa32cfcb1c9d547a3e0ae8272ff4af6bbd4043 by Xing
[ObjectYAML][DWARF] Let writeVariableSizedInteger() return Error.

This patch helps change the return type of `writeVariableSizedInteger()` from `void` to `Error`.

Reviewed By: jhenderson

Differential Revision: https://reviews.llvm.org/D81915
The file was modifiedllvm/test/tools/yaml2obj/ELF/DWARF/debug-ranges.yaml
The file was modifiedllvm/lib/ObjectYAML/DWARFEmitter.cpp
The file was modifiedllvm/test/tools/yaml2obj/ELF/DWARF/debug-addr.yaml
The file was modifiedllvm/test/tools/yaml2obj/ELF/DWARF/debug-aranges.yaml
Commit a2d096df26079ab81ae6a4b7fbd34986291210d5 by jezng
[lld-macho] Use uint64_t for getSize() instead of size_t

Summary:
So things work on 32-bit machines. (@vzakhari reported the
breakage starting from D80177).

Reviewers: #lld-macho, vzakhari

Subscribers: llvm-commits, vzakhari

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81982
The file was modifiedlld/MachO/InputSection.h
The file was modifiedlld/MachO/SyntheticSections.h
The file was modifiedlld/MachO/MergedOutputSection.h
The file was modifiedlld/MachO/OutputSection.h
The file was modifiedlld/MachO/SyntheticSections.cpp
Commit 50155bcd46428eda1551efe9616f6611b0ef779a by czhengsz
[PowerPC] remove wrong added FIXME in testcases, NFC

remove the wrong added comments as xsmaddasp is introduced in PWR8
The file was modifiedllvm/test/CodeGen/PowerPC/machine-combiner.ll
Commit 1b8125b041e28a315e5c5fe64441a2fb07a2f5ea by richard
Don't assert if we find a dependently-typed variable in the
redeclaration chain for an array.

A prior attempt to fix this in r280330 didn't handle the case where the
old variable is dependent and the new one is not.

It is notable and worrying that the test case in this example forms a
redeclaration chain for a non-dependent variable that includes a
declaration with a dependent type. We should probably fix that too.
The file was modifiedclang/test/SemaTemplate/array-redeclaration.cpp
The file was modifiedclang/lib/Sema/SemaDecl.cpp
Commit 237c2a23b6d4fa953f5ae910dccf492db61bb959 by richard
DR458: Search template parameter scopes in the right order.

C++ unqualified name lookup searches template parameter scopes
immediately after finishing searching the entity the parameters belong
to. (Eg, for a class template, you search the template parameter scope
after looking in that class template and its base classes and before
looking in the scope containing the class template.) This is complicated
by the fact that scope lookup within a template parameter scope looks in
a different sequence of places prior to reaching the end of the
declarator-id in the template declaration.

We used to approximate the proper lookup rule with a hack in the scope /
decl context walk inside name lookup. Now we instead compute the lookup
parent for each template parameter scope. This gets the right answer and
as a bonus is substantially simpler and more uniform.

In order to get this right, we now make sure to enter a distinct Scope
for each template parameter scope. (The fact that we didn't before was
already a bug, but not really observable most of the time, since
template parameters can't shadow each other.)
The file was modifiedclang/lib/Sema/SemaTemplate.cpp
The file was modifiedclang/lib/Parse/ParseExprCXX.cpp
The file was modifiedclang/lib/Parse/ParseTemplate.cpp
The file was modifiedclang/test/CXX/drs/dr4xx.cpp
The file was modifiedclang/include/clang/Parse/Parser.h
The file was modifiedclang/include/clang/Sema/Scope.h
The file was modifiedclang/lib/Sema/SemaLookup.cpp
The file was modifiedclang/www/cxx_dr_status.html
The file was modifiedclang/lib/Sema/SemaDecl.cpp
The file was modifiedclang/test/SemaCXX/lambda-expressions.cpp
The file was modifiedclang/lib/AST/DeclBase.cpp
The file was modifiedclang/test/CXX/temp/temp.res/temp.local/p8.cpp
Commit 3b34f3fccac93697065df620d454fcadceb4fa6e by Matthew.Arsenault
AMDGPU/GlobalISel: Fix obvious bug in ported 32-bit udiv/urem

This was hidden by the IR expansion in AMDGPUCodeGenPrepare, which I
forgot to turn off.
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/srem.i32.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/legalize-sdiv.mir
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/legalize-srem.mir
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/sdiv.i32.ll
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
Commit df9d64ed9c1d819bc0a040e3ef4c4a4003bf5c93 by tejohnson
[IR] Add missing GlobalAlias copying of ThreadLocalMode attribute

Summary:
Previously, GlobalAlias::copyAttributesFrom did not preserve ThreadLocalMode,
causing incorrect IR generation in IR linking flows. This patch pushes the code
responsible for copying this attribute from GlobalVariable::copyAttributesFrom
down to GlobalValue::copyAttributesFrom so that it is shared by GlobalAlias.
Fixes PR46297.

Reviewers: tejohnson, pcc, hans

Reviewed By: tejohnson, hans

Subscribers: hiraditya, ibookstein, dexonsmith, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81605
The file was addedllvm/test/Linker/Inputs/alias-threadlocal-defs.ll
The file was addedllvm/test/Linker/alias-threadlocal.ll
The file was modifiedllvm/lib/IR/Globals.cpp
Commit d3963b3a5f4fc34288cc86e3d92a9846f55ccfb5 by sameer.sahasrabuddhe
[DA] propagate loop live-out values that get used in a branch

Values that are uniform within a loop but appear divergent to uses
outside the loop are "tainted" so that such uses are marked
divergent. But if such a use is a branch, then it's divergence needs
to be propagated. The simplest way to do that is to put the branch
back in the main worklist so that it is processed appropriately.

Reviewed By: simoll

Differential Revision: https://reviews.llvm.org/D81822
The file was modifiedllvm/lib/Analysis/DivergenceAnalysis.cpp
The file was addedllvm/test/Analysis/DivergenceAnalysis/AMDGPU/propagate-loop-live-out.ll
Commit ccbd7e8d463a1d40852c6acbbecd3ae1e2c38f4c by ikudrin
[DebugInfo] Support parsing and dumping of DWARF64 macro units.

Differential Revision: https://reviews.llvm.org/D81844
The file was modifiedllvm/include/llvm/DebugInfo/DWARF/DWARFDebugMacro.h
The file was modifiedllvm/test/DebugInfo/X86/debug-macro-dwo.ll
The file was modifiedllvm/test/DebugInfo/X86/debug-macro-strp-dwo.s
The file was addedllvm/test/DebugInfo/X86/debug-macro-dwarf64.s
The file was modifiedllvm/test/DebugInfo/X86/debug-macro-v5.ll
The file was removedllvm/test/DebugInfo/X86/unsupported-dwarf64-debug-macro-v5.s
The file was modifiedllvm/test/DebugInfo/X86/debug-macro-macinfo.s
The file was modifiedllvm/test/DebugInfo/X86/debug-macro-strx-dwo.s
The file was modifiedllvm/lib/DebugInfo/DWARF/DWARFDebugMacro.cpp
The file was modifiedllvm/test/DebugInfo/X86/debug-macro-v5.s
The file was modifiedllvm/test/DebugInfo/X86/debug-macro-multi-cu-strx.s
Commit beeed368b60252178f66ab117d8a96ecdc35f60e by martin
[clang] [MinGW] Link kernel32 once after the last instance of msvcrt

The msvcrt library isn't a pure import library; it does contain
regular object files with wrappers/fallbacks, and these can require
linking against kernel32.

This only makes a difference when linking with ld.bfd, as lld
always searches all static libraries.

This matches a similar change made recently in gcc in
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=850533ab160ef40eccfd039e1e3b138cf26e76b8,
although clang adds --start-group --end-group around these libraries
if -static is specified, which gcc doesn't. But try to match gcc's
linking order in any case, for consistency.

Differential Revision: https://reviews.llvm.org/D80880
The file was modifiedclang/test/Driver/mingw-msvcrt.c
The file was modifiedclang/lib/Driver/ToolChains/MinGW.cpp
Commit 7b3fe969927731c69ba4d8a428442e1e191f49b5 by martin
[clang] Don't emit warn_cxx_ms_struct when MSBitfields is enabled globally

This diagnostic (which defaults to an error, added in
95833f33bda6c92e746e0b0007b69c2c30bfc693) was intended to clearly
point out cases where the C++ ABI won't match the Microsoft C++ ABI,
for cases when this is enabled via a pragma over a region of code.

The MSVC compatible struct layout feature can also be enabled via a
compiler option (-mms-bitfields). If enabled that way, one essentially
can't compile any C++ code unless also building with
-Wno-incompatible-ms-struct (which GCC doesn't support, and projects
developed with GCC aren't setting).

For the MinGW target, it's expected that the C++ ABI won't match
the MSVC one, if this option is used for getting the struct
layout to match MSVC.

Differential Revision: https://reviews.llvm.org/D81794
The file was modifiedclang/test/SemaCXX/ms_struct.cpp
The file was modifiedclang/lib/Sema/SemaDeclCXX.cpp
Commit e3fd9dc9734c5775dc6824d0a839702e8d43e7f6 by martin
[clang] Enable -mms-bitfields by default for mingw targets

This matches GCC, which enabled -mms-bitfields by default for
mingw targets in 4.7 [1].

[1] https://www.gnu.org/software/gcc/gcc-4.7/changes.html

Differential Revision: https://reviews.llvm.org/D81795
The file was modifiedclang/test/Driver/ms-bitfields.c
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
Commit 2e613d2ded2c465bd06bd3cac30ffb4576bf72cc by sepavloff
[Support] Get process statistics in ExecuteAndWait and Wait

The functions sys::ExcecuteAndWait and sys::Wait now have additional
argument of type pointer to structure, which is filled with process
execution statistics upon process termination. These are total and user
execution times and peak memory consumption. By default this argument is
nullptr so existing users of these function must not change behavior.

Differential Revision: https://reviews.llvm.org/D78901
The file was modifiedllvm/include/llvm/Support/Program.h
The file was modifiedllvm/unittests/Support/ProgramTest.cpp
The file was modifiedllvm/lib/Support/Windows/Program.inc
The file was modifiedllvm/lib/Support/Program.cpp
The file was modifiedllvm/lib/Support/Unix/Program.inc
Commit 02fccc26cf6af22c07fb81ff3aa69abd77850028 by richard
Revert "DR458: Search template parameter scopes in the right order."

We weren't re-entering template scopes in the right order, causing this
to break self-host with -fdelayed-template-parsing.

This reverts commit 237c2a23b6d4fa953f5ae910dccf492db61bb959.
The file was modifiedclang/test/CXX/temp/temp.res/temp.local/p8.cpp
The file was modifiedclang/lib/AST/DeclBase.cpp
The file was modifiedclang/lib/Parse/ParseExprCXX.cpp
The file was modifiedclang/include/clang/Sema/Scope.h
The file was modifiedclang/lib/Parse/ParseTemplate.cpp
The file was modifiedclang/lib/Sema/SemaDecl.cpp
The file was modifiedclang/test/CXX/drs/dr4xx.cpp
The file was modifiedclang/test/SemaCXX/lambda-expressions.cpp
The file was modifiedclang/lib/Sema/SemaTemplate.cpp
The file was modifiedclang/lib/Sema/SemaLookup.cpp
The file was modifiedclang/include/clang/Parse/Parser.h
The file was modifiedclang/www/cxx_dr_status.html
Commit 564821ad65b6dae0c23f23ddcdfb997a0c5aab66 by richard
[www] Update cxx_dr_status page for recent fixes.
The file was modifiedclang/www/cxx_dr_status.html
Commit c2574dc9f70755e151fb55a91d7778176f3ca696 by shkzhang
[NFC]][PowerPC] Remove unused intrinsic for old CTR loop pass

Summary:

In the patch D62907 the PPC CTRLoops pass has been replaced by Generic
Hardware Loop pass, and it has imported some new intrinsic for Generic
Hardware Loop.

The old intrinsic used in PPC CTRLoops int_ppc_mtctr and
int_ppc_is_decremented_ctr_nonzero is been replaced by
int_set_loop_iterations and loop_decrement.

This patch is to remove above unused two instrinsic.

Reviewed By: shchenz

Differential Revision: https://reviews.llvm.org/D81539
The file was modifiedllvm/include/llvm/IR/IntrinsicsPowerPC.td
The file was modifiedllvm/test/CodeGen/PowerPC/no-dup-of-bdnz.ll
The file was modifiedllvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
Commit e9b8ed1fd7c561956b5b2b2e9c43de84a00b4018 by protze
[OpenMP][Tool] Header-only multiplexing of OMPT tools

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D76012
The file was addedopenmp/tools/multiplex/ompt-multiplex.h
The file was addedopenmp/tools/multiplex/CMakeLists.txt
The file was addedopenmp/tools/multiplex/tests/lit.site.cfg.in
The file was addedopenmp/tools/multiplex/tests/print/second-tool.h
The file was addedopenmp/tools/multiplex/tests/ompt-signal.h
The file was modifiedopenmp/runtime/test/ompt/callback.h
The file was addedopenmp/tools/multiplex/tests/custom_data_storage/first-tool.h
The file was addedopenmp/tools/multiplex/tests/custom_data_storage/second-tool.h
The file was addedopenmp/tools/multiplex/tests/custom_data_storage/custom_data_storage.c
The file was addedopenmp/tools/multiplex/tests/print/print.c
The file was addedopenmp/tools/multiplex/tests/print/first-tool.h
The file was addedopenmp/tools/multiplex/README.md
The file was addedopenmp/tools/multiplex/tests/CMakeLists.txt
The file was addedopenmp/tools/multiplex/tests/lit.cfg
Commit 8580af3f7d94dff5e5e6178ed4a797d64dffefe0 by protze
subdirectories should not use cmake project command
The file was modifiedopenmp/tools/multiplex/CMakeLists.txt
Commit d3f7448e3ca5535fbaaa728a82e05649b2220bdd by paulsson
[SystemZ] Bugfix in storeLoadCanUseBlockBinary().

Check that the MemoryVT of LoadA matches that of LoadB.

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

Review: Ulrich Weigand

Differential Revision: https://reviews.llvm.org/D81671
The file was modifiedllvm/test/CodeGen/SystemZ/and-08.ll
The file was modifiedllvm/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
Commit 6754a0e2edde23eb7a58601fbf0c33a856dc837a by Vitaly Buka
[SafeStack,NFC] Move SafeStackColoring code

Summary:
This code is going to be used in StackSafety.
This patch is file move with minimal changes. Identifiers
will be fixed in the followup patch.

Reviewers: eugenis, pcc

Reviewed By: eugenis

Subscribers: mgorny, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81831
The file was addedllvm/include/llvm/Analysis/StackLifetime.h
The file was modifiedllvm/lib/CodeGen/SafeStackLayout.cpp
The file was removedllvm/lib/CodeGen/SafeStackColoring.h
The file was modifiedllvm/lib/CodeGen/CMakeLists.txt
The file was modifiedllvm/lib/CodeGen/SafeStackLayout.h
The file was modifiedllvm/lib/CodeGen/SafeStack.cpp
The file was modifiedllvm/lib/Analysis/CMakeLists.txt
The file was removedllvm/lib/CodeGen/SafeStackColoring.cpp
The file was addedllvm/lib/Analysis/StackLifetime.cpp
Commit d812efb121f72958cc88c866f3ed3b80ed052856 by Vitaly Buka
[SafeStack,NFC] Fix names after files move

Summary: Depends on D81831.

Reviewers: eugenis, pcc

Reviewed By: eugenis

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81832
The file was modifiedllvm/lib/CodeGen/SafeStackLayout.h
The file was modifiedllvm/include/llvm/Analysis/StackLifetime.h
The file was modifiedllvm/lib/CodeGen/SafeStack.cpp
The file was modifiedllvm/lib/CodeGen/SafeStackLayout.cpp
The file was modifiedllvm/lib/Analysis/StackLifetime.cpp
Commit d1b4e6a0d1ff1bdc6aa7a8c61437e89f52231dce by llvmgnsyncbot
[gn build] Port 6754a0e2edd
The file was modifiedllvm/utils/gn/secondary/llvm/lib/CodeGen/BUILD.gn
The file was modifiedllvm/utils/gn/secondary/llvm/lib/Analysis/BUILD.gn
Commit b21794a91ccc3b6000f05f1080dbce30455c7061 by james.henderson
[DebugInfo] Unify Cursor usage for all debug line opcodes

This is a natural extension of the previous changes to use the Cursor
class independently in the standard and extended opcode paths, and in
turn allows delaying error handling until the entire line has been
printed in verbose mode, removing interleaved output in some cases.

Reviewed by: MaskRay, JDevlieghere

Differential Revision: https://reviews.llvm.org/D81562
The file was modifiedllvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
The file was modifiedllvm/test/tools/llvm-dwarfdump/X86/debug_line_invalid.test
Commit 9465dd5ddd23e643e766a39da0cefa43b85db535 by mkazantsev
[Test] Add missing opportunity for replacement of select with Phi
The file was modifiedllvm/test/Transforms/InstCombine/select.ll
Commit 8bc8d2d678a2d5724d097ee2a7d4b6e7ccce4f82 by sepavloff
Use explicitly unsigned zero to prevent from a warning
The file was modifiedllvm/unittests/Support/ProgramTest.cpp
Commit e4b58ea8c1ec267bd17a2d56dc08faf904bd9c70 by flo
[MemDep] Also remove load instructions from NonLocalDesCache.

Currently load instructions are added to the cache for invariant pointer
group dependencies, but only pointer values are removed currently. That
leads to dangling AssertingVHs in the test case below, where we delete a
load from an invariant pointer group. We should also remove the entries
from the cache.

Fixes PR46054.

Reviewers: efriedma, hfinkel, asbirlea

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D81726
The file was modifiedllvm/lib/Analysis/MemoryDependenceAnalysis.cpp
The file was addedllvm/test/Transforms/GVN/pr46054-md-nonlocaldefcache-cleanup.ll
Commit af3d82453410ff80fab71f1dd9e222ffb6cd5925 by kadircet
[clangd] Depend on llvm-config for lit tests
The file was modifiedclang-tools-extra/clangd/test/CMakeLists.txt
Commit e51c1d06a9922c3b6ce4b8b2e74126870ade1491 by sander.desmalen
[SveEmitter] Add builtins for svtbl2

Reviewers: david-arm, efriedma, c-rhodes

Reviewed By: c-rhodes

Tags: #clang

Differential Revision: https://reviews.llvm.org/D81462
The file was addedclang/test/CodeGen/aarch64-sve2-intrinsics/acle_sve2_tbl2.c
The file was modifiedclang/lib/CodeGen/CGBuiltin.cpp
The file was modifiedclang/include/clang/Basic/arm_sve.td
Commit bbc629ebd6429d43cfd72d9a0e2b5ca8a4083b54 by kbobyrev
[CallPrinter] Fix maxFreq = 0 case

llvm::getHeatColor becomes a problem when maxFreq = 0 -> freq = 0 =>
log2(double(freq)) / log2(maxFreq) -> log2(0.) / log2(0.) which
results in illegal instruction on some architectures.

Problematic revision: https://reviews.llvm.org/D77172
The file was modifiedllvm/lib/Analysis/HeatUtils.cpp
Commit 3847737fa489dc88d1d45bbedc550e87bf88fbe1 by kbobyrev
[CallPrinter] Handle freq = 0 case

Improvement of the following revision:
bbc629ebd6429d43cfd72d9a0e2b5ca8a4083b54

This might still be problematic if freq = 0, so it's better to check for
that.
The file was modifiedllvm/lib/Analysis/HeatUtils.cpp
Commit 20835cff272e2096a57aa5de53f6923f24a42049 by sjoerd.meijer
[TTI] Refactor emitGetActiveLaneMask

Refactor TTI hook emitGetActiveLaneMask and remove the unused arguments
as suggested in D79100.
The file was modifiedllvm/lib/Analysis/TargetTransformInfo.cpp
The file was modifiedllvm/include/llvm/CodeGen/BasicTTIImpl.h
The file was modifiedllvm/lib/Target/ARM/ARMTargetTransformInfo.h
The file was modifiedllvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
The file was modifiedllvm/include/llvm/Analysis/TargetTransformInfo.h
The file was modifiedllvm/include/llvm/Analysis/TargetTransformInfoImpl.h
Commit 47650451738c821993c763356854b560a0f9f550 by sjoerd.meijer
[LV] Emit @llvm.get.active.mask for tail-folded loops

This emits new IR intrinsic @llvm.get.active.mask for tail-folded vectorised
loops if the intrinsic is supported by the backend, which is checked by
querying TargetTransform hook emitGetActiveLaneMask.

This intrinsic creates a mask representing active and inactive vector lanes,
which is used by the masked load/store instructions that are created for
tail-folded loops. The semantics of @llvm.get.active.mask are described here in
LangRef:

https://llvm.org/docs/LangRef.html#llvm-get-active-lane-mask-intrinsics

This intrinsic is also used to provide a hint to the backend. That is, the
second argument of the intrinsic represents the back-edge taken count of the
loop. For MVE, for example, we use that to set up tail-predication, which is a
new form of predication in MVE for vector loops that implicitely predicates the
last vector loop iteration by implicitely setting active/inactive lanes, i.e.
the tail loop is predicated. In order to set up a tail-predicated vector loop,
we need to know the number of data elements processed by the vector loop, which
corresponds the the tripcount of the scalar loop, which we can now reconstruct
using @llvm.get.active.mask.

Differential Revision: https://reviews.llvm.org/D79100
The file was modifiedllvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
The file was modifiedllvm/test/Transforms/LoopVectorize/ARM/prefer-tail-loop-folding.ll
The file was modifiedllvm/lib/Transforms/Vectorize/VPlan.h
The file was modifiedllvm/lib/Transforms/Vectorize/LoopVectorize.cpp
The file was modifiedllvm/test/Transforms/LoopVectorize/ARM/tail-folding-counting-down.ll
The file was modifiedllvm/test/Transforms/LoopVectorize/ARM/tail-loop-folding.ll
The file was modifiedllvm/lib/Transforms/Vectorize/VPlan.cpp
Commit 773353be4e5d76c4dda3b1776c745c8e794a3384 by flo
[SCCP] Move common code to simplify basic block to helper (NFC).

Reviewers: efriedma, davide

Reviewed By: efriedma

Differential Revision: https://reviews.llvm.org/D81755
The file was modifiedllvm/lib/Transforms/Scalar/SCCP.cpp
Commit 4ac9a6902f2c90c5c316748a7594a7c5235cf7ba by mkazantsev
[NFC] Add API for edge domination check in dom tree
The file was modifiedllvm/lib/IR/Dominators.cpp
The file was modifiedllvm/include/llvm/IR/Dominators.h
The file was modifiedllvm/unittests/IR/DominatorTreeTest.cpp
Commit d4e183f68631019fe51f855a554988292868b9ac by sjoerd.meijer
Revert "[LV] Emit @llvm.get.active.mask for tail-folded loops"

This reverts commit 47650451738c821993c763356854b560a0f9f550
while I investigate the build bot failures.
The file was modifiedllvm/lib/Transforms/Vectorize/VPlan.h
The file was modifiedllvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
The file was modifiedllvm/test/Transforms/LoopVectorize/ARM/tail-folding-counting-down.ll
The file was modifiedllvm/test/Transforms/LoopVectorize/ARM/tail-loop-folding.ll
The file was modifiedllvm/lib/Transforms/Vectorize/LoopVectorize.cpp
The file was modifiedllvm/test/Transforms/LoopVectorize/ARM/prefer-tail-loop-folding.ll
The file was modifiedllvm/lib/Transforms/Vectorize/VPlan.cpp
Commit 1cafd8a5d1a3f80a93a6d996f24ef4b730f896e5 by sguelton
Fix LoopIdiomRecognize pass return status

Introduce an helper class to aggregate the cleanup in case of rollback.

Differential Revision: https://reviews.llvm.org/D81230
The file was modifiedllvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
Commit 16ad6eeb94ff0619288fb9b3a2287076d5f32ae1 by hans
[IR] Don't copy profile metadata in createCallMatchingInvoke()

The invoke instruction can have profile metadata with branch_weights,
which does not make sense for a call instruction and will be
rejected by the verifier.

Differential revision: https://reviews.llvm.org/D81996
The file was modifiedllvm/lib/Transforms/Utils/Local.cpp
The file was modifiedllvm/test/Transforms/SimplifyCFG/invoke_unwind.ll
Commit 95db1e7fb9292daf70fedf02b5efafeabf3ea33e by paul.walker
[FileCheck] Implement * and / operators for ExpressionValue.

Subscribers: arichardson, hiraditya, thopre, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D80915
The file was modifiedllvm/lib/Support/FileCheck.cpp
The file was modifiedllvm/lib/Support/FileCheckImpl.h
The file was modifiedllvm/unittests/Support/FileCheckTest.cpp
The file was modifiedllvm/docs/CommandGuide/FileCheck.rst
Commit 93cd4115799cefa698833ca7a2f1899243d94c77 by alexey.bader
[NFC] Run clang-format on clang/test/OpenMP/nvptx_target_codegen.cpp
The file was modifiedclang/test/OpenMP/nvptx_target_codegen.cpp
Commit 5bf0858c0b4cb5237fa4bf0cf58a76ec5076ef5a by sam.parker
Return "[InstCombine] Simplify compare of Phi with constant inputs against a constant"

I originally reverted the patch because it was causing performance
issues, but now I think it's just enabling simplify-cfg to do
something that I don't want instead :)

Sorry for the noise.

This reverts commit 3e39760f8eaad4770efa05824768e67237915cf5.
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
The file was modifiedllvm/test/Transforms/InstCombine/zext-or-icmp.ll
The file was modifiedclang/test/CodeGenObjC/exceptions.m
The file was modifiedllvm/test/Transforms/InstCombine/icmp-constant-phi.ll
The file was modifiedllvm/test/Transforms/InstCombine/indexed-gep-compares.ll
Commit e29b31513ff6ec2f55ddac002e937239ca80afaa by omair.javaid
[lldb] Remove xfail aarch64/linux from TestBuiltinTrap.py

The underlying clang bug seems to have been fixed in and test is
consistently passing on aarch64-linux buildbot.
The file was modifiedlldb/test/API/linux/builtin_trap/TestBuiltinTrap.py
Commit b1130c4f55b5bce36593dc58e92f441eae2b5bbd by flo
[SCCP] Precommit some sext tests (NFC).
The file was addedllvm/test/Transforms/SCCP/ip-ranges-sext.ll
The file was addedllvm/test/Transforms/SCCP/ranges-sext.ll
Commit 547b6da73cc234e0d9f5236c27ba6e4ba76869f9 by benny.kra
[CallPrinter] Remove static constructor.

No need to have std::string here. NFC.
The file was modifiedllvm/lib/Analysis/HeatUtils.cpp
Commit ac8a2f132b010f92e4094b302c87e4f55d1a4458 by carl.ritson
[AMDGPU] Fix failure in VCC spilling

Spills of VCC (SGPR64) will fail with new SGPR spill code,
because super register is not correctly resolved.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D81224
The file was addedllvm/test/CodeGen/AMDGPU/spill-special-sgpr.mir
The file was modifiedllvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
Commit e8299a806ad197d64a627c1868b842256f464035 by grimar
[llvm-readobj] - Split the printGnuHashTable(). NFCI.

`printGnuHashTable` contains the code to check the GNU hash table.
This patch splits it to `getGnuHashTableChains` helper
(and reorders slightly to reduce).

Differential revision: https://reviews.llvm.org/D81928
The file was modifiedllvm/tools/llvm-readobj/ELFDumper.cpp
Commit 88c8581d9fe449f07781ff8abedf598b9410e727 by grimar
[llvm-readobj] - Do not crash when GnuHashTable->symndx is greater than the dynamic symbols count.

`Elf_GnuHash_Impl` has the following method:

```
ArrayRef<Elf_Word> values(unsigned DynamicSymCount) const {
  return ArrayRef<Elf_Word>(buckets().end(), DynamicSymCount - symndx);
}
```

When DynamicSymCount is less than symndx we return an array with the huge broken size.
This patch fixes the issue and adds an assert. This assert helped to fix an issue
in one of the test cases.

Differential revision: https://reviews.llvm.org/D81937
The file was modifiedllvm/test/tools/llvm-readobj/ELF/gnuhash.test
The file was modifiedllvm/tools/llvm-readobj/ELFDumper.cpp
The file was modifiedllvm/include/llvm/Object/ELFTypes.h
The file was modifiedllvm/test/tools/llvm-readobj/ELF/hash-histogram.test
Commit 076e08aa4501f682c43e71a8fed1e12da485abc7 by david.green
[LSR] Filter for postinc formulae

In more complicated loops we can easily hit the complexity limits of
loop strength reduction. If we do and filtering occurs, it's all too
easy to remove the wrong formulae for post-inc preferring accesses due
to it attempting to maximise register re-use. The patch adds an
alternative filtering step when the target is preferring postinc to pick
postinc formulae instead, hopefully lowering the complexity to below the
limit so that aggressive filtering is not needed.

There is also a change in here to stop considering existing addrecs as
free under postinc. We should already be modelling them as a reg so
don't want it to cause us to get the cost wrong. (I'm not sure that code
makes sense in general, but there are X86 tests specifically for it
where it seems to be helping so have left it around for the standard
non-post-inc case).

Differential Revision: https://reviews.llvm.org/D80273
The file was modifiedllvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
The file was modifiedllvm/test/CodeGen/Thumb2/mve-float16regloops.ll
The file was modifiedllvm/test/CodeGen/Thumb2/mve-float32regloops.ll
Commit 0bdcd95bf20f159a2512aff1ef032bec52039bf6 by alexey.bader
[SYCL][OpenMP] Implement thread-local storage restriction

Summary:
SYCL and OpenMP prohibits thread local storage in device code,
so this commit ensures that error is emitted for device code and not
emitted for host code when host target supports it.

Reviewers: jdoerfert, erichkeane, bader

Reviewed By: jdoerfert, erichkeane

Subscribers: guansong, riccibruno, ABataev, yaxunl, ebevhan, Anastasia, sstefan1, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D81641
The file was modifiedclang/test/OpenMP/nvptx_target_codegen.cpp
The file was modifiedclang/lib/Sema/SemaDecl.cpp
The file was addedclang/test/OpenMP/nvptx_prohibit_thread_local.cpp
The file was addedclang/test/SemaSYCL/prohibit-thread-local.cpp
The file was modifiedclang/lib/Sema/SemaExpr.cpp
Commit e345d547a0d59bc9350362e0922b0f011448e9da by sjoerd.meijer
Recommit "[LV] Emit @llvm.get.active.lane.mask for tail-folded loops"

Fixed ARM regression test.

Please see the original commit message rG47650451738c for details.
The file was modifiedllvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
The file was modifiedllvm/test/Transforms/LoopVectorize/ARM/prefer-tail-loop-folding.ll
The file was modifiedllvm/test/Transforms/LoopVectorize/ARM/tail-loop-folding.ll
The file was modifiedllvm/lib/Transforms/Vectorize/LoopVectorize.cpp
The file was modifiedllvm/lib/Transforms/Vectorize/VPlan.cpp
The file was modifiedllvm/lib/Transforms/Vectorize/VPlan.h
The file was modifiedllvm/test/Transforms/LoopVectorize/ARM/tail-folding-counting-down.ll
Commit c1034d044ad4e791fec18aeea35c1e03401b077d by sjoerd.meijer
Follow up of rGe345d547a0d5, and attempt to pacify buildbot:

"error: 'get' is deprecated: The base class version of get with the scalable
argument defaulted to false is deprecated."

Changed VectorType::get() -> FixedVectorType::get().
The file was modifiedllvm/lib/Transforms/Vectorize/VPlan.cpp
Commit df9a51dab3512f61d7f26c16fd1358bf99c266e1 by benny.kra
Remove global std::strings. NFCI.
The file was modifiedllvm/lib/Target/BPF/BPFPreserveDIType.cpp
The file was modifiedllvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp
The file was modifiedclang-tools-extra/clangd/index/dex/dexp/Dexp.cpp
The file was modifiedclang-tools-extra/clangd/index/remote/server/Server.cpp
The file was modifiedllvm/lib/Target/BPF/BPFAbstractMemberAccess.cpp
The file was modifiedllvm/lib/Target/BPF/BPFCORE.h
Commit 6aae8ef164e6b909adc1a09eda5c48ae6e733f63 by flo
[SCCP] Add a few more additional sext tests (NFC).
The file was modifiedllvm/test/Transforms/SCCP/ip-ranges-sext.ll
Commit 34ee2549a72c2947fb3f6677fbe8ad97da100011 by a.bataev
[OPENMP50]Codegen for scan directive in for simd regions.

Summary:
Added codegen for scan directives in parallel for regions.

Emits the code for the directive with inscan reductions.
Original code:
```
#pragma omp for simd reduction(inscan, op : ...)
for(...) {
  <input phase>;
  #pragma omp scan (in)exclusive(...)
  <scan phase>
}
```
is transformed to something:
```
size num_iters = <num_iters>;
<type> buffer[num_iters];
#pragma omp for simd
for (i: 0..<num_iters>) {
  <input phase>;
  buffer[i] = red;
}
#pragma omp barrier
for (int k = 0; k != ceil(log2(num_iters)); ++k)
for (size cnt = last_iter; cnt >= pow(2, k); --k)
  buffer[i] op= buffer[i-pow(2,k)];
#pragma omp for simd
for (0..<num_iters>) {
  red = InclusiveScan ? buffer[i] : buffer[i-1];
  <scan phase>;
}
```

Reviewers: jdoerfert

Reviewed By: jdoerfert

Subscribers: yaxunl, guansong, sstefan1, cfe-commits, caomhin

Tags: #clang

Differential Revision: https://reviews.llvm.org/D81658
The file was modifiedclang/lib/CodeGen/CGStmtOpenMP.cpp
The file was addedclang/test/OpenMP/for_simd_scan_codegen.cpp
Commit 08029595ca36067e23d22c2a8732aba0d4afb50a by a.bataev
[OPENMP]Fix overflow during counting the number of iterations.

Summary:
The OpenMP loops are normalized and transformed into the loops from 0 to
max number of iterations. In some cases, original scheme may lead to
overflow during calculation of number of iterations. If it is unknown,
if we can end up with overflow or not (the bounds are not constant and
  we cannot define if there is an overflow), cast original type to the
  unsigned.

Reviewers: jdoerfert

Subscribers: yaxunl, guansong, sstefan1, openmp-commits, cfe-commits, caomhin

Tags: #clang, #openmp

Differential Revision: https://reviews.llvm.org/D81881
The file was modifiedclang/lib/Sema/SemaOpenMP.cpp
The file was modifiedclang/test/OpenMP/master_taskloop_reduction_codegen.cpp
The file was modifiedopenmp/runtime/test/worksharing/for/omp_for_bigbounds.c
The file was modifiedclang/test/OpenMP/ordered_doacross_codegen.cpp
The file was modifiedclang/test/AST/ast-dump-openmp-teams-distribute-simd.c
The file was modifiedclang/test/AST/ast-dump-openmp-teams-distribute.c
The file was modifiedclang/test/OpenMP/taskloop_reduction_codegen.cpp
The file was modifiedclang/test/AST/ast-dump-openmp-teams-distribute-parallel-for.c
The file was modifiedclang/test/OpenMP/for_codegen.cpp
The file was modifiedclang/test/OpenMP/master_taskloop_simd_reduction_codegen.cpp
The file was modifiedclang/test/OpenMP/parallel_master_taskloop_simd_reduction_codegen.cpp
The file was modifiedclang/test/OpenMP/parallel_master_taskloop_reduction_codegen.cpp
The file was modifiedclang/test/AST/ast-dump-openmp-teams-distribute-parallel-for-simd.c
The file was modifiedclang/test/OpenMP/taskloop_simd_reduction_codegen.cpp
Commit 81cbe0ca83c2f912ff612ddb65629a108197b0d1 by hans
Revert "GlobalISel: Make LLT constructors constexpr"

This reverts commit 5a95be22d248be654b992dfb25e3850dbb182a14.

It causes GCC 5.3 to segfault:

In file included from /work/llvm.monorepo/llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp:357:0:                                               lib/Target/AArch64/AArch64GenGlobalISel.inc:189:17:   in constexpr expansion of ‘llvm::LLT::scalar(16u)’
lib/Target/AArch64/AArch64GenGlobalISel.inc:205:1: internal compiler error: Segmentation fault
The file was modifiedllvm/include/llvm/Support/LowLevelTypeImpl.h
The file was modifiedllvm/unittests/CodeGen/LowLevelTypeTest.cpp
Commit ccd127008aa2aa0a303c9a0a48f4080a5bb7cd0b by n.james93
[clang-tidy] warnings-as-error no longer exits with ErrorCount

When using `-warnings-as-errors`, If there are any warnings promoted to errors, clang-tidy exits with the number of warnings. This really isn't needed and can cause issues when the number of warnings doesn't fit into 8 bits as POSIX terminals aren't designed to handle more than that.
This addresses https://bugs.llvm.org/show_bug.cgi?id=46305.

Bug originally added in D15528

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D81953
The file was modifiedclang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
Commit 37e06e8f5c6ee39a1d7cbaf7d5f5a3ebfa1b4e15 by knaumov
[InlineCost] InlineCostAnnotationWriterPass introduced

This class allows to see the inliner's decisions for better
optimization verifications and tests. To use, use flag
"-passes="print<inline-cost>"".

Reviewers: apilipenko, mtrofin, davidxl, fedor.sergeev

Reviewed By: mtrofin

Differential revision: https://reviews.llvm.org/D81743
The file was modifiedllvm/lib/Analysis/InlineCost.cpp
The file was modifiedllvm/lib/Passes/PassRegistry.def
The file was addedllvm/test/Transforms/Inline/inline-cost-annotation-pass.ll
The file was modifiedllvm/include/llvm/Analysis/InlineCost.h
The file was modifiedllvm/test/Transforms/Inline/debuginline-cost-delta.ll
The file was removedllvm/test/Transforms/Inline/print-instructions-deltas-unfinished.ll
Commit 52b0db22f8cfb594c32389224570681d2d2c2f21 by knaumov
[InlineCost] PrinterPass prints constants to which instructions are simplified

This patch enables printing of constants to see which instructions were
constant-folded. Needed for tests and better visiual analysis of
inliner's work.

Reviewers: apilipenko, mtrofin, davidxl, fedor.sergeev

Reviewed By: mtrofin

Differential Revision: https://reviews.llvm.org/D81024
The file was modifiedllvm/lib/Analysis/InlineCost.cpp
The file was addedllvm/test/Transforms/Inline/simplified_to.ll
Commit 34fba68d80051e3c53e7843157c036f6d511ae03 by knaumov
[InlineCost] GetElementPtr with constant operands

If the GEP instruction contanins only constants as its arguments,
then it should be recognized as a constant. For now, there was
also added a flag to turn off this simplification if it causes
any regressions ("disable-gep-const-evaluation") which is off
by default. Once I gather needed data of the effectiveness of
this simplification, the flag will be deleted.

Reviewers: apilipenko, davidxl, mtrofin

Reviewed By: mtrofin

Differential Revision: https://reviews.llvm.org/D81026
The file was modifiedllvm/lib/Analysis/InlineCost.cpp
The file was addedllvm/test/Transforms/Inline/gep_from_constant.ll
Commit 39a4505e34387d9e9165127a4f2fd64223f1d833 by knaumov
Revert "[InlineCost] GetElementPtr with constant operands"

This reverts commit 34fba68d80051e3c53e7843157c036f6d511ae03.
The file was modifiedllvm/lib/Analysis/InlineCost.cpp
The file was removedllvm/test/Transforms/Inline/gep_from_constant.ll
Commit dcf2a9f2ee3a730d603d69f9fbc96fdd64a744ca by knaumov
Revert "[InlineCost] PrinterPass prints constants to which instructions are simplified"

This reverts commit 52b0db22f8cfb594c32389224570681d2d2c2f21.
The file was removedllvm/test/Transforms/Inline/simplified_to.ll
The file was modifiedllvm/lib/Analysis/InlineCost.cpp
Commit ea844c75207a9e809ccfc0922f436f972e5d5a7a by knaumov
Revert "[InlineCost] InlineCostAnnotationWriterPass introduced"

This reverts commit 37e06e8f5c6ee39a1d7cbaf7d5f5a3ebfa1b4e15.
The file was modifiedllvm/lib/Passes/PassRegistry.def
The file was addedllvm/test/Transforms/Inline/print-instructions-deltas-unfinished.ll
The file was modifiedllvm/include/llvm/Analysis/InlineCost.h
The file was modifiedllvm/lib/Analysis/InlineCost.cpp
The file was removedllvm/test/Transforms/Inline/inline-cost-annotation-pass.ll
The file was modifiedllvm/test/Transforms/Inline/debuginline-cost-delta.ll
Commit d1522513d4c4a7bccda664c226a055057ab264d2 by sjoerd.meijer
[ARM] Reimplement MVE Tail-Predication pass using @llvm.get.active.lane.mask

To set up a tail-predicated loop, we need to to calculate the number of
elements processed by the loop. We can now use intrinsic
@llvm.get.active.lane.mask() to do this, which is emitted by the vectoriser in
D79100. This intrinsic generates a predicate for the masked loads/stores, and
consumes the Backedge Taken Count (BTC) as its second argument. We can now use
that to reconstruct the loop tripcount, instead of the IR pattern match
approach we were using before.

Many thanks to Eli Friedman and Sam Parker for all their help with this work.

This also adds overflow checks for the different, new expressions that we
create: the loop tripcount, and the sub expression that calculates the
remaining elements to be processed. For the latter, SCEV is not able to
calculate precise enough bounds, so we work around that at the moment, but is
not entirely correct yet, it's conservative. The overflow checks can be
overruled with a force flag, which is thus potentially unsafe (but not really
because the vectoriser is the only place where this intrinsic is emitted at the
moment). It's also good to mention that the tail-predication pass is not yet
enabled by default.  We will follow up to see if we can implement these
overflow checks better, either by a change in SCEV or we may want revise the
definition of llvm.get.active.lane.mask.

Differential Revision: https://reviews.llvm.org/D79175
The file was modifiedllvm/test/CodeGen/Thumb2/LowOverheadLoops/tail-pred-widen.ll
The file was modifiedllvm/test/CodeGen/Thumb2/LowOverheadLoops/tail-reduce.ll
The file was modifiedllvm/test/CodeGen/Thumb2/LowOverheadLoops/tail-pred-const.ll
The file was modifiedllvm/test/CodeGen/Thumb2/LowOverheadLoops/nested.ll
The file was modifiedllvm/test/CodeGen/Thumb2/LowOverheadLoops/mve-tail-data-types.ll
The file was modifiedllvm/test/CodeGen/Thumb2/LowOverheadLoops/vector-arith-codegen.ll
The file was modifiedllvm/test/CodeGen/Thumb2/LowOverheadLoops/vector-reduce-mve-tail.ll
The file was modifiedllvm/test/CodeGen/Thumb2/LowOverheadLoops/fast-fp-loops.ll
The file was modifiedllvm/test/CodeGen/Thumb2/mve-fma-loops.ll
The file was modifiedllvm/test/CodeGen/Thumb2/LowOverheadLoops/clear-maskedinsts.ll
The file was modifiedllvm/test/CodeGen/Thumb2/LowOverheadLoops/extending-loads.ll
The file was modifiedllvm/lib/Target/ARM/MVETailPredication.cpp
The file was modifiedllvm/test/CodeGen/Thumb2/LowOverheadLoops/cond-vector-reduce-mve-codegen.ll
The file was modifiedllvm/test/CodeGen/Thumb2/LowOverheadLoops/basic-tail-pred.ll
Commit a5f1f9c9b86117770cb27f34b75edf780435ea6d by llvm-dev
ScalarEvolution.h - reduce LoopInfo.h include to forward declarations. NFC.

Move ScalarEvolution::forgetLoopDispositions implementation to ScalarEvolution.cpp to remove the dependency.

Add implicit header dependency to source files where necessary.
The file was modifiedllvm/unittests/Analysis/DDGTest.cpp
The file was modifiedllvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
The file was modifiedllvm/lib/Analysis/ScalarEvolution.cpp
The file was modifiedllvm/include/llvm/Analysis/ScalarEvolution.h
The file was modifiedllvm/unittests/Analysis/UnrollAnalyzerTest.cpp
The file was modifiedllvm/lib/Analysis/LoopUnrollAnalyzer.cpp
The file was modifiedllvm/unittests/Transforms/Utils/LoopUtilsTest.cpp
Commit e584abfcd5001c4b1b0c8ed128f4834f17995803 by llvm-dev
[X86] Regenerate mixed-ptr tests checks

Help reduce the diffs in D81517
The file was modifiedllvm/test/CodeGen/X86/mixed-ptr-sizes.ll
The file was modifiedllvm/test/CodeGen/X86/mixed-ptr-sizes-i686.ll
Commit def2e4c47fab7165bf79305182e8e10a0236bc30 by jay.foad
[AMDGPU] Simplify GCNPassConfig::addOptimizedRegAlloc. NFC.
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
Commit 7cfd267c518aba226b34b7fbfe8db70000b22053 by sstipanovic
[OpenMPOPT][NFC] Introducing OMPInformationCache.

Summary:
Introduction of OpenMP-specific information cache based on Attributor's `InformationCache`. This should make it easier to share information between them.

Reviewers: jdoerfert, JonChesterfield, hamax97, jhuber6, uenoku

Subscribers: yaxunl, hiraditya, guansong, uenoku, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81798
The file was modifiedllvm/lib/Transforms/IPO/OpenMPOpt.cpp
Commit 2e28009981f91acc3d14268f3d9ded84963e972b by scott.linder
[NFC] Move getAll{S,V}GPR{32,128} methods to SIFrameLowering

Summary:
Future patch needs some of these in multiple places.

The definitions of these can't be in the header and be eligible for
inlining without making the full declaration of GCNSubtarget visible.
I'm not sure what the right trade-off is, but I opted to not bloat
SIRegisterInfo.h

Reviewers: arsenm, cdevadas

Reviewed By: arsenm

Subscribers: RamNalamothu, qcolombet, jvesely, wdng, nhaehnle, hiraditya, kerbowa, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D79878
The file was modifiedllvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
The file was modifiedllvm/lib/Target/AMDGPU/SIFrameLowering.cpp
The file was modifiedllvm/lib/Target/AMDGPU/SIRegisterInfo.h
The file was modifiedllvm/lib/Target/AMDGPU/SILowerSGPRSpills.cpp
Commit 4317ee27bd64759b922438659f5b6883c0fbe404 by kadircet
[clangd] Make use of preamble bounds from the patch inside ReplayPreamble

Summary:
Clangd was using bounds from the stale preamble, which might result in
crashes. For example:
```
#include "a.h"
#include "b.h" // this line is newly inserted
#include "c.h"
```

PreambleBounds for the baseline only contains first two lines, but
ReplayPreamble logic contains an include from the third line. This would
result in a crash as we only lex preamble part of the current file
during ReplayPreamble.

This patch adds a `preambleBounds` method to PreamblePatch, which can be
used to figure out preamble bounds for the current version of the file.
Then uses it when attaching ReplayPreamble, so that it can lex the
up-to-date preamble region.

Reviewers: sammccall

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

Tags: #clang

Differential Revision: https://reviews.llvm.org/D81964
The file was modifiedclang-tools-extra/clangd/unittests/ParsedASTTests.cpp
The file was modifiedclang-tools-extra/clangd/Preamble.cpp
The file was modifiedclang-tools-extra/clangd/ParsedAST.cpp
The file was modifiedclang-tools-extra/clangd/unittests/PreambleTests.cpp
The file was modifiedclang-tools-extra/clangd/Preamble.h
Commit 691ff4682f8c263082750d43e03ea378841acc8d by scott.linder
[AMDGPU] Skip CFIInstructions in SIInsertWaitcnts

Summary:
CFI emitted during PEI at the beginning of the prologue needs to apply
to any inserted waitcnts on function entry.

Reviewers: arsenm, t-tye, RamNalamothu

Reviewed By: arsenm

Subscribers: arsenm, kzhuravl, jvesely, wdng, nhaehnle, yaxunl, dstuttard, tpr, t-tye, hiraditya, kerbowa, llvm-commits

Tags: #llvm, #debug-info

Differential Revision: https://reviews.llvm.org/D76881
The file was modifiedllvm/test/CodeGen/AMDGPU/vgpr-descriptor-waterfall-loop-idom-update.ll
The file was modifiedllvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
The file was addedllvm/test/CodeGen/AMDGPU/waitcnt-skip-meta.mir
The file was modifiedllvm/test/CodeGen/AMDGPU/split-arg-dbg-value.ll
Commit 2956cc50f3405ae32c8c6d6e2c63fe8cb6456fa2 by Yuanfang Chen
[Clang][Driver] Remove gold linker support for PS4 toolchain

Reviewers: probinson

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D81970
The file was modifiedclang/test/Driver/ps4-linker-win.c
The file was modifiedclang/lib/Driver/ToolChains/PS4CPU.cpp
The file was modifiedclang/test/Driver/ps4-linker-non-win.c
Commit 5c621900a6614d6e27843c14157b4c2630c124c5 by mgorny
[llvm] [CommandLine] Do not suggest really hidden opts in nearest lookup

Skip 'really hidden' options when performing lookup of the nearest
option when invalid option was passed.  Since these options aren't even
documented in --help-hidden, it seems inconsistent to suggest them
to users.

This fixes clang-tools-extra test failures due to unexpected suggestions
when linking the tools to LLVM dylib (that provides more options than
the subset of LLVM libraries linked directly).

Differential Revision: https://reviews.llvm.org/D82001
The file was modifiedllvm/lib/Support/CommandLine.cpp
The file was modifiedllvm/unittests/Support/CommandLineTest.cpp
Commit 352558e69b3691cfdc8e1adc2a1fbb737bc67cbb by mgorny
[llvm] Avoid linking llvm-cfi-verify to duplicate libs

Fix the CMake rules for LLVMCFIVerify library not to pull duplicate
LLVM .a libraries when linking to the dylib.  This prevents problems
due to duplicate symbols and apparently fixes mingw32.

This is an alternative approach to D44650 that just forces .a libraries
instead.  However, there doesn't seem to be any reason to do that.

Differential Revision: https://reviews.llvm.org/D81921
The file was modifiedllvm/tools/llvm-cfi-verify/lib/CMakeLists.txt
Commit 1ad5e3cd6b8147d6919a2dbee9b905f86ba50c97 by mgorny
[llvm] Disable linking llvm-exegesis to dylib

Force linking llvm-exegesis to static LLVM libraries instead of dylib
to prevent duplicate symbols due to linking both.  Ideally, we'd want
to link to the dylib only here but the target sub-libraries use hidden
symbols from LLVM target libraries and therefore linking the dylib
fails.

Differential Revision: https://reviews.llvm.org/D81922
The file was modifiedllvm/tools/llvm-exegesis/CMakeLists.txt
Commit d4f298c8206b435ce627b022efa0d5da620019cd by mgorny
[clang-tools-extra] Prevent linking to duplicate .a libs and dylib

Fix various tool libraries not to link to clang's .a libraries and dylib
simultaneously.  This may cause breakage, in particular through
duplicate command-line option declarations.

Differential Revision: https://reviews.llvm.org/D81967
The file was modifiedclang-tools-extra/clang-include-fixer/find-all-symbols/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-tidy/modernize/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-tidy/android/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-tidy/hicpp/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-tidy/misc/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-tidy/bugprone/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-tidy/llvm/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-tidy/cppcoreguidelines/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-tidy/darwin/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-include-fixer/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-tidy/boost/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-tidy/mpi/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-tidy/google/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-tidy/tool/CMakeLists.txt
The file was modifiedclang-tools-extra/clangd/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-tidy/objc/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-tidy/portability/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-tidy/abseil/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-doc/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-tidy/cert/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-reorder-fields/CMakeLists.txt
The file was modifiedclang-tools-extra/clangd/unittests/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-query/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-tidy/plugin/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-tidy/readability/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-apply-replacements/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-move/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-tidy/openmp/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-tidy/fuchsia/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-tidy/performance/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-tidy/utils/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-tidy/llvmlibc/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-tidy/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-change-namespace/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-tidy/linuxkernel/CMakeLists.txt
The file was modifiedclang-tools-extra/clang-tidy/zircon/CMakeLists.txt
Commit 64c87a94caadc4a6351ab138dd2ca99975441b60 by Jonas Devlieghere
[lldb/Test] Fix tests that rely on logfiles with reproducers.

Now that the log file is included in the reproducers, the path needs to
be remapped for the test to find the new file in the reproducer.
The file was modifiedlldb/test/API/lang/cpp/member-and-local-vars-with-same-name/TestMembersAndLocalsWithSameName.py
The file was modifiedlldb/test/API/commands/log/basic/TestLogging.py
The file was modifiedlldb/packages/Python/lldbsuite/test/lldbtest.py
The file was modifiedlldb/test/API/api/log/TestAPILog.py
The file was modifiedlldb/test/API/lang/cpp/accelerator-table/TestCPPAccelerator.py
The file was modifiedlldb/test/API/lang/c/modules/TestCModules.py
The file was modifiedlldb/test/API/lang/objc/modules-hash-mismatch/TestClangModulesHashMismatch.py
Commit c8b082a3abe44138fff4ef824300270dd6e8bc77 by maskray
[llvm-cov gcov] Support clang<11 fake 4.2 format

Test cases are restored from a3bed4bd3743b5fee1e66116a63089df742bcae1
The file was addedllvm/test/tools/llvm-cov/Inputs/gcov-fake-4.2.gcda
The file was addedllvm/test/tools/llvm-cov/gcov-fake-4.2.c
The file was addedllvm/test/tools/llvm-cov/Inputs/gcov-fake-4.2.gcno
The file was modifiedllvm/lib/ProfileData/GCOV.cpp
Commit ad879b31f054116a9df4efceddee967a2b6247bb by alexandre.ganea
[X86] Change signature of EmitNops. NFC.

This is to support https://reviews.llvm.org/D81301.
The file was modifiedllvm/lib/Target/X86/X86MCInstLower.cpp
Commit acb30f6856c34b929b30bfd76dc938a1087af0a9 by alexandre.ganea
[X86] For 32-bit targets, emit two-byte NOP when possible

In order to support hot-patching, we need to make sure the first emitted instruction in a function is a two-byte+ op. This is already the case on x86_64, which seems to always emit two-byte+ ops. However on 32-bit targets this wasn't the case.

PATCHABLE_OP now lowers to a XCHG AX, AX, (66 90) like MSVC does. However when targetting pentium3 (/arch:SSE) or i386 (/arch:IA32) targets, we generate MOV EDI,EDI (8B FF) like MSVC does. This is for compatiblity reasons with older tools that rely on this two byte pattern.

Differential Revision: https://reviews.llvm.org/D81301
The file was modifiedllvm/lib/Target/X86/X86MCInstLower.cpp
The file was modifiedllvm/test/CodeGen/X86/patchable-prologue.ll
The file was modifiedllvm/test/CodeGen/X86/patchable-function-entry.ll
Commit 7c7c8e0da4e0c400e7e06c4c6658372ea0b487ea by ianlevesque
[xray] Option to omit the function index

Summary:
Add a flag to omit the xray_fn_idx to cut size overhead and relocations
roughly in half at the cost of reduced performance for single function
patching.  Minor additions to compiler-rt support per-function patching
without the index.

Reviewers: dberris, MaskRay, johnislarry

Subscribers: hiraditya, arphaman, cfe-commits, #sanitizers, llvm-commits

Tags: #clang, #sanitizers, #llvm

Differential Revision: https://reviews.llvm.org/D81995
The file was addedllvm/test/CodeGen/AArch64/xray-omit-function-index.ll
The file was modifiedcompiler-rt/test/xray/TestCases/Posix/coverage-sample.cpp
The file was modifiedcompiler-rt/test/xray/TestCases/Posix/func-id-utils.cpp
The file was modifiedcompiler-rt/test/xray/TestCases/Posix/patching-unpatching.cpp
The file was modifiedclang/lib/Frontend/CompilerInvocation.cpp
The file was modifiedclang/include/clang/Basic/CodeGenOptions.def
The file was modifiedcompiler-rt/lib/xray/xray_init.cpp
The file was modifiedllvm/lib/CodeGen/CommandFlags.cpp
The file was modifiedclang/lib/CodeGen/BackendUtil.cpp
The file was addedclang/test/Driver/XRay/xray-function-index-flags.cpp
The file was modifiedclang/include/clang/Driver/XRayArgs.h
The file was modifiedllvm/include/llvm/Target/TargetOptions.h
The file was modifiedclang/lib/Driver/XRayArgs.cpp
The file was modifiedllvm/include/llvm/CodeGen/CommandFlags.h
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedcompiler-rt/lib/xray/xray_interface.cpp
The file was modifiedllvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Commit 1cbaf847ab84f37d9044d867b5ed8ae646c6ebc9 by ditaliano
[CGP] Reset the debug location when promoting zext(s).

When the zext gets promoted, it used to retain the original location,
which pessimizes the debugging experience causing an unexpected
jump in stepping at -Og.

Fixes https://bugs.llvm.org/show_bug.cgi?id=46120 (which also
contains a full C repro).

Differential Revision:  https://reviews.llvm.org/D81437
The file was modifiedllvm/lib/CodeGen/CodeGenPrepare.cpp
The file was modifiedllvm/test/DebugInfo/X86/zextload.ll
The file was addedllvm/test/Transforms/CodeGenPrepare/X86/promoted-zext-debugloc.ll
Commit bbf89644b5897c7d9508975c289fd861f60e0835 by zequanwu
[llvm-readobj] set --elf-cg-profile as alias of --cg-profile

Summary: Rename --elf-cg-profile to --cg-profile and keep --elf-cg-profile as an alias of --cg-profile.

Reviewers: jhenderson, MaskRay, espindola, hans

Reviewed By: jhenderson, MaskRay

Subscribers: emaste, rupprecht, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81855
The file was modifiedllvm/tools/llvm-readobj/llvm-readobj.cpp
The file was modifiedllvm/docs/CommandGuide/llvm-readobj.rst
The file was modifiedllvm/test/Object/multiple-sections.yaml
The file was modifiedllvm/test/MC/ELF/cgprofile.ll
The file was modifiedllvm/test/MC/ELF/cgprofile.s
The file was modifiedllvm/docs/CommandGuide/llvm-readelf.rst
The file was modifiedllvm/test/tools/llvm-readobj/ELF/demangle.test
The file was modifiedllvm/test/tools/yaml2obj/ELF/call-graph-profile-section.yaml
The file was modifiedllvm/test/tools/llvm-readobj/ELF/call-graph-profile.test
Commit ee1bf45e1d42d7f386d8321c3a8799476344ad91 by tianshilei1992
[OpenMP][NFC] Added DeviceID and Event pointer to __tgt_async_info

DeviceID is added for some cases that we only have the __tgt_async_info but do
not know its corresponding device id. However, to communicate with target
plugins, we need that information.

Event is added for another way to synchronize.
The file was modifiedopenmp/libomptarget/include/omptarget.h
Commit 5c244115c98acf61a5d5b867c590a34a6be6f5b9 by julian.lettner
[lit] Avoid re-iterating result codes in different places

Let's have one canonical place to define ResultCode instances and their
labels.

Also make ResultCode's `__init__` function self-registering to better
support custom ResultCodes.
The file was modifiedllvm/utils/lit/lit/main.py
The file was modifiedllvm/utils/lit/tests/Inputs/custom-result-category/format.py
The file was modifiedllvm/utils/lit/lit/Test.py
Commit 438f7fc068f9ba5555052c4af0b10f5e816c3a01 by sivachandra
[libc][benchmarks] Link the memory benchmark exes to functions from LLVM libc.

Summary:
To get the target order correct, the benchmarks directory has been moved
one level higher. Previously, it was living in the utils directory. The
utils directory is a collection of utils which are to be used by the
tests and implementations. However, benchmarks *use* the
implementations. So, moving it out of utils helps us setup proper
target level dependencies.

Reviewers: gchatelet

Differential Revision: https://reviews.llvm.org/D81910
The file was removedlibc/utils/benchmarks/Memset.cpp
The file was removedlibc/utils/benchmarks/LibcBenchmarkTest.cpp
The file was modifiedlibc/utils/CMakeLists.txt
The file was addedlibc/benchmarks/CMakeLists.txt
The file was removedlibc/utils/benchmarks/Memcpy.cpp
The file was removedlibc/utils/benchmarks/LibcBenchmark.cpp
The file was modifiedlibc/CMakeLists.txt
The file was removedlibc/utils/benchmarks/LibcMemoryBenchmarkTest.cpp
The file was addedlibc/benchmarks/LibcMemoryBenchmarkTest.cpp
The file was addedlibc/benchmarks/RATIONALE.md
The file was removedlibc/utils/benchmarks/Memcmp.cpp
The file was removedlibc/utils/benchmarks/JSON.cpp
The file was removedlibc/utils/benchmarks/configuration_big.json
The file was addedlibc/benchmarks/JSON.cpp
The file was removedlibc/utils/benchmarks/LibcMemoryBenchmarkMain.cpp
The file was removedlibc/utils/benchmarks/configuration_small.json
The file was removedlibc/utils/benchmarks/README.md
The file was removedlibc/utils/benchmarks/LibcMemoryBenchmark.h
The file was addedlibc/benchmarks/Memcpy.cpp
The file was addedlibc/benchmarks/configuration_big.json
The file was removedlibc/utils/benchmarks/CMakeLists.txt
The file was addedlibc/benchmarks/LibcMemoryBenchmark.h
The file was removedlibc/utils/benchmarks/LibcMemoryBenchmarkMain.h
The file was addedlibc/benchmarks/LibcBenchmark.cpp
The file was addedlibc/benchmarks/LibcMemoryBenchmarkMain.h
The file was removedlibc/utils/benchmarks/LibcMemoryBenchmark.cpp
The file was addedlibc/benchmarks/render.py3
The file was addedlibc/benchmarks/configuration_small.json
The file was removedlibc/utils/benchmarks/JSON.h
The file was addedlibc/benchmarks/Memset.cpp
The file was addedlibc/benchmarks/LibcBenchmarkTest.cpp
The file was removedlibc/utils/benchmarks/RATIONALE.md
The file was addedlibc/benchmarks/Memcmp.cpp
The file was removedlibc/utils/benchmarks/JSONTest.cpp
The file was removedlibc/utils/benchmarks/LibcBenchmark.h
The file was addedlibc/benchmarks/LibcMemoryBenchmarkMain.cpp
The file was addedlibc/benchmarks/LibcMemoryBenchmark.cpp
The file was removedlibc/utils/benchmarks/render.py3
The file was addedlibc/benchmarks/README.md
The file was addedlibc/benchmarks/JSON.h
The file was addedlibc/benchmarks/JSONTest.cpp
The file was addedlibc/benchmarks/LibcBenchmark.h
Commit 9b22b29f684f6f5fbe3dd1478704270023f24226 by ajcbik
[mlir] [VectorOps] Add create mask integration tests

Summary:
Two integration tests focused on i1 vectors, which exposed omissions
in the llvm backend which have since then been fixed. Note that this also
exposed an inaccuracy for print_i1 which has been fixed in this CL:
for a pure C ABI, int should be used rather than bool.

Reviewers: nicolasvasilache, ftynse, reidtatge, andydavis1, bkramer

Reviewed By: bkramer

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

Tags: #mlir

Differential Revision: https://reviews.llvm.org/D81957
The file was modifiedmlir/lib/ExecutionEngine/CRunnerUtils.cpp
The file was addedmlir/integration_test/Dialect/Vector/CPU/test-create-mask.mlir
The file was modifiedmlir/include/mlir/ExecutionEngine/CRunnerUtils.h
The file was addedmlir/integration_test/Dialect/Vector/CPU/test-create-mask-v4i1.mlir
Commit 88c965ba14cff1e04ccb4237966a9fefe902b1f4 by ndesaulniers
BreakCriticalEdges for callbr indirect dests

Summary:
llvm::SplitEdge was failing an assertion that the BasicBlock only had
one successor (for BasicBlocks terminated by CallBrInst, we typically
have multiple successors).  It was surprising that the earlier call to
SplitCriticalEdge did not handle the critical edge (there was an early
return).  Removing that triggered another assertion relating to creating
a BlockAddress for a BasicBlock that did not (yet) have a parent, which
is a simple order of operations issue in llvm::SplitCriticalEdge (a
freshly constructed BasicBlock must be inserted into a Function's basic
block list to have a parent).

Thanks to @nathanchance for the report.
Fixes: https://github.com/ClangBuiltLinux/linux/issues/1018

Reviewers: craig.topper, jyknight, void, fhahn, efriedma

Reviewed By: efriedma

Subscribers: eli.friedman, rnk, efriedma, fhahn, hiraditya, llvm-commits, nathanchance, srhines

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81607
The file was modifiedllvm/lib/Transforms/Utils/BreakCriticalEdges.cpp
The file was addedllvm/test/Transforms/CallSiteSplitting/callsite-split-callbr.ll
Commit 08c83ed75752169bdf27df8f5ea5978c53f2e258 by n.james93
[clang-tidy][NFC] Remove the double look-up on IncludeInserter

Refactor out the double lookup in `IncludeInserter` when trying to get the `IncludeSorter` for a specified `FileID`.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D82004
The file was modifiedclang-tools-extra/clang-tidy/utils/IncludeInserter.h
The file was modifiedclang-tools-extra/clang-tidy/utils/IncludeInserter.cpp
Commit e7816f263b14578e2d926d2ee2d32db21e6ae95b by ndesaulniers
[InlineSpiller] add assert about spills post terminators

Summary:
This invariant is being violated in the test case
https://reviews.llvm.org/D77849, related to the use of the relatively
new ability for callbr to have return values, and MachineBasicBlocks
with INLINEASM_BR terminators to emit live out register defs.

As noted in the comment, this triggers invariant violations in
MachineVerifier via `llc -verify-machineinstrs` or
`llc -verify-regalloc`, since only MachineInstrs that are terminators
are allowed to follow the first terminator.

https://reviews.llvm.org/D75098 may rework this very assertion if we're
spilling via a (proposed) TCOPY MachineInstr.

Reviewers: void, efriedma, arsenm

Reviewed By: efriedma

Subscribers: qcolombet, wdng, hiraditya, llvm-commits, srhines

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D78166
The file was modifiedllvm/lib/CodeGen/InlineSpiller.cpp
Commit aaf50adb539dc2504123486448a2c6f28f2c2c72 by tianshilei1992
Revert "[OpenMP][NFC] Added DeviceID and Event pointer to __tgt_async_info"

This reverts commit ee1bf45e1d42d7f386d8321c3a8799476344ad91.
The file was modifiedopenmp/libomptarget/include/omptarget.h
Commit f392b75fd8539e07b1bc9ba16a0fe34b18b789e8 by tkeith
[flang] Fix out-of-tree builds

Replace two MLIR dependencies with MLIRLinalgOps.

Differential Revision: https://reviews.llvm.org/D82038
The file was modifiedflang/lib/Lower/CMakeLists.txt
Commit c76edaabddea8a9b077859fcfa4d1465b7ce6a46 by benny.kra
[clang-tidy] Prune dead code. NFC.
The file was modifiedclang-tools-extra/clang-tidy/utils/IncludeInserter.cpp
The file was modifiedclang-tools-extra/clang-tidy/utils/RenamerClangTidyCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/utils/IncludeSorter.h
The file was modifiedclang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp
The file was modifiedclang-tools-extra/clang-tidy/utils/FixItHintUtils.h
The file was modifiedclang-tools-extra/clang-tidy/utils/IncludeInserter.h
The file was modifiedclang-tools-extra/clang-tidy/utils/IncludeSorter.cpp
The file was modifiedclang-tools-extra/clang-tidy/utils/DeclRefExprUtils.cpp
The file was modifiedclang-tools-extra/clang-tidy/utils/DeclRefExprUtils.h
Commit ded57e1a06a6baa354e9b72a34461648f6066ac9 by RonakNilesh.Chauhan
This is a test commit
The file was modifiedREADME.md
Commit 37e54ffa50595b7d7e8a00a758011dc184ebdea9 by RonakNilesh.Chauhan
Revert 'This is a test commit - ded57e1a06a6ba
The file was modifiedREADME.md
Commit 49754dcf22127b236892e4e46945e951bf790c44 by tlively
[WebAssembly] Fix bug in FixBrTables and use branch analysis utils

Summary:
This commit fixes a bug in the FixBrTables pass in which an
unconditional branch from the switch header block to the jump table
block was not removed before the blocks were combined. The result was
an invalid CFG in the MachineFunction. This commit also switches from
using bespoke branch analysis and deletion code to using the standard
utilities for the same.

Reviewers: aheejin, dschuff

Subscribers: sbc100, jgravelle-google, hiraditya, sunfish, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81909
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyFixBrTableDefaults.cpp
The file was modifiedllvm/test/CodeGen/WebAssembly/switch-unreachable-default.ll
Commit 2b851473372164f4487340434d12fbc722ba3e71 by lebedev.ri
[NFC][InstCombine] Negator: do not include unneeded "llvm/IR/DerivedTypes.h" header
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineNegator.cpp
Commit c4166f3d84985a8eddfc12dce10a2f66f7dc98d6 by lebedev.ri
[NFC][InstCombine] Negator: add thin negate() wrapped before visit()
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineNegator.cpp
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineInternal.h
Commit e3d8cb1e1d227c61576914e42435b5e71d442631 by lebedev.ri
[InstCombine] Negator: cache negation results (PR46362)

It is possible that we can try to negate the same value multiple times.
For example, PHI nodes may happen to have multiple incoming values
(all of which must be the same value) for the same incoming basic block.
It may happen that we try to negate such a PHI node, and succeed,
and that might result in having now-different incoming values..

To avoid that, and in general to reduce the amount of duplicated
work we might be doing, let's introduce a cache where
we'll track results of negating each value.

The added test was previously failing -verify after -instcombine.

Fixes https://bugs.llvm.org/show_bug.cgi?id=46362
The file was modifiedllvm/test/Transforms/InstCombine/sub-of-negatible.ll
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineInternal.h
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineNegator.cpp
Commit 84b4f5a6a6bc834c325edef7baec335b81b6e367 by lebedev.ri
[InstCombine] Negator: while there, add detection for cycles during negation

I don't have any testcases showing it happening,
and i haven't succeeded in creating one,
but i'm also not positive it can't ever happen,
and i recall having something that looked like
that in the very beginning of Negator creation.

But since we now already have a negation cache,
we can now detect such cases practically for free.

Let's do so instead of "relying" on stack overflow :D
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineNegator.cpp
Commit f39000b4505bcfe3d2fcf23487096fb4703082bd by maskray
[Driver] Delete CC1 -fxray-function-index and clean up some tests
The file was modifiedclang/test/Driver/XRay/xray-ignore-loops-flags.cpp
The file was modifiedclang/test/Driver/XRay/xray-function-index-flags.cpp
The file was modifiedclang/lib/Driver/XRayArgs.cpp
The file was modifiedclang/include/clang/Driver/XRayArgs.h
The file was modifiedclang/test/Driver/XRay/xray-instrumentation-bundles-flags.cpp
The file was modifiedclang/include/clang/Driver/Options.td
Commit 9d8d0646d751326e2766caeaa20f6e0d4b89a4f6 by huihuiz
[NFC] Silence compiler warning [-Wmissing-braces].

clang/lib/CodeGen/CGNonTrivialStruct.cpp:330:7: warning: suggest braces around initialization of subobject [-Wmissing-braces]
  Address(CGF->Builder.CreateLoad(CGF->GetAddrOfLocalVar(Args[Ints])),
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  {
The file was modifiedclang/lib/CodeGen/CGNonTrivialStruct.cpp
Commit 6c45532908bacc0cf569bcad74f6e04e1e2a6c61 by omair.javaid
Remove code duplication from RegisterContextPOSIX_*

Summary:
This patch aims to remove multiple copies of GetByteOrder() and ConvertRegisterKindToRegisterNumber used in various versions of RegisterContextPOSIX_*.

Both register implementations are move to RegisterContext class which is parent of RegisterContextPOSIX_* classes.

Built and tested on x86_64-linux-gnu, aarch64-linux-gnu and arm-linux-gnueabihf targets.

Reviewers: labath

Reviewed By: labath

Subscribers: wuzish, nemanjai, kristof.beyls, kbarton, atanasyan, lldb-commits

Differential Revision: https://reviews.llvm.org/D80104
The file was modifiedlldb/source/Plugins/Process/Utility/RegisterContextPOSIX_powerpc.cpp
The file was modifiedlldb/source/Plugins/Process/Utility/RegisterContextPOSIX_arm.h
The file was modifiedlldb/source/Plugins/Process/Utility/RegisterContextPOSIX_arm64.cpp
The file was modifiedlldb/source/Target/RegisterContext.cpp
The file was modifiedlldb/source/Plugins/Process/Utility/RegisterContextPOSIX_s390x.cpp
The file was modifiedlldb/source/Plugins/Process/Utility/RegisterContextPOSIX_x86.cpp
The file was modifiedlldb/include/lldb/Target/RegisterContext.h
The file was modifiedlldb/source/Plugins/Process/Utility/RegisterContextPOSIX_arm64.h
The file was modifiedlldb/source/Plugins/Process/Utility/RegisterContextPOSIX_mips64.cpp
The file was modifiedlldb/source/Plugins/Process/Utility/RegisterContextPOSIX_s390x.h
The file was modifiedlldb/source/Plugins/Process/Utility/RegisterContextPOSIX_ppc64le.h
The file was modifiedlldb/source/Plugins/Process/Utility/RegisterContextPOSIX_powerpc.h
The file was modifiedlldb/source/Plugins/Process/Utility/RegisterContextPOSIX_arm.cpp
The file was modifiedlldb/source/Plugins/Process/Utility/RegisterContextPOSIX_mips64.h
The file was modifiedlldb/source/Plugins/Process/Utility/RegisterContextPOSIX_ppc64le.cpp
The file was modifiedlldb/source/Plugins/Process/Utility/RegisterContextPOSIX_x86.h