Changes

Summary

  1. [ARM] Fix a test case typo. NFC. (details)
  2. [flang] Update tests for opaque pointers (details)
  3. [flang] Update memcpy intrinsic mangling for opaque pointers (details)
  4. [OrcV2Examples] Fix test with opaque pointers (details)
  5. [SVE] Remove custom lowering of scalable vector MGATHER & MSCATTER operations. (details)
  6. [Docs] Update default in opaque pointer docs (NFC) (details)
  7. [clang-tidy] Remove extra ";" in ModernizeModuleTest.cpp (details)
  8. [VPlan] Remove dead VPlan-native special case from BranchOnCount (NFC). (details)
  9. Fix llvm.memset semantics description (details)
  10. [mlir][SCF] Add scf.foreach_thread.parallel_insert_slice canonicalization. (details)
  11. [flang][docs] Document CMake support (details)
  12. Revert "Drop qualifiers from return types in C (DR423)" (details)
  13. Revert "cmake: use llvm dir variables for clang/utils/hmaptool" (details)
  14. [flang] Add check for conflict of BIND(C) and Parameter attributes (details)
  15. [libunwind][ci][AIX] Add libunwind to buildbot CI (details)
  16. Revert "[clang][AIX] add option mdefault-visibility-export-mapping" (details)
  17. [mlir] add decompose and generalize to structured transform ops (details)
  18. [PS5] Support r and y specifiers of freebsd_kernel_printf format strings (details)
Commit 9245c4930f40b0fd95cba6fc5eae7a2cf4aed76b by martin
[ARM] Fix a test case typo. NFC.

The test looked for the wrong string, but it happened to match as
it was a substring of the actual output.

This fixes a typo from d8e67c1cccd8fcb62230166caea744592288da17.
The file was modifiedllvm/test/CodeGen/ARM/Windows/wineh-opcodes.ll
Commit e3bfd7e52d5fb48f5fc88d9a5fe7fa0d36f66f47 by npopov
[flang] Update tests for opaque pointers

There is still one remaining failure in Lower/forall/character-1.f90.
The file was modifiedflang/test/Fir/arrayset.fir
The file was modifiedflang/test/Fir/alloc.fir
The file was modifiedflang/test/Fir/optional.fir
The file was modifiedflang/test/Fir/addrof.fir
The file was modifiedflang/test/Lower/complex-part.f90
The file was modifiedflang/test/Fir/embox.fir
The file was modifiedflang/test/Fir/rebox.fir
The file was modifiedflang/test/Lower/OpenMP/omp-ordered-threads.f90
The file was modifiedflang/test/Fir/boxchar.fir
The file was modifiedflang/test/Fir/ignore-missing-type-descriptor.fir
The file was modifiedflang/test/Lower/common-block.f90
Commit f09b0c8422d2a81c15b581ed115af66d17755ac4 by npopov
[flang] Update memcpy intrinsic mangling for opaque pointers

Flang is manually mangling names for memset/memcpy/memmove
intrinsics, so we need to update the mangling to use the opaque
pointer format (p0 instead of p0i8).
The file was modifiedflang/test/Lower/character-concatenation.f90
The file was modifiedflang/test/Lower/call-copy-in-out.f90
The file was modifiedflang/test/Lower/pointer-references.f90
The file was modifiedflang/test/Lower/entry-statement.f90
The file was modifiedflang/test/Lower/forall/character-1.f90
The file was modifiedflang/test/Lower/character-substrings.f90
The file was modifiedflang/test/Lower/character-assignment.f90
The file was modifiedflang/test/Lower/array-character.f90
The file was modifiedflang/test/Lower/call-parenthesized-arg.f90
The file was modifiedflang/test/Lower/host-associated.f90
The file was modifiedflang/test/Lower/structure-constructors.f90
The file was modifiedflang/test/Lower/allocatable-assignment.f90
The file was modifiedflang/test/Lower/derived-assignments.f90
The file was modifiedflang/test/Lower/array-constructor-2.f90
The file was modifiedflang/test/Lower/array-expression.f90
The file was modifiedflang/test/Lower/Intrinsics/achar.f90
The file was modifiedflang/lib/Optimizer/Builder/LowLevelIntrinsics.cpp
Commit bd92b7b3c1f6d423712b8b36fe593f7dfcd373cf by npopov
[OrcV2Examples] Fix test with opaque pointers

The other two modules now use opaque pointers, so make sure this
one does as well.
The file was modifiedllvm/test/Examples/OrcV2Examples/Inputs/main-mod.ll
Commit 1fe4953d8939ab4f8f0a5de060c0a35758d835a8 by paul.walker
[SVE] Remove custom lowering of scalable vector MGATHER & MSCATTER operations.

Differential Revision: https://reviews.llvm.org/D126255
The file was modifiedllvm/include/llvm/Target/TargetSelectionDAG.td
The file was modifiedllvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
The file was modifiedllvm/lib/Target/AArch64/AArch64InstrInfo.td
The file was modifiedllvm/lib/Target/AArch64/AArch64ISelLowering.cpp
Commit b0ce6a0ae5e34af704f7c6f3811399b5f40f8188 by npopov
[Docs] Update default in opaque pointer docs (NFC)

Also mention a relevant C API.
The file was modifiedllvm/docs/OpaquePointers.rst
Commit 35f0890c4edce1975b17d0901607f2fba9216462 by mikael.holmen
[clang-tidy] Remove extra ";" in ModernizeModuleTest.cpp

Without this fix we get

../../clang-tools-extra/unittests/clang-tidy/ModernizeModuleTest.cpp:270:2: error: extra ';' outside of a function is incompatible with C++98 [-Werror,-Wc++98-compat-extra-semi]
};
^
1 error generated.

when compiling with -Werror.
The file was modifiedclang-tools-extra/unittests/clang-tidy/ModernizeModuleTest.cpp
Commit 4f1c86e3d5ef2fe6787be42c2c9143363d46673b by flo
[VPlan] Remove dead VPlan-native special case from BranchOnCount (NFC).

After 05776122b682684ad this special case doesn't exist any longer.
The file was modifiedllvm/lib/Transforms/Vectorize/VPlan.cpp
Commit 53efdf33f85ab4e11c25e6dc947a0ca8b075d25f by github
Fix llvm.memset semantics description

The description was referring to a ``src`` parameter probably copied over from ``llvm.memcpy``
The file was modifiedllvm/docs/LangRef.rst
Commit 311967701a2a33b2753ec5db6977f3c3ef40c46e by nicolas.vasilache
[mlir][SCF] Add scf.foreach_thread.parallel_insert_slice canonicalization.

Reviewed By: ftynse

Differential Revision: https://reviews.llvm.org/D126761
The file was modifiedmlir/lib/Dialect/SCF/SCF.cpp
The file was modifiedmlir/include/mlir/Dialect/SCF/SCFOps.td
The file was modifiedmlir/test/Dialect/SCF/canonicalize.mlir
Commit 72911227d4c73c19035ea9ed05f785bb691a816c by andrzej.warzynski
[flang][docs] Document CMake support

One out-of-date section is also deleted.

Differential Revision: https://reviews.llvm.org/D126712
The file was modifiedflang/docs/FlangDriver.md
Commit c745f2ce6c03bc6d1e59cac69cc15923d4400191 by aaron
Revert "Drop qualifiers from return types in C (DR423)"

This reverts commit d374b65f2da1bdd3d9a7e9ac8ed4ad5467c882f9.

The changes lose AST fidelity (reported in #55778), but also may be
improperly dropping _Atomic qualifiers. I am rolling the changes back
until I've finished discussions in WG14 about the proper resolution to
DR423.
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
The file was modifiedclang/test/SemaObjC/block-omitted-return-type.m
The file was modifiedclang/test/CodeGen/xcore-stringtype.c
The file was removedclang/test/Sema/wg14-dr423.c
The file was modifiedclang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
The file was modifiedclang/docs/ReleaseNotes.rst
The file was modifiedclang/lib/Sema/SemaType.cpp
The file was modifiedclang/test/Sema/function.c
The file was modifiedclang/unittests/ASTMatchers/ASTMatchersTest.h
The file was modifiedclang/test/Sema/c89.c
The file was modifiedclang/test/Sema/block-call.c
The file was modifiedclang/test/Sema/warn-missing-prototypes.c
Commit 30ad481e87ca7cd2250bd5771ab66ddfe623eb10 by npopov
Revert "cmake: use llvm dir variables for clang/utils/hmaptool"

As discussed on the review, this change breaks the standalone
clang build. When building against an installed LLVM, the
LLVM_TOOLS_BINARY_DIR cmake variable points to the location of
the installed LLVM tools, not to the cmake build directory. This
means that we would end up trying to move hmaptool into something
like /usr/bin as part of the normal build, while this should only
be happening when running an install target.

This reverts commit bf1ab1f0eb9578914343f48096229ecccd0ecf52.
The file was modifiedclang/utils/hmaptool/CMakeLists.txt
Commit e2ac99b79d6f36de93775aa683a4e439cb4b5344 by qiaopeixin
[flang] Add check for conflict of BIND(C) and Parameter attributes

The entity with BIND(C) attribute cannot be a named constant, so the
BIND(C) and parameter attributes are conflicted. Add check for it.

Reviewed By: klausler

Differential Revision: https://reviews.llvm.org/D126654
The file was modifiedflang/lib/Semantics/check-declarations.cpp
The file was addedflang/test/Semantics/declarations02.f90
Commit dfaee3c9cfa17fce6af317ddcae89c6f6550cf94 by xingxue
[libunwind][ci][AIX] Add libunwind to buildbot CI

Summary:
This patch changes scripts to add libunwind CI on AIX. Test config file ibm-libunwind-shared.cfg.in is introduced for testing on AIX.

Reviewed by: ldionne, MaskRay, libunwind, ibc++abi

Differential Revision: https://reviews.llvm.org/D126017
The file was modifiedlibcxx/cmake/caches/AIX.cmake
The file was addedlibunwind/test/configs/ibm-libunwind-shared.cfg.in
The file was modifiedlibcxx/utils/ci/run-buildbot
Commit d42fe9aa84203a8f51b43a901d72fdc39eea69f7 by hans
Revert "[clang][AIX] add option mdefault-visibility-export-mapping"

This caused assertions, see comment on the code review:

llvm/clang/lib/AST/Decl.cpp:1510:
clang::LinkageInfo clang::LinkageComputer::getLVForDecl(const clang::NamedDecl *, clang::LVComputationKind):
Assertion `D->getCachedLinkage() == LV.getLinkage()' failed.

> The option mdefault-visibility-export-mapping is created to allow
> mapping default visibility to an explicit shared library export
> (e.g. dllexport). Exactly how and if this is manifested is target
> dependent (since it depends on how they map dllexport in the IR).
>
> Three values are provided for the option:
>
> * none: the default and behavior without the option, no additional export linkage information is created.
> * explicit: add the export for entities with explict default visibility from the source, including RTTI
> * all: add the export for all entities with default visibility
>
> This option is useful for targets which do not export symbols as part of
> their usual default linkage behaviour (e.g. AIX), such targets
> traditionally specified such information in external files (e.g. export
> lists), but this mapping allows them to use the visibility information
> typically used for this purpose on other (e.g. ELF) platforms.
>
> Reviewed By: MaskRay
>
> Differential Revision: https://reviews.llvm.org/D126340

This reverts commit 8c8a2679a20f621994fa904bcfc68775e7345edc.
The file was removedclang/test/CodeGenCXX/mdefault-visibility-export-mapping-rtti.cpp
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedclang/docs/UsersManual.rst
The file was modifiedclang/include/clang/Basic/LangOptions.def
The file was modifiedclang/lib/CodeGen/MicrosoftCXXABI.cpp
The file was modifiedclang/lib/CodeGen/CodeGenModule.h
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was removedclang/test/CodeGenCXX/mdefault-visibility-export-mapping.cpp
The file was removedclang/test/CodeGen/mdefault-visibility-export-mapping.c
The file was modifiedclang/lib/CodeGen/ItaniumCXXABI.cpp
The file was modifiedclang/lib/CodeGen/CodeGenModule.cpp
The file was modifiedclang/include/clang/Basic/LangOptions.h
The file was removedclang/test/CodeGenCXX/mdefault-visibility-export-mapping-alias.cpp
Commit ce2e198bc2546f24a64fbeff62bf1489bcc53c27 by zinenko
[mlir] add decompose and generalize to structured transform ops

These ops complement the tiling/padding transformations by transforming
higher-level named structured operations such as depthwise convolutions into
lower-level and/or generic equivalents that are better handled by some
downstream transformations.

Differential Revision: https://reviews.llvm.org/D126698
The file was modifiedmlir/lib/Dialect/Linalg/TransformOps/LinalgTransformOps.cpp
The file was modifiedmlir/test/python/dialects/transform_structured_ext.py
The file was modifiedmlir/include/mlir/Dialect/Linalg/Transforms/Transforms.h
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Transforms.cpp
The file was modifiedmlir/python/mlir/dialects/_structured_transform_ops_ext.py
The file was modifiedmlir/include/mlir/Dialect/Linalg/TransformOps/LinalgTransformOps.td
The file was addedmlir/test/Dialect/Linalg/transform-op-generalize.mlir
The file was addedmlir/test/Dialect/Linalg/transform-op-decompose.mlir
Commit b2c6251c06700bfe8a69b780cb27928d3ba029db by paul.robinson
[PS5] Support r and y specifiers of freebsd_kernel_printf format strings
The file was modifiedclang/test/Sema/format-strings-freebsd.c
The file was modifiedclang/lib/AST/FormatString.cpp