Changes

Summary

  1. [zorg] Rename Linaro-maintained 2-stage bots (details)
  2. Update compiler on hexagon-build-0x machines (details)
  3. Add flang-x86_64-windows builder. (details)
  4. [M68k] Add new worker suse-gary-m68k-cross for Linux 32-bit M68k (details)
  5. [libc++] Remove build bots that are handled on BuildKite now (details)
Commit db2fbb6520d1ebd17dcd91dfed4886f33734ffbd by maxim.kuvyrkov
[zorg] Rename Linaro-maintained 2-stage bots

... to have consistent -2stage suffix.

Reviewed By: DavidSpickett

Differential Revision: https://reviews.llvm.org/D104312
The file was modifiedbuildbot/osuosl/master/config/builders.py (diff)
The file was modifiedbuildbot/osuosl/master/config/workers.py (diff)
Commit e7f9b7230c9a17d5ffb64ac3f7b46846ce334c4b by kparzysz
Update compiler on hexagon-build-0x machines
The file was modifiedbuildbot/osuosl/master/config/builders.py (diff)
Commit c406b636839cf07367241c224da3c0207c1396a3 by llvm-zorg
Add flang-x86_64-windows builder.

Add a buildbot to compile flang using msvc. Due to msvc doing some things differently than other compilers, the msvc flang build breaks regularly. This builder will notify committers if their change causes the build to break.

However, the tests never completed successfully on Windows, partially because many tests require a UNIX shell (see D89368). To not constantly fail, tests failures only trigger a warning, until all tests are fixed as well.

Currently running here: http://meinersbur.de:8011/#/builders/146

Reviewed By: gkistanova

Differential Revision: https://reviews.llvm.org/D103199
The file was modifiedbuildbot/osuosl/master/config/workers.py (diff)
The file was modifiedbuildbot/osuosl/master/config/builders.py (diff)
Commit d1284d3eadb950504c0dc8269291a4a0bcbe7f63 by gkistanova
[M68k] Add new worker suse-gary-m68k-cross for Linux 32-bit M68k

This adds a new builder called clang-m68k-linux-cross which will
cross-build LLVM and Clang on openSUSE Leap.

Reviewed By: gkistanova

Differential Revision: https://reviews.llvm.org/D104467
The file was modifiedbuildbot/osuosl/master/config/builders.py (diff)
The file was modifiedbuildbot/osuosl/master/config/workers.py (diff)
Commit 8d8b4bb34168d53a4d0e3eba3614aa0ce9e7fd9e by Louis Dionne
[libc++] Remove build bots that are handled on BuildKite now

Those builders have been failing for months because they use a version
of Clang that we don't actively support anymore. Furthermore, all those
configurations (single-threaded, no exceptions, with LLVM's unwinder)
are being tested on BuildKite.

At this point, I think those builders are only adding noise and using
resources that could be repurposed to other tasks, so I think it is
reasonable to remove them.
The file was modifiedbuildbot/osuosl/master/config/builders.py (diff)

Summary

  1. ABI breaking changes fixes. (details)
  2. [mlir] Add NegOp to complex dialect. (details)
  3. [mlir][MemRef] Make sure types match when folding dim(reshape) (details)
  4. [ORC] Port WrapperFunctionUtils and SimplePackedSerialization from ORC runtime. (details)
  5. [ORC] Make WrapperFunctionResult's ValuePtr member non-const. (details)
  6. Clearly specify that these are partially implemented features (details)
  7. [mlir] ODS: do not emit trailing const for static methods (details)
  8. [ORC] Fix missing function in unit test. (details)
  9. [ORC] Fix narrowing-in-initializer-list warnings. (details)
  10. [ORC] Fix missing std::move. (details)
  11. [ORC] Fix endianness in manual serialization to match WrapperFunctionUtils. (details)
  12. [LoopDeletion] Check for irreducible cycles when deleting loops. (details)
  13. [OPENMP]Fix PR50699: capture locals in combine directrives for aligned clause. (details)
  14. [gn build] Port 4eb9fe2e1a07 (details)
  15. [Polly][Isl] Replacing isl method `to_str()` with `stringFromIslObj()`. NFC. (details)
  16. [Matrix] Add tests for fast-math flags & matrix codegen. (details)
  17. [libc++] [test] Fix some GCC 11 errors/warnings in these tests. NFCI. (details)
  18. [mlir][linalg][python] Adapt the OpDSL to use scalars. (details)
  19. [mlir] separable registration of attribute and type interfaces (details)
  20. [mlir] Add SignOp to complex dialect. (details)
  21. [llvm-exegesis] Fix X86LbrCounter destructor to correctly unmap memory and not double-close fd (PR50620) (details)
  22. [ARM] Rejig some of the MVE gather/scatter lowering pass. NFC (details)
  23. [libc] Add a set of elementary operations (details)
  24. [mlir] Avoid GCC naming conflict. (details)
  25. [libcxx][atomic] Fix failure mapping in compare_exchange_{strong,weak}. (details)
  26. Revert "[libc] Add a set of elementary operations" (details)
  27. [flang] [openmp] Add Fortran specific semantic check 4 for OpenMP Allocate directive. (details)
  28. Work around MSVC compiler intricacies. (details)
  29. [mlir][linalg] Adapt yaml codegen to support scalar parameters. (details)
  30. [IROutliner] Adding DebugInfo handling for IR Outlined Functions (details)
  31. [ARM] Use rq gather/scatters for smaller v4 vectors (details)
  32. DirectoryWatcher: close a possible window of race on Windows (details)
  33. [ARM] Extend narrow values to allow using truncating scatters (details)
  34. Remove unnecessary triple from test (details)
  35. [NFC] Remove redundant variable (details)
  36. [NFC][OpaquePtr] Avoid calling getPointerElementType() (details)
  37. Revert "[ARM] Extend narrow values to allow using truncating scatters" (details)
  38. [lldb] Make the ClassTemplateDecl merging logic in TypeSystemClang respect template parameters (details)
  39. [NewPM] Remove SpeculateAroundPHIs pass (details)
  40. [compiler-rt][hwasan] Add GetShadowOffset function (details)
  41. [AMDGPU] Fix lds superalign test. NFC. (details)
  42. [X86] avoid assert with varargs, soft float, and no-implicit-float (details)
  43. Support: Remove F_{None,Text,Append} compatibility synonyms, NFC (details)
  44. [libc++] [P0619] Add _LIBCPP_ABI_NO_BINDER_BASES and remove binder typedefs in C++20. (details)
  45. [PowerPC] Fix spilling of paired VSX registers (details)
  46. [PowerPC] Moving defineXLCompatMacros() definition (details)
  47. [libcxx][iwyu] ensures we IWYU as prep for modules (details)
  48. [NFC] Update renamed option in comments (details)
  49. Remove redundant test that was causing intermittent build bot failures. (details)
  50. Support lowering of index-cast on vector types. (details)
  51. [NFC] Fix "unused variable" warning (details)
  52. [asan] Remove Asan, Ubsan support of RTEMS and Myriad (details)
  53. [InstSimplify] Treat invariant group insts as bitcasts for load operands (details)
  54. [gn build] Port 6478ef61b1a4 (details)
  55. Adding the rest of the C11 papers to the status page. (details)
  56. [MCA] Adding the CustomBehaviour class to llvm-mca (details)
  57. Revert "[MCA] Adding the CustomBehaviour class to llvm-mca" (details)
  58. [libc][NFC] Disable thrd_test as it is exhibiting flaky behavior on the bots. (details)
  59. AArch64 Linux and elf-core PAC stack unwinder support (details)
  60. [OpenMP] Lazily assign root affinity (details)
  61. [OpenMP] Fix affinity determine capable algorithm on Linux (details)
  62. [OpenMP] Add GOMP 5.0 version symbols to API (details)
  63. Convert functions that were returning BreakpointOption * to BreakpointOption &. (details)
  64. [SampleFDO] Using common linkage for the discriminator flag variable (details)
  65. [mlir][sparse] allow all-dense annotated "sparse" tensor output (details)
  66. [OpaquePtr] Verify Opaque pointer in function parameter (details)
  67. [mlir][SCF] Remove empty else blocks of `scf.if` operations. (details)
  68. [docs] Exclude FlangOption and re-generate ClangCommandLineReference.rst (details)
  69. Missed a Windows use of ValidForThisThread in the changes for (details)
  70. [mlir][sparse] integration test for all-dense annotated "sparse" output (details)
  71. CMake: allow overriding CMAKE_CXX_VISIBILITY_PRESET (details)
  72. Don't depend on the "run" alias doing shell expanding. (details)
  73. [libc++] Promote GCC 11 to mandatory CI (details)
Commit 1540da3b788272e9aacc698ef96e75a4a5839ee1 by neil.henning
ABI breaking changes fixes.

This commit mostly just replaces bad uses of `NDEBUG` with uses of
`LLVM_ENABLE_ABI_BREAKING_CHANGES` - the safe way to include ABI
breaking changes (normally extra struct elements in headers).

Differential Revision: https://reviews.llvm.org/D104216
The file was modifiedllvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h (diff)
The file was modifiedllvm/lib/Passes/StandardInstrumentations.cpp (diff)
The file was modifiedllvm/include/llvm/Transforms/Scalar/JumpThreading.h (diff)
The file was modifiedllvm/include/llvm/Transforms/Scalar/LoopPassManager.h (diff)
The file was modifiedllvm/include/llvm/Support/GenericDomTreeConstruction.h (diff)
The file was modifiedllvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp (diff)
The file was modifiedllvm/include/llvm/Passes/StandardInstrumentations.h (diff)
Commit 662e074d9043949eea4e360e47bf9e39959694b8 by akuegel
[mlir] Add NegOp to complex dialect.

Also add a lowering pattern from complex dialect to standard dialect.

Differential Revision: https://reviews.llvm.org/D104284
The file was modifiedmlir/include/mlir/Dialect/Complex/IR/ComplexOps.td (diff)
The file was modifiedmlir/test/Conversion/ComplexToStandard/convert-to-standard.mlir (diff)
The file was modifiedmlir/lib/Conversion/ComplexToStandard/ComplexToStandard.cpp (diff)
Commit cd939351467643a80490d036408b1036d39b9814 by benny.kra
[mlir][MemRef] Make sure types match when folding dim(reshape)

Reshape can take integer types in addition to index, but dim always
returns index.

Differential Revision: https://reviews.llvm.org/D104287
The file was modifiedmlir/test/Dialect/Standard/canonicalize.mlir (diff)
The file was modifiedmlir/lib/Dialect/MemRef/IR/MemRefOps.cpp (diff)
Commit 4eb9fe2e1a073301ed71bf36b13805802ce8ca47 by Lang Hames
[ORC] Port WrapperFunctionUtils and SimplePackedSerialization from ORC runtime.

Replace the existing WrapperFunctionResult type in
llvm/include/ExecutionEngine/Orc/Shared/TargetProcessControlTypes.h with a
version adapted from the ORC runtime's implementation.

Also introduce the SimplePackedSerialization scheme (also adapted from the ORC
runtime's implementation) for wrapper functions to avoid manual serialization
and deserialization for calls to runtime functions involving common types.
The file was modifiedllvm/include/llvm/ExecutionEngine/Orc/TargetProcess/JITLoaderGDB.h (diff)
The file was modifiedllvm/lib/ExecutionEngine/Orc/TargetProcess/RegisterEHFrames.cpp (diff)
The file was modifiedllvm/include/llvm/ExecutionEngine/Orc/OrcRPCTargetProcessControl.h (diff)
The file was modifiedllvm/include/llvm/ExecutionEngine/Orc/TargetProcessControl.h (diff)
The file was addedllvm/unittests/ExecutionEngine/Orc/SimplePackedSerializationTest.cpp
The file was modifiedllvm/include/llvm/ExecutionEngine/Orc/TargetProcess/RegisterEHFrames.h (diff)
The file was modifiedllvm/lib/ExecutionEngine/Orc/TargetProcess/JITLoaderGDB.cpp (diff)
The file was modifiedllvm/include/llvm/ExecutionEngine/Orc/TargetProcess/OrcRPCTPCServer.h (diff)
The file was modifiedllvm/lib/ExecutionEngine/Orc/TargetProcessControl.cpp (diff)
The file was removedllvm/lib/ExecutionEngine/Orc/Shared/TargetProcessControlTypes.cpp
The file was modifiedllvm/include/llvm/ExecutionEngine/Orc/Shared/TargetProcessControlTypes.h (diff)
The file was modifiedllvm/unittests/ExecutionEngine/Orc/CMakeLists.txt (diff)
The file was addedllvm/include/llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h
The file was addedllvm/include/llvm/ExecutionEngine/Orc/Shared/SimplePackedSerialization.h
The file was addedllvm/unittests/ExecutionEngine/Orc/WrapperFunctionUtilsTest.cpp
The file was modifiedllvm/lib/ExecutionEngine/Orc/Shared/CMakeLists.txt (diff)
Commit 5188b9af84c487b0c5456ba7019a2bf029f6146a by Lang Hames
[ORC] Make WrapperFunctionResult's ValuePtr member non-const.

The const qualifier was a hangover from an earlier iteration that allowed
wrapper functions to return pointers to const memory. This feature has
been removed, so there's no reason for this to be const any more, and
removing it eliminates const-cast warnings.
The file was modifiedllvm/include/llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h (diff)
Commit 69cfa178b77d91205cf8cf45fa00e28b1730d0a1 by aaron
Clearly specify that these are partially implemented features
The file was modifiedclang/www/c_status.html (diff)
Commit 8ed88559582fd8f0e8a148cc7220619753cfb287 by zinenko
[mlir] ODS: do not emit trailing const for static methods

The generated C++ would be invalid.

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D104233
The file was modifiedmlir/tools/mlir-tblgen/OpInterfacesGen.cpp (diff)
Commit 5a28bdeeb61a49f71c5a2b3cb5d96ec1f9f3f571 by Lang Hames
[ORC] Fix missing function in unit test.
The file was modifiedllvm/include/llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h (diff)
The file was modifiedllvm/unittests/ExecutionEngine/Orc/WrapperFunctionUtilsTest.cpp (diff)
Commit 48fb8ecf443beb56e1c936bff83a241982c19c9a by Lang Hames
[ORC] Fix narrowing-in-initializer-list warnings.
The file was modifiedllvm/include/llvm/ExecutionEngine/Orc/Shared/SimplePackedSerialization.h (diff)
Commit 0672d5d104defe4221c49d5d35cba879adaa6321 by Lang Hames
[ORC] Fix missing std::move.
The file was modifiedllvm/include/llvm/ExecutionEngine/Orc/Shared/WrapperFunctionUtils.h (diff)
Commit 89fa1a3a831f2d46e16ac90dbcc5598c5a00b38c by Lang Hames
[ORC] Fix endianness in manual serialization to match WrapperFunctionUtils.
The file was modifiedllvm/lib/ExecutionEngine/Orc/TPCDebugObjectRegistrar.cpp (diff)
The file was modifiedllvm/lib/ExecutionEngine/Orc/TPCEHFrameRegistrar.cpp (diff)
Commit f7fc8927c0885ff155ea16f99bcf6db6fb10357a by flo
[LoopDeletion] Check for irreducible cycles when deleting loops.

Loops with irreducible cycles may loop infinitely. Those cannot be
removed, unless the loop/function is marked as mustprogress.

Also discussed in D103382.

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D104238
The file was modifiedllvm/lib/Transforms/Scalar/LoopDeletion.cpp (diff)
The file was modifiedllvm/test/Transforms/LoopDeletion/loops-with-irreducible-subloops.ll (diff)
Commit 45ae766e78e07434f68305d1b56bf3ee65ebbcef by a.bataev
[OPENMP]Fix PR50699: capture locals in combine directrives for aligned clause.

Need to capture locals in aligned clauses for the combined directives to
be fix the crash in the codegen.

Differential Revision: https://reviews.llvm.org/D104258
The file was modifiedclang/lib/Sema/SemaOpenMP.cpp (diff)
The file was addedclang/test/OpenMP/parallel_for_simd_aligned_codegen.cpp
Commit ccda8c71b2ce6b1f005f8f2434e0e7bc5028e169 by llvmgnsyncbot
[gn build] Port 4eb9fe2e1a07
The file was modifiedllvm/utils/gn/secondary/llvm/lib/ExecutionEngine/Orc/Shared/BUILD.gn (diff)
The file was modifiedllvm/utils/gn/secondary/llvm/unittests/ExecutionEngine/Orc/BUILD.gn (diff)
Commit cfe117def7b0714e5d724c80839e68f40fba4f47 by patacca
[Polly][Isl] Replacing isl method `to_str()` with `stringFromIslObj()`. NFC.

This is part of an effort to reduce the differences between the custom C++ bindings used right now by polly in `lib/External/isl/include/isl/isl-noxceptions.h` and the official isl C++ interface.

Changes made:
- Removing method `to_str()` from all the classes in the isl C++ bindings.
- Overload method `stringFromIslObj()` so it accepts isl C++ objects.
- To keep backward compatibility `stringFromIslObj()` now accepts a value that is returned if the isl C object is `null` or doesn't have a string representation (by default it's an empty string). In some cases it's better to have the string "null" instead of an empty string.
- isl-noexceptions.h has been generated by this https://github.com/patacca/isl/commit/d33ec3a3bbaf971b254a853e6d8200ff9f5a1385

Reviewed By: Meinersbur

Differential Revision: https://reviews.llvm.org/D104211
The file was modifiedpolly/include/polly/Support/GICHelper.h (diff)
The file was modifiedpolly/lib/External/isl/include/isl/isl-noexceptions.h (diff)
The file was modifiedpolly/lib/Support/ISLTools.cpp (diff)
The file was modifiedpolly/lib/Analysis/ScopBuilder.cpp (diff)
The file was modifiedpolly/lib/Analysis/PolyhedralInfo.cpp (diff)
The file was modifiedpolly/include/polly/Support/ISLOStream.h (diff)
The file was modifiedpolly/lib/Analysis/ScopInfo.cpp (diff)
The file was modifiedpolly/lib/Support/GICHelper.cpp (diff)
The file was modifiedpolly/lib/CodeGen/IslAst.cpp (diff)
Commit 304b9c25d58d611287c51c50cc0fe4a8c16f6f0d by flo
[Matrix] Add tests for fast-math flags & matrix codegen.

This has already been implemented in be2277fbf233 which adds
pragma fp support. This patch just adds test coverage for
regular fast-math flags (PR46165).
The file was addedclang/test/CodeGen/matrix-type-operators-fast-math.c
Commit 389e749c42307ae589f84c79cceb175e6c9b510b by arthur.j.odwyer
[libc++] [test] Fix some GCC 11 errors/warnings in these tests. NFCI.

Differential Revision: https://reviews.llvm.org/D104228
The file was modifiedlibcxx/test/std/ranges/range.access/range.access.begin/begin.pass.cpp (diff)
The file was modifiedlibcxx/test/std/ranges/range.utility/range.subrange/subrange_test_types.h (diff)
The file was modifiedlibcxx/test/std/strings/string.view/string.view.ops/copy.pass.cpp (diff)
The file was modifiedlibcxx/test/std/iterators/iterator.requirements/iterator.concepts/iterator.concept.random.access/random_access_iterator.compile.pass.cpp (diff)
The file was removedlibcxx/test/std/ranges/range.access/range.access.end/end.cpp
The file was addedlibcxx/test/std/ranges/range.access/range.access.end/end.pass.cpp
The file was modifiedlibcxx/test/std/iterators/iterator.requirements/iterator.concepts/iterator.concept.random.access/contiguous_iterator.compile.pass.cpp (diff)
The file was modifiedlibcxx/test/std/ranges/range.adaptors/range.all.pass.cpp (diff)
The file was modifiedlibcxx/test/std/ranges/range.utility/view.interface/view.interface.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/tuple/tuple.tuple/tuple.cnstr/deduct.pass.cpp (diff)
Commit 662f9bff337b99819301113fc8634eb5123b9e23 by gysit
[mlir][linalg][python] Adapt the OpDSL to use scalars.

The patch replaces the existing capture functionality by scalar operands that have been introduced by https://reviews.llvm.org/D104109. Scalar operands behave as tensor operands except for the fact that they are not indexed. As a result ScalarDefs can be accessed directly as no indexing expression is needed.

The patch only updates the OpDSL. The C++ side is updated by a follow up patch.

Differential Revision: https://reviews.llvm.org/D104220
The file was modifiedmlir/python/mlir/dialects/linalg/opdsl/lang/config.py (diff)
The file was modifiedmlir/python/mlir/dialects/linalg/opdsl/lang/scalar_expr.py (diff)
The file was modifiedmlir/python/mlir/dialects/linalg/opdsl/lang/comprehension.py (diff)
The file was modifiedmlir/python/mlir/dialects/linalg/opdsl/lang/emitter.py (diff)
The file was modifiedmlir/test/python/dialects/linalg/opdsl/emit_structured_generic.py (diff)
The file was modifiedmlir/python/mlir/dialects/linalg/opdsl/lang/dsl.py (diff)
The file was modifiedmlir/test/python/dialects/linalg/opdsl/assignments.py (diff)
The file was modifiedmlir/test/python/dialects/linalg/opsrun.py (diff)
The file was modifiedmlir/test/python/dialects/linalg/opdsl/arguments.py (diff)
The file was modifiedmlir/python/mlir/dialects/linalg/opdsl/ops/core_named_ops.py (diff)
Commit 9b2a1bcf6fbe79cfa3725cfd654f45cce0375d3b by zinenko
[mlir] separable registration of attribute and type interfaces

It may be desirable to provide an interface implementation for an attribute or
a type without modifying the definition of said attribute or type. Notably,
this allows to implement interfaces for attributes and types outside of the
dialect that defines them and, in particular, provide interfaces for built-in
types. Provide the mechanism to do so.

Currently, separable registration requires the attribute or type to have been
registered with the context, i.e. for the dialect containing the attribute or
type to be loaded. This can be relaxed in the future using a mechanism similar
to delayed dialect interface registration.

See https://llvm.discourse.group/t/rfc-separable-attribute-type-interfaces/3637

Depends On D104233

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D104234
The file was addedmlir/unittests/IR/InterfaceAttachmentTest.cpp
The file was modifiedmlir/docs/Interfaces.md (diff)
The file was modifiedmlir/test/lib/Dialect/Test/CMakeLists.txt (diff)
The file was modifiedmlir/test/lib/Dialect/Test/TestInterfaces.td (diff)
The file was modifiedmlir/lib/IR/MLIRContext.cpp (diff)
The file was modifiedmlir/include/mlir/IR/TypeSupport.h (diff)
The file was modifiedmlir/include/mlir/Support/InterfaceSupport.h (diff)
The file was modifiedmlir/tools/mlir-tblgen/OpInterfacesGen.cpp (diff)
The file was modifiedmlir/include/mlir/IR/Types.h (diff)
The file was modifiedmlir/include/mlir/IR/StorageUniquerSupport.h (diff)
The file was modifiedmlir/include/mlir/IR/Attributes.h (diff)
The file was modifiedmlir/unittests/IR/CMakeLists.txt (diff)
The file was modifiedmlir/tools/mlir-tblgen/SPIRVUtilsGen.cpp (diff)
The file was modifiedmlir/test/lib/Dialect/Test/TestAttributes.cpp (diff)
The file was modifiedmlir/test/lib/Dialect/Test/TestAttributes.h (diff)
The file was modifiedmlir/include/mlir/IR/AttributeSupport.h (diff)
Commit f112bd61ebf315b563fdd3dae947f0c67d02a6cc by akuegel
[mlir] Add SignOp to complex dialect.

Also add a conversion pattern from Complex Dialect to Standard/Math Dialect.

Differential Revision: https://reviews.llvm.org/D104292
The file was modifiedmlir/test/Conversion/ComplexToStandard/convert-to-standard.mlir (diff)
The file was modifiedmlir/lib/Conversion/ComplexToStandard/ComplexToStandard.cpp (diff)
The file was modifiedmlir/include/mlir/Dialect/Complex/IR/ComplexOps.td (diff)
Commit 941188e9653463bc269ecb43e87ec22c63a4a02b by llvm-dev
[llvm-exegesis] Fix X86LbrCounter destructor to correctly unmap memory and not double-close fd (PR50620)

As was reported on PR50620, the X86LbrCounter destructor was double-closing the filedescriptor and not unmapping the buffer.

Differential Revision: https://reviews.llvm.org/D104201
The file was modifiedllvm/tools/llvm-exegesis/lib/X86/X86Counter.cpp (diff)
Commit 09924cbab78016d793c15ece5762faff3756c0cf by david.green
[ARM] Rejig some of the MVE gather/scatter lowering pass. NFC

This adjusts some of how the gather/scatter lowering pass passes around
data and where certain gathers/scatters are created from. It should not
effect code generation on its own, but allows other patches to more
clearly reason about the code.

A number of extra test cases were also added for smaller gathers/
scatters that can be extended, and some of the test comments were
updated.
The file was modifiedllvm/test/CodeGen/Thumb2/mve-scatter-ind16-unscaled.ll (diff)
The file was modifiedllvm/test/CodeGen/Thumb2/mve-scatter-ptrs.ll (diff)
The file was modifiedllvm/lib/Target/ARM/MVEGatherScatterLowering.cpp (diff)
The file was modifiedllvm/test/CodeGen/Thumb2/mve-scatter-ind8-unscaled.ll (diff)
The file was modifiedllvm/test/CodeGen/Thumb2/mve-gather-ptrs.ll (diff)
The file was modifiedllvm/test/CodeGen/Thumb2/mve-scatter-ind16-scaled.ll (diff)
Commit 8387187c2ffe0bef0696edfffab00cd7d0ee3e6e by gchatelet
[libc] Add a set of elementary operations

Resubmission of D100646 now making sure that we handle cases were `__builtin_memcpy_inline` is not available.

Original commit message:
Each of these elementary operations can be assembled to support higher order constructs (Overlapping access, Loop, Aligned Loop).
The patch does not compile yet as it depends on other ones (D100571, D100631) but it allows to get the conversation started.

A self-contained version of this code is available at https://godbolt.org/z/e1x6xdaxM
The file was addedlibc/test/src/string/memory_utils/elements_test.cpp
The file was modifiedlibc/src/string/CMakeLists.txt (diff)
The file was modifiedlibc/src/string/aarch64/memcpy.cpp (diff)
The file was modifiedlibc/src/string/memory_utils/memset_utils.h (diff)
The file was modifiedlibc/src/string/memcpy.cpp (diff)
The file was modifiedlibc/test/src/string/memory_utils/CMakeLists.txt (diff)
The file was removedlibc/test/src/string/memory_utils/memcpy_utils_test.cpp
The file was addedlibc/src/string/memory_utils/elements_x86.h
The file was modifiedlibc/src/string/x86_64/memcpy.cpp (diff)
The file was modifiedlibc/src/string/memory_utils/CMakeLists.txt (diff)
The file was addedlibc/src/string/memory_utils/elements.h
The file was removedlibc/src/string/memory_utils/memcpy_utils.h
The file was addedlibc/test/src/string/memory_utils/memory_access_test.cpp
Commit e893708aac04ece90fd85681c289f1a3b09b52e5 by gysit
[mlir] Avoid GCC naming conflict.

Rename AbstractType to AbstractTy to avoid a GCC naming conflict after https://reviews.llvm.org/D104234.

Differential Revision: https://reviews.llvm.org/D104297
The file was modifiedmlir/include/mlir/IR/Types.h (diff)
The file was modifiedmlir/include/mlir/IR/Attributes.h (diff)
The file was modifiedmlir/include/mlir/IR/StorageUniquerSupport.h (diff)
Commit 6d33362dafb66b3af4717990d9a06450ec13f367 by rupprecht
[libcxx][atomic] Fix failure mapping in compare_exchange_{strong,weak}.

https://eel.is/c++draft/atomics.types.operations#23 says: ... the value of failure is order except that a value of `memory_order::acq_rel` shall be replaced by the value `memory_order::acquire` and a value of `memory_order::release` shall be replaced by the value `memory_order::relaxed`.

This failure mapping is only handled for `_LIBCPP_HAS_GCC_ATOMIC_IMP`. We are seeing bad code generation for `compare_exchange_strong(cmp, 1, std::memory_order_acq_rel)` when using libc++ in place of libstdc++: https://godbolt.org/z/v3onrrq4G.

This was caught by tsan tests after D99434, `[TSAN] Honor failure memory orders in AtomicCAS`, but appears to be an issue in non-tsan code.

Reviewed By: ldionne, dvyukov

Differential Revision: https://reviews.llvm.org/D103846
The file was addedlibcxx/test/std/atomics/atomics.general/replace_failure_order_codegen.sh.cpp
The file was modifiedlibcxx/include/atomic (diff)
Commit 2e286f233e58da0aec4504ed83286fc7dcef0e3e by gchatelet
Revert "[libc] Add a set of elementary operations"

This reverts commit 8387187c2ffe0bef0696edfffab00cd7d0ee3e6e.
The file was modifiedlibc/src/string/aarch64/memcpy.cpp (diff)
The file was modifiedlibc/src/string/memory_utils/CMakeLists.txt (diff)
The file was addedlibc/src/string/memory_utils/memcpy_utils.h
The file was removedlibc/src/string/memory_utils/elements.h
The file was modifiedlibc/src/string/memory_utils/memset_utils.h (diff)
The file was modifiedlibc/src/string/x86_64/memcpy.cpp (diff)
The file was addedlibc/test/src/string/memory_utils/memcpy_utils_test.cpp
The file was modifiedlibc/src/string/CMakeLists.txt (diff)
The file was removedlibc/test/src/string/memory_utils/elements_test.cpp
The file was modifiedlibc/test/src/string/memory_utils/CMakeLists.txt (diff)
The file was modifiedlibc/src/string/memcpy.cpp (diff)
The file was removedlibc/src/string/memory_utils/elements_x86.h
The file was removedlibc/test/src/string/memory_utils/memory_access_test.cpp
Commit 80ea006ef9e08364854394b633b904fa85e38e4e by isaac.perry
[flang] [openmp] Add Fortran specific semantic check 4 for OpenMP Allocate directive.

This patch adds the 4th Fortran specific semantic check for the OpenMP
allocate directive: "If a list item has the SAVE attribute, is a common
block name, or is declared in the scope of a module, then only predefined
memory allocator parameters can be used in the allocator clause".

Code in this patch was based on code from https://reviews.llvm.org/D93549/new/.

Differential Revision: https://reviews.llvm.org/D102400
The file was modifiedflang/include/flang/Semantics/tools.h (diff)
The file was modifiedflang/lib/Semantics/check-omp-structure.h (diff)
The file was modifiedflang/lib/Semantics/check-omp-structure.cpp (diff)
The file was addedflang/test/Semantics/omp-allocate08.f90
Commit 073e7a08e83ab61198e6b9e106369e876a5b7509 by Adrian Prantl
Work around MSVC compiler intricacies.
The file was modifiedlldb/include/lldb/Utility/Timer.h (diff)
Commit ff2ef4d684821c373e989105ac51eeeca9c2027e by gysit
[mlir][linalg] Adapt yaml codegen to support scalar parameters.

The patch updates the C++ yaml code generation to support scalar operands as added in https://reviews.llvm.org/D104220.

Differential Revision: https://reviews.llvm.org/D104224
The file was modifiedmlir/include/mlir/Dialect/Linalg/IR/LinalgNamedStructuredOps.yaml (diff)
The file was modifiedmlir/docs/Tools/LinalgOpDsl.md (diff)
The file was modifiedmlir/test/python/dialects/linalg/opsrun.py (diff)
The file was modifiedmlir/test/mlir-linalg-ods-gen/test-linalg-ods-yaml-gen.yaml (diff)
The file was modifiedmlir/test/Dialect/Linalg/generalize-named-polymorphic-ops.mlir (diff)
The file was modifiedmlir/tools/mlir-linalg-ods-gen/mlir-linalg-ods-yaml-gen.cpp (diff)
Commit 2c21278e7471d24bcdb1c8ea2bf1440cb2fa3a4a by andrew.litteken
[IROutliner] Adding DebugInfo handling for IR Outlined Functions

This adds support for functions outlined by the IR Outliner to be
recognized by the debugger.  The expected behavior is that it will
skip over the instructions included in that section.  This is due to the
fact that we can not say which of the original locations the
instructions originated from.

These functions will show up in the call stack, but you cannot step
through them.

Reviewers: paquette, vsk, djtodoro

Differential Revision: https://reviews.llvm.org/D87302
The file was modifiedllvm/test/Transforms/IROutliner/legal-debug.ll (diff)
The file was modifiedllvm/lib/Transforms/IPO/IROutliner.cpp (diff)
The file was addedllvm/test/DebugInfo/AArch64/ir-outliner.ll
Commit 680d3f8f1785adcb128d8727234631fe866acb04 by david.green
[ARM] Use rq gather/scatters for smaller v4 vectors

A pointer will always fit into an i32, so a rq offset gather/scatter can
be used with v4i8 and v4i16 gathers, using a base of 0 and the Ptr as
the offsets. The rq gather can then correctly extend the type, allowing
us to use the gathers without falling back to scalarizing.

This patch rejigs tryCreateMaskedGatherOffset in the
MVEGatherScatterLowering pass to decompose the Ptr into Base:0 +
Offset:Ptr (with a scale of 1), if the Ptr could not be decomposed from
a GEP. v4i32 gathers will already use qi gathers, this extends that to
v4i8 and v4i16 gathers using the extending rq variants.

Differential Revision: https://reviews.llvm.org/D103674
The file was modifiedllvm/test/CodeGen/Thumb2/mve-gather-ptrs.ll (diff)
The file was modifiedllvm/test/CodeGen/Thumb2/mve-scatter-ptrs.ll (diff)
The file was modifiedllvm/test/CodeGen/Thumb2/mve-scatter-ind32-scaled.ll (diff)
The file was modifiedllvm/lib/Target/ARM/MVEGatherScatterLowering.cpp (diff)
Commit a6948da86ad7e78d66b26263c2681ef6385cc234 by Saleem Abdulrasool
DirectoryWatcher: close a possible window of race on Windows

The initial scan occurring before the watcher is ready allows a race
condition where a change occurs before the initial scan completes.
Ensure that we wait for the watcher to begin executing the initial scan.

Addresses some feedback from Adrian McCarthy in post-commit review.
The file was modifiedclang/lib/DirectoryWatcher/windows/DirectoryWatcher-windows.cpp (diff)
Commit b9bd2936f9cf210deb611fe6398f3976caf86b34 by david.green
[ARM] Extend narrow values to allow using truncating scatters

As a minor adjustment to the existing lowering of offset scatters, this
extends any smaller-than-legal vectors into full vectors using a zext,
so that the truncating scatters can be used. Due to the way MVE
legalizes the vectors this should be cheap in most situations, and will
prevent the vector from being scalarized.

Differential Revision: https://reviews.llvm.org/D103704
The file was modifiedllvm/lib/Target/ARM/MVEGatherScatterLowering.cpp (diff)
The file was modifiedllvm/test/CodeGen/Thumb2/mve-scatter-ptrs.ll (diff)
The file was modifiedllvm/test/CodeGen/Thumb2/mve-scatter-ind32-unscaled.ll (diff)
The file was modifiedllvm/test/CodeGen/Thumb2/mve-scatter-ind8-unscaled.ll (diff)
Commit e32a92c6fe8e6dd8ca08b44be12eda6d88c2eaed by rnk
Remove unnecessary triple from test

PR27098(https://bugs.llvm.org/show_bug.cgi?id=27098) has been fixed so
the avoidance seems unnecessary.

Differential Revision: https://reviews.llvm.org/D68891
The file was modifiedclang/test/CXX/dcl.decl/dcl.init/dcl.init.list/p3.cpp (diff)
Commit 25b2126b9e9c28e48ce4e6e40af624767e5fb146 by aeubanks
[NFC] Remove redundant variable

Differential Revision: https://reviews.llvm.org/D103706
The file was modifiedllvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp (diff)
Commit be5d454f3f07607a7d9326078f5c47f2e1f3a8ee by aeubanks
[NFC][OpaquePtr] Avoid calling getPointerElementType()

Pointee types are going away soon.

For this, we mostly just care about store/load types, which are already
available without the pointee types. The other intrinsics always use
i8*.

Reviewed By: dblaikie

Differential Revision: https://reviews.llvm.org/D103719
The file was modifiedllvm/lib/Target/PowerPC/PPCLoopInstrFormPrep.cpp (diff)
Commit 93aa445e16f7e27df08f69204263b618ca0448a1 by david.green
Revert "[ARM] Extend narrow values to allow using truncating scatters"

This commit adds nodes that might not always be used, which the
expensive checks builder does not like. Reverting for now to think up a
better way of handling it.
The file was modifiedllvm/lib/Target/ARM/MVEGatherScatterLowering.cpp (diff)
The file was modifiedllvm/test/CodeGen/Thumb2/mve-scatter-ptrs.ll (diff)
The file was modifiedllvm/test/CodeGen/Thumb2/mve-scatter-ind8-unscaled.ll (diff)
The file was modifiedllvm/test/CodeGen/Thumb2/mve-scatter-ind32-unscaled.ll (diff)
Commit b8567559cf3872d0cc2a0ed24a171da8b1ff400f by Raphael Isemann
[lldb] Make the ClassTemplateDecl merging logic in TypeSystemClang respect template parameters

DWARF doesn't describe templates itself but only actual template instantiations.
Because of that LLDB has to infer the parameters of the class template
declarations from the actual instantiations when creating the internal Clang AST
from debug info

Because there is no dedicated DIE for the class template, LLDB also creates the
`ClassTemplateDecl` implicitly when parsing a template instantiation. To avoid
creating one ClassTemplateDecls for every instantiation,
`TypeSystemClang::CreateClassTemplateDecl` will check if there is already a
`ClassTemplateDecl` in the requested `DeclContext` and will reuse a found
fitting declaration.

The logic that checks if a found class template fits to an instantiation is
currently just comparing the name of the template. So right now we map
`template<typename T> struct S;` to an instantiation with the values `S<1, 2,
3>` even though they clearly don't belong together.

This causes crashes later on when for example the Itanium mangler's
`TemplateArgManglingInfo::needExactType` method tries to find fitting the class
template parameter that fits to an instantiation value. In the example above it
will try to find the parameter for the value `2` but will just trigger a
boundary check when retrieving the parameter with index 1 from the class
template.

There are two ways we can end up with an instantiation that doesn't fit to a
class template with the same name:

1. We have two TUs with two templates that have the same name and internal
   linkage.
2. A forward declared template instantiation is emitted by GCC and Clang
   without an empty list of parameter values.

This patch makes the check for whether a class template declaration can be
reused more sophisticated by also comparing whether the parameter values can fit
to the found class template. If we can't find a fitting class template we
justcreate a second class template with the fitting parameters.

Fixes rdar://76592821

Reviewed By: kastiglione

Differential Revision: https://reviews.llvm.org/D100662
The file was addedlldb/test/API/lang/cpp/incompatible-class-templates/main.cpp
The file was addedlldb/test/API/lang/cpp/incompatible-class-templates/TestCppIncompatibleClassTemplates.py
The file was modifiedlldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.h (diff)
The file was addedlldb/test/API/lang/cpp/forward-declared-template-specialization/TestCppForwardDeclaredTemplateSpecialization.py
The file was addedlldb/test/API/lang/cpp/forward-declared-template-specialization/main.cpp
The file was modifiedlldb/source/Plugins/TypeSystem/Clang/TypeSystemClang.cpp (diff)
The file was addedlldb/test/API/lang/cpp/incompatible-class-templates/other.cpp
The file was addedlldb/test/API/lang/cpp/incompatible-class-templates/Makefile
The file was modifiedlldb/unittests/Symbol/TestTypeSystemClang.cpp (diff)
The file was addedlldb/test/API/lang/cpp/forward-declared-template-specialization/Makefile
Commit e52364532afb2748c324f360bc1cc12605d314f3 by lebedev.ri
[NewPM] Remove SpeculateAroundPHIs pass

Addition of this pass has been botched.
There is no particular reason why it had to be sold as an inseparable part
of new-pm transition. It was added when old-pm was still the default,
and very *very* few users were actually tracking new-pm,
so it's effects weren't measured.

Which means, some of the turnoil of the new-pm transition
are actually likely regressions due to this pass.

Likewise, there has been a number of post-commit feedback
(post new-pm switch), namely
* https://reviews.llvm.org/D37467#2787157 (regresses HW-loops)
* https://reviews.llvm.org/D37467#2787259 (should not be in middle-end, should run after LSR, not before)
* https://reviews.llvm.org/D95789 (an attempt to fix bad loop backedge metadata)
and in the half year past, the pass authors (google) still haven't found time to respond to any of that.

Hereby it is proposed to backout the pass from the pipeline,
until someone who cares about it can address the issues reported,
and properly start the process of adding a new pass into the pipeline,
with proper performance evaluation.

Furthermore, neither google nor facebook reports any perf changes
from this change, so i'm dropping the pass completely.
It can always be re-reverted should/if anyone want to pick it up again.

Reviewed By: aeubanks

Differential Revision: https://reviews.llvm.org/D104099
The file was removedllvm/lib/Transforms/Scalar/SpeculateAroundPHIs.cpp
The file was removedllvm/test/Transforms/SpeculateAroundPHIs/pr42991.ll
The file was modifiedllvm/test/Other/new-pm-defaults.ll (diff)
The file was modifiedllvm/test/Other/new-pm-thinlto-postlink-samplepgo-defaults.ll (diff)
The file was modifiedllvm/test/Transforms/PhaseOrdering/AArch64/hoisting-sinking-required-for-vectorization.ll (diff)
The file was modifiedclang/test/CodeGen/thinlto-distributed-newpm.ll (diff)
The file was modifiedllvm/test/Transforms/LoopUnroll/AArch64/runtime-unroll-generic.ll (diff)
The file was removedllvm/test/Transforms/SpeculateAroundPHIs/basic-x86.ll
The file was modifiedllvm/lib/Passes/PassRegistry.def (diff)
The file was modifiedllvm/utils/gn/secondary/llvm/lib/Transforms/Scalar/BUILD.gn (diff)
The file was removedllvm/include/llvm/Transforms/Scalar/SpeculateAroundPHIs.h
The file was modifiedllvm/test/Transforms/PhaseOrdering/loop-rotation-vs-common-code-hoisting.ll (diff)
The file was modifiedllvm/test/Other/new-pm-thinlto-defaults.ll (diff)
The file was modifiedllvm/lib/Transforms/Scalar/CMakeLists.txt (diff)
The file was removedllvm/test/Transforms/SpeculateAroundPHIs/convergent.ll
The file was modifiedllvm/lib/Passes/PassBuilder.cpp (diff)
The file was modifiedllvm/test/Other/new-pm-thinlto-postlink-pgo-defaults.ll (diff)
Commit fc006b3e5dc3cb33e3dd55955f05664f187e8240 by leonardchan
[compiler-rt][hwasan] Add GetShadowOffset function

Similar to SHADOW_OFFSET on asan, we can use this for hwasan so platforms that
use a constant value for the start of shadow memory can just use the constant
rather than access a global.

Differential Revision: https://reviews.llvm.org/D104275
The file was modifiedcompiler-rt/lib/hwasan/hwasan_allocator.h (diff)
The file was modifiedcompiler-rt/lib/hwasan/hwasan_mapping.h (diff)
Commit a11880468e556d20ad9b0d43a1ff43daf62d49b2 by Stanislav.Mekhanoshin
[AMDGPU] Fix lds superalign test. NFC.
The file was modifiedllvm/test/CodeGen/AMDGPU/lower-kernel-lds-super-align.ll (diff)
Commit 3bc899b4de74d395b03d3969d700aac71f89bc12 by llvm
[X86] avoid assert with varargs, soft float, and no-implicit-float

Fixes:
- PR36507 Floating point varargs are not handled correctly with
   -mno-implicit-float
- PR48528 __builtin_va_start assumes it can pass SSE registers
   when using -Xclang -msoft-float -Xclang -no-implicit-float

On x86_64, floating-point parameters are normally passed in XMM
registers. For va_start, we spill those to memory so va_arg can
find them. There is an interaction here with -msoft-float and
-no-implicit-float:

When -msoft-float is in effect, instead of passing floating-point
parameters in XMM registers, they are passed in general-purpose
registers.

When -no-implicit-float is in effect, it "disables implicit
floating-point instructions" (per the LangRef). The intended
effect is to not have the compiler generate floating-point code
unless explicit floating-point operations are present in the
source code, but what exactly counts as an explicit floating-point
operation is not specified. The existing behavior of LLVM here has
led to some surprises and PRs.

This change modifies the behavior as follows:

  | soft | no-implicit | old behavior    | new behavior    |
  |  no  |   no        | spill XMM regs  | spill XMM regs  |
  | yes  |   no        | don't spill XMM | don't spill XMM |
  |  no  |  yes        | don't spill XMM | spill XMM regs  |
  | yes  |  yes        | assert          | don't spill XMM |

In particular, this avoids the assert that happens when
-msoft-float and -no-implicit-float are both in effect. This
seems like a perfectly reasonable combination: If we don't want
to rely on hardware floating-point support, we want to both
avoid using float registers to pass parameters and avoid having
the compiler generate floating-point code that wasn't in the
original program. Instead of crashing the compiler, the new
behavior is to not synthesize floating-point code in this
case. This fixes PR48528.

The other interesting case is when -no-implicit-float is in
effect, but -msoft-float is not. In that case, any floating-point
parameters that are present will be in XMM registers, and so we
have to spill them to correctly handle those. This fixes
PR36507. The spill is conditional on %al indicating that
parameters are present in XMM registers, so no floating-point
code will be executed unless the function is called with
floating-point parameters.

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D104001
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp (diff)
The file was addedllvm/test/CodeGen/X86/varargs-softfloat.ll
Commit 3302af9d4c39642bebe64dd60a3aa162fefc44b2 by Duncan P. N. Exon Smith
Support: Remove F_{None,Text,Append} compatibility synonyms, NFC

Remove the compatibility spellings of `OF_{None,Text,Append}` that
were left behind by 1f67a3cba9b09636c56e2109d8a35ae96dc15782.

No functionality change here, just an API cleanup.

Differential Revision: https://reviews.llvm.org/D101506
The file was modifiedllvm/include/llvm/Support/FileSystem.h (diff)
Commit dc066888bd98c0500ca7b590317dc91ccce0fd38 by arthur.j.odwyer
[libc++] [P0619] Add _LIBCPP_ABI_NO_BINDER_BASES and remove binder typedefs in C++20.

Differential Revision: https://reviews.llvm.org/D103753
The file was modifiedlibcxx/test/libcxx/utilities/function.objects/refwrap/binary.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/unord.hash/floating.pass.cpp (diff)
The file was modifiedlibcxx/docs/UsingLibcxx.rst (diff)
The file was modifiedlibcxx/include/__functional_base (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/arithmetic.operations/divides.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/bitwise.operations/bit_not.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/negators/not2.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/comparisons/equal_to.pass.cpp (diff)
The file was modifiedlibcxx/include/functional (diff)
The file was modifiedlibcxx/include/utility (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/bitwise.operations/bit_xor.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/unord.hash/pointer.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/arithmetic.operations/negate.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/unord.hash/integral.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/logical.operations/logical_not.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/unord.hash/enum.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/arithmetic.operations/minus.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/logical.operations/logical_and.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/memory/util.smartptr/util.smartptr.weak/util.smartptr.ownerless/owner_less.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/comparisons/greater.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/negators/binary_negate.pass.cpp (diff)
The file was modifiedlibcxx/include/optional (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/comparisons/less.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/bitwise.operations/bit_and.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/negators/not1.pass.cpp (diff)
The file was modifiedlibcxx/include/__memory/shared_ptr.h (diff)
The file was modifiedlibcxx/include/__memory/unique_ptr.h (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/arithmetic.operations/multiplies.pass.cpp (diff)
The file was modifiedlibcxx/include/__config (diff)
The file was modifiedlibcxx/docs/Cxx2aStatus.rst (diff)
The file was addedlibcxx/test/libcxx/depr/depr.func.adaptor.typedefs/typedefs.depr_in_cxx17.verify.cpp
The file was modifiedlibcxx/test/std/utilities/function.objects/comparisons/greater_equal.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/logical.operations/logical_or.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/negators/unary_negate.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/arithmetic.operations/modulus.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/bitwise.operations/bit_or.pass.cpp (diff)
The file was modifiedlibcxx/test/libcxx/utilities/function.objects/refwrap/unary.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/comparisons/less_equal.pass.cpp (diff)
The file was modifiedlibcxx/include/map (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/comparisons/not_equal_to.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/func.wrap/func.wrap.func/types.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/function.objects/arithmetic.operations/plus.pass.cpp (diff)
Commit 821a8f680eec356be5894559bcea3f718e8bedd4 by nemanja.i.ibm
[PowerPC] Fix spilling of paired VSX registers

We have added STXVP/LXVP for spilling and restoring the registers
but we neglected to add FI elimination code for these. The result
is that we end up producing impossible MachineInstr's that have
register operands in place of immediates.
The file was modifiedllvm/lib/Target/PowerPC/PPCRegisterInfo.cpp (diff)
The file was modifiedllvm/test/CodeGen/PowerPC/mma-intrinsics.ll (diff)
The file was modifiedllvm/test/CodeGen/PowerPC/mma-acc-spill.ll (diff)
The file was addedllvm/test/CodeGen/PowerPC/spill-vec-pair.ll
Commit 994bb937f020a014c7039151169649a7076ca9b1 by albionapc
[PowerPC] Moving defineXLCompatMacros() definition

Moving the definition of the defineXLCompatMacros function from
the header file clang/lib/Basic/Targets/PPC.h to the source file
clang/lib/Basic/Targets/PPC.cpp.

Differential revision: https://reviews.llvm.org/D104125
The file was modifiedclang/lib/Basic/Targets/PPC.cpp (diff)
The file was modifiedclang/lib/Basic/Targets/PPC.h (diff)
Commit 332da1c283564489c874737d3a9f2b103c15755c by cjdb
[libcxx][iwyu] ensures we IWYU as prep for modules

This has been broken out of D104170 since it should be merged whether or
not we go ahead with the module map changes.

Differential Revision: https://reviews.llvm.org/D104175
The file was modifiedlibcxx/include/__ranges/view_interface.h (diff)
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/mutex_duration.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/format/format.formatter/format.parse.ctx/advance_to.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared.atomic/atomic_compare_exchange_strong.pass.cpp (diff)
The file was modifiedlibcxx/include/__memory/allocator_traits.h (diff)
The file was modifiedlibcxx/include/__memory/allocation_guard.h (diff)
The file was modifiedlibcxx/include/__ranges/access.h (diff)
The file was modifiedlibcxx/test/std/utilities/format/format.formatter/format.parse.ctx/begin.pass.cpp (diff)
The file was modifiedlibcxx/include/__iterator/prev.h (diff)
The file was modifiedlibcxx/test/std/utilities/format/format.formatter/format.parse.ctx/types.compile.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared.atomic/atomic_load_explicit.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared.atomic/atomic_compare_exchange_weak_explicit.pass.cpp (diff)
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/lock.pass.cpp (diff)
The file was modifiedlibcxx/include/__ranges/size.h (diff)
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/try_lock_shared_until.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared.atomic/atomic_store_explicit.pass.cpp (diff)
The file was modifiedlibcxx/include/__ranges/empty.h (diff)
The file was modifiedlibcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared.atomic/atomic_exchange_explicit.pass.cpp (diff)
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.lock/thread.lock.shared/thread.lock.shared.cons/mutex_time_point.pass.cpp (diff)
The file was modifiedlibcxx/include/__iterator/advance.h (diff)
The file was modifiedlibcxx/test/std/thread/thread.mutex/thread.mutex.requirements/thread.sharedtimedmutex.requirements/thread.sharedtimedmutex.class/lock_shared.pass.cpp (diff)
The file was modifiedlibcxx/include/__ranges/concepts.h (diff)
The file was modifiedlibcxx/include/__ranges/data.h (diff)
The file was modifiedlibcxx/test/std/utilities/format/format.formatter/format.parse.ctx/next_arg_id.pass.cpp (diff)
The file was modifiedlibcxx/include/__memory/pointer_safety.h (diff)
The file was modifiedlibcxx/test/std/utilities/format/format.formatter/format.parse.ctx/ctor.pass.cpp (diff)
The file was modifiedlibcxx/include/__memory/pointer_traits.h (diff)
The file was modifiedlibcxx/test/std/utilities/format/format.formatter/format.parse.ctx/end.pass.cpp (diff)
The file was modifiedlibcxx/include/__iterator/next.h (diff)
The file was modifiedlibcxx/test/std/utilities/format/format.formatter/format.parse.ctx/check_arg_id.pass.cpp (diff)
The file was modifiedlibcxx/test/std/utilities/memory/util.smartptr/util.smartptr.shared.atomic/atomic_compare_exchange_strong_explicit.pass.cpp (diff)
The file was modifiedlibcxx/include/__memory/auto_ptr.h (diff)
Commit 9ddb625890518d8ee079da896c9d28f21154a6d1 by Jinsong Ji
[NFC] Update renamed option in comments

c98ebda325c996b3a12f4fded0368734dc0fe28a Rename fp-op fusion option (yet
again) for compatibility with GCC option.

The comment in the header should be updated too to avoid confusion.
The file was modifiedllvm/include/llvm/Target/TargetOptions.h (diff)
Commit efebe76e93d50562a0d834e39f096eac24aa3c0c by douglas.yung
Remove redundant test that was causing intermittent build bot failures.

Patch by Fred Grim!

Reviewed By: MyDeveloperDay

Differential Revision: https://reviews.llvm.org/D104295
The file was removedclang/test/Format/struct-array-initializer.cpp
Commit dd1992efd3f1ebbaddc77edafcf17b967cafc1d9 by jpienaar
Support lowering of index-cast on vector types.

The index cast operation accepts vector types. Implement its lowering in this patch.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D104280
The file was modifiedmlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp (diff)
The file was modifiedmlir/test/Conversion/StandardToLLVM/convert-to-llvmir.mlir (diff)
The file was modifiedmlir/include/mlir/Dialect/StandardOps/IR/Ops.td (diff)
Commit a99f6d307119e3f6cee7c2f7ad731a95d320063c by Vitaly Buka
[NFC] Fix "unused variable" warning
The file was modifiedllvm/include/llvm/Support/GenericDomTreeConstruction.h (diff)
Commit 6478ef61b1a4dd86f520b199e0fd6762e8306353 by Vitaly Buka
[asan] Remove Asan, Ubsan support of RTEMS and Myriad

Differential Revision: https://reviews.llvm.org/D104279
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_platform.h (diff)
The file was modifiedcompiler-rt/lib/asan/asan_interceptors_memintrinsics.cpp (diff)
The file was modifiedcompiler-rt/lib/asan/asan_malloc_linux.cpp (diff)
The file was removedllvm/test/Instrumentation/AddressSanitizer/basic-myriad.ll
The file was modifiedcompiler-rt/lib/asan/CMakeLists.txt (diff)
The file was removedcompiler-rt/lib/asan/asan_malloc_local.h
The file was removedcompiler-rt/lib/sanitizer_common/sanitizer_rtems.cpp
The file was modifiedcompiler-rt/lib/asan/asan_interceptors.h (diff)
The file was modifiedcompiler-rt/lib/ubsan/ubsan_platform.h (diff)
The file was modifiedcompiler-rt/lib/asan/asan_flags.cpp (diff)
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_symbolizer_markup.cpp (diff)
The file was modifiedcompiler-rt/lib/asan/asan_internal.h (diff)
The file was modifiedcompiler-rt/lib/asan/asan_poisoning.h (diff)
The file was removedcompiler-rt/lib/sanitizer_common/sanitizer_symbolizer_rtems.h
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h (diff)
The file was modifiedcompiler-rt/lib/asan/asan_poisoning.cpp (diff)
The file was removedcompiler-rt/lib/asan/asan_mapping_myriad.h
The file was modifiedcompiler-rt/lib/asan/asan_rtl.cpp (diff)
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_stacktrace.h (diff)
The file was modifiedclang/lib/Driver/ToolChains/CommonArgs.cpp (diff)
The file was modifiedllvm/utils/gn/secondary/compiler-rt/lib/sanitizer_common/BUILD.gn (diff)
The file was removedcompiler-rt/lib/asan/asan_rtems.cpp
The file was modifiedcompiler-rt/lib/asan/asan_errors.cpp (diff)
The file was modifiedcompiler-rt/lib/sanitizer_common/CMakeLists.txt (diff)
The file was modifiedllvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp (diff)
The file was modifiedcompiler-rt/lib/asan/asan_shadow_setup.cpp (diff)
The file was modifiedcompiler-rt/lib/asan/asan_new_delete.cpp (diff)
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_common_libcdep.cpp (diff)
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_errno.h (diff)
The file was removedcompiler-rt/lib/sanitizer_common/sanitizer_rtems.h
The file was modifiedcompiler-rt/lib/asan/asan_flags.inc (diff)
The file was modifiedllvm/utils/gn/secondary/compiler-rt/lib/asan/BUILD.gn (diff)
The file was modifiedcompiler-rt/lib/asan/asan_interceptors.cpp (diff)
The file was modifiedcompiler-rt/lib/asan/asan_thread.cpp (diff)
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_common.cpp (diff)
The file was modifiedcompiler-rt/lib/interception/interception.h (diff)
The file was modifiedcompiler-rt/lib/asan/asan_mapping.h (diff)
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_symbolizer_report.cpp (diff)
Commit 9aa1428174ae5d0515f49d50a483a5517f4df2f4 by aeubanks
[InstSimplify] Treat invariant group insts as bitcasts for load operands

We can look through invariant group intrinsics for the purposes of
simplifying the result of a load.

Since intrinsics can't be constants, but we also don't want to
completely rewrite load constant folding, we convert the load operand to
a constant. For GEPs and bitcasts we just treat them as constants. For
invariant group intrinsics, we treat them as a bitcast.

Relanding with a check for self-referential values.

Reviewed By: lebedev.ri

Differential Revision: https://reviews.llvm.org/D101103
The file was modifiedllvm/test/Transforms/InstSimplify/invariant.group-load.ll (diff)
The file was modifiedllvm/lib/Analysis/InstructionSimplify.cpp (diff)
The file was addedllvm/test/Transforms/InstSimplify/invalid-load-operand-infinite-loop.ll
Commit e8bfeebeeb23cb32f1a8036e2c95d8d4b1c27c76 by llvmgnsyncbot
[gn build] Port 6478ef61b1a4
The file was modifiedllvm/utils/gn/secondary/compiler-rt/lib/asan/BUILD.gn (diff)
Commit dc3bd11e5b6be7a5430b32dc8155e2435a542918 by aaron
Adding the rest of the C11 papers to the status page.
The file was modifiedclang/www/c_status.html (diff)
Commit f7a23ecece524564a0c3e09787142cc6061027bb by andrea.dibiagio
[MCA] Adding the CustomBehaviour class to llvm-mca

Some instructions are not defined well enough within the target’s scheduling
model for llvm-mca to be able to properly simulate its behaviour. The ideal
solution to this situation is to modify the scheduling model, but that’s not
always a viable strategy. Maybe other parts of the backend depend on that
instruction being modelled the way that it is. Or maybe the instruction is quite
complex and it’s difficult to fully capture its behaviour with tablegen. The
CustomBehaviour class (which I will refer to as CB frequently) is designed to
provide intuitive scaffolding for developers to implement the correct modelling
for these instructions.

Implementation details:

llvm-mca does its best to extract relevant register, resource, and memory
information from every MCInst when lowering them to an mca::Instruction. It then
uses this information to detect dependencies and simulate stalls within the
pipeline. For some instructions, the information that gets captured within the
mca::Instruction is not enough for mca to simulate them properly. In these
cases, there are two main possibilities:

1. The instruction has a dependency that isn’t detected by mca.
2. mca is incorrectly enforcing a dependency that shouldn’t exist.

For the rest of this discussion, I will be focusing on (1), but I have put some
thought into (2) and I may revisit it in the future.

So we have an instruction that has dependencies that aren’t picked up by mca.
The basic idea for both pipelines in mca is that when an instruction wants to be
dispatched, we first check for register hazards and then we check for resource
hazards. This is where CB is injected. If no register or resource hazards have
been detected, we make a call to CustomBehaviour::checkCustomHazard() to give
the target specific CB the chance to detect and enforce any custom dependencies.

The return value for checkCustomHazaard() is an unsigned int representing the
(minimum) number of cycles that the instruction needs to stall for. It’s fine to
underestimate this value because when StallCycles gets down to 0, we’ll end up
checking for all the hazards again before the instruction is actually
dispatched. However, it’s important not to overestimate the value and the more
accurate your estimate is, the more efficient mca’s execution can be.

In general, for checkCustomHazard() to be able to detect these custom
dependencies, it needs information about the current instruction and also all of
the instructions that are still executing within the pipeline. The mca pipeline
uses mca::Instruction rather than MCInst and the current information encoded
within each mca::Instruction isn’t sufficient for my use cases. I had to add a
few extra attributes to the mca::Instruction class and have them get set by the
MCInst during instruction building. For example, the current mca::Instruction
doesn’t know its opcode, and it also doesn’t know anything about its immediate
operands (both of which I had to add to the class).

With information about the current instruction, a list of all currently
executing instructions, and some target specific objects (MCSubtargetInfo and
MCInstrInfo which the base CB class has references to), developers should be
able to detect and enforce most custom dependencies within checkCustomHazard. If
you need more information than is present in the mca::Instruction, feel free to
add attributes to that class and have them set during the lowering sequence from
MCInst.

Fortunately, in the in-order pipeline, it’s very convenient for us to pass these
arguments to checkCustomHazard. The hazard checking is taken care of within
InOrderIssueStage::canExecute(). This function takes a const InstRef as a
parameter (representing the instruction that currently wants to be dispatched)
and the InOrderIssueStage class maintains a SmallVector<InstRef, 4> which holds
all of the currently executing instructions. For the out-of-order pipeline, it’s
a bit trickier to get the list of executing instructions and this is why I have
held off on implementing it myself. This is the main topic I will bring up when
I eventually make a post to discuss and ask for feedback.

CB is a base class where targets implement their own derived classes. If a
target specific CB does not exist (or we pass in the -disable-cb flag), the base
class is used. This base class trivially returns 0 from its checkCustomHazard()
implementation (meaning that the current instruction needs to stall for 0 cycles
aka no hazard is detected). For this reason, targets or users who choose not to
use CB shouldn’t see any negative impacts to accuracy or performance (in
comparison to pre-patch llvm-mca).

Differential Revision: https://reviews.llvm.org/D104149
The file was addedllvm/tools/llvm-mca/lib/CMakeLists.txt
The file was addedllvm/include/llvm/MCA/CustomBehaviour.h
The file was addedllvm/tools/llvm-mca/lib/AMDGPU/CMakeLists.txt
The file was modifiedllvm/include/llvm/MCA/Instruction.h (diff)
The file was addedllvm/lib/MCA/CustomBehaviour.cpp
The file was modifiedllvm/include/llvm/MCA/HWEventListener.h (diff)
The file was modifiedllvm/include/llvm/MCA/Stages/InOrderIssueStage.h (diff)
The file was modifiedllvm/lib/MCA/InstrBuilder.cpp (diff)
The file was modifiedllvm/tools/llvm-mca/llvm-mca.cpp (diff)
The file was modifiedllvm/lib/MCA/CMakeLists.txt (diff)
The file was modifiedllvm/lib/MCA/Stages/InOrderIssueStage.cpp (diff)
The file was modifiedllvm/tools/llvm-mca/Views/DispatchStatistics.cpp (diff)
The file was addedllvm/tools/llvm-mca/lib/AMDGPU/AMDGPUCustomBehaviour.cpp
The file was addedllvm/tools/llvm-mca/lib/AMDGPU/AMDGPUCustomBehaviour.h
The file was modifiedllvm/docs/CommandGuide/llvm-mca.rst (diff)
The file was modifiedllvm/tools/llvm-mca/CMakeLists.txt (diff)
The file was modifiedllvm/include/llvm/MCA/Context.h (diff)
The file was modifiedllvm/lib/MCA/Context.cpp (diff)
Commit a04f01bab2da4650cc90a351fd734e626e6797af by andrea.dibiagio
Revert "[MCA] Adding the CustomBehaviour class to llvm-mca"

This reverts commit f7a23ecece524564a0c3e09787142cc6061027bb.

It appears to breaks buildbots that don't build the AMDGPU backend.
The file was removedllvm/lib/MCA/CustomBehaviour.cpp
The file was modifiedllvm/lib/MCA/InstrBuilder.cpp (diff)
The file was removedllvm/tools/llvm-mca/lib/AMDGPU/AMDGPUCustomBehaviour.cpp
The file was removedllvm/tools/llvm-mca/lib/AMDGPU/AMDGPUCustomBehaviour.h
The file was modifiedllvm/tools/llvm-mca/llvm-mca.cpp (diff)
The file was modifiedllvm/docs/CommandGuide/llvm-mca.rst (diff)
The file was modifiedllvm/tools/llvm-mca/Views/DispatchStatistics.cpp (diff)
The file was modifiedllvm/lib/MCA/CMakeLists.txt (diff)
The file was modifiedllvm/include/llvm/MCA/Context.h (diff)
The file was modifiedllvm/include/llvm/MCA/Stages/InOrderIssueStage.h (diff)
The file was modifiedllvm/include/llvm/MCA/HWEventListener.h (diff)
The file was modifiedllvm/lib/MCA/Stages/InOrderIssueStage.cpp (diff)
The file was modifiedllvm/tools/llvm-mca/CMakeLists.txt (diff)
The file was modifiedllvm/lib/MCA/Context.cpp (diff)
The file was removedllvm/include/llvm/MCA/CustomBehaviour.h
The file was removedllvm/tools/llvm-mca/lib/AMDGPU/CMakeLists.txt
The file was modifiedllvm/include/llvm/MCA/Instruction.h (diff)
The file was removedllvm/tools/llvm-mca/lib/CMakeLists.txt
Commit 3af3e7dc576fa9ff972d6366923a52d2769453a0 by sivachandra
[libc][NFC] Disable thrd_test as it is exhibiting flaky behavior on the bots.
The file was modifiedlibc/test/src/threads/CMakeLists.txt (diff)
Commit e8f998c0c5edda3d6bad9b70e60975296df3d9fb by omair.javaid
AArch64 Linux and elf-core PAC stack unwinder support

This patch builds on D100521 and other related patches to add support
for unwinding stack on AArch64 systems with pointer authentication
feature enabled.

We override FixCodeAddress and FixDataAddress function in ABISysV_arm64
class. We now try to calculate and set code and data masks after reading
data_mask and code_mask registers exposed by AArch64 targets running Linux.

This patch utilizes core file linux-aarch64-pac.core for testing that
LLDB can successfully unwind stack frames in the presence of signed
return address after masking off ignored bits.

This patch also includes a AArch64 Linux native test case to demonstrate
successful back trace calculation in presence of pointer authentication
feature.

Differential Revision: https://reviews.llvm.org/D99944
The file was addedlldb/test/API/functionalities/unwind/aarch64_unwind_pac/Makefile
The file was modifiedlldb/source/Plugins/ABI/AArch64/ABISysV_arm64.cpp (diff)
The file was addedlldb/test/API/functionalities/postmortem/elf-core/linux-aarch64-pac.out
The file was modifiedlldb/test/API/functionalities/postmortem/elf-core/TestLinuxCore.py (diff)
The file was modifiedlldb/source/Plugins/ABI/AArch64/ABISysV_arm64.h (diff)
The file was addedlldb/test/API/functionalities/unwind/aarch64_unwind_pac/main.c
The file was addedlldb/test/API/functionalities/unwind/aarch64_unwind_pac/TestAArch64UnwindPAC.py
Commit 0ddde4d86518de1154b6e850dc49010c829b717c by jonathan.l.peyton
[OpenMP] Lazily assign root affinity

Lazily set affinity for root threads. Previously, the root thread
executing middle initialization would attempt to assign affinity
to other existing root threads. This was not working properly as the
set_system_affinity() function wasn't setting the affinity for the
target thread. Instead, the middle init thread was resetting the
its own affinity using the target thread's affinity mask.

Differential Revision: https://reviews.llvm.org/D103625
The file was modifiedopenmp/runtime/src/kmp_ftn_entry.h (diff)
The file was modifiedopenmp/runtime/src/kmp_csupport.cpp (diff)
The file was addedopenmp/runtime/test/affinity/root-threads-affinity.c
The file was modifiedopenmp/runtime/src/kmp_runtime.cpp (diff)
The file was modifiedopenmp/runtime/src/kmp.h (diff)
Commit 92baf414dbfb31d7d69bea56a0ce982d2b737268 by jonathan.l.peyton
[OpenMP] Fix affinity determine capable algorithm on Linux

Remove strange checks for syscall() arguments where mask is NULL.
Valgrind reports these as error usages for the syscall.
Instead, just check if CACHE_LINE bytes is long enough. If not, then
search for the size. Also, by limiting the first size detection
attempt to CACHE_LINE bytes, instead of 1MB, we don't use more than one
cache line for the mask size. Before this patch, sometimes the returned
mask size was 640 bytes (10 cache lines) because the initial call to
getaffinity() was limited only by the internal kernel mask size
which can be very large.

Differential Revision: https://reviews.llvm.org/D103637
The file was modifiedopenmp/runtime/src/z_Linux_util.cpp (diff)
Commit 56da28240f3c9d1c0b7152749bfd4777c67828e0 by jonathan.l.peyton
[OpenMP] Add GOMP 5.0 version symbols to API

* Add GOMP versioned pause functions
* Add GOMP versioned affinity format functions

To do the affinity format functions, only attach versioned symbols
to the APPEND Fortran entries (e.g., omp_set_affinity_format_) since
GOMP only exports two symbols (one for Fortran, one for C). Our
affinity format functions have three symbols.
e.g., with omp_set_affinity_format:
1) omp_set_affinity_format (Fortran interface)
2) omp_set_affinity_format_ (Fortran interface)
3) ompc_set_affinity_format (C interface)

Have the GOMP version of the C symbol alias the ompc_* 3) version
instead of the Fortran unappended version 1).

Differential Revision: https://reviews.llvm.org/D103647
The file was modifiedopenmp/runtime/src/kmp_os.h (diff)
The file was modifiedopenmp/runtime/src/kmp_ftn_entry.h (diff)
The file was modifiedopenmp/runtime/src/exports_so.txt (diff)
The file was modifiedopenmp/runtime/src/kmp_csupport.cpp (diff)
The file was modifiedopenmp/runtime/src/kmp.h (diff)
Commit cfb96d845a684a5c567823dbe2aa4392937ee979 by jingham
Convert functions that were returning BreakpointOption * to BreakpointOption &.

This is an NFC cleanup.

Many of the API's that returned BreakpointOptions always returned valid ones.
Internally the BreakpointLocations usually have null BreakpointOptions, since they
use their owner's options until an option is set specifically on the location.
So the original code used pointers & unique_ptr everywhere for consistency.
But that made the code hard to reason about from the outside.

This patch changes the code so that everywhere an API is guaranteed to
return a non-null BreakpointOption, it returns it as a reference to make
that clear.

It also changes the Breakpoint to hold a BreakpointOption
member where it previously had a UP.  Since we were always filling the UP
in the Breakpoint constructor, having the UP wasn't helping anything.

Differential Revision: https://reviews.llvm.org/D104162
The file was modifiedlldb/source/API/SBBreakpoint.cpp (diff)
The file was modifiedlldb/source/Breakpoint/BreakpointSite.cpp (diff)
The file was modifiedlldb/source/Breakpoint/BreakpointName.cpp (diff)
The file was modifiedlldb/source/Plugins/Process/Utility/StopInfoMachException.cpp (diff)
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.cpp (diff)
The file was modifiedlldb/source/Breakpoint/BreakpointLocation.cpp (diff)
The file was modifiedlldb/include/lldb/Breakpoint/BreakpointLocationCollection.h (diff)
The file was modifiedlldb/include/lldb/Breakpoint/BreakpointSite.h (diff)
The file was modifiedlldb/source/Interpreter/ScriptInterpreter.cpp (diff)
The file was modifiedlldb/source/Target/StopInfo.cpp (diff)
The file was modifiedlldb/include/lldb/Breakpoint/Breakpoint.h (diff)
The file was modifiedlldb/source/Core/IOHandlerCursesGUI.cpp (diff)
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h (diff)
The file was modifiedlldb/source/API/SBBreakpointLocation.cpp (diff)
The file was modifiedlldb/include/lldb/Breakpoint/BreakpointLocation.h (diff)
The file was modifiedlldb/source/Commands/CommandObjectBreakpoint.cpp (diff)
The file was modifiedlldb/source/Commands/CommandObjectBreakpointCommand.cpp (diff)
The file was modifiedlldb/source/Breakpoint/Breakpoint.cpp (diff)
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Lua/ScriptInterpreterLua.h (diff)
The file was modifiedlldb/source/API/SBBreakpointName.cpp (diff)
The file was modifiedlldb/source/Breakpoint/BreakpointOptions.cpp (diff)
The file was modifiedlldb/source/Breakpoint/BreakpointLocationCollection.cpp (diff)
The file was modifiedlldb/include/lldb/Interpreter/ScriptInterpreter.h (diff)
The file was modifiedlldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp (diff)
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp (diff)
Commit 434fed5aff5e62460e2e984c7cc2674c12779b1e by xur
[SampleFDO] Using common linkage for the discriminator flag variable

We create flag variable "__llvm_fs_discriminator__" in the binary
to indicate that FSAFDO hierarchical discriminators are used.

This variable might be GC'ed by the linker since it is not explicitly
reference. I initially added the var to the use list in pass
MIRFSDiscriminator but it did not work. It turned out the used global
list is collected in lowering (before MIR pass) and then emitted in
the end of pass pipeline.

In this patch, we use a "common" linkage for this variable so that
it will be GC'ed by the linker.

Differential Revision: https://reviews.llvm.org/D103988
The file was modifiedllvm/test/CodeGen/X86/fsafdo_test1.ll (diff)
The file was modifiedllvm/test/CodeGen/X86/fsafdo_test2.ll (diff)
The file was modifiedllvm/lib/CodeGen/MIRFSDiscriminator.cpp (diff)
Commit 727a63e0d9a79d8e650674c0aca8fb3629e06b2d by ajcbik
[mlir][sparse] allow all-dense annotated "sparse" tensor output

This is a very careful start with alllowing sparse tensors at the
left-hand-side of tensor index expressions (viz. sparse output).
Note that there is a subtle difference between non-annotated tensors
(dense, remain n-dim, handled by classic bufferization) and all-dense
annotated "sparse" tensors (linearized to 1-dim without overhead
storage, bufferized by sparse compiler, backed by runtime support library).
This revision gently introduces some new IR to facilitate annotated outputs,
to be generalized to truly sparse tensors in the future.

Reviewed By: gussmith23, bixia

Differential Revision: https://reviews.llvm.org/D104074
The file was modifiedmlir/lib/Dialect/SparseTensor/Transforms/SparseTensorConversion.cpp (diff)
The file was modifiedmlir/include/mlir/Dialect/SparseTensor/IR/SparseTensorOps.td (diff)
The file was modifiedmlir/lib/Dialect/SparseTensor/Transforms/Sparsification.cpp (diff)
The file was modifiedmlir/test/Dialect/SparseTensor/invalid.mlir (diff)
The file was modifiedmlir/test/Dialect/SparseTensor/conversion.mlir (diff)
The file was addedmlir/test/Dialect/SparseTensor/dense.mlir
The file was modifiedmlir/lib/Dialect/SparseTensor/IR/SparseTensorDialect.cpp (diff)
The file was modifiedmlir/test/Dialect/SparseTensor/roundtrip.mlir (diff)
Commit fad8d4230ff73432b73f8111f5d640c6bb014daa by zequanwu
[OpaquePtr] Verify Opaque pointer in function parameter

Verifying opaque pointer as function parameter when using with `byval`, `byref`,
`inalloca`, `preallocated`.

Differential Revision: https://reviews.llvm.org/D104309
The file was modifiedllvm/test/Verifier/inalloca1.ll (diff)
The file was modifiedllvm/lib/IR/Verifier.cpp (diff)
The file was modifiedllvm/test/Verifier/byref.ll (diff)
The file was addedllvm/test/Verifier/opaque-ptr-invalid.ll
The file was modifiedllvm/test/Assembler/invalid-byval-type3.ll (diff)
Commit 621d93d263f82059c2826fe919a1a138b65627a3 by ravishankarm
[mlir][SCF] Remove empty else blocks of `scf.if` operations.

Differential Revision: https://reviews.llvm.org/D104273
The file was modifiedmlir/lib/Dialect/SCF/SCF.cpp (diff)
The file was modifiedmlir/test/Dialect/SCF/canonicalize.mlir (diff)
Commit bddef537776e15fa21e2ec11a4b2543d6d91fedc by i
[docs] Exclude FlangOption and re-generate ClangCommandLineReference.rst
The file was modifiedclang/include/clang/Driver/ClangOptionDocs.td (diff)
The file was modifiedclang/docs/ClangCommandLineReference.rst (diff)
Commit 479c3577fb825c0c7933b49ac0dd944c4aae22bf by jingham
Missed a Windows use of ValidForThisThread in the changes for
cfb96d845a684a5c567823dbe2aa4392937ee979.
The file was modifiedlldb/source/Plugins/Process/Windows/Common/ProcessWindows.cpp (diff)
Commit ec8910c4ad92bce301774dfa99b631bbfaca0e30 by ajcbik
[mlir][sparse] integration test for all-dense annotated "sparse" output

Reviewed By: gussmith23

Differential Revision: https://reviews.llvm.org/D104277
The file was addedmlir/test/Integration/Dialect/SparseTensor/CPU/dense_output.mlir
The file was addedmlir/test/Integration/data/zero.mtx
The file was modifiedmlir/test/CMakeLists.txt (diff)
Commit 76de2f4a9c023d06717536ccb089f9959c4ef4bb by aktoon
CMake: allow overriding CMAKE_CXX_VISIBILITY_PRESET

This allows overriding the `CMAKE_CXX_VISIBILITY_PRESET` on the command line. For example, setting the value to `default` lets PIC LLVM static libraries be converted to DSOs, without the need to rebuild LLVM with BUILD_SHARED_LIBS=ON.

Reviewed By: wenlei

Differential Revision: https://reviews.llvm.org/D104168
The file was modifiedllvm/lib/Target/CMakeLists.txt (diff)
Commit 80b2da42d28466341b9512599aac354c178c39f8 by jingham
Don't depend on the "run" alias doing shell expanding.
Instead dial it up explicitly.

This test started failing recently and I'm not sure why.  It also
doesn't make sense to me the replacing "run" with "process launch -X 1 --"
should make any difference - run is an alias for the latter.  But
it does pass with the change, and unless we are testing for the exact
run alias, it's better to ask for what we want explicitly.
The file was modifiedlldb/test/Shell/Host/TestCustomShell.test (diff)
Commit 4f194d0db78f612233234a7db659384cd62709fb by Louis Dionne
[libc++] Promote GCC 11 to mandatory CI

Also, fix the last issue that prevented GCC 11 from passing the test
suite. Thanks to everyone else who fixed issues.

Differential Revision: https://reviews.llvm.org/D104315
The file was modifiedlibcxxabi/test/catch_member_function_pointer_02.pass.cpp (diff)
The file was modifiedlibcxx/test/std/atomics/atomics.types.operations/atomics.types.operations.req/atomic_is_lock_free.pass.cpp (diff)
The file was modifiedlibcxx/utils/ci/buildkite-pipeline.yml (diff)
The file was modifiedlibcxx/utils/ci/run-buildbot (diff)
The file was modifiedlibcxx/utils/ci/Dockerfile (diff)