Changes

Summary

  1. Remove trailing whitespace in ASTReaderDecl.cpp (details)
  2. Fix warning on `llvm-else-after-return`. NFC. (details)
  3. [llvm] Use drop_begin (NFC) (details)
  4. Add a new frontend flag `-fswift-async-fp={auto|always|never}` (details)
  5. [test] Fix test failure in Clang :: Lexer/char-escapes-delimited.c (details)
  6. [libcxx][libcxxabi] CMAKE_REQUIRED_FLAGS is a string, not a list (details)
  7. [LLVM][CMake][NFC] Resolve FIXME: Rename LLVM_CMAKE_PATH to LLVM_CMAKE_DIR throughout the project (details)
  8. [OpenMP] Support construct trait set for Clang (details)
  9. [mlir][Linalg] Cleanup doc and improve logging and readability in ComprehensiveBufferize.cpp - NFC (details)
  10. [FuncSpec] Add force flag to test case to trigger the transform. NFC. (details)
  11. [mlir][sparse] add more asserts to sparse support lib (details)
  12. Removing some spurious whitespace; NFC (details)
  13. [OpenMP] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off build after D109635 (details)
  14. Support Unicode 14 identifiers (details)
  15. [llvm-profgen] Use context-sensitive byte size cost for preinliner decisions by default (details)
  16. [NFC] Added tests for llvm.powi optimizations (details)
  17. [InstCombine] Added llvm.powi optimizations (details)
  18. docs: correct SPHNIX document reference (details)
  19. [SimplifyCFG] Add bonus when seeing vector ops to branch fold to common dest (details)
Commit 720766a50cab7a143f0aa04e3ae344769072511d by erich.keane
Remove trailing whitespace in ASTReaderDecl.cpp
The file was modifiedclang/lib/Serialization/ASTReaderDecl.cpp
Commit ffa5c3a555a8d5d9931d1ae6d6c9e873ff8c5510 by michael.hliao
Fix warning on `llvm-else-after-return`. NFC.
The file was modifiedllvm/lib/Analysis/AliasAnalysis.cpp
Commit cfc74024195e3be44d023a505d80b7e19f4041fc by kazu
[llvm] Use drop_begin (NFC)
The file was modifiedllvm/lib/Target/SystemZ/SystemZFrameLowering.cpp
The file was modifiedllvm/utils/TableGen/CodeGenRegisters.cpp
The file was modifiedllvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
The file was modifiedllvm/lib/Target/AVR/AVRFrameLowering.cpp
The file was modifiedllvm/lib/CodeGen/TailDuplicator.cpp
The file was modifiedllvm/lib/TextAPI/TextStub.cpp
The file was modifiedllvm/lib/CodeGen/BranchFolding.cpp
The file was modifiedllvm/lib/Target/MSP430/MSP430FrameLowering.cpp
Commit f670c5aeeef09cd7b88e72cf8c1f2505d044a8ea by aschwaighofer
Add a new frontend flag `-fswift-async-fp={auto|always|never}`

Summary:
Introduce a new frontend flag `-fswift-async-fp={auto|always|never}`
that controls how code generation sets the Swift extended async frame
info bit. There are three possibilities:

* `auto`: which determines how to set the bit based on deployment target, either
statically or dynamically via `swift_async_extendedFramePointerFlags`.
* `always`: default, always set the bit statically, regardless of deployment
target.
* `never`: never set the bit, regardless of deployment target.

Differential Revision: https://reviews.llvm.org/D109451
The file was modifiedclang/include/clang/Basic/CodeGenOptions.h
The file was addedclang/test/CodeGen/swift-async-extended-fp.c
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was modifiedclang/include/clang/Basic/CodeGenOptions.def
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedclang/lib/CodeGen/BackendUtil.cpp
Commit 003fed8269b3f6d2b1618b670fc73d28972999e4 by matthew.voss
[test] Fix test failure in Clang :: Lexer/char-escapes-delimited.c

Specify the C and C++ standards explicitly for this test. This avoids
failures for drivers that default to older standards.

Differential Revision: https://reviews.llvm.org/D109857
The file was modifiedclang/test/Lexer/char-escapes-delimited.c
Commit 1613ab8a4a3e6f8ab74fadd7e9a2dfe2219e3b43 by koraq
[libcxx][libcxxabi] CMAKE_REQUIRED_FLAGS is a string, not a list

When `libcxx` or `libcxxabi` is built with `-DLLVM_USE_SANITIZER=MemoryWithOrigins`
**and** `-DLIBCXX[ABI]_USE_COMPILER_RT=ON`, all of the `LIBCXX[ABI]_SUPPORTS_*_FLAG`
checks fail, since the value of `CMAKE_REQUIRED_FLAGS` is not set correctly.

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

Reviewed By: #libc, #libc_abi, compnerd, ldionne

Differential Revision: https://reviews.llvm.org/D109342
The file was modifiedlibcxx/cmake/config-ix.cmake
The file was modifiedlibcxxabi/cmake/config-ix.cmake
Commit a2c319fdc6b35ae6d8578459f07c89042775e5ec by koraq
[LLVM][CMake][NFC] Resolve FIXME: Rename LLVM_CMAKE_PATH to LLVM_CMAKE_DIR throughout the project

This way, we do not need to set LLVM_CMAKE_PATH to LLVM_CMAKE_DIR when (NOT LLVM_CONFIG_FOUND)

Reviewed By: #libc, ldionne

Differential Revision: https://reviews.llvm.org/D107717
The file was modifiedclang/CMakeLists.txt
The file was modifiedflang/CMakeLists.txt
The file was modifiedlldb/cmake/modules/LLDBStandalone.cmake
The file was modifiedlld/Common/CMakeLists.txt
The file was modifiedlibunwind/CMakeLists.txt
The file was modifiedlld/CMakeLists.txt
The file was modifiedclang/lib/Basic/CMakeLists.txt
The file was modifiedllvm/CMakeLists.txt
The file was modifiedllvm/include/llvm/Support/CMakeLists.txt
The file was modifiedcompiler-rt/cmake/Modules/CompilerRTMockLLVMCMakeConfig.cmake
The file was modifiedcompiler-rt/cmake/Modules/CompilerRTUtils.cmake
The file was modifiedlibcxx/cmake/Modules/HandleOutOfTreeLLVM.cmake
The file was modifiedruntimes/CMakeLists.txt
The file was modifiedlldb/source/CMakeLists.txt
Commit 976d474bec357d7712884ce4691be45d247325bd by cchen
[OpenMP] Support construct trait set for Clang

This patch supports construct trait set selector by using the existed
declare variant infrastructure inside `OMPContext` and simd selector is
currently not supported. The goal of this patch is to pass the declare variant
test inside sollve test suite.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D109635
The file was modifiedclang/test/OpenMP/declare_variant_ast_print.c
The file was modifiedclang/test/OpenMP/declare_variant_messages.c
The file was modifiedclang/include/clang/AST/OpenMPClause.h
The file was modifiedclang/lib/AST/OpenMPClause.cpp
The file was modifiedclang/lib/Parse/ParseOpenMP.cpp
The file was addedclang/test/OpenMP/declare_variant_construct_codegen_1.c
The file was modifiedclang/test/OpenMP/declare_variant_ast_print.cpp
The file was modifiedclang/lib/Sema/SemaOpenMP.cpp
Commit ee2e414dde4f2ea2c758d23cedb07b767b8fd891 by nicolas.vasilache
[mlir][Linalg] Cleanup doc and improve logging and readability in ComprehensiveBufferize.cpp - NFC
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
Commit 2a1ac2e318c60955aecefb493e4707f0d609c35d by sjoerd.meijer
[FuncSpec] Add force flag to test case to trigger the transform. NFC.
The file was modifiedllvm/test/Transforms/FunctionSpecialization/function-specialization-constant-expression.ll
Commit 860cbeb15992a385d9a3fffb3f1a8443cc99b663 by ajcbik
[mlir][sparse] add more asserts to sparse support lib

We are having issues running the integration test of the sparse compiler
on AArch64 (crashing in the lib). This revision adds more assertions.

Reviewed By: jsetoain

Differential Revision: https://reviews.llvm.org/D109861
The file was modifiedmlir/lib/ExecutionEngine/SparseUtils.cpp
Commit aefb81a33a6d44048186010677eb1c0e6c6cac12 by aaron
Removing some spurious whitespace; NFC
The file was modifiedclang/lib/CodeGen/CGDebugInfo.cpp
Commit c5f480fcbec04f46a9cfcad08914665ff83d8d8a by i
[OpenMP] Fix -Wunused-variable in -DLLVM_ENABLE_ASSERTIONS=off build after D109635
The file was modifiedclang/lib/Sema/SemaOpenMP.cpp
Commit afb6223bc53034973379863d08cbee322149569e by aaron
Support Unicode 14 identifiers

This update the UAX tables to support new Unicode 14 identifiers.
The file was modifiedclang/lib/Lex/UnicodeCharSets.h
The file was modifiedclang/test/Lexer/unicode.c
Commit 446e21623c285f335714297aa14f13c21b298931 by aktoon
[llvm-profgen] Use context-sensitive byte size cost for preinliner decisions by default

Turn on `use-context-cost-for-preinliner` to use context-sensitive byte size cost for preinliner decisions by default.

This is a more accurate proxy of inline cost than profile size. We tested on our large workload that it delivers measureable CPU improvement.

Differential Revision: https://reviews.llvm.org/D109893
The file was modifiedllvm/test/tools/llvm-profgen/cs-preinline-cost.test
The file was modifiedllvm/tools/llvm-profgen/CSPreInliner.cpp
Commit c0afb0092423a534d6a4f81a233845ef65f93930 by Dávid Bolvanský
[NFC] Added tests for llvm.powi optimizations
The file was addedllvm/test/Transforms/InstCombine/powi.ll
Commit a4a426c9e0da06b9ff4c58d3a15a1e789efebfb6 by Dávid Bolvanský
[InstCombine] Added llvm.powi optimizations

If power is even:
powi(-x, p) -> powi(x, p)
powi(fabs(x), p) -> powi(x, p)
powi(copysign(x, y), p) -> powi(x, p)
The file was modifiedllvm/test/Transforms/InstCombine/powi.ll
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
Commit f1e8ceb3054a02f4225ff7ab74cde10b70826707 by Saleem Abdulrasool
docs: correct SPHNIX document reference

The trailing `>` was missing, which resulted in the reference not being
processed properly.
The file was modifiedclang-tools-extra/docs/ReleaseNotes.rst
Commit d49cb5b3035b02ffdd0cc8cf4c69c6e5369558f6 by aeubanks
[SimplifyCFG] Add bonus when seeing vector ops to branch fold to common dest

This makes some tests in vector-reductions-logical.ll more stable when
applying D108837.

The cost of branching is higher when vector ops are involved due to
potential SLP transformations.

Reviewed By: spatel

Differential Revision: https://reviews.llvm.org/D108935
The file was modifiedllvm/lib/Transforms/Utils/SimplifyCFG.cpp
The file was modifiedllvm/test/Transforms/PhaseOrdering/X86/vector-reductions-logical.ll