Changes

Summary

  1. [mlir][linalg] Format bufferization debug print outs (NFC). (details)
  2. Add an escape-hatch for conversion of funcs with blocking awaits to coroutines. (details)
  3. Handle subregs and superregs in callee-saved register mask (details)
  4. [OpenMP][Tools][Tests][NFC] Address flaky archer tests (details)
  5. [clang][patch][FPEnv] Make initialization of C++ globals strictfp aware (details)
  6. [DSE] Transform memset + malloc --> calloc (PR25892) (details)
  7. [clang][patch] Remove erroneous run line committed in D102343 (details)
  8. [lldb] Fix FunctionDecl::Create after D102343 (details)
  9. Replace LLVM_ATTRIBUTE_NORETURN with C++11 [[noreturn]]. NFC (details)
  10. [Support] Remove LLVM_ATTRIBUTE_NORETURN (details)
  11. [gn build] Manually add file (details)
  12. Support macro deprecation #pragma clang deprecated (details)
  13. Fixing broken docs build (details)
  14. Revert "[lldb] Assert filecache and live memory match on debug under a setting" (details)
  15. [AIX] Pass the -b option to linker on AIX (details)
  16. [libc++][NFC] Make private header generation CMake comment more consistent (details)
Commit 2a342c7c1ee18817a5f8bb4d32cfc4bce6f9aecd by gysit
[mlir][linalg] Format bufferization debug print outs (NFC).

Change the formatting of the debug print outs to elide unnecessary information.

Reviewed By: nicolasvasilache

Differential Revision: https://reviews.llvm.org/D106661
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/ComprehensiveBufferize.cpp
Commit 9a5bc83660ed6978521dcfa4faac140cf5b2e895 by ezhulenev
Add an escape-hatch for conversion of funcs with blocking awaits to coroutines.

Currently TFRT does not support top-level coroutines, so this functionality will allow to have a single blocking await at the top level until TFRT implements the necessary functionality.

Reviewed By: ezhulenev

Differential Revision: https://reviews.llvm.org/D106730
The file was modifiedmlir/include/mlir/Dialect/Async/Passes.td
The file was modifiedmlir/include/mlir/Dialect/Async/IR/AsyncDialect.td
The file was modifiedmlir/lib/Dialect/Async/IR/Async.cpp
The file was modifiedmlir/lib/Dialect/Async/Transforms/AsyncToAsyncRuntime.cpp
The file was modifiedmlir/test/Dialect/Async/async-to-async-runtime-eliminate-blocking.mlir
Commit 95ef464ac9d1972953709c57449ac178771cd221 by jrtc27
Handle subregs and superregs in callee-saved register mask

If a target lists both a subreg and a superreg in a callee-saved
register mask, the prolog will spill both aliasing registers. Instead,
don't spill the subreg if a superreg is being spilled. This case is hit by the
PowerPC SPE code, as well as a modified RISC-V backend for CHERI I maintain out
of tree.

Reviewed By: jhibbits

Differential Revision: https://reviews.llvm.org/D73170
The file was modifiedllvm/test/CodeGen/PowerPC/fp-strict.ll
The file was modifiedllvm/lib/CodeGen/PrologEpilogInserter.cpp
The file was modifiedllvm/test/CodeGen/PowerPC/spe.ll
Commit 4acc2f29a278ff2a0a4d683dd6d706cc2f7123fd by protze
[OpenMP][Tools][Tests][NFC] Address flaky archer tests

Adding more concurrent threads significantly increases the
chance that the data race can be observed during testing.
The file was modifiedopenmp/tools/archer/tests/races/lock-unrelated.c
The file was modifiedopenmp/tools/archer/tests/races/task-taskwait-nested.c
The file was modifiedopenmp/tools/archer/tests/races/parallel-simple.c
The file was modifiedopenmp/tools/archer/tests/races/task-taskgroup-unrelated.c
The file was modifiedopenmp/tools/archer/tests/races/critical-unrelated.c
The file was modifiedopenmp/tools/archer/tests/races/task-two.c
The file was modifiedopenmp/tools/archer/tests/races/task-dependency.c
The file was modifiedopenmp/tools/archer/tests/races/lock-nested-unrelated.c
Commit bc5b5ea037dbadd281c59248ae9d2742b51c69ed by melanie.blower
[clang][patch][FPEnv] Make initialization of C++ globals strictfp aware

@kpn pointed out that the global variable initialization functions didn't
have the "strictfp" metadata set correctly, and @rjmccall said that there
was buggy code in SetFPModel and StartFunction, this patch is to solve
those problems. When Sema creates a FunctionDecl, it sets the
FunctionDeclBits.UsesFPIntrin to "true" if the lexical FP settings
(i.e. a combination of command line options and #pragma float_control
settings) correspond to ConstrainedFP mode. That bit is used when CodeGen
starts codegen for a llvm function, and it translates into the
"strictfp" function attribute. See bugs.llvm.org/show_bug.cgi?id=44571

Reviewed By: Aaron Ballman

Differential Revision: https://reviews.llvm.org/D102343
The file was modifiedclang/lib/AST/Decl.cpp
The file was modifiedclang/lib/Sema/SemaDecl.cpp
The file was modifiedclang/lib/Sema/SemaExprCXX.cpp
The file was modifiedclang/lib/Sema/SemaLambda.cpp
The file was modifiedclang/include/clang/AST/Decl.h
The file was modifiedclang/lib/Sema/SemaTemplateInstantiateDecl.cpp
The file was modifiedclang/lib/AST/ASTImporter.cpp
The file was modifiedclang/lib/Sema/SemaDeclCXX.cpp
The file was modifiedclang/test/CodeGen/fp-floatcontrol-class.cpp
The file was modifiedclang/include/clang/AST/DeclCXX.h
The file was modifiedclang/lib/Sema/SemaDeclAttr.cpp
The file was modifiedclang/unittests/Sema/ExternalSemaSourceTest.cpp
The file was modifiedclang/lib/CodeGen/CGObjC.cpp
The file was modifiedclang/lib/CodeGen/CodeGenFunction.h
The file was modifiedclang/lib/Sema/SemaExpr.cpp
The file was modifiedclang/test/CodeGen/fp-floatcontrol-stack.cpp
The file was modifiedclang/lib/CodeGen/CodeGenFunction.cpp
The file was modifiedclang/lib/CodeGen/CGStmtOpenMP.cpp
The file was modifiedclang/lib/AST/DeclCXX.cpp
The file was modifiedclang/lib/Sema/SemaLookup.cpp
Commit 5c315bee8c9db27d12cead928eea5a3fef97f34f by dawid_jurek
[DSE] Transform memset + malloc --> calloc (PR25892)

After this change DSE can eliminate malloc + memset and emit calloc.
It's https://reviews.llvm.org/D101440 follow-up.

Differential Revision: https://reviews.llvm.org/D103009
The file was modifiedllvm/test/Transforms/DeadStoreElimination/noop-stores.ll
The file was modifiedllvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
Commit fd251d903b9b1bc8305736fc78764521cd86f8d3 by melanie.blower
[clang][patch] Remove erroneous run line committed in D102343
The file was modifiedclang/test/CodeGen/fp-floatcontrol-class.cpp
Commit 172a55e7a40d27c7882be2e86d515696d8e12427 by i
[lldb] Fix FunctionDecl::Create after D102343
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/NameSearchContext.cpp
Commit 72a83674dd3a13b59442cd7cb07b53902f7d6a33 by i
Replace LLVM_ATTRIBUTE_NORETURN with C++11 [[noreturn]]. NFC

[[noreturn]] can be used since Oct 2016 when the minimum compiler requirement was bumped to GCC 4.8/MSVC 2015.
The file was modifiedlldb/source/Plugins/Process/Linux/SingleStepCheck.cpp
The file was modifiedclang-tools-extra/pp-trace/PPTrace.cpp
The file was modifiedflang/include/flang/Optimizer/Support/FatalError.h
The file was modifiedclang/utils/TableGen/ClangDiagnosticsEmitter.cpp
The file was modifiedlldb/source/Host/posix/ProcessLauncherPosixFork.cpp
Commit 09529892b518c8df8c24395e68e0a7a5e8bda5fb by i
[Support] Remove LLVM_ATTRIBUTE_NORETURN

Code should use C++11 [[noreturn]] or C11 _Noreturn instead.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D106899
The file was modifiedllvm/include/llvm/Support/Compiler.h
Commit ee7c9b8f140d0614c3380022b27d9bbd963b9a77 by aeubanks
[gn build] Manually add file

Since bot is broken
The file was modifiedllvm/utils/gn/secondary/compiler-rt/lib/tsan/BUILD.gn
Commit 26c695b7893071d5e69afbaa70c4850ab2e468be by chris.bieneman
Support macro deprecation #pragma clang deprecated

This patch adds `#pragma clang deprecated` to enable deprecation of
preprocessor macros.

The macro must be defined before `#pragma clang deprecated`. When
deprecating a macro a custom message may be optionally provided.

Warnings are emitted at the use site of a deprecated macro, and can be
controlled via the `-Wdeprecated` warning group.

This patch takes some rough inspiration and a few lines of code from
https://reviews.llvm.org/D67935.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D106732
The file was modifiedclang/include/clang/Lex/Preprocessor.h
The file was addedclang/test/Lexer/deprecate-macro.c
The file was modifiedclang/lib/Lex/PPMacroExpansion.cpp
The file was modifiedclang/lib/Lex/PPDirectives.cpp
The file was modifiedclang/lib/Lex/Preprocessor.cpp
The file was modifiedclang/include/clang/Basic/IdentifierTable.h
The file was modifiedclang/include/clang/Basic/DiagnosticLexKinds.td
The file was modifiedclang/lib/Lex/Pragma.cpp
The file was modifiedclang/docs/LanguageExtensions.rst
The file was modifiedclang/include/clang/Basic/DiagnosticGroups.td
The file was modifiedclang/lib/Lex/PPExpressions.cpp
Commit f8819c109e4afcad19407ceb54e28ef77e1c57e9 by chris.bieneman
Fixing broken docs build

Need an empty line after the code-block directive.
The file was modifiedclang/docs/LanguageExtensions.rst
Commit 66ba4e3dc608156797df8f863d61fa106608e45c by stilis
Revert "[lldb] Assert filecache and live memory match on debug under a setting"

This reverts commit 77e9d10f0fbfe04a14e6ce61753376dd78e0c2f0.

This change broke the Windows LLDB bot:
https://lab.llvm.org/buildbot/#/builders/83/builds/8784/steps/7/logs/stdio
The file was modifiedlldb/source/Target/Target.cpp
The file was modifiedlldb/include/lldb/Target/Target.h
The file was modifiedlldb/packages/Python/lldbsuite/test/lldbtest.py
The file was modifiedlldb/test/Shell/lit-lldb-init.in
The file was modifiedlldb/source/Target/TargetProperties.td
The file was modifiedlldb/source/Core/Section.cpp
The file was modifiedlldb/include/lldb/Core/Section.h
Commit 109954410c34434a181f5eb48cbd14f4122101c7 by anjankumar.g.k
[AIX] Pass the -b option to linker on AIX

Parse the -b option in the driver and pass it to the linker if the target OS is AIX. This will establish compatibility with the other AIX compilers.

Reviewed By: Zarko Todorovski

Differential Revision: https://reviews.llvm.org/D106688
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedclang/lib/Driver/ToolChains/CommonArgs.cpp
The file was modifiedclang/test/Driver/Xlinker-args.c
Commit 9efffe8278723e55b4de89ea05f796b67fb9d54e by Louis Dionne
[libc++][NFC] Make private header generation CMake comment more consistent
The file was modifiedlibcxx/utils/CMakeLists.txt

Summary

  1. [SPEC2017] Add support for Darwin platforms. (details)
Commit 56e28a7fe120e12989b007697c13c28b5e126761 by florian_hahn
[SPEC2017] Add support for Darwin platforms.

This patch adds detection of Darwin platforms and the corresponding defines.

Reviewed By: Meinersbur

Differential Revision: https://reviews.llvm.org/D107059
The file was modifiedExternal/SPEC/CINT2017rate/500.perlbench_r/CMakeLists.txt (diff)
The file was modifiedExternal/SPEC/SpecCPU2017.cmake (diff)