Changes

Summary

  1. [NFC][Scheduler] Refactor tryCandidate to return boolean (details)
  2. [NFC][PassBuilder] addVectorPasses(): clarify that 'IsLTO' is actually 'IsFullLTO' (details)
  3. [lldb] Fix Recognizer/assert.test with glibc-2.33.9000-31.fc35.x86_64 (details)
  4. [MLIR] Add argument insertion helpers for FunctionLike (details)
  5. [clangd] Fix gRPC build due to missing include path (details)
  6. [mlir][linalg][python] Update integration of OpDSL doc (NFC). (details)
  7. PoC for Flang Driver Plugins (details)
  8. [flang][docs] Add documentation for the new Flang driver (details)
  9. [ORC] Add wrapper-function support methods to ExecutorProcessControl. (details)
  10. [flang] Revert "PoC for Flang Driver Plugins" (details)
  11. [gn build] Port 39f64c4c8375 (details)
  12. [analyzer] LValueToRValueBitCasts should evaluate to an r-value (details)
  13. [analyzer][NFC] Inline ExprEngine::handleLVectorSplat() (details)
  14. [BasicAA] Fix typo ScaleForGDC -> ScaleForGCD. (details)
  15. [PowerPC] add a testcase for byval parameter; NFC (details)
  16. [clang-format] PR50727 C# Invoke Lamda Expression indentation incorrect (details)
  17. added some example code for llvm::Expected<T> (details)
  18. [clang] Apply P1825 as Defect Report from C++11 up to C++20. (details)
  19. [DebugInfo][InstrRef][1/4] Support transformations that widen values (details)
  20. [mlir][async] Remove unused variable. NFC. (details)
  21. [mlir][Linalg] Add support for CallOp bufferization (10/n) (details)
  22. [CostModel][X86] getCastInstrCost - attempt to match custom cast/conversion before legalized types. (details)
  23. [llvm][docs] Bump release number from 12 -> 13 (details)
  24. [AArch64][SVE] Add support for fixed length MSCATTER/MGATHER (details)
  25. [mlir][Linalg] Add comprehensive bufferization support for linalg::InitTensor and tensor::CastOp (11/n) (details)
  26. [VP] Implementation of intrinsic and SDNode definitions for VP load, store, gather, scatter. (details)
  27. [mlir][Linalg] Drop comprehensive-func-bufferize (12/n) (details)
  28. [mlir][Linalg] Add comprehensive bufferization support for ConstantOp (13/n) (details)
  29. [libomptarget][nfc] Move grid size computation (details)
  30. [llvm-mca] Fix JSON output (PR50922) (details)
  31. [DebugInfo][InstrRef][2/4] Use subreg substitutions in LiveDebugValues (details)
  32. [AArch64] Add test for min/max (details)
  33. [clang] Fix CallExpr dependence bit may not respect all its arguments. (details)
  34. [AArch64] Add fp16 tests for vector copysign. (details)
  35. [flang][driver] Extend the `flang` bash script to act as a driver (details)
  36. [OPENMP]Fix PR50640: OpenMP target clause implicitly scaling loop bounds to uint64_t. (details)
  37. [NFC] Add new setDebugLocFromInst that uses the class Builder by default (details)
  38. Revert "[OPENMP]Fix PR50640: OpenMP target clause implicitly scaling loop bounds to uint64_t." (details)
  39. [libc++] Fix incorrect shell expansion in macos-ci-setup (details)
  40. [ARM] Transform a floating-point to fixed-point conversion to a VCVT_fix (details)
  41. [AArch64] Add some more tests to CodeGen/AArch64/aarch64-load-ext.ll. NFC. (details)
  42. [coro async] Add support for specifying which parameter is swiftself in (details)
  43. [CostModel][X86] Adjust fp<->int vXi32 SSE legalized costs based on llvm-mca reports. (details)
  44. [LoopVectorize][X86] Regenerate conversion-cost.ll tests (details)
  45. [clangd] Unbreak mac build differently 0c96a92d8666b8 (details)
  46. [OPENMP]Fix PR50640: OpenMP target clause implicitly scaling loop bounds to uint64_t. (details)
  47. [AArch64][GlobalISel]Legalise some vector types for min/max (details)
  48. [ARM] Extra BFI codegen tests. NFC (details)
  49. [AMDGPU] Fix immediate sign during V_MOV_B64_PSEUDO expansion (details)
  50. [SelectionDAG] Implement PromoteIntRes_INSERT_SUBVECTOR (details)
  51. GlobalISel: Use LLT in call lowering callbacks (details)
  52. [OpaquePtr] Support opaque pointers in intrinsic type check (details)
  53. [mlir][sparse] move tensor expression builder into Merger utility (details)
  54. [OpenMP][Offloading] Refined return value of `DeviceTy::getOrAllocTgtPtr` (details)
  55. [MLIR] FlatAffineConstraints: Use Matrix objects to store the constraints (details)
  56. [Bazel] Fixes for 266a7414d8 (details)
  57. Fix an accepts-invalid issue with [[]] attributes in the type position in C (details)
  58. [instcombine] Fold overflow check using overflow intrinsic to comparison (details)
  59. [NFC][compiler-rt] add back solaris xfail for unpoison-alternate-stack.cpp (details)
  60. [NFC][scudo] Extract MapAllocatorTest for TEST_F (details)
  61. [gwp_asan] Improve symbolizer script (details)
  62. [libc++] Migrate the additional_features parameter to the DSL (details)
  63. [libcxx] Update optional star operator to be noexcept. (details)
  64. [libcxx][functional][modular] splices <functional> into modular headers (details)
  65. [libc++] Provide c++03 alternative for va_copy if available in xlocale.h (details)
  66. [runtimes] Simplify how we specify XFAIL & friends based on the triple (details)
  67. [ADT] Follow up to fix bug in "Add makeVisitor to STLExtras.h" (details)
  68. [OpaquePtr] Support VecOfAnyPtrsToElt intrinsics (details)
  69. [gn build] Port 050b064f15ee (details)
  70. [CMake][MLIR][Linalg] Adding variable to specify tablegen file dependencies. (details)
  71. [NFC][scudo] Exctract getOptionsForConfig in test (details)
  72. [lld-macho] Add support for LTO optimization level (details)
  73. [scudo] Remove false DCHECK (details)
  74. [MLIR] Allow Affine scalar replacement to handle inner operations (details)
  75. Add linalg.mmt4d named op (details)
  76. [lit] Extend --xfail/LIT_XFAIL to take full test name (details)
  77. [Orc] At CBindings for LazyRexports (details)
  78. [clang-repl] Allow passing in code as positional arguments. (details)
  79. [scudo] Untag BlockEnd in reallocate (details)
  80. [ARM] Reassociate BFI (details)
  81. [llvm-strip] Support grouped options in llvm-strip (details)
  82. [cmake] Invoke strip without -l and with non-grouped flags. (details)
  83. [libc] Add minimal Windows config (details)
  84. [InstCombine][test] add tests for icmp simplify miscompile (PR50944); NFC (details)
  85. [InstSimplify] do not propagate poison from select arm to icmp user (details)
  86. [libcxx][ranges] Implement indirectly_swappable. (details)
  87. [OpenMP] Fix a few issues with hidden helper task (details)
  88. [libc++] IWYU <__utility/pair.h> in <__functional/hash.h>. NFCI. (details)
  89. Update MLIRContext to allow injecting an external ThreadPool (NFC) (details)
  90. [GISel] Print better error messages for missing Combiner Observer calls (details)
  91. [InstrProfiling] Use external weak reference for bias variable (details)
  92. [gn build] Port 33a7b4d9d8e6 (details)
  93. [AArch64] Optimize SVE bitcasts of unpacked types. (details)
  94. [mlir][tosa] Add tosa shape inference with InferReturnTypeComponent (details)
  95. [GlobalISel] Translate <1 x N> getelementptrs to scalar G_PTR_ADDs (details)
  96. [mlir][tosa] Added missing includes on PassDetails.h (details)
  97. Precommit test cases in https://reviews.llvm.org/D104953 (details)
  98. Mips/GlobalISel: Use accurate memory LLTs (details)
  99. [mlir][tosa] Include TosaDialect as include in tosa PassDetail.h (details)
  100. [mlir][tosa] Update Bazel files for TOSA pass changes (details)
  101. [mlir] Move BufferizeDimOp to Tensor/Transforms/Bufferize.cpp (details)
  102. [lld-macho] Move ICF earlier to avoid emitting redundant binds (details)
  103. [lld-macho] Deduplicate CFStrings (details)
  104. [lld-macho][nfc] Remove unnecessary vertical spacing (details)
  105. [lld-macho] Factor out common InputSection members (details)
  106. Support for merging UsingPackDecls across modules. (details)
  107. [ScalarizeMaskedMemIntrin][SelectionDAGBuilder] Use the element type to calculate alignment for gather/scatter when alignment operand is 0. (details)
  108. [ORC] Rename SPSTargetAddress to SPSExecutorAddress. (details)
  109. [llvm-symbolizer] Move setGroupedShortOptions and don't ignore case (details)
  110. [NFC][DSE]Change 'do-while' to 'for' loop to simplify code structure (details)
  111. [scudo] Fix test on aarch64 without MTE (details)
Commit 07f0faed1156e6ffe6b7df240ef422bd3adb9812 by qiucofan
[NFC][Scheduler] Refactor tryCandidate to return boolean

This patch changes return type of tryCandidate from void to bool:

1. Methods in some targets already follow this convention.
2. This would help if some target wants to re-use generic code.
3. It looks more intuitive if these try-method returns the same type.

We may need to change return type of them from bool to some enum
further, to make it less confusing.

Reviewed By: foad

Differential Revision: https://reviews.llvm.org/D103951
The file was modifiedllvm/lib/Target/PowerPC/PPCMachineScheduler.cpp
The file was modifiedllvm/lib/Target/PowerPC/PPCMachineScheduler.h
The file was modifiedllvm/include/llvm/CodeGen/MachineScheduler.h
The file was modifiedllvm/lib/CodeGen/MachineScheduler.cpp
Commit 333d3a3cdfd44ad67e7a09a078decee3bae56eb2 by lebedev.ri
[NFC][PassBuilder] addVectorPasses(): clarify that 'IsLTO' is actually 'IsFullLTO'

I.e. it will be `false` for thin lto.
The file was modifiedllvm/include/llvm/Transforms/IPO/PassManagerBuilder.h
The file was modifiedllvm/lib/Passes/PassBuilder.cpp
The file was modifiedllvm/lib/Transforms/IPO/PassManagerBuilder.cpp
The file was modifiedllvm/include/llvm/Passes/PassBuilder.h
Commit e825c244b6063344ae726600d6a1225a05788dfa by jan.kratochvil
[lldb] Fix Recognizer/assert.test with glibc-2.33.9000-31.fc35.x86_64

While on regular Linux system (Fedora 34 GA, not updated):

* thread #1, name = '1', stop reason = hit program assert
    frame #0: 0x00007ffff7e242a2 libc.so.6`raise + 322
    frame #1: 0x00007ffff7e0d8a4 libc.so.6`abort + 278
    frame #2: 0x00007ffff7e0d789 libc.so.6`__assert_fail_base.cold + 15
    frame #3: 0x00007ffff7e1ca16 libc.so.6`__assert_fail + 70
  * frame #4: 0x00000000004011bd 1`main at assert.c:7:3

On Fedora 35 pre-release one gets:

* thread #1, name = '1', stop reason = signal SIGABRT
  * frame #0: 0x00007ffff7e48ee3 libc.so.6`pthread_kill@GLIBC_2.2.5 + 67
    frame #1: 0x00007ffff7dfb986 libc.so.6`raise + 22
    frame #2: 0x00007ffff7de5806 libc.so.6`abort + 230
    frame #3: 0x00007ffff7de571b libc.so.6`__assert_fail_base.cold + 15
    frame #4: 0x00007ffff7df4646 libc.so.6`__assert_fail + 70
    frame #5: 0x00000000004011bd 1`main at assert.c:7:3

I did not write a testcase as one needs the specific glibc. An
artificial test would just copy the changed source.

Reviewed By: mib

Differential Revision: https://reviews.llvm.org/D105133
The file was modifiedlldb/source/Target/AssertFrameRecognizer.cpp
Commit 8066f22c4663d9ee6c763d9108c89448e5c19848 by fabian
[MLIR] Add argument insertion helpers for FunctionLike

Add helpers to facilitate adding arguments and results to operations
that implement the `FunctionLike` trait. These operations already have a
convenient argument and result *erasure* mechanism, but a corresopnding
utility for insertion is missing. This introduces such a utility.
The file was modifiedmlir/include/mlir/IR/FunctionSupport.h
The file was addedmlir/test/IR/test-func-insert-result.mlir
The file was modifiedmlir/test/lib/IR/TestFunc.cpp
The file was modifiedmlir/include/mlir/IR/BuiltinTypes.td
The file was addedmlir/test/IR/test-func-insert-arg.mlir
The file was modifiedmlir/lib/IR/FunctionSupport.cpp
The file was modifiedmlir/lib/IR/BuiltinTypes.cpp
Commit 0e2d4bd4bfa516977d027ece8597fc8dd1f3c656 by sam.mccall
[clangd] Fix gRPC build due to missing include path
The file was modifiedclang-tools-extra/clangd/index/remote/CMakeLists.txt
Commit 226f925c3f3461cbd3e76f383069b01b5f7db2f3 by gysit
[mlir][linalg][python] Update integration of OpDSL doc (NFC).

Move the OpDSL doc to a linalg sub folder and updated the integration in the main linalg documentation.

Differential Revision: https://reviews.llvm.org/D105188
The file was addedmlir/docs/Dialects/Linalg/OpDSL.md
The file was modifiedmlir/docs/Rationale/RationaleLinalgDialect.md
The file was removedmlir/docs/Tools/LinalgOpDsl.md
The file was removedmlir/docs/Dialects/Linalg.md
The file was addedmlir/docs/Dialects/Linalg/_index.md
Commit 788a5d4afe6407e647454a9832a7b4a27fba06bf by andrzej.warzynski
PoC for Flang Driver Plugins
The file was modifiedflang/lib/Frontend/CompilerInvocation.cpp
The file was modifiedflang/lib/Frontend/FrontendActions.cpp
The file was modifiedllvm/lib/Support/DynamicLibrary.cpp
The file was modifiedflang/include/flang/Frontend/FrontendOptions.h
The file was addedflang/examples/HelloWorld/CMakeLists.txt
The file was modifiedflang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
The file was modifiedflang/examples/CMakeLists.txt
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedflang/CMakeLists.txt
The file was addedflang/examples/HelloWorld/HelloWorldPlugin.cpp
The file was modifiedflang/lib/Frontend/FrontendAction.cpp
The file was modifiedflang/include/flang/Frontend/FrontendActions.h
The file was addedflang/include/flang/Frontend/FrontendPluginRegistry.h
The file was modifiedllvm/include/llvm/Support/Registry.h
Commit ea3698ded34419310a92e441e92be1c85444140d by andrzej.warzynski
[flang][docs] Add documentation for the new Flang driver

Differential Revision: https://reviews.llvm.org/D104229
The file was addedflang/docs/FlangDriver.md
Commit 39f64c4c83754b4e436d7fffa31bd70f11d7a657 by Lang Hames
[ORC] Add wrapper-function support methods to ExecutorProcessControl.

Adds support for both synchronous and asynchronous calls to wrapper functions
using SPS (Simple Packed Serialization). Also adds support for wrapping
functions on the JIT side in SPS-based wrappers that can be called from the
executor.

These new methods simplify calls between the JIT and Executor, and will be used
in upcoming ORC runtime patches to enable communication between ORC and the
runtime.
The file was modifiedllvm/unittests/ExecutionEngine/Orc/WrapperFunctionUtilsTest.cpp
The file was modifiedllvm/lib/ExecutionEngine/Orc/ExecutorProcessControl.cpp
The file was addedllvm/unittests/ExecutionEngine/Orc/ExecutorProcessControlTest.cpp
The file was modifiedllvm/include/llvm/ExecutionEngine/Orc/ExecutorProcessControl.h
The file was modifiedllvm/include/llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h
The file was modifiedllvm/unittests/ExecutionEngine/Orc/CMakeLists.txt
The file was modifiedllvm/include/llvm/ExecutionEngine/Orc/Core.h
The file was modifiedllvm/include/llvm/ExecutionEngine/Orc/OrcRPCExecutorProcessControl.h
Commit c1f068b8f1d5f6ca75acc07fdedf2e7416e834ec by andrzej.warzynski
[flang] Revert "PoC for Flang Driver Plugins"

This patch has not been reviewed and was commited by accident.

This reverts commit 788a5d4afe6407e647454a9832a7b4a27fba06bf.
The file was modifiedflang/include/flang/Frontend/FrontendOptions.h
The file was removedflang/examples/HelloWorld/CMakeLists.txt
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedflang/CMakeLists.txt
The file was modifiedflang/lib/Frontend/FrontendActions.cpp
The file was modifiedllvm/include/llvm/Support/Registry.h
The file was modifiedllvm/lib/Support/DynamicLibrary.cpp
The file was modifiedflang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
The file was removedflang/include/flang/Frontend/FrontendPluginRegistry.h
The file was modifiedflang/lib/Frontend/CompilerInvocation.cpp
The file was modifiedflang/lib/Frontend/FrontendAction.cpp
The file was modifiedflang/examples/CMakeLists.txt
The file was removedflang/examples/HelloWorld/HelloWorldPlugin.cpp
The file was modifiedflang/include/flang/Frontend/FrontendActions.h
Commit 820ced136280474a6702a10e9dfb35fdef1a0e6f by llvmgnsyncbot
[gn build] Port 39f64c4c8375
The file was modifiedllvm/utils/gn/secondary/llvm/unittests/ExecutionEngine/Orc/BUILD.gn
Commit aa454dda2eed4e71081bc57b1f32dfce2486b177 by balazs.benics
[analyzer] LValueToRValueBitCasts should evaluate to an r-value

Previously `LValueToRValueBitCast`s were modeled in the same way how
a regular `BitCast` was. However, this should not produce an l-value.
Modeling bitcasts accurately is tricky, so it's probably better to
model this expression by binding a fresh conjured value.

The following code should not result in a diagnostic:
```lang=C++
  __attribute__((always_inline))
  static inline constexpr unsigned int_castf32_u32(float __A) {
    return __builtin_bit_cast(unsigned int, __A); // no-warning
  }
```

Previously, it reported
`Address of stack memory associated with local variable '__A' returned
to caller [core.StackAddressEscape]`.

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

Reviewed by: NoQ, vsavchenko
The file was addedclang/test/Analysis/builtin_bitcast.cpp
The file was modifiedclang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
Commit 55662b24a4755680e4fd34dc22a3dd555fdb1291 by balazs.benics
[analyzer][NFC] Inline ExprEngine::handleLVectorSplat()

It seems like ExprEngine::handleLVectorSplat() was used at only 2
places. It might be better to directly inline them for readability.

It seems like these cases were not covered by tests according to my
coverage measurement, so I'm adding tests as well, demonstrating that no
behavior changed.
Besides that, I'm handling CK_MatrixCast similarly to how the rest of
the unhandled casts are evaluated.

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

Reviewed by: NoQ
The file was modifiedclang/test/Analysis/casts.c
The file was modifiedclang/lib/StaticAnalyzer/Core/ExprEngineC.cpp
Commit dc4299a7f3ad7e4fa3c310d585de4e46bde58d16 by flo
[BasicAA] Fix typo ScaleForGDC -> ScaleForGCD.
The file was modifiedllvm/lib/Analysis/BasicAliasAnalysis.cpp
Commit c32186038d6c581dcf5d12e16c47d003cd6fafff by czhengsz
[PowerPC] add a testcase for byval parameter; NFC
The file was addedllvm/test/CodeGen/PowerPC/byval.ll
Commit f9937106b7171eb1f4f8914e29c2be0c36ebc46d by mydeveloperday
[clang-format] PR50727 C# Invoke Lamda Expression indentation incorrect

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

When processing C# Lambda expression in the indentation can goes a little wrong,
resulting the the closing } being at the wrong indentation level and meaning the remaining part of the file is
incorrectly indented.

This can be a fairly common pattern for when C# wants to peform a UI action from a thread,
and it wants to invoke that action on the main thread

Reviewed By: exv, jbcoe

Differential Revision: https://reviews.llvm.org/D104388
The file was modifiedclang/lib/Format/UnwrappedLineParser.cpp
The file was modifiedclang/unittests/Format/FormatTestCSharp.cpp
Commit cd8f979fe48c068e9cd50c283833fa8c4430b20b by kuhnel
added some example code for llvm::Expected<T>

Since I had some fun understanding how to properly use llvm::Expected<T> I added some code examples that I would have liked to see when learning to use it.

Reviewed By: sammccall

Differential Revision: https://reviews.llvm.org/D105014
The file was modifiedllvm/include/llvm/Testing/Support/Error.h
The file was modifiedllvm/include/llvm/Support/Error.h
Commit 7d2d5a3a6d7aaa40468c30250bf6b0938ef02c08 by mizvekov
[clang] Apply P1825 as Defect Report from C++11 up to C++20.

This extends the effects of [[ http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1825r0.html | P1825 ]] to all C++ standards from C++11 up to C++20.

According to Motion 23 from Cologne 2019, P1825R0 was accepted as a Defect Report, so we retroactively apply this all the way back to C++11.

Note that we also remove implicit moves from C++98 as an extension
altogether, since the expanded first overload resolution from P1825
can cause some meaning changes in C++98.
For example it can change which copy constructor is picked when both const
and non-const ones are available.

This also rips out warn_return_std_move since there are no cases where it would be worthwhile to suggest it.

This also fixes a bug with bailing into the second overload resolution
when encountering a non-rvref qualified conversion operator.
This was unnoticed until now, so two new test cases cover these.

Signed-off-by: Matheus Izvekov <mizvekov@gmail.com>

Reviewed By: rsmith

Differential Revision: https://reviews.llvm.org/D104500
The file was modifiedclang/test/SemaCXX/P1155.cpp
The file was modifiedclang/test/CXX/class/class.init/class.copy.elision/p3.cpp
The file was modifiedclang/include/clang/Sema/Sema.h
The file was modifiedclang/test/SemaCXX/conversion-function.cpp
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
The file was removedclang/test/SemaCXX/warn-return-std-move.cpp
The file was modifiedclang/test/SemaObjCXX/block-capture.mm
The file was modifiedclang/lib/Sema/SemaStmt.cpp
Commit 47c3fe2a22cf753fd55d08d367fbd817b4dd4a1c by jeremy.morse
[DebugInfo][InstrRef][1/4] Support transformations that widen values

Very late in compilation, backends like X86 will perform optimisations like
this:

    $cx = MOV16rm $rax, ...
    ->
    $rcx = MOV64rm $rax, ...

Widening the load from 16 bits to 64 bits. SEeing how the lower 16 bits
remain the same, this doesn't affect execution. However, any debug
instruction reference to the defined operand now refers to a 64 bit value,
nto a 16 bit one, which might be unexpected. Elsewhere in codegen, there's
often this pattern:

    CALL64pcrel32 @foo, implicit-def $rax
    %0:gr64 = COPY $rax
    %1:gr32 = COPY %0.sub_32bit

Where we want to refer to the definition of $eax by the call, but don't
want to refer the copies (they don't define values in the way
LiveDebugValues sees it). To solve this, add a subregister field to the
existing "substitutions" facility, so that we can describe a field within
a larger value definition. I would imagine that this would be used most
often when a value is widened, and we need to refer to the original,
narrower definition.

Differential Revision: https://reviews.llvm.org/D88891
The file was modifiedllvm/lib/CodeGen/MIRParser/MIRParser.cpp
The file was modifiedllvm/test/DebugInfo/MIR/InstrRef/livedebugvalues_instrref_tolocs.mir
The file was modifiedllvm/lib/CodeGen/MIRPrinter.cpp
The file was modifiedllvm/lib/CodeGen/MachineInstr.cpp
The file was modifiedllvm/include/llvm/CodeGen/MachineFunction.h
The file was modifiedllvm/lib/CodeGen/MachineFunction.cpp
The file was modifiedllvm/test/DebugInfo/MIR/InstrRef/substitusions-roundtrip.mir
The file was modifiedllvm/lib/Target/X86/X86FixupBWInsts.cpp
The file was modifiedllvm/include/llvm/CodeGen/MachineInstr.h
The file was addedllvm/test/DebugInfo/MIR/InstrRef/x86-fixup-bw-inst-subreb.mir
The file was modifiedllvm/include/llvm/CodeGen/MIRYamlMapping.h
The file was modifiedllvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
The file was modifiedllvm/test/DebugInfo/MIR/InstrRef/twoaddr-to-threeaddr-sub.mir
Commit ce857d3cfd42dc7056505e0f45390ef703ff0bfe by benny.kra
[mlir][async] Remove unused variable. NFC.
The file was modifiedmlir/lib/Dialect/Async/Transforms/AsyncParallelFor.cpp
Commit 73bea97a336ba2da276ef34fd21b2c5c676b0a97 by nicolas.vasilache
[mlir][Linalg] Add support for CallOp bufferization (10/n)

Cross function boundary bufferization support is added.
This is enabled by cross-function boundary alias analysis, for which the bufferization process is extended: it can now modify the BufferizationAliasInfo as new ops are introduced.

A number of simplifying assumptions are made:

1. by default we bufferize to the most dynamic strided memref type, further memref::CastOp canonicalizations are expected to clean up the IR.
2. in the current implementation, the stride information is always erased at function boundaries. A subsequent pass will be required to analyze the meet of all call ops to a function and decide whether more static buffer types can be used. This will potentially clone functions when it is deemed profitable to do so (e.g. when the stride-1 dimension may vary).
3. external function always bufferize to the most dynamic strided memref version. This may require special annotations for specifying that particular operands of top-level functions have contiguous buffer layout.

An alternative to point 3. would be to support tensor layout annotations, which is currently not supported in MLIR.

Differential revision: https://reviews.llvm.org/D104873
The file was addedmlir/test/Dialect/Linalg/comprehensive-module-bufferize.mlir
The file was modifiedmlir/test/Dialect/Linalg/comprehensive-module-bufferize-invalid.mlir
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
Commit 2a1ef8784ad9a78583a2f1f3bba536ee57b6b13b by llvm-dev
[CostModel][X86] getCastInstrCost - attempt to match custom cast/conversion before legalized types.

Move the (SSE-only) generic, legalized type conversion matching after the specific,custom conversion cases, allowing us to properly provide cost overrides.

The next step will be to clean up some of the weird existing costs and then to enable AVX+ legalized costs, which will let us strip out a lot of the cost tables entries.
The file was modifiedllvm/test/Analysis/CostModel/X86/cast.ll
The file was modifiedllvm/test/Analysis/CostModel/X86/sitofp.ll
The file was modifiedllvm/lib/Target/X86/X86TargetTransformInfo.cpp
Commit 65722561dff2c3110af1617f91eae162f32d5968 by david.spickett
[llvm][docs] Bump release number from 12 -> 13

This seems to have been forgotten. The result was the title
of pages like https://llvm.org/docs/ReleaseNotes.html

Was:
<title>LLVM 13.0.0 Release Notes &#8212; LLVM 12 documentation</title>

Reviewed By: tstellar

Differential Revision: https://reviews.llvm.org/D105189
The file was modifiedllvm/docs/conf.py
Commit 01b846674d27f035becac4c980a91c1204b6587b by bradley.smith
[AArch64][SVE] Add support for fixed length MSCATTER/MGATHER

Since gather lowering can now lower to nodes that may need expansion via
the vector legalizer, do MGATHER lowering via vector legalizer.

Additionally, as part of adding passthru support for fixed typed
gathers, fix passthru support for scalable types.

Depends on D104910

Differential Revision: https://reviews.llvm.org/D104217
The file was modifiedllvm/lib/Target/AArch64/AArch64TargetTransformInfo.h
The file was addedllvm/test/CodeGen/AArch64/sve-fixed-length-masked-gather.ll
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelLowering.cpp
The file was addedllvm/test/CodeGen/AArch64/sve-fixed-length-masked-scatter.ll
The file was modifiedllvm/test/CodeGen/AArch64/sve-masked-gather.ll
The file was modifiedllvm/lib/CodeGen/SelectionDAG/LegalizeVectorOps.cpp
Commit 231b9dd9de87f15170850e7d752dd6bd19799449 by nicolas.vasilache
[mlir][Linalg] Add comprehensive bufferization support for linalg::InitTensor and tensor::CastOp (11/n)

Also add an integration test that connects all the dots end to end, including with cast to unranked tensor for external library calls.

Differential Revision: https://reviews.llvm.org/D105106
The file was modifiedmlir/test/Dialect/Linalg/comprehensive-module-bufferize.mlir
The file was addedmlir/test/Integration/Dialect/Linalg/CPU/test-comprehensive-bufferize.mlir
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
Commit d21a35ac0a958fd4cff0b8f424a2706b8785b89d by simon.moll
[VP] Implementation of intrinsic and SDNode definitions for VP load, store, gather, scatter.

This patch adds intrinsic definitions and SDNodes for predicated
load/store/gather/scatter, based on the work done in D57504.

Reviewed By: simoll, craig.topper

Differential Revision: https://reviews.llvm.org/D99355
The file was modifiedllvm/include/llvm/IR/IntrinsicInst.h
The file was modifiedllvm/lib/IR/IntrinsicInst.cpp
The file was modifiedllvm/include/llvm/IR/Intrinsics.td
The file was modifiedllvm/include/llvm/CodeGen/SelectionDAGNodes.h
The file was modifiedllvm/include/llvm/IR/VPIntrinsics.def
The file was modifiedllvm/unittests/IR/VPIntrinsicTest.cpp
Commit 55c274d7d30eb4de129a70bf48a063e740b71c9c by nicolas.vasilache
[mlir][Linalg] Drop comprehensive-func-bufferize (12/n)

This revision drops the comprehensive bufferization Function pass, which has issues when trying to bufferize constants.
Instead, only support the comprehensive-module-bufferize by default.

Differential Revision: https://reviews.llvm.org/D105228
The file was removedmlir/test/Dialect/Linalg/comprehensive-func-bufferize.mlir
The file was modifiedmlir/include/mlir/Dialect/Linalg/Passes.h
The file was modifiedmlir/include/mlir/Dialect/Linalg/Passes.td
The file was removedmlir/test/Dialect/Linalg/comprehensive-func-bufferize-analysis.mlir
The file was modifiedmlir/test/Dialect/Linalg/comprehensive-module-bufferize.mlir
The file was removedmlir/test/Dialect/Linalg/comprehensive-func-bufferize-analysis-invalid.mlir
The file was modifiedmlir/test/Dialect/Linalg/comprehensive-module-bufferize-invalid.mlir
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
The file was modifiedmlir/test/Dialect/Linalg/comprehensive-module-bufferize-analysis.mlir
Commit ed1681ed3aff0f1fb97f1a738938671df098b939 by nicolas.vasilache
[mlir][Linalg] Add comprehensive bufferization support for ConstantOp (13/n)

ConstantOp are only supported in the ModulePass because they require a GlobalCreator object that must be constructed from a ModuleOp.
If the standlaone FunctionPass encounters a ConstantOp, bufferization fails.

Differential revision: https://reviews.llvm.org/D105156
The file was modifiedmlir/test/Dialect/Linalg/comprehensive-module-bufferize.mlir
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
Commit db89414da4eae1c4cde63b8a4b0c762bbebf53b7 by jonathanchesterfield
[libomptarget][nfc] Move grid size computation

Change getLaunchVals to return the integers used for launch

Reviewed By: pdhaliwal

Differential Revision: https://reviews.llvm.org/D105237
The file was modifiedopenmp/libomptarget/plugins/amdgpu/src/rtl.cpp
Commit aa13e4fe7e7b03b827fe2ade346174ce57fb9411 by andrea.dibiagio
[llvm-mca] Fix JSON output (PR50922)

Based on the discussion in PR50922, minor changes have been done to properly
output a valid JSON.  Removed "not implemented" keys.

Differential Revision: https://reviews.llvm.org/D105064
The file was modifiedllvm/tools/llvm-mca/Views/DispatchStatistics.h
The file was modifiedllvm/tools/llvm-mca/Views/InstructionInfoView.cpp
The file was modifiedllvm/tools/llvm-mca/Views/View.h
The file was modifiedllvm/tools/llvm-mca/PipelinePrinter.cpp
The file was modifiedllvm/tools/llvm-mca/Views/BottleneckAnalysis.h
The file was modifiedllvm/test/tools/llvm-mca/JSON/X86/views.s
The file was modifiedllvm/tools/llvm-mca/Views/DispatchStatistics.cpp
The file was modifiedllvm/tools/llvm-mca/Views/RetireControlUnitStatistics.h
The file was modifiedllvm/tools/llvm-mca/Views/RegisterFileStatistics.h
The file was modifiedllvm/docs/CommandGuide/llvm-mca.rst
The file was modifiedllvm/tools/llvm-mca/Views/SchedulerStatistics.h
Commit e9641c911ef4127da1d98c4e4d37039989e6052b by jeremy.morse
[DebugInfo][InstrRef][2/4] Use subreg substitutions in LiveDebugValues

Added in 47c3fe2a22cf, we sometimes need to describe a variable value
substitution with a subregister qualifier, to say that "the value is the
lower 32 bits of this 64 bit register def" for example. That then needs
support during LiveDebugValues to interpret the subregister qualifiers,
which is what this patch adds.

Whenever we encounter a DBG_INSTR_REF and find its value by using a
substitution, collect any subregister qualifiers seen. Then, accumulate the
effects of the qualifiers to work out what offset and what size should be
extracted from the defined register. Finally, for the target ValueIDNum,
extract whatever subregister is in the correct position

Currently, describing a subregister field of a larger value that has been
spilt to the stack, is unimplemented.

Differential Revision: https://reviews.llvm.org/D88894
The file was addedllvm/test/DebugInfo/MIR/InstrRef/livedebugvalues_subreg_substitutions.mir
The file was modifiedllvm/lib/CodeGen/LiveDebugValues/InstrRefBasedImpl.cpp
Commit cf76569f6a617b782373548a6b030ab3dd44c6af by irina.dobrescu
[AArch64] Add test for min/max

Differential Revision: https://reviews.llvm.org/D104447
The file was addedllvm/test/CodeGen/AArch64/min-max.ll
Commit 314e456dfe85f8b5c53b85a7d815f7d463fe02ef by hokein.wu
[clang] Fix CallExpr dependence bit may not respect all its arguments.

Before this patch, the dependence of CallExpr was only computed in the
constructor, the dependence bits might not reflect truth -- some arguments might
be not set (nullptr) during this time, e.g. CXXDefaultArgExpr will be set via
the setArg method in the later parsing stage, so we need to recompute the
dependence bits.
The file was modifiedclang/include/clang/AST/Expr.h
The file was modifiedclang/test/SemaCXX/recovery-expr-type.cpp
The file was modifiedclang/lib/Sema/SemaExpr.cpp
The file was modifiedclang/lib/AST/Expr.cpp
Commit b122ff71f3084d70dea7bf75c08414bf4bc1b38d by flo
[AArch64] Add fp16 tests for vector copysign.

Add additional fp16 vector tests for copysign, to show improvements in
follow-up patch.
The file was modifiedllvm/test/CodeGen/AArch64/vector-fcopysign.ll
Commit e77191c35e334bbdbb72aeaecb44c7b5f6bfd31b by andrzej.warzynski
[flang][driver] Extend the `flang` bash script to act as a driver

Until now, `f18` would:
  1. Use Flang to unparse the input files
  2. Call an external Fortran compiler to compile the unparsed source
  files (generated in step 1)

With this patch, `f18` will stop after unparsing the input source files,
i.e. step 1 above. The `flang` bash script will take care of step 2,
i.e. calling an external Fortran compiler driver to compile them. This
way:
  * the functionality of `f18` is reduced - it will only drive Flang (as
  opposed to delegating code-generation to an external tool on top of
  this)
  * we will able to switch between `f18` and `flang-new` for unparsing before
  an external Fortran compiler is called for code-generation

The updated `flang` bash script needs to specify the output file when
using the `-fdebug-unparse` action. Both `f18` and `flang-new` have been
updated accordingly.

These changes were discussed in [1] as a requirement for replacing `f18`
with `flang-new`.

[1] https://lists.llvm.org/pipermail/flang-dev/2021-April/000677.html

Differential Revision: https://reviews.llvm.org/D103177
The file was addedflang/tools/f18/flang.in
The file was modifiedflang/tools/f18/CMakeLists.txt
The file was removedflang/tools/f18/flang
The file was modifiedflang/lib/Frontend/FrontendActions.cpp
The file was modifiedflang/tools/f18/f18.cpp
Commit 67643f46ee9fb08e32075d67715a59c840aa761b by a.bataev
[OPENMP]Fix PR50640: OpenMP target clause implicitly scaling loop bounds to uint64_t.

Need to add some conversions to suppress possible warning messages.

Differential Revision: https://reviews.llvm.org/D105187
The file was modifiedclang/lib/Sema/SemaOpenMP.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_parallel_for_schedule_codegen.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_simd_schedule_codegen.cpp
The file was modifiedclang/test/OpenMP/distribute_parallel_for_codegen.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_parallel_for_simd_schedule_codegen.cpp
The file was modifiedclang/test/OpenMP/nvptx_target_teams_distribute_parallel_for_simd_codegen.cpp
The file was modifiedclang/test/OpenMP/nvptx_target_teams_distribute_parallel_for_generic_mode_codegen.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_parallel_for_ast_print.cpp
The file was modifiedclang/test/OpenMP/nvptx_target_teams_distribute_parallel_for_codegen.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_schedule_codegen.cpp
The file was modifiedclang/test/OpenMP/distribute_parallel_for_simd_codegen.cpp
Commit 51b4ab26ca583b8d313da7663478392196ae6b6a by david.sherwood
[NFC] Add new setDebugLocFromInst that uses the class Builder by default

In lots of places we were calling setDebugLocFromInst and passing
in the same Builder member variable found in InnerLoopVectorizer.
I personally found this confusing so I've changed the interface
to take an Optional<IRBuilder<> *> and we can now pass in None
when we want to use the class member variable.

Differential Revision: https://reviews.llvm.org/D105100
The file was modifiedllvm/lib/Transforms/Vectorize/LoopVectorize.cpp
Commit d93ca4d27ef75676728eaeff47457ebd22eb234f by a.bataev
Revert "[OPENMP]Fix PR50640: OpenMP target clause implicitly scaling loop bounds to uint64_t."

This reverts commit 67643f46ee9fb08e32075d67715a59c840aa761b to fix
unexpected diagnostic notes.
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_schedule_codegen.cpp
The file was modifiedclang/test/OpenMP/distribute_parallel_for_codegen.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_parallel_for_simd_schedule_codegen.cpp
The file was modifiedclang/test/OpenMP/distribute_parallel_for_simd_codegen.cpp
The file was modifiedclang/lib/Sema/SemaOpenMP.cpp
The file was modifiedclang/test/OpenMP/nvptx_target_teams_distribute_parallel_for_generic_mode_codegen.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_simd_schedule_codegen.cpp
The file was modifiedclang/test/OpenMP/nvptx_target_teams_distribute_parallel_for_codegen.cpp
The file was modifiedclang/test/OpenMP/nvptx_target_teams_distribute_parallel_for_simd_codegen.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_parallel_for_ast_print.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_parallel_for_schedule_codegen.cpp
Commit c475efe9162437045d7292befc5e4d35ad5c4351 by Louis Dionne
[libc++] Fix incorrect shell expansion in macos-ci-setup
The file was modifiedlibcxx/utils/ci/macos-ci-setup
Commit 24d76419d6b7a3191ec1f4bfc33a640e716f11c8 by samuel.tebbs
[ARM] Transform a floating-point to fixed-point conversion to a VCVT_fix

Much like fixed-point to floating-point conversion, the converse can
also be transformed into a fixed-point VCVT. This patch transforms
multiplications of floating point numbers by 2^n into a VCVT_fix. The
exception is that a float to fixed conversion with 1 fractional bit
ends up being an FADD (FADD(x, x) emulates FMUL(x, 2)) rather than an FMUL so there is a special case for that. This patch also moves the code from https://reviews.llvm.org/D103903 into a separate function as fixed to float and float to fixed are very similar.

Differential Revision: https://reviews.llvm.org/D104793
The file was removedllvm/test/CodeGen/Thumb2/mve-vcvt-fixed.ll
The file was modifiedllvm/lib/Target/ARM/ARMISelDAGToDAG.cpp
The file was addedllvm/test/CodeGen/Thumb2/mve-vcvt-fixed-to-float.ll
The file was addedllvm/test/CodeGen/Thumb2/mve-vcvt-float-to-fixed.ll
Commit 513ad683157d547628e246cc86487a70ddadf98d by sjoerd.meijer
[AArch64] Add some more tests to CodeGen/AArch64/aarch64-load-ext.ll. NFC.
The file was modifiedllvm/test/CodeGen/AArch64/aarch64-load-ext.ll
Commit 4a361f52093b976401a78bdd261964e45492f2e3 by aschwaighofer
[coro async] Add support for specifying which parameter is swiftself in
  async resume functions

Differential Revision: https://reviews.llvm.org/D104147
The file was modifiedllvm/lib/Transforms/Coroutines/CoroSplit.cpp
The file was modifiedllvm/test/Transforms/Coroutines/coro-async.ll
Commit 5e5ba14b4d839dab361fcd929b45e9a35ca315c8 by llvm-dev
[CostModel][X86] Adjust fp<->int vXi32 SSE legalized costs based on llvm-mca reports.

Building on rG2a1ef8784ad9a, adjust the SSE cost tables to use the legalized types based on the worst case costs from the script in D103695.

To account for different numbers of src/dst legalized type registers we must scale the cost by maximum of the src/dst, not just use src
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/uitofp.ll
The file was modifiedllvm/test/Analysis/CostModel/X86/sitofp.ll
The file was modifiedllvm/test/Analysis/CostModel/X86/fptoui.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/alternate-cast-inseltpoison.ll
The file was modifiedllvm/lib/Target/X86/X86TargetTransformInfo.cpp
The file was modifiedllvm/test/Analysis/CostModel/X86/uitofp.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/alternate-cast.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/sitofp-inseltpoison.ll
The file was modifiedllvm/test/Analysis/CostModel/X86/cast.ll
The file was modifiedllvm/test/Transforms/SLPVectorizer/X86/sitofp.ll
Commit 0af9b25affc9187bc8314bc3999a0ef8b16b522a by llvm-dev
[LoopVectorize][X86] Regenerate conversion-cost.ll tests
The file was modifiedllvm/test/Transforms/LoopVectorize/X86/conversion-cost.ll
Commit 2f79acb7b701c41494abff588b5f03a74ea2e11d by thakis
[clangd] Unbreak mac build differently 0c96a92d8666b8

This reverts b56e5f8a10c1 (and follow-up f6db88535cb) and instead
restores the state we had before 0c96a92d8666b8: ClangdMain.cpp
includes Features.inc before including Transport.h.

This is a bit ugly, but it matches the former state and making Transport.h
include Features.h means that xpc/ needs to be able to find the generated
Features.inc, wich is also a bit ugly.
The file was modifiedllvm/utils/gn/secondary/clang-tools-extra/clangd/xpc/BUILD.gn
The file was modifiedclang-tools-extra/clangd/Transport.h
The file was modifiedclang-tools-extra/clangd/tool/ClangdMain.cpp
Commit 3eb2158f4fea90d56aeb200a5ca06f536c1df683 by a.bataev
[OPENMP]Fix PR50640: OpenMP target clause implicitly scaling loop bounds to uint64_t.

Need to add some conversions to suppress possible warning messages.

Differential Revision: https://reviews.llvm.org/D105187
The file was modifiedclang/test/OpenMP/distribute_parallel_for_codegen.cpp
The file was modifiedclang/lib/Sema/SemaOpenMP.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_parallel_for_simd_schedule_codegen.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_schedule_codegen.cpp
The file was modifiedclang/test/OpenMP/distribute_parallel_for_simd_codegen.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_parallel_for_ast_print.cpp
The file was modifiedclang/test/OpenMP/teams_distribute_parallel_for_simd_schedule_codegen.cpp
The file was modifiedclang/test/OpenMP/nvptx_target_teams_distribute_parallel_for_simd_codegen.cpp
The file was modifiedclang/test/OpenMP/nvptx_target_teams_distribute_parallel_for_codegen.cpp
The file was modifiedclang/test/OpenMP/target_teams_distribute_parallel_for_schedule_codegen.cpp
The file was modifiedclang/test/OpenMP/nvptx_target_teams_distribute_parallel_for_generic_mode_codegen.cpp
Commit 71d5b0a7572010e07430dd0c3c79bb6c4ebfdfac by irina.dobrescu
[AArch64][GlobalISel]Legalise some vector types for min/max

Differential Revision: https://reviews.llvm.org/D105200
The file was modifiedllvm/lib/Target/AArch64/GISel/AArch64LegalizerInfo.cpp
The file was addedllvm/test/CodeGen/AArch64/GlobalISel/legalize-min-max.mir
Commit 42d7d52314e0719b899b6e7ba924d34260866880 by david.green
[ARM] Extra BFI codegen tests. NFC
The file was modifiedllvm/test/CodeGen/ARM/bfi.ll
Commit 661577e698645d0645a5639ec180f0e3c83af021 by Stanislav.Mekhanoshin
[AMDGPU] Fix immediate sign during V_MOV_B64_PSEUDO expansion

Creating a V_MOV_B32 with zero extended immediate source
prevented conversion to V_BFREV_B32.

Differential Revision: https://reviews.llvm.org/D105235
The file was addedllvm/test/CodeGen/AMDGPU/v_mov_b64_expand_and_shrink.mir
The file was modifiedllvm/test/CodeGen/AMDGPU/v_mov_b64_expansion.mir
The file was modifiedllvm/lib/Target/AMDGPU/SIInstrInfo.cpp
Commit 2668727929e497553eba485876eb6190d38cc367 by bradley.smith
[SelectionDAG] Implement PromoteIntRes_INSERT_SUBVECTOR

Inserting into a smaller-than-legal scalable vector would result in an
internal compiler error. For example, inserting a <vscale x 4 x i8> into
a <vscale x 8 x i8> (both illegal vector types for SVE) would cause a
crash.

This crash was happening because there was no code to promote (legalise)
the result of an INSERT_SUBVECTOR node.

This patch implements PromoteIntRes_INSERT_SUBVECTOR, which legalises
the ISD node. This is currently done by going through memory. This is
necessary because of the requirement that the SubVec parameter of the
INSERT_SUBVECTOR node must be smaller than the Vec parameter, which
means that INSERT_SUBVECTOR cannot always have a legal result/operand
types.

Co-Authored-by: Joe Ellis <joe.ellis@arm.com>

Differential Revision: https://reviews.llvm.org/D102766
The file was modifiedllvm/lib/CodeGen/SelectionDAG/LegalizeTypes.h
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelLowering.cpp
The file was addedllvm/test/CodeGen/AArch64/insert-subvector-res-legalization.ll
The file was modifiedllvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
The file was modifiedllvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
Commit 99c7e918b5ea2262635cc5f80b8887e487227638 by Matthew.Arsenault
GlobalISel: Use LLT in call lowering callbacks

This preserves the memory type so the lowerings can rely on them.
The file was modifiedllvm/lib/Target/ARM/ARMCallLowering.cpp
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-call.ll
The file was modifiedllvm/lib/Target/M68k/GlSel/M68kCallLowering.h
The file was modifiedllvm/lib/Target/PowerPC/GISel/PPCCallLowering.cpp
The file was modifiedllvm/lib/CodeGen/GlobalISel/CallLowering.cpp
The file was modifiedllvm/test/CodeGen/X86/GlobalISel/irtranslator-callingconv.ll
The file was modifiedllvm/lib/Target/AArch64/GISel/AArch64CallLowering.cpp
The file was modifiedllvm/lib/Target/M68k/GlSel/M68kCallLowering.cpp
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/call-translator-tail-call.ll
The file was modifiedllvm/include/llvm/CodeGen/GlobalISel/CallLowering.h
The file was modifiedllvm/lib/Target/X86/X86CallLowering.cpp
The file was modifiedllvm/lib/Target/PowerPC/GISel/PPCCallLowering.h
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUCallLowering.cpp
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/irtranslator-function-args.ll
Commit 8c7349b3f43267036f6c133d3502def86307528a by nikita.ppv
[OpaquePtr] Support opaque pointers in intrinsic type check

This adds support for opaque pointers in intrinsic type checks
of IIT kind Pointer and PtrToElt.

This is less straight-forward than it might initially seem, because
we should only accept opaque pointers here in --force-opaque-pointers
mode. Otherwise, there would be more than one valid type signature
for a given intrinsic name.

Differential Revision: https://reviews.llvm.org/D105155
The file was modifiedllvm/lib/IR/Function.cpp
The file was modifiedllvm/lib/IR/LLVMContext.cpp
The file was modifiedllvm/include/llvm/IR/LLVMContext.h
The file was addedllvm/test/Assembler/remangle-intrinsic-opaque-ptr.ll
The file was modifiedllvm/test/Other/force-opaque-ptrs.ll
Commit 266a7414d8f2643be2b1dad86693b12a9f1246fa by ajcbik
[mlir][sparse] move tensor expression builder into Merger utility

Rationale:
Follow-up on migrating lattice and tensor expression related methods into the new utility.
This also prepares the next step of generalizing the op kinds that are handled.

Reviewed By: gussmith23

Differential Revision: https://reviews.llvm.org/D105219
The file was modifiedmlir/lib/Dialect/SparseTensor/Utils/Merger.cpp
The file was modifiedmlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp
The file was modifiedmlir/include/mlir/Dialect/SparseTensor/Utils/Merger.h
The file was modifiedmlir/lib/Dialect/SparseTensor/Utils/CMakeLists.txt
Commit 369216ab3132623e98c8c974ded915803f080dcf by tianshilei1992
[OpenMP][Offloading] Refined return value of `DeviceTy::getOrAllocTgtPtr`

`DeviceTy::getOrAllocTgtPtr` just returns a target pointer. In addition,
two bool values (`IsNew` and `IsHostPtr`) are passed by reference to make the
change in the function available in callee.

In this patch, a struct, which contains the target pointer, two flags, and an
iterator to the map table entry corresponding to the queried host pointer, will
be returned. In addition to make the logic clearer regarding the two bool values,
this paves the way for the next patch to fix the data race in `bug49334.cpp` by
attaching an event to the map table entry (and that's why we need the iterator).

Reviewed By: grokos

Differential Revision: https://reviews.llvm.org/D104382
The file was modifiedopenmp/libomptarget/src/device.h
The file was modifiedopenmp/libomptarget/src/omptarget.cpp
The file was modifiedopenmp/libomptarget/src/device.cpp
Commit c605dfcfc0c1c1605d254b00536351e2e8a87e19 by arjunpitchanathan
[MLIR] FlatAffineConstraints: Use Matrix objects to store the constraints

This results in significant deduplication of code. This patch is not expected to change any functionality, it's just some simplification in preparation for future work. Also slightly simplified some code that was being touched anyway and added some unit tests for some functions that were touched.

Reviewed By: bondhugula

Differential Revision: https://reviews.llvm.org/D105152
The file was modifiedmlir/lib/Analysis/Presburger/Matrix.cpp
The file was modifiedmlir/include/mlir/Analysis/AffineStructures.h
The file was modifiedmlir/lib/Analysis/AffineStructures.cpp
The file was modifiedmlir/include/mlir/Analysis/Presburger/Matrix.h
The file was modifiedmlir/unittests/Analysis/AffineStructuresTest.cpp
The file was modifiedmlir/unittests/Analysis/Presburger/MatrixTest.cpp
Commit bef9464c514ad868eb99c4ad391690ac2eb690c1 by gcmn
[Bazel] Fixes for 266a7414d8

Adds LinalgOps dep needed for
https://github.com/llvm/llvm-project/commit/266a7414d8f26

Differential Revision: https://reviews.llvm.org/D105294
The file was modifiedutils/bazel/llvm-project-overlay/mlir/BUILD.bazel
Commit bc7cc2074b7b7043e05cb46346f1368eb4ae9949 by aaron
Fix an accepts-invalid issue with [[]] attributes in the type position in C

A user reported an issue to me via email that Clang was accepting some
code that GCC was rejecting. After investigation, it turned out to be a
general problem of us failing to properly reject attributes written in
the type position in C when they don't apply to types. The root cause
was a terminology issue -- we sometimes use "CXX11Attr" to mean [[]] in
C++11 mode and sometimes [[]] in general -- and this came back to bite
us because in this particular case, it really meant [[]] in C++ mode.

I fixed the issue by introducing a new function
AttributeCommonInfo::isStandardAttributeSyntax() to represent [[]] in
either C or C++ mode.

This fix pointed out that we've had the issue in some of our existing
tests, which have all been corrected. This resolves
https://bugs.llvm.org/show_bug.cgi?id=50954.
The file was modifiedclang/lib/Sema/SemaType.cpp
The file was modifiedclang/test/Sema/c2x-maybe_unused-errors.c
The file was modifiedclang/include/clang/Basic/AttributeCommonInfo.h
The file was modifiedclang/test/AST/ast-dump-c-attr.c
The file was modifiedclang/test/Sema/attr-c2x.c
The file was modifiedclang/test/Sema/attr-deprecated-c2x.c
The file was modifiedclang/test/Sema/attr-external-source-symbol.c
The file was modifiedclang/lib/Sema/SemaDeclAttr.cpp
The file was modifiedclang/test/Sema/attr-availability-square-brackets.c
The file was modifiedclang/lib/Parse/Parser.cpp
The file was modifiedclang/test/Sema/overloadable.c
Commit 955f12589940634acc6c9901e8b25534808f691c by listmail
[instcombine] Fold overflow check using overflow intrinsic to comparison

This follows up to D104665 (which added umulo handling alongside the existing uaddo case), and generalizes for the remaining overflow intrinsics.

I went to add analogous handling to LVI, and discovered that LVI already had a more general implementation. Instead, we can port was LVI does to instcombine. (For context, LVI uses makeExactNoWrapRegion to constrain the value 'x' in blocks reached after a branch on the condition `op.with.overflow(x, C).overflow`.)

Differential Revision: https://reviews.llvm.org/D104932
The file was modifiedllvm/test/Transforms/InstCombine/usubo.ll
The file was modifiedllvm/test/Transforms/InstCombine/saddo.ll
The file was modifiedllvm/test/Transforms/InstCombine/smulo.ll
The file was modifiedllvm/lib/Transforms/InstCombine/InstructionCombining.cpp
The file was modifiedllvm/test/Transforms/InstCombine/ssubo.ll
Commit f03d29601e0951da2c88f07d4234128e14e87870 by code
[NFC][compiler-rt] add back solaris xfail for unpoison-alternate-stack.cpp
The file was modifiedcompiler-rt/test/asan/TestCases/Posix/unpoison-alternate-stack.cpp
Commit 39a15b5ae00df9a5e35f67dbffaed082b7e54d50 by Vitaly Buka
[NFC][scudo] Extract MapAllocatorTest for TEST_F
The file was modifiedcompiler-rt/lib/scudo/standalone/tests/secondary_test.cpp
Commit 7d207472030a244d540fa53e47a734675b289a94 by Vitaly Buka
[gwp_asan] Improve symbolizer script

Show inlined functions.
Hide unhelpful DWARF related warnings.

Reviewed By: hctim

Differential Revision: https://reviews.llvm.org/D105230
The file was modifiedcompiler-rt/lib/gwp_asan/scripts/symbolize.sh
Commit f83654982be65567d41c513b27ef76c3c64946f5 by Louis Dionne
[libc++] Migrate the additional_features parameter to the DSL

This is required to run the tests under any configuration that uses
additional_features using a from-scratch config. That is the case of
e.g. the Debug mode (which uses LIBCXX-DEBUG-FIXME) and the tests on
Windows.
The file was modifiedlibcxx/test/libcxx/selftest/dsl/dsl.sh.py
The file was modifiedlibcxx/utils/libcxx/test/params.py
The file was modifiedlibcxx/utils/libcxx/test/config.py
The file was modifiedlibcxx/utils/libcxx/test/dsl.py
Commit 000444214f1658de9905533231f4c80fde2b7f1b by zoecarver
[libcxx] Update optional star operator to be noexcept.

Differential Revision: https://reviews.llvm.org/D105296
The file was modifiedlibcxx/test/std/utilities/optional/optional.object/optional.object.observe/dereference.pass.cpp
The file was modifiedlibcxx/test/std/utilities/optional/optional.object/optional.object.observe/dereference_const.pass.cpp
The file was modifiedlibcxx/test/std/utilities/optional/optional.object/optional.object.observe/dereference_const_rvalue.pass.cpp
The file was modifiedlibcxx/include/optional
The file was modifiedlibcxx/test/std/utilities/optional/optional.object/optional.object.observe/dereference_rvalue.pass.cpp
Commit 050b064f15ee56ee0b42c9b957a3dd0f32532394 by Louis Dionne
[libcxx][functional][modular] splices <functional> into modular headers

Differential Revision: https://reviews.llvm.org/D104942
The file was modifiedlibcxx/include/__memory/shared_ptr.h
The file was addedlibcxx/include/__functional/binder1st.h
The file was addedlibcxx/include/__functional/unary_negate.h
The file was modifiedlibcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/deduct.pass.cpp
The file was addedlibcxx/include/__functional/function.h
The file was modifiedlibcxx/include/module.modulemap
The file was modifiedlibcxx/include/__ranges/ref_view.h
The file was addedlibcxx/include/__memory/uses_allocator.h
The file was addedlibcxx/include/__functional/mem_fun_ref.h
The file was addedlibcxx/include/__functional/binary_function.h
The file was addedlibcxx/include/__functional/binary_negate.h
The file was modifiedlibcxx/include/__memory/unique_ptr.h
The file was removedlibcxx/include/__functional_03
The file was modifiedlibcxx/include/experimental/functional
The file was modifiedlibcxx/include/tuple
The file was addedlibcxx/include/__memory/allocator_arg_t.h
The file was addedlibcxx/include/__functional/is_transparent.h
The file was modifiedlibcxx/include/stack
The file was addedlibcxx/include/__functional/default_searcher.h
The file was addedlibcxx/include/__functional/ranges_operations.h
The file was modifiedlibcxx/test/std/utilities/meta/meta.trans/meta.trans.other/result_of.pass.cpp
The file was modifiedlibcxx/include/functional
The file was modifiedlibcxx/test/std/utilities/meta/meta.trans/meta.trans.other/result_of11.pass.cpp
The file was addedlibcxx/include/__functional/bind.h
The file was addedlibcxx/include/__functional/binder2nd.h
The file was addedlibcxx/include/__functional/operations.h
The file was addedlibcxx/include/__functional/mem_fn.h
The file was addedlibcxx/include/__functional/perfect_forward.h
The file was addedlibcxx/include/__functional/weak_result_type.h
The file was modifiedlibcxx/include/system_error
The file was addedlibcxx/include/__functional/not_fn.h
The file was addedlibcxx/include/__functional/reference_wrapper.h
The file was modifiedlibcxx/include/__functional_base
The file was addedlibcxx/include/__functional/bind_front.h
The file was modifiedlibcxx/include/set
The file was modifiedlibcxx/include/CMakeLists.txt
The file was modifiedlibcxx/include/unordered_set
The file was modifiedlibcxx/include/memory
The file was addedlibcxx/include/__functional/identity.h
The file was modifiedlibcxx/include/future
The file was modifiedlibcxx/include/__functional/unwrap_ref.h
The file was modifiedlibcxx/include/ext/__hash
The file was modifiedlibcxx/include/queue
The file was modifiedlibcxx/include/experimental/__memory
The file was modifiedlibcxx/include/typeindex
The file was addedlibcxx/include/__functional/pointer_to_binary_function.h
The file was modifiedlibcxx/include/map
The file was modifiedlibcxx/include/__iterator/advance.h
The file was modifiedlibcxx/include/unordered_map
The file was addedlibcxx/include/__functional/invoke.h
The file was modifiedlibcxx/include/concepts
The file was removedlibcxx/include/__functional_base_03
The file was addedlibcxx/include/__functional/pointer_to_unary_function.h
The file was modifiedlibcxx/include/__string
Commit a319eafd160d8d8f3ebd47a3a636e01597b36bff by jasonliu
[libc++] Provide c++03 alternative for va_copy if available in xlocale.h

Summary:
If we are on c++03 mode for some reason, and __builtin_va_copy is
available, then use it instead of error out on not having va_copy
in 03 mode.

Reviewed by: ldionne

Differential Revision: https://reviews.llvm.org/D100336
The file was modifiedlibcxx/include/__support/ibm/xlocale.h
Commit c360553c15a8e5aa94d2236eb73e7dfeab9543e5 by Louis Dionne
[runtimes] Simplify how we specify XFAIL & friends based on the triple

Now that Lit supports regular expressions inside XFAIL & friends, it is
much easier to write Lit annotations based on the triple.

Differential Revision: https://reviews.llvm.org/D104747
The file was modifiedlibcxx/test/std/thread/thread.semaphore/try_acquire.pass.cpp
The file was modifiedlibcxx/test/std/input.output/file.streams/fstreams/ofstream.cons/path.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_char8_t_encoding.pass.cpp
The file was modifiedlibcxx/test/std/language.support/support.exception/uncaught/uncaught_exceptions.pass.cpp
The file was modifiedlibcxx/test/std/utilities/format/format.error/format.error.pass.cpp
The file was modifiedlibcxx/test/std/strings/basic.string/string.capacity/reserve_size.pass.cpp
The file was modifiedlibcxx/test/std/utilities/any/any.class/any.cons/value.pass.cpp
The file was modifiedlibcxx/test/std/utilities/any/any.nonmembers/swap.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/getline_pointer_size_chart.pass.cpp
The file was modifiedlibcxx/test/std/utilities/variant/variant.variant/variant.swap/swap.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/try_lock_until.pass.cpp
The file was modifiedlibcxx/test/libcxx/thread/barrier.availability.verify.cpp
The file was modifiedlibcxxabi/test/dynamic_cast.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/minus1.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.shared_mutex.requirements/thread.shared_mutex.class/copy.fail.cpp
The file was modifiedlibcxx/test/std/utilities/variant/variant.variant/variant.mod/emplace_index_init_list_args.pass.cpp
The file was modifiedlibcxx/test/std/numerics/rand/rand.device/eval.pass.cpp
The file was modifiedlibcxx/test/std/re/re.alg/re.alg.search/ecma.locale.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/try_lock_shared_for.pass.cpp
The file was modifiedlibcxxabi/test/catch_member_pointer_nullptr.pass.cpp
The file was modifiedlibcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_directory/create_directory.pass.cpp
The file was modifiedlibunwind/test/remember_state_leak.pass.sh.s
The file was modifiedlibcxx/test/std/thread/thread.barrier/arrive.pass.cpp
The file was modifiedlibcxx/test/libcxx/language.support/cxa_deleted_virtual.pass.cpp
The file was modifiedlibcxx/test/std/localization/locales/locale/locale.cons/copy.pass.cpp
The file was modifiedlibcxx/test/std/re/re.alg/re.alg.search/awk.locale.pass.cpp
The file was modifiedlibcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp
The file was modifiedlibcxx/test/std/utilities/variant/variant.get/get_type.pass.cpp
The file was modifiedlibcxx/test/std/re/re.traits/lookup_collatename.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/input.streams/istream.formatted/istream.formatted.arithmetic/unsigned_int.pass.cpp
The file was modifiedlibcxx/test/std/utilities/variant/variant.variant/variant.ctor/in_place_type_args.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/try_lock_shared.pass.cpp
The file was modifiedlibcxx/test/std/utilities/any/any.nonmembers/any.cast/const_correctness.fail.cpp
The file was modifiedlibcxx/test/std/input.output/file.streams/fstreams/filebuf.members/open_path.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/input.streams/istream.formatted/istream.formatted.arithmetic/unsigned_long.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_char8_t_max_length.pass.cpp
The file was modifiedlibcxx/test/std/utilities/optional/optional.bad_optional_access/default.pass.cpp
The file was modifiedlibcxx/test/std/localization/locales/locale/locale.cons/default.pass.cpp
The file was modifiedlibcxx/test/std/utilities/optional/optional.object/optional.object.observe/value_rvalue.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/get_pointer_size.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.obs/owns_lock.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/try_lock_shared_until.pass.cpp
The file was modifiedlibcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/new_align_val_t_nothrow_replace.pass.cpp
The file was modifiedlibcxx/test/std/numerics/rand/rand.device/ctor.pass.cpp
The file was modifiedlibcxx/test/std/utilities/variant/variant.variant/variant.ctor/T.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.shared_mutex.requirements/thread.shared_mutex.class/try_lock_shared.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.time/locale.time.put.byname/put1.pass.cpp
The file was modifiedlibcxx/test/std/utilities/optional/optional.object/optional.object.ctor/move.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_char8_t_max_length.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/lock_shared.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.semaphore/binary.pass.cpp
The file was modifiedlibcxx/test/std/localization/locales/locale/locale.cons/locale_string_cat.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/mutex_try_to_lock.pass.cpp
The file was modifiedlibcxx/test/std/utilities/any/any.nonmembers/make_any.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/output.streams/ostream.formatted/ostream.inserters.arithmetic/minmax_showbase.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_char8_t_unshift.pass.cpp
The file was modifiedlibcxx/test/libcxx/memory/aligned_allocation_macro.compile.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/types_char16_t_char8_t.pass.cpp
The file was modifiedlibcxx/test/std/utilities/variant/variant.variant/variant.ctor/copy.pass.cpp
The file was modifiedlibcxx/test/std/thread/futures/futures.future_error/what.pass.cpp
The file was modifiedlibcxx/test/std/utilities/optional/optional.object/optional.object.ctor/rvalue_T.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.semaphore/timed.pass.cpp
The file was modifiedlibcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.copy_file/copy_file.pass.cpp
The file was modifiedlibcxx/test/std/utilities/optional/optional.specalg/make_optional.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostreams.base/ios.base/ios.types/ios_Init/ios_Init.multiple.pass.cpp
The file was modifiedlibcxx/test/std/localization/locales/locale/locale.statics/global.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/mutex_adopt_lock.pass.cpp
The file was modifiedlibcxx/test/std/utilities/any/any.class/any.modifiers/reset.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/try_lock_for.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/get_weekday_wide.pass.cpp
The file was modifiedlibcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.mods/refresh.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/get_one_wide.pass.cpp
The file was modifiedlibcxx/test/std/utilities/variant/variant.variant/variant.ctor/default.pass.cpp
The file was modifiedlibcxx/test/libcxx/thread/atomic.availability.verify.cpp
The file was modifiedlibcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/new_align_val_t.pass.cpp
The file was modifiedlibcxx/test/std/input.output/filesystems/lit.local.cfg
The file was modifiedlibcxx/test/libcxx/thread/thread.threads/thread.thread.this/sleep_for.signals.pass.cpp
The file was modifiedlibcxx/test/std/utilities/variant/variant.variant/variant.mod/emplace_type_init_list_args.pass.cpp
The file was modifiedlibcxx/test/std/utilities/any/any.class/any.assign/move.pass.cpp
The file was modifiedlibcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/new_align_val_t_nothrow.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_char8_t_always_noconv.pass.cpp
The file was modifiedlibcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/new_align_val_t_nothrow_replace.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/get_streambuf_chart.pass.cpp
The file was modifiedlibcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_directories/create_directories.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/seekg_off.pass.cpp
The file was modifiedlibcxx/test/std/input.output/file.streams/fstreams/fstream.cons/path.pass.cpp
The file was modifiedlibcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/new_align_val_t_nothrow.pass.cpp
The file was modifiedlibcxxabi/test/catch_ptr_02.pass.cpp
The file was modifiedlibcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/new_align_val_t.pass.cpp
The file was modifiedlibcxx/test/libcxx/thread/thread.condition/PR30202_notify_from_pthread_created_thread.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/get_one.pass.cpp
The file was modifiedlibunwind/test/unwind_leaffunction.pass.cpp
The file was modifiedlibcxx/test/std/utilities/any/any.class/any.assign/value.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/ctor_char32_t_char8_t.pass.cpp
The file was modifiedlibcxx/test/std/utilities/variant/variant.variant/variant.ctor/move.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/input.streams/istream.formatted/istream.formatted.arithmetic/float.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/default.pass.cpp
The file was modifiedlibcxx/test/std/input.output/file.streams/fstreams/ifstream.cons/path.pass.cpp
The file was modifiedlibcxx/test/libcxx/thread/latch.availability.verify.cpp
The file was modifiedlibcxx/test/std/utilities/variant/variant.visit/visit.pass.cpp
The file was modifiedlibcxx/test/std/utilities/variant/variant.variant/variant.assign/move.pass.cpp
The file was modifiedlibcxx/test/std/utilities/variant/variant.variant/variant.assign/copy.pass.cpp
The file was modifiedlibcxx/test/std/utilities/optional/optional.object/optional.object.ctor/const_T.pass.cpp
The file was modifiedlibcxx/test/std/utilities/variant/variant.variant/variant.ctor/in_place_type_init_list_args.pass.cpp
The file was modifiedlibcxx/test/libcxx/language.support/support.dynamic/libcpp_deallocate.sh.cpp
The file was modifiedlibunwind/test/signal_unwind.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/try_lock.pass.cpp
The file was modifiedlibcxx/test/std/utilities/any/any.class/any.modifiers/emplace.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt.byname/ctor_char32_t_char8_t.pass.cpp
The file was modifiedlibcxx/test/std/utilities/any/any.nonmembers/any.cast/any_cast_pointer.pass.cpp
The file was modifiedlibcxx/test/std/utilities/memory/temporary.buffer/overaligned.pass.cpp
The file was modifiedlibcxx/test/std/localization/locales/locale/locale.statics/classic.pass.cpp
The file was modifiedlibcxx/test/std/localization/locales/locale/locale.members/combine.pass.cpp
The file was modifiedlibcxx/test/std/localization/locales/locale/locale.cons/string.pass.cpp
The file was modifiedlibcxxabi/test/test_demangle.pass.cpp
The file was modifiedlibcxx/test/std/utilities/optional/optional.object/optional.object.observe/value_const.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_char8_t_encoding.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/types_char32_t_char8_t.pass.cpp
The file was modifiedlibcxx/test/std/utilities/variant/variant.variant/variant.mod/emplace_index_args.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.semaphore/release.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_char8_t_always_noconv.pass.cpp
The file was modifiedlibcxx/test/std/utilities/variant/variant.get/get_index.pass.cpp
The file was modifiedlibcxx/test/std/utilities/optional/optional.object/optional.object.observe/value_const_rvalue.pass.cpp
The file was modifiedlibcxxabi/test/forced_unwind2.pass.cpp
The file was modifiedlibcxx/test/std/utilities/any/any.class/any.modifiers/swap.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/move_ctor.pass.cpp
The file was modifiedlibcxx/test/std/utilities/any/any.class/any.cons/in_place_type.pass.cpp
The file was modifiedlibcxx/test/libcxx/language.support/support.dynamic/new_faligned_allocation.pass.cpp
The file was modifiedlibcxx/test/std/utilities/charconv/charconv.from.chars/integral.roundtrip.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.shared_mutex.requirements/thread.shared_mutex.class/lock_shared.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.latch/arrive_and_wait.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/utf_sanity_check.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.semaphore/acquire.pass.cpp
The file was modifiedlibcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/file_size.pass.cpp
The file was modifiedlibcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.file_size/file_size.pass.cpp
The file was modifiedlibcxx/test/std/strings/basic.string/string.capacity/over_max_size.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_char8_t_out.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/input.streams/istream.formatted/istream.formatted.arithmetic/double.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/input.streams/istream.formatted/istream.formatted.arithmetic/long_long.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.latch/try_wait.pass.cpp
The file was modifiedlibcxx/test/std/utilities/any/any.nonmembers/any.cast/any_cast_reference.pass.cpp
The file was modifiedlibcxxabi/test/incomplete_type.sh.cpp
The file was modifiedlibcxx/test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.objects/system_category.pass.cpp
The file was modifiedlibcxx/test/std/utilities/charconv/charconv.to.chars/integral.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/default.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_char8_t_unshift.pass.cpp
The file was modifiedlibcxx/test/std/localization/locales/locale/locale.cons/char_pointer.pass.cpp
The file was modifiedlibcxx/test/libcxx/language.support/support.dynamic/aligned_alloc_availability.verify.cpp
The file was modifiedlibcxx/test/std/re/re.alg/re.alg.match/extended.locale.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_char8_t_in.pass.cpp
The file was modifiedlibcxx/test/std/diagnostics/syserr/syserr.errcat/syserr.errcat.objects/generic_category.pass.cpp
The file was modifiedlibcxx/utils/libcxx/test/params.py
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/copy.compile.fail.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.time/locale.time.get.byname/get_weekday.pass.cpp
The file was modifiedlibcxx/test/std/utilities/variant/variant.visit/robust_against_adl.pass.cpp
The file was modifiedlibcxx/test/std/utilities/any/any.nonmembers/any.cast/any_cast_request_invalid_value_category.fail.cpp
The file was modifiedlibcxx/test/std/utilities/optional/optional.bad_optional_access/derive.pass.cpp
The file was modifiedlibcxxabi/test/uncaught_exceptions.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/assign.compile.fail.cpp
The file was modifiedlibcxx/test/std/utilities/time/time.clock/time.clock.file/now.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.shared_mutex.requirements/thread.shared_mutex.class/default.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_char8_t_in.pass.cpp
The file was modifiedlibcxx/test/std/localization/locales/locale/locale.cons/locale_char_pointer_cat.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/input.streams/istream.formatted/istream.formatted.arithmetic/long.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/input.streams/istream.formatted/istream.formatted.arithmetic/int.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.obs/mutex.pass.cpp
The file was modifiedlibcxx/test/std/input.output/file.streams/fstreams/ofstream.members/open_path.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.monetary/locale.money.put/locale.money.put.members/put_long_double_zh_CN.pass.cpp
The file was modifiedlibcxx/test/std/re/re.alg/re.alg.match/awk.locale.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.barrier/completion.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/get.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/input.streams/istream.formatted/istream.formatted.arithmetic/pointer.pass.cpp
The file was modifiedlibcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/last_write_time.pass.cpp
The file was modifiedlibcxx/test/std/utilities/any/any.class/any.assign/copy.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.shared_mutex.requirements/thread.shared_mutex.class/lock.pass.cpp
The file was modifiedlibcxxabi/test/catch_multi_level_pointer.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/mutex_time_point.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.barrier/arrive_and_drop.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_char8_t_length.pass.cpp
The file was modifiedlibcxx/test/std/utilities/variant/variant.visit/visit_return_type.pass.cpp
The file was modifiedlibcxx/test/std/utilities/variant/variant.variant/variant.ctor/in_place_index_init_list_args.pass.cpp
The file was modifiedlibcxx/test/std/utilities/variant/variant.variant/variant.mod/emplace_type_args.pass.cpp
The file was modifiedlibcxxabi/test/catch_function_01.pass.cpp
The file was modifiedlibcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/sized_delete_fsizeddeallocation.pass.cpp
The file was modifiedlibcxx/test/std/utilities/any/any.class/any.cons/copy.pass.cpp
The file was modifiedlibcxxabi/test/catch_member_data_pointer_01.pass.cpp
The file was modifiedlibcxxabi/test/forced_unwind1.pass.cpp
The file was modifiedlibcxxabi/test/test_aux_runtime_op_array_new.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/input.streams/istream.formatted/istream.formatted.arithmetic/short.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.monetary/locale.money.get/locale.money.get.members/get_long_double_zh_CN.pass.cpp
The file was modifiedlibcxx/test/std/utilities/any/any.class/any.cons/move.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/try_lock_until_deadlock_bug.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.numeric/locale.nm.put/facet.num.put.members/put_long_double.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/get_chart.pass.cpp
The file was modifiedlibcxxabi/test/catch_pointer_nullptr.pass.cpp
The file was modifiedlibcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/sized_delete_array_fsizeddeallocation.pass.cpp
The file was modifiedlibcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.create_directory/create_directory_with_attributes.pass.cpp
The file was modifiedlibcxx/test/std/utilities/variant/variant.variant/variant.assign/T.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.barrier/arrive_and_wait.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.locking/lock.pass.cpp
The file was modifiedlibcxx/test/std/input.output/file.streams/fstreams/ifstream.members/open_path.pass.cpp
The file was modifiedlibcxx/test/libcxx/utilities/charconv/charconv.to.chars/availability.fail.cpp
The file was modifiedlibcxx/test/std/re/re.alg/re.alg.search/extended.locale.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/ignore.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/read.pass.cpp
The file was modifiedlibcxx/test/std/input.output/filesystems/class.directory_entry/directory_entry.obs/hard_link_count.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/peek.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char32_t_char8_t_out.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/mutex_duration.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.shared_mutex.requirements/thread.shared_mutex.class/assign.fail.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/get_long.pass.cpp
The file was modifiedlibcxx/test/std/utilities/optional/optional.object/optional.object.ctor/U.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/get_streambuf.pass.cpp
The file was modifiedlibcxxabi/test/test_exception_address_alignment.pass.cpp
The file was modifiedlibcxx/test/std/localization/locales/locale/locale.cons/locale_locale_cat.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/mutex_defer_lock.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.collate/locale.collate.byname/compare.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/locale.codecvt.members/char16_t_char8_t_length.pass.cpp
The file was modifiedlibcxx/test/std/input.output/file.streams/fstreams/fstream.members/open_path.pass.cpp
The file was modifiedlibcxxabi/test/exception_object_alignment.pass.cpp
The file was modifiedlibcxxabi/test/cxa_vec_new_overflow_PR41395.pass.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt/ctor_char16_t_char8_t.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/input.streams/istream.formatted/istream.formatted.arithmetic/unsigned_short.pass.cpp
The file was modifiedlibcxx/test/std/utilities/optional/optional.object/optional.object.observe/value.pass.cpp
The file was modifiedlibcxx/test/std/thread/futures/futures.async/async_race.38682.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.latch/count_down.pass.cpp
The file was modifiedlibcxx/test/std/re/re.alg/re.alg.match/basic.locale.pass.cpp
The file was modifiedlibcxx/test/std/language.support/support.dynamic/new.delete/new.delete.single/delete_align_val_t_replace.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/mutex.pass.cpp
The file was modifiedlibcxx/test/std/utilities/format/format.formatter/format.parse.ctx/next_arg_id.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.shared_mutex.requirements/thread.shared_mutex.class/try_lock.pass.cpp
The file was modifiedlibcxx/test/std/utilities/variant/variant.variant/variant.ctor/in_place_index_args.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/input.streams/istream.formatted/istream.formatted.arithmetic/unsigned_long_long.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/getline_pointer_size.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/input.streams/istream.formatted/istream_extractors/streambuf.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/input.streams/istream.formatted/istream.formatted.arithmetic/long_double.pass.cpp
The file was modifiedlibcxx/test/std/re/re.alg/re.alg.match/ecma.locale.pass.cpp
The file was modifiedlibcxx/test/libcxx/thread/semaphore.availability.verify.cpp
The file was modifiedlibcxx/test/libcxx/thread/thread.threads/thread.thread.this/sleep_for.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/input.streams/istream.formatted/istream.formatted.arithmetic/bool.pass.cpp
The file was modifiedlibcxx/test/std/re/re.alg/re.alg.search/basic.locale.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/move_assign.pass.cpp
The file was modifiedlibcxx/test/std/utilities/any/any.nonmembers/any.cast/not_copy_constructible.fail.cpp
The file was modifiedlibcxx/test/std/localization/locale.categories/category.ctype/locale.codecvt.byname/ctor_char16_t_char8_t.pass.cpp
The file was modifiedlibcxx/test/std/utilities/variant/variant.bad_variant_access/bad_variant_access.pass.cpp
The file was modifiedlibcxx/test/std/localization/locales/locale/locale.cons/assign.pass.cpp
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/lock.pass.cpp
The file was modifiedlibcxx/test/std/utilities/format/format.formatter/format.parse.ctx/check_arg_id.pass.cpp
The file was modifiedlibcxx/test/std/language.support/support.dynamic/new.delete/new.delete.array/delete_align_val_t_replace.pass.cpp
The file was modifiedlibcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.wait/atomic_wait.pass.cpp
The file was modifiedlibcxx/test/std/input.output/iostream.format/input.streams/istream.unformatted/get_pointer_size_chart.pass.cpp
The file was modifiedlibcxx/test/std/localization/locales/locale/locale.cons/locale_facetptr.pass.cpp
Commit 83887df15597990308e9903d0480fa7676d772a1 by scott.linder
[ADT] Follow up to fix bug in "Add makeVisitor to STLExtras.h"

Address mistakenly comparing the pointer values of two C-style strings
rather than comparing their contents in the unit tests for makeVisitor,
added in 6d6f35eb7b92c6dd4478834497752f4e963db16d
The file was modifiedllvm/unittests/ADT/STLExtrasTest.cpp
Commit 460dfbd9f83f1178ee754e2734322ddacbd707f3 by nikita.ppv
[OpaquePtr] Support VecOfAnyPtrsToElt intrinsics

In this case the pointer type is part of the mangled name, so we
can allow on opaque pointer outside --force-opaque-pointers mode
as well.
The file was modifiedllvm/lib/IR/Function.cpp
The file was modifiedllvm/test/Verifier/opaque-ptr.ll
Commit 19443c13b5d02b0bc2a0d641c65dd6842f5a5511 by thakis
[gn build] Port 050b064f15ee
The file was modifiedllvm/utils/gn/secondary/libcxx/include/BUILD.gn
Commit 8eb4b3e2be008fc3455b3c2820b1b55d2a5c25f0 by gysit
[CMake][MLIR][Linalg] Adding variable to specify tablegen file dependencies.

Synchronizing multiple custom targets requires not only target but also
file dependencies. Building Linalg involves running yaml-gen followed by
tablegen. Currently, these custom targets are only synchronized using a
target dependency resulting in issues in specific incremental build
setups (https://llvm.discourse.group/t/missing-build-cmake-tblgen-dependency/3727/10).

This patch introduces a novel LLVM_TARGET_DEPENDS variable to the
TableGen.cmake file to provide a way to specify file dependencies.
Additionally, it adapts the Linalg CMakeLists.txt to introduce the
necessary file dependency between yaml-gen and tablegen.

Differential Revision: https://reviews.llvm.org/D105272
The file was modifiedllvm/cmake/modules/TableGen.cmake
The file was modifiedmlir/include/mlir/Dialect/Linalg/IR/CMakeLists.txt
Commit 33b579c8a5efa476b8a1bd528fe5e47429249847 by Vitaly Buka
[NFC][scudo] Exctract getOptionsForConfig in test
The file was modifiedcompiler-rt/lib/scudo/standalone/tests/secondary_test.cpp
Commit fe08e9c4871e8842dc5c8f75a4796a86029c1ebe by thakis
[lld-macho] Add support for LTO optimization level

Everything (including test) modified from ELF/COFF. Using the same syntax
(--lto-O3, etc) as ELF.

Differential Revision: https://reviews.llvm.org/D105223
The file was modifiedlld/MachO/Config.h
The file was modifiedlld/MachO/LTO.cpp
The file was modifiedlld/MachO/Options.td
The file was modifiedlld/MachO/Driver.cpp
Commit 78e70cee0d46bb14dcbedec993fbf855a4d13266 by Vitaly Buka
[scudo] Remove false DCHECK

MTE Cache.store passes MAP_NOACCESS here.

Reviewed By: pcc, cryptoad

Differential Revision: https://reviews.llvm.org/D105266
The file was modifiedcompiler-rt/lib/scudo/standalone/tests/secondary_test.cpp
The file was modifiedcompiler-rt/lib/scudo/standalone/linux.cpp
Commit e86fe368db11e43b4b7e84065ba5e8439fc24840 by gh
[MLIR] Allow Affine scalar replacement to handle inner operations

Affine scalar replacement (and other affine passes, though not fixed here) don't properly handle operations with nested regions. This patch fixes the pass and two affine utilities to function properly given a non-affine internal region

This patch prevents the pass from throwing an internal compiler error when running on the added test case.

Differential Revision: https://reviews.llvm.org/D105058
The file was modifiedmlir/test/Dialect/Affine/scalrep.mlir
The file was modifiedmlir/lib/Analysis/Utils.cpp
Commit 0516f49c081590305a9db972ebc7fceb942b8ce3 by ataei
Add linalg.mmt4d named op

This op performs matrix-matrix-transpose multiplication of 4-d inputs as the following:

```
C[m1, n1, m0, n0] = sum_{k1, k0}(A[m1, k1, m0, k0] * B[n1, k1, n0, k0])
```

Reviewed By: Benoit

Differential Revision: https://reviews.llvm.org/D105244
The file was modifiedmlir/include/mlir/Dialect/Linalg/IR/LinalgNamedStructuredOps.yaml
The file was modifiedmlir/python/mlir/dialects/linalg/opdsl/ops/core_named_ops.py
Commit 355bf7c1f0b25310b814f7733fa59767e474de0b by jdenny.ornl
[lit] Extend --xfail/LIT_XFAIL to take full test name

The new documentation entry gives an example use case from
libomptarget.

Reviewed By: yln, jhenderson, davezarzycki

Differential Revision: https://reviews.llvm.org/D105208
The file was addedllvm/utils/lit/tests/Inputs/xfail-cl/b/lit.cfg
The file was modifiedllvm/utils/lit/tests/xfail-cl.py
The file was addedllvm/utils/lit/tests/Inputs/xfail-cl/a/test.txt
The file was addedllvm/utils/lit/tests/Inputs/xfail-cl/a/false.txt
The file was modifiedllvm/docs/CommandGuide/lit.rst
The file was addedllvm/utils/lit/tests/Inputs/xfail-cl/b/false.txt
The file was addedllvm/utils/lit/tests/Inputs/xfail-cl/b/test.txt
The file was addedllvm/utils/lit/tests/Inputs/xfail-cl/a/lit.cfg
The file was modifiedllvm/utils/lit/lit/main.py
Commit 45e8a0befbc8e174c3fa4ba4d21ef4445a16191b by v.churavy
[Orc] At CBindings for LazyRexports

At C bindings and an example for LLJIT with lazy reexports

Differential Revision: https://reviews.llvm.org/D104672
The file was modifiedllvm/test/lit.cfg.py
The file was modifiedllvm/examples/OrcV2Examples/CMakeLists.txt
The file was addedllvm/examples/OrcV2Examples/OrcV2CBindingsLazy/OrcV2CBindingsLazy.c
The file was modifiedllvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp
The file was addedllvm/examples/OrcV2Examples/OrcV2CBindingsLazy/CMakeLists.txt
The file was modifiedllvm/test/CMakeLists.txt
The file was modifiedllvm/include/llvm-c/Orc.h
The file was addedllvm/test/Examples/OrcV2Examples/orcv2-cbindings-lazy.test
Commit e386871e1d21cf206a1287356e88c5853563fc77 by v.g.vassilev
[clang-repl] Allow passing in code as positional arguments.

Now we can do things like: clang-repl "int i = 1;" "int j = 2;".

Differential revision: https://reviews.llvm.org/D104898
The file was modifiedclang/test/Interpreter/execute.cpp
The file was modifiedclang/tools/clang-repl/ClangRepl.cpp
Commit fe30963600ea579d4046c9a92c6e38cc2be0e9a2 by Vitaly Buka
[scudo] Untag BlockEnd in reallocate

If we get here from reallocate, BlockEnd is tagged. Then we
will storeTag(UntaggedEnd) into the header of the next chunk.

Luckily header tag is 0 so unpatched code still works.

Reviewed By: pcc

Differential Revision: https://reviews.llvm.org/D105261
The file was modifiedcompiler-rt/lib/scudo/standalone/combined.h
Commit 3d48775b89cfcaa20dae9928f20410ee61bdda4c by david.green
[ARM] Reassociate BFI

D104868 removed an (incorrect) fold for distributing BFI instructions in
a chain, combining them into a single instruction. BFIs like that are
hard to test, as the patterns are often destroyed before they become
BFIs. But it can come up in places, with chains of BFIs that can be
combined.

This patch adds a replacement, which reassociates BFI instructions with
non-overlapping insertion masks so that low bits are inserted first.
This can end up sorting the nodes so that adjacent inserts are next to
one another, allowing the existing folds to combine into a single BFI.

Differential Revision: https://reviews.llvm.org/D105096
The file was modifiedllvm/lib/Target/ARM/ARMISelLowering.cpp
The file was modifiedllvm/test/CodeGen/ARM/bfi.ll
Commit b77533fb70ac6388955ee34a1d1e96ba05b6b01f by smeenai
[llvm-strip] Support grouped options in llvm-strip

GNU and Apple `strip` implementations seems to support grouped options.
Enable the support for grouped options introduced in
https://reviews.llvm.org/D83639 for `llvm-strip` invocations.

Includes test that checks that both the grouped and non grouped
invocations produces the same result.

Reviewed By: alexander-shaposhnikov, MaskRay

Differential Revision: https://reviews.llvm.org/D105249
The file was addedllvm/test/tools/llvm-objcopy/grouped-options.test
The file was modifiedllvm/tools/llvm-objcopy/ConfigManager.cpp
Commit 48088425b37818cb80113d0137c83297390265f4 by smeenai
[cmake] Invoke strip without -l and with non-grouped flags.

`llvm-strip` does not support `-l`. Apple's `strip` supports `-l`, but
it is not documented, and the latest code doesn't seem to do anything
meaningful. From the old source code drops it seems that `-l` was added
around version 795 of cctools and removed before 898. The code around
the flag usage in 795 talks about problems with kext and forcing the
execution of `ld -r`, which seems a behaviour that is not enforceable in
latest versions of cctools.

The `-l` flag was added in https://reviews.llvm.org/D15133 without a lot
of explanation.

Since the flag is not active, removing it should not modify the
behaviour for most people (except if someone is trying to compile LLVM
with a really old version of `strip`).

Additionally, break the invocation into two different flags, since
`llvm-strip` doesn't at the moment support grouped flags, and other
`strip` implementations should work the same no matter if grouped or
not.

Test Plan:

Using `strip` from Xcode 12.5 in Big Sur to strip the same binary (a
simple Hello World), using both `-Sxl` and `-Sx` produces exactly the
same binary.

Repeating the same process with `clang` results also in the same binary.

Reviewed By: smeenai

Differential Revision: https://reviews.llvm.org/D105243
The file was modifiedllvm/cmake/modules/AddLLVM.cmake
Commit e4b9fecd392fdd135815f2069179a12e4c73347d by sivachandra
[libc] Add minimal Windows config

A README file with procedure for building/testing LLVM libc on Windows
has also been added.

Reviewed By: sivachandra, aeubanks

Differential Revision: https://reviews.llvm.org/D105231
The file was addedlibc/config/windows/entrypoints.txt
The file was addedlibc/config/windows/README.md
Commit 09e3bf01b3da978b5437bf84c0b0f290974d8743 by spatel
[InstCombine][test] add tests for icmp simplify miscompile (PR50944); NFC
The file was modifiedllvm/test/Transforms/InstCombine/icmp.ll
Commit 9eb613b2de3163686b1a4bd1160f15ac56a4b083 by spatel
[InstSimplify] do not propagate poison from select arm to icmp user

This is the cause of the miscompile in:
https://llvm.org/PR50944

The problem has likely existed for some time, but it was made visible with:
5af8bacc94024 ( D104661 )
handleOtherCmpSelSimplifications() assumed it can convert select of
constants to bool logic ops, but that does not work with poison.
We had a very similar construct in InstCombine, so the fix here
mimics the fix there.

The bug is in instsimplify, but I'm not sure how to reproduce it outside of
instcombine. The reason this is visible in instcombine is because we have a
hack (FIXME) to bypass simplification of a select when it has an icmp user:
https://github.com/llvm/llvm-project/blob/955f12589940634acc6c9901e8b25534808f691c/llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp#L2632

So we get to an unusual case where we are trying to simplify an instruction
that has an operand that would have already simplified if we had processed
it in normal order.

Differential Revision: https://reviews.llvm.org/D105298
The file was modifiedllvm/lib/Analysis/InstructionSimplify.cpp
The file was modifiedllvm/test/Transforms/InstCombine/icmp.ll
Commit edc1f0c12c836abaeeab7b0d9f7e8fb73c233ae6 by zoecarver
[libcxx][ranges] Implement indirectly_swappable.

Differential Revision: https://reviews.llvm.org/D105304
The file was modifiedlibcxx/test/std/containers/sequences/forwardlist/forwardlist.iter/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/test/std/containers/sequences/array/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/test/std/containers/unord/unord.map/iterator_concept_conformance.compile.pass.cpp
The file was addedlibcxx/test/std/iterators/iterator.requirements/alg.req.ind.swap/indirectly_swappable.subsumption.compile.pass.cpp
The file was modifiedlibcxx/test/std/containers/associative/set/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/test/std/strings/basic.string/string.iterators/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/test/std/iterators/predef.iterators/insert.iterators/front.insert.iterator/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/docs/OneRangesProposalStatus.csv
The file was modifiedlibcxx/test/std/containers/associative/multimap/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/test/std/utilities/memory/unique.ptr/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/test/std/containers/unord/unord.set/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/test/std/iterators/predef.iterators/insert.iterators/back.insert.iterator/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/test/std/iterators/predef.iterators/move.iterators/move.iterator/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/include/iterator
The file was modifiedlibcxx/test/std/containers/associative/multiset/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/test/std/containers/sequences/list/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/test/std/containers/unord/unord.multimap/iterator_concept_conformance.compile.pass.cpp
The file was addedlibcxx/test/std/iterators/iterator.requirements/alg.req.ind.swap/indirectly_swappable.compile.pass.cpp
The file was modifiedlibcxx/include/__iterator/iter_swap.h
The file was modifiedlibcxx/test/std/containers/sequences/deque/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/test/std/containers/sequences/vector/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/test/std/containers/sequences/vector.bool/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/test/std/iterators/stream.iterators/ostream.iterator/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/test/std/input.output/filesystems/class.directory_iterator/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/test/std/iterators/predef.iterators/insert.iterators/insert.iterator/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/test/std/containers/associative/map/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/test/std/containers/unord/unord.multiset/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/test/std/containers/views/span.iterators/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/test/std/iterators/stream.iterators/ostreambuf.iterator/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/test/std/strings/string.view/string.view.iterators/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/test/std/iterators/stream.iterators/istream.iterator/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/test/std/re/re.iter/re.tokiter/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/include/__iterator/concepts.h
The file was modifiedlibcxx/test/std/iterators/predef.iterators/reverse.iterators/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/test/std/iterators/stream.iterators/istreambuf.iterator/iterator_concept_conformance.compile.pass.cpp
The file was modifiedlibcxx/test/std/re/re.iter/re.regiter/iterator_concept_conformance.compile.pass.cpp
Commit f1b9ce2736d826df2ff4cbd67116864f0856334f by hansang.bae
[OpenMP] Fix a few issues with hidden helper task

This patch includes the following changes to address a few issues when
using hidden helper task.

- Assertion is triggered when there are inadvertent calls to hidden
  helper functions on non-Linux OS
- Added deinit code in __kmp_internal_end_library function to fix random
  shutdown crashes
- Moved task data access into the lock-guarded region in __kmp_push_task

Differential Revision: https://reviews.llvm.org/D105308
The file was modifiedopenmp/runtime/src/z_Linux_util.cpp
The file was modifiedopenmp/runtime/src/kmp_tasking.cpp
The file was modifiedopenmp/runtime/src/kmp_runtime.cpp
Commit 64a0241d64c274eb40fc1cf8b9f938ca013873a1 by arthur.j.odwyer
[libc++] IWYU <__utility/pair.h> in <__functional/hash.h>. NFCI.

This was the only thing preventing any one of our detail headers from
compiling on its own.
The file was modifiedlibcxx/include/__functional/hash.h
Commit 6bbbd7b499f2d5e1d716f33fdf5c072083f007da by joker.eph
Update MLIRContext to allow injecting an external ThreadPool (NFC)

The context can be created with threading disabled, to avoid creating a thread pool
that may be destroyed when injecting another one later.

Differential Revision: https://reviews.llvm.org/D105302
The file was modifiedmlir/lib/IR/MLIRContext.cpp
The file was modifiedmlir/include/mlir/IR/MLIRContext.h
Commit 14d64be6e54a23e1a20216b6a42ae2ce5926d2ed by Jon Roelofs
[GISel] Print better error messages for missing Combiner Observer calls

Differential revision: https://reviews.llvm.org/D105290
The file was modifiedllvm/lib/CodeGen/GlobalISel/Combiner.cpp
The file was modifiedllvm/lib/CodeGen/GlobalISel/CSEInfo.cpp
Commit 33a7b4d9d8e6a113108aa71ed78ca32a83c68523 by phosek
[InstrProfiling] Use external weak reference for bias variable

We need the compiler generated variable to override the weak symbol of
the same name inside the profile runtime, but using LinkOnceODRLinkage
results in weak symbol being emitted which leads to an issue where the
linker might choose either of the weak symbols potentially disabling the
runtime counter relocation.

This change replaces the use of weak definition inside the runtime with
an external weak reference to address the issue. We also place the
compiler generated symbol inside a COMDAT group so dead definition can
be garbage collected by the linker.

Differential Revision: https://reviews.llvm.org/D105176
The file was modifiedllvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
The file was modifiedcompiler-rt/lib/profile/InstrProfiling.h
The file was modifiedllvm/test/Instrumentation/InstrProfiling/runtime-counter-relocation.ll
The file was removedcompiler-rt/lib/profile/InstrProfilingBiasVar.c
The file was modifiedcompiler-rt/lib/profile/InstrProfilingFile.c
The file was modifiedcompiler-rt/lib/profile/CMakeLists.txt
The file was modifiedcompiler-rt/lib/profile/InstrProfilingPlatformFuchsia.c
Commit 430bfc4f3ba631bee7f662895d78642b78adf54d by llvmgnsyncbot
[gn build] Port 33a7b4d9d8e6
The file was modifiedllvm/utils/gn/secondary/compiler-rt/lib/profile/BUILD.gn
Commit 0176ac95035eb6508f8f838c7d72afa03d67b5aa by efriedma
[AArch64] Optimize SVE bitcasts of unpacked types.

Target-independent code only knows how to spill to the stack; instead,
use AArch64ISD::REINTERPRET_CAST.

Differential Revision: https://reviews.llvm.org/D104573
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelLowering.cpp
The file was modifiedllvm/test/CodeGen/AArch64/sve-bitcast.ll
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelLowering.h
Commit 8dea784b3ed7df3edd9e3b59b1e1b58d2a4ac175 by rob.suderman
[mlir][tosa] Add tosa shape inference with InferReturnTypeComponent

Added InferReturnTypeComponents for NAry operations, reshape, and reverse.
With the additional tosa-infer-shapes pass, we can infer/propagate shapes
across a set of TOSA operations. Current version does not modify the
FuncOp type by inserting an unrealized conversion cast prior to any new
non-matchin returns.

Differential Revision: https://reviews.llvm.org/D105312
The file was modifiedmlir/lib/Dialect/Tosa/Transforms/TosaMakeBroadcastable.cpp
The file was modifiedmlir/test/Conversion/TosaToLinalg/tosa-to-linalg.mlir
The file was modifiedmlir/include/mlir/Dialect/Tosa/IR/TosaOps.h
The file was addedmlir/lib/Dialect/Tosa/Transforms/TosaInferShapes.cpp
The file was modifiedmlir/lib/Dialect/Tosa/IR/TosaOps.cpp
The file was addedmlir/test/Dialect/Tosa/tosa_infer_shapes.mlir
The file was modifiedmlir/include/mlir/Dialect/Tosa/Transforms/Passes.h
The file was modifiedmlir/lib/Dialect/Tosa/Transforms/CMakeLists.txt
The file was modifiedmlir/include/mlir/Dialect/Tosa/IR/TosaOps.td
The file was modifiedmlir/test/lib/Dialect/Tosa/TosaTestPasses.cpp
The file was modifiedmlir/include/mlir/Dialect/Tosa/Transforms/Passes.td
Commit e59f02216f1c6972925c5ef0f1df6d434c652c69 by Jessica Paquette
[GlobalISel] Translate <1 x N> getelementptrs to scalar G_PTR_ADDs

In `IRTranslator::translateGetElementPtr`, when we run into a vector gep with
some scalar operands, we try to normalize those operands using
`buildSplatVector`.

This is fine except for when the getelementptr has a <1 x N> type. In that case
it is treated as a scalar. If we run into one of these then every call to

```
// With VectorWidth = 1
LLT::fixed_vector(VectorWidth, PtrTy)
```

will assert.

Here's an example (equivalent to the added testcase):
https://godbolt.org/z/hGsTnMYdW

To get around this, this patch adds a variable, `WantSplatVector`, which
is true when our vector type ought to actually be represented using a vector.
When it's false, we'll translate as a scalar. This checks if `VectorWidth > 1`.

This fixes this bug:
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=35496

Differential Revision: https://reviews.llvm.org/D105316
The file was addedllvm/test/CodeGen/AArch64/GlobalISel/irtranslator-one-by-n-vector-ptr-add.ll
The file was modifiedllvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
Commit 65eb4028ad0322115ff5420499806db79a27289e by rob.suderman
[mlir][tosa] Added missing includes on PassDetails.h

Includes were missing in the PassDetails.h that cause downstream failures
on TOSA passes.

Differential Revision: https://reviews.llvm.org/D105323
The file was modifiedmlir/include/mlir/Dialect/Tosa/Transforms/PassDetail.h
Commit 76dd98ec75ce70c1a2012e543e50709d646a6d8d by Akira
Precommit test cases in https://reviews.llvm.org/D104953
The file was modifiedllvm/test/Transforms/ObjCARC/code-motion.ll
Commit 32a73198fc3a84364996c2d8bf2e6470d2bb98d9 by Matthew.Arsenault
Mips/GlobalISel: Use accurate memory LLTs
The file was modifiedllvm/test/CodeGen/Mips/GlobalISel/legalizer/var_arg.mir
The file was modifiedllvm/lib/Target/Mips/MipsLegalizerInfo.cpp
Commit 6aaaeacd3d968885ef65d30283b62945ce7e6ce0 by rob.suderman
[mlir][tosa] Include TosaDialect as include in tosa PassDetail.h

Tosa's PassDetail.h may be used in non-TOSA transforms. Include
TosaDialect to avoid transient dependency.

Differential Revision: https://reviews.llvm.org/D105324
The file was modifiedmlir/include/mlir/Dialect/Tosa/Transforms/PassDetail.h
Commit 06ac83fcac098441be4b5cbd635453706acadc98 by rob.suderman
[mlir][tosa] Update Bazel files for TOSA pass changes

There were some missing bazel dependencies for the Tosa dialect.
Added these deps.

Reviewed By: GMNGeoffrey

Differential Revision: https://reviews.llvm.org/D105326
The file was modifiedutils/bazel/llvm-project-overlay/mlir/BUILD.bazel
The file was modifiedutils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
Commit e895a670f8bceb235802e617bba34a0572fd9f49 by springerm
[mlir] Move BufferizeDimOp to Tensor/Transforms/Bufferize.cpp

Differential Revision: https://reviews.llvm.org/D105256
The file was modifiedmlir/test/Dialect/Standard/bufferize.mlir
The file was modifiedmlir/test/Dialect/Tensor/bufferize.mlir
The file was modifiedmlir/lib/Dialect/Tensor/Transforms/Bufferize.cpp
The file was modifiedmlir/lib/Dialect/StandardOps/Transforms/Bufferize.cpp
Commit 3a11528d97a788781de82f939f502abe7fbd729d by jezng
[lld-macho] Move ICF earlier to avoid emitting redundant binds

This is a pretty big refactoring diff, so here are the motivations:

Previously, ICF ran after scanRelocations(), where we emitting
bind/rebase opcodes etc. So we had a bunch of redundant leftovers after
ICF. Having ICF run before Writer seems like a better design, and is
what LLD-ELF does, so this diff refactors it accordingly.

However, ICF had two dependencies on things occurring in Writer: 1) it
needs literals to be deduplicated beforehand and 2) it needs to know
which functions have unwind info, which was being handled by
`UnwindInfoSection::prepareRelocations()`.

In order to do literal deduplication earlier, we need to add literal
input sections to their corresponding output sections. So instead of
putting all input sections into the big `inputSections` vector, and then
filtering them by type later on, I've changed things so that literal
sections get added directly to their output sections during the 'gather'
phase. Likewise for compact unwind sections -- they get added directly
to the UnwindInfoSection now. This latter change is not strictly
necessary, but makes it easier for ICF to determine which functions have
unwind info.

Adding literal sections directly to their output sections means that we
can no longer determine `inputOrder` from iterating over
`inputSections`. Instead, we store that order explicitly on
InputSection. Bloating the size of InputSection for this purpose would
be unfortunate -- but LLD-ELF has already solved this problem: it reuses
`outSecOff` to store this order value.

One downside of this refactor is that we now make an additional pass
over the unwind info relocations to figure out which functions have
unwind info, since want to know that before `processRelocations()`. I've
made sure to run that extra loop only if ICF is enabled, so there should
be no overhead in non-optimizing runs of the linker.

The upside of all this is that the `inputSections` vector now contains
only ConcatInputSections that are destined for ConcatOutputSections, so
we can clean up a bunch of code that just existed to filter out other
elements from that vector.

I will test for the lack of redundant binds/rebases in the upcoming
cfstring deduplication diff. While binds/rebases can also happen in the
regular `.text` section, they're more common in `.data` sections, so it
seems more natural to test it that way.

This change is perf-neutral when linking chromium_framework.

Reviewed By: oontvoo

Differential Revision: https://reviews.llvm.org/D105044
The file was modifiedlld/MachO/SyntheticSections.cpp
The file was modifiedlld/MachO/SyntheticSections.h
The file was modifiedlld/MachO/ConcatOutputSection.cpp
The file was modifiedlld/MachO/UnwindInfoSection.cpp
The file was modifiedlld/MachO/Writer.cpp
The file was modifiedlld/MachO/ConcatOutputSection.h
The file was modifiedlld/MachO/ICF.cpp
The file was modifiedlld/MachO/InputSection.h
The file was modifiedlld/MachO/MarkLive.cpp
The file was modifiedlld/MachO/Driver.cpp
The file was modifiedlld/MachO/ICF.h
The file was modifiedlld/MachO/InputSection.cpp
The file was modifiedlld/MachO/UnwindInfoSection.h
Commit ac2dd06b91ae7264fa7d396c15c7647510ede231 by jezng
[lld-macho] Deduplicate CFStrings

`__cfstring` is a special literal section, so instead of breaking it up
at symbol boundaries, we break it up at fixed-width boundaries (since
each literal is the same size). Symbols can only occur at one of those
boundaries, so this is strictly more powerful than
`.subsections_via_symbols`.

With that in place, we then run the section through ICF.

This change is about perf-neutral when linking chromium_framework.

Reviewed By: #lld-macho, gkm

Differential Revision: https://reviews.llvm.org/D105045
The file was modifiedlld/MachO/InputFiles.cpp
The file was modifiedlld/test/MachO/Inputs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/CoreFoundation.tbd
The file was modifiedlld/MachO/InputSection.cpp
The file was modifiedlld/MachO/InputSection.h
The file was addedlld/test/MachO/invalid/cfstring.s
The file was addedlld/test/MachO/cfstring-dedup.s
The file was modifiedlld/MachO/ICF.cpp
Commit 08715e6c47f68b7ea985fbd76d4945dfdff0a9aa by jezng
[lld-macho][nfc] Remove unnecessary vertical spacing

This makes NonLazyPointerSectionBase's style more in line with the rest
of the classes in its file.
The file was modifiedlld/MachO/SyntheticSections.h
Commit f6b6e7214366fc12469aba2fe16495e5f7a375a6 by jezng
[lld-macho] Factor out common InputSection members

We have been creating many ConcatInputSections with identical values due
to .subsections_via_symbols. This diff factors out the identical values
into a Shared struct, to reduce memory consumption and make copying
cheaper.

I also changed `callSiteCount` from a uint32_t to a 31-bit field to save an
extra word.

All in all, this takes InputSection from 120 to 72 bytes (and
ConcatInputSection from 160 to 112 bytes), i.e. 30% size reduction in
ConcatInputSection.

Numbers for linking chromium_framework on my 3.2 GHz 16-Core Intel Xeon W:

      N           Min           Max        Median           Avg        Stddev
  x  20          4.14          4.24          4.18         4.183   0.027548999
  +  20          4.04          4.11         4.075        4.0775   0.018027756
  Difference at 95.0% confidence
          -0.1055 +/- 0.0149005
          -2.52211% +/- 0.356215%
          (Student's t, pooled s = 0.0232803)

Reviewed By: #lld-macho, thakis

Differential Revision: https://reviews.llvm.org/D105305
The file was modifiedlld/MachO/SyntheticSections.cpp
The file was modifiedlld/MachO/SymbolTable.cpp
The file was modifiedlld/MachO/UnwindInfoSection.cpp
The file was modifiedlld/MachO/Writer.cpp
The file was modifiedlld/MachO/Driver.cpp
The file was modifiedlld/MachO/Dwarf.cpp
The file was modifiedlld/MachO/ConcatOutputSection.cpp
The file was modifiedlld/MachO/ICF.cpp
The file was modifiedlld/MachO/Symbols.h
The file was modifiedlld/MachO/InputSection.h
The file was modifiedlld/MachO/MarkLive.cpp
The file was modifiedlld/MachO/InputSection.cpp
The file was modifiedlld/MachO/InputFiles.cpp
Commit 9ab5f761176c376c0a117c53f0f111fed1bcc842 by richard
Support for merging UsingPackDecls across modules.

Fixes a false-positive error if the same std::variant<...> type is
instantiated across multiple modules.
The file was modifiedclang/test/Modules/Inputs/merge-using-decls/a.h
The file was modifiedclang/lib/Serialization/ASTReaderDecl.cpp
The file was modifiedclang/test/Modules/merge-using-decls.cpp
The file was modifiedclang/test/Modules/Inputs/merge-using-decls/b.h
Commit 066524ea5438c5c30ac91a7702091be6dc5fd2d0 by craig.topper
[ScalarizeMaskedMemIntrin][SelectionDAGBuilder] Use the element type to calculate alignment for gather/scatter when alignment operand is 0.

Previously we used the vector type, but we're loading/storing
invididual elements so I think only element alignment should matter.

Noticed while looking at the code for something else so I don't
have a test case.

Differential Revision: https://reviews.llvm.org/D105220
The file was modifiedllvm/lib/Transforms/Scalar/ScalarizeMaskedMemIntrin.cpp
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
Commit 425b908301e48ee6f372150bbc17f04cf199beb7 by Lang Hames
[ORC] Rename SPSTargetAddress to SPSExecutorAddress.

Also removes SPSTagTargetAddress, which was accidentally introduced at some
point (and never used).
The file was modifiedllvm/lib/ExecutionEngine/Orc/EPCEHFrameRegistrar.cpp
The file was modifiedllvm/lib/ExecutionEngine/Orc/TargetProcess/JITLoaderGDB.cpp
The file was modifiedllvm/include/llvm/ExecutionEngine/Orc/Shared/SimplePackedSerialization.h
The file was modifiedllvm/lib/ExecutionEngine/Orc/TargetProcess/RegisterEHFrames.cpp
The file was modifiedllvm/include/llvm/ExecutionEngine/Orc/EPCDebugObjectRegistrar.h
Commit 5efffac71a1c640b0cba8e34f5e2374d397f6eb3 by i
[llvm-symbolizer] Move setGroupedShortOptions and don't ignore case

setGroupedShortOptions in the ctor seems more popular.
The file was modifiedllvm/tools/llvm-symbolizer/llvm-symbolizer.cpp
Commit 9568811cb8a4c45e8143456b91dd7cc1acb16ad3 by ybrevnov
[NFC][DSE]Change 'do-while' to 'for' loop to simplify code structure

With 'for' loop there is is a single place where 'Current' is adjusted. It helps to avoid copy paste and makes a bit easy to understand overall loop controll flow.

Reviewed By: fhahn

Differential Revision: https://reviews.llvm.org/D101044
The file was modifiedllvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
Commit 07a1f3513e2e3802671a0a4ca1edf2fe577fad03 by Vitaly Buka
[scudo] Fix test on aarch64 without MTE
The file was modifiedcompiler-rt/lib/scudo/standalone/tests/secondary_test.cpp