Progress:
In progressChanges

Changes from Git (git http://labmaster3.local/git/llvm-zorg.git)

Summary

  1. More master to main updates (details)
  2. jenkins/jobs: Add timeout to the lnt-ctmark-* jobs (details)
Commit b8d41c307ba74e913a5b20446b51e349bbbe5045 by Azharuddin Mohammed
More master to main updates
The file was modifiedtasks/tasktool/README.md
The file was modifiedtasks/tasktool/tasktool/repos/git.py
The file was modifiedzorg/jenkins/inspect_log.py
The file was modifiedzorg/jenkins/jobs/util/make_pipeline.py
Commit c816513763961852ae753378e0525dd8e508d168 by Azharuddin Mohammed
jenkins/jobs: Add timeout to the lnt-ctmark-* jobs

This is so that these don't end up stuck and running forever in case of
any issues.
The file was modifiedzorg/jenkins/jobs/jobs/lnt-ctmark-aarch64-O0-g
The file was modifiedzorg/jenkins/jobs/jobs/lnt-ctmark-aarch64-Oz
The file was modifiedzorg/jenkins/jobs/jobs/lnt-ctmark-aarch64-Os
The file was modifiedzorg/jenkins/jobs/jobs/lnt-ctmark-aarch64-O3-flto

Changes from Git (git http://labmaster3.local/git/llvm-project.git)

Summary

  1. [flang][fir][NFC] Move remaining types to TableGen type definition (details)
  2. [flang][fir][NFC] Remove dead code. (details)
  3. [docs] Add a release note for the removing of -Wreturn-std-move-in-c++11 (details)
  4. [Coroutine] Check indirect uses of alloca when checking lifetime info (details)
  5. [NFC][AIX] Rename aix-csr-vector.ll to aix-csr-vector-extabi.ll (details)
  6. [NARY][NFC] New tests for upcoming changes. (details)
  7. [docs][JITLink] Reintroduce JITLink design/API doc with fixes and improvements. (details)
  8. [RISCV] Reuse existing SDLoc and XLenVT in the switch in RISCVISelDAGToDAG::Select. NFC (details)
  9. OpenMP: Fix object clobbering issue when using save-temps (details)
  10. [debugserver] Fix logic to extract app bundle from file path (details)
  11. [clang][RecoveryAST] Add design doc to clang internal manual. (details)
  12. [mlir] Fix emitting attribute documentation (details)
  13. [mlir][nfc] Fix typo in documentation comment (details)
  14. [clang][cli] Add MarshallingInfoEnum multiclass (details)
  15. [clang][cli] Remove marshalling from Opt{In,Out}FFlag (details)
  16. [clangd] NFC, remove an extra "class" keyword. (details)
  17. [AArch64] Add abs intrinsic costs (details)
  18. [clang][cli] Store additional optimization remarks info (details)
  19. [clang][cli] Round-trip the whole CompilerInvocation (details)
  20. AArch64: relax address-space assertion in FastISel. (details)
  21. [CodeGen] Canonicalise adds/subs of i1 vectors using XOR (details)
  22. Prefer /usr/bin/env xxx over /usr/bin/xxx where xxx = perl, python, awk (details)
  23. [lldb] Let ClangASTImporter assert that the target AST has an external source (details)
  24. [lldb][NFC] Remove some obsolete comments in ClangASTImporter.cpp (details)
  25. Support standalone build of clang-tidy unittest (details)
  26. [X86][SSE] Move unaryshuffle(xor(x,-1)) -> xor(unaryshuffle(x),-1) fold into helper. NFCI. (details)
  27. [NARY-REASSOCIATE] Support reassociation of min/max (details)
  28. [X86] Regenerate sdiv_fix.ll tests. NFCI. (details)
  29. [NFC] Fix build failure after 83d134c3c4222e8b8d3d90c099f749a3b3abc8e0 (details)
  30. [RISCV] Unify scalable- and fixed-vector EXTRACT_SUBVECTOR lowering (details)
Commit 841f6995cd33b8891655b2aeb78deca548362c23 by clementval
[flang][fir][NFC] Move remaining types to TableGen type definition

Move the remaing of FIR types to TableGen type definition. This follow suggestion in D96422.

Reviewed By: schweitz, jeanPerier, rriddle

Differential Revision: https://reviews.llvm.org/D96987
The file was modifiedflang/include/flang/Optimizer/Dialect/FIRTypes.td
The file was modifiedflang/lib/Optimizer/Dialect/FIRType.cpp
The file was modifiedflang/include/flang/Optimizer/Dialect/FIROps.td
The file was modifiedflang/include/flang/Optimizer/Dialect/FIRType.h
Commit 082ec3ab07760d1a6e47886246090c6f58708dbf by eschweitz
[flang][fir][NFC] Remove dead code.

This patch removes OpaqueAttr as it is no longer used.

Differential Revision: https://reviews.llvm.org/D97424
The file was modifiedflang/lib/Optimizer/Dialect/FIRDialect.cpp
The file was modifiedflang/lib/Optimizer/Dialect/FIRAttr.cpp
The file was modifiedflang/test/Fir/fir-ops.fir
The file was modifiedflang/include/flang/Optimizer/Dialect/FIRAttr.h
Commit b950de5c13ef2171c0457a413c3b06aa31047938 by nullptr.cpp
[docs] Add a release note for the removing of -Wreturn-std-move-in-c++11

`-Wreturn-std-move-in-c++11` has been removed in fbee4a0c79cc4ee87c34e51342742a5bc6fcf872.

Reviewed By: aaronpuchert, amccarth

Differential Revision: https://reviews.llvm.org/D97364
The file was modifiedclang/docs/ReleaseNotes.rst
Commit c38000a9fb2cd64ad6e72939643e2c0fa4972690 by lxfind
[Coroutine] Check indirect uses of alloca when checking lifetime info

In the existing logic, we look at the lifetime.start marker of each alloca, and check all uses of the alloca, to see if any pair of the lifetime marker and an use of alloca crosses suspension point.
This approach is unfortunately incorrect. An use of alloca does not need to be a direct use, but can be an indirect use through alias.
Only checking direct uses can miss cases where indirect uses are crossing suspension point.
This can be demonstrated in the newly added test case 007.
In the test case, both x and y are only directly used prior to suspend, but they are captured into an alias, merged through a PHINode (so they couldn't be materialized), and used after CoroSuspend.
If we only check whether the lifetime starts cross suspension points with direct uses, we will put the allocas to the stack, and then capture their addresses in the frame.

Instead of fixing it in D96441 and D96566, this patch takes a different approach which I think is better.
We still checks the lifetime info in the same way as before, but with two differences:
1. The collection of liftime.start is moved into AllocaUseVisitor to make the logic more concentrated.
2. When looking at lifetime.start and use pairs, we not only checks the direct uses as before, but in this patch we check all uses collected by AllocaUseVisitor, which would include all indirect uses through alias. This will make the analysis more accurate without throwing away the lifetime optimization.

Differential Revision: https://reviews.llvm.org/D96922
The file was addedllvm/test/Transforms/Coroutines/coro-alloca-08.ll
The file was modifiedllvm/lib/Transforms/Coroutines/CoroFrame.cpp
The file was addedllvm/test/Transforms/Coroutines/coro-alloca-07.ll
Commit 1c051b7b704257ed9a7c02844ee8c1ea9327dfee by zarko
[NFC][AIX] Rename aix-csr-vector.ll to aix-csr-vector-extabi.ll
The file was removedllvm/test/CodeGen/PowerPC/aix-csr-vector.ll
The file was addedllvm/test/CodeGen/PowerPC/aix-csr-vector-extabi.ll
Commit 6d31ee1cea7554fec9f3be6c4a40fc10e1595879 by ybrevnov
[NARY][NFC] New tests for upcoming changes.
The file was addedllvm/test/Transforms/NaryReassociate/nary-umax.ll
The file was addedllvm/test/Transforms/NaryReassociate/nary-smax.ll
The file was addedllvm/test/Transforms/NaryReassociate/nary-umin.ll
The file was addedllvm/test/Transforms/NaryReassociate/nary-smin.ll
Commit 93c8246952d08fc4640946a8cb4151d399ec1684 by Lang Hames
[docs][JITLink] Reintroduce JITLink design/API doc with fixes and improvements.

This document was originally introduced in ab4648504b2, and was reverted in
912bc4980e9 while I investigated a number of shpinx bot errors. This commit
reintroduces the document with fixes for those errors, as well as some
improvements to the wording and formatting.
The file was modifiedllvm/docs/UserGuides.rst
The file was addedllvm/docs/JITLink.rst
The file was modifiedllvm/docs/ORCv2.rst
Commit 159f78fc2f50e385e7cd529d41e19c858ef3e10e by craig.topper
[RISCV] Reuse existing SDLoc and XLenVT in the switch in RISCVISelDAGToDAG::Select. NFC

A SDLoc and XLenVT were already created above the switch.
The file was modifiedllvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
Commit 99951aa68da3c85ba03edf977cd9b22458aae6ca by Pushpinder.Singh
OpenMP: Fix object clobbering issue when using save-temps

There are two preconditions to reproduce the issue,
1. Use -save-temps option
2. Provide the -o option with name equal to the input file name
    without the file extension. For e.g. clang a.c -o a

With the -o specified, the AssembleJobAction after OffloadWrapperJobAction
will produce the object file with same name as host code object file.
Due to this clash, the OffloadWrapperAction overwrites the initial host
object file, which results in lld error. This also fixes the `multiple definition of __dummy.omp_offloading.entry'` issue in D96769 .

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D97273
The file was modifiedclang/lib/Driver/Driver.cpp
The file was modifiedclang/test/Driver/openmp-offload-gpu.c
Commit 011a8e218ea32e1c8bbbeb5925def894ac6513a4 by Jonas Devlieghere
[debugserver] Fix logic to extract app bundle from file path

Fix the logic to find the app bundle in a path by correctly accounting
for paths containing multiple occurrences of `.app`. The new logic will
correctly extract `com.app.Foo.app` from `com.app.Foo.app/com.app.Foo`.

rdar://74666208

Differential revision: https://reviews.llvm.org/D97441
The file was modifiedlldb/tools/debugserver/source/MacOSX/MachProcess.mm
Commit 77a8589e5d2f1b3886a9831ae8468f97741991e7 by hokein.wu
[clang][RecoveryAST] Add design doc to clang internal manual.

Hopefully it would be useful for new developers.

Differential Revision: https://reviews.llvm.org/D96944
The file was modifiedclang/docs/InternalsManual.rst
Commit 699041123eba13a2d5ee253eeeaeb15893d21ce7 by marius.brehler
[mlir] Fix emitting attribute documentation

This fixes the documentation emitted for type parameters. Also adds a
missing empty line, rendered as line break in mark down.

Co-authored-by: Simon Camphausen <simon.camphausen@iml.fraunhofer.de>

Reviewed By: rriddle

Differential Revision: https://reviews.llvm.org/D97267
The file was modifiedmlir/tools/mlir-tblgen/OpDocGen.cpp
Commit 2d870a2f557b6aea9f37594a3341a2e890db8621 by marius.brehler
[mlir][nfc] Fix typo in documentation comment
The file was modifiedmlir/lib/Dialect/Tosa/Transforms/TosaMakeBroadcastable.cpp
Commit 88e45f00c156170ed562bbacad3b2a21633c0f7a by jan_svoboda
[clang][cli] Add MarshallingInfoEnum multiclass

This patch introduces a tablegen multiclass called `MarshallingInfoEnum`. It has the same semantics as `MarshallingInfoString` had in combination with `AutoNormalizeEnum`, but it's easier to use and follows the convention used for other `MarshallingInfoXxx` multiclasses.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D97375
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedclang/docs/InternalsManual.rst
The file was modifiedllvm/include/llvm/Option/OptParser.td
Commit d8a8e5d6240a1db809cd95106910358e69bbf299 by jan_svoboda
[clang][cli] Remove marshalling from Opt{In,Out}FFlag

We can now express all marshalling semantics in `Opt{In,Out}FFlag` via `BoolFOption`.

This patch moves remaining `Opt{In,Out}FFlag` instances using marshalling to `BoolFOption` and removes marshalling capabilities from `Opt{In,Out}FFlag` entirely.

This simplifies the decisions developers have to make when creating new boolean options:
  * For simple cc1 flag pairs, use `Bool{,F,G}Option`.
  * For cc1 flag pairs that require complex marshalling logic, use `Opt{In,Out}FFlag` and implement marshalling manually.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D97370
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedclang/lib/Frontend/CompilerInvocation.cpp
Commit b218f7c4baada3d22bf22bd3ca6e849bb2ce9289 by hokein.wu
[clangd] NFC, remove an extra "class" keyword.
The file was modifiedclang-tools-extra/clangd/ClangdLSPServer.cpp
Commit 30cb9c03b53ee03af2cdf16f4ee645e5dcff7e21 by stelios.ioannou
[AArch64] Add abs intrinsic costs

This patch adds cost-modelling for abs vector intrinsic.

Change-Id: I89007971bfb15f5b4a02a2eadfd43018e9a73976
The file was modifiedllvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
The file was addedllvm/test/Analysis/CostModel/AArch64/abs.ll
Commit a25e4a6da3fe43f631782b1668e0ac023f6b5848 by jan_svoboda
[clang][cli] Store additional optimization remarks info

After a revision of D96274 changed `DiagnosticOptions` to not store all remark arguments **as-written**, it is no longer possible to reconstruct the arguments accurately from the class.

This is caused by the fact that for `-Rpass=regexp` and friends, `DiagnosticOptions` store only the group name `pass` and not `regexp`. This is the same representation used for the plain `-Rpass` argument.

Note that each argument must be generated exactly once in `CompilerInvocation::generateCC1CommandLine`, otherwise each subsequent call would produce more arguments than the previous one. Currently this works out because of the way `RoundTrip` splits the responsibilities for certain arguments based on what arguments were queried during parsing. However, this invariant breaks when we move to single round-trip for the whole `CompilerInvocation`.

This patch ensures that for one `-Rpass=regexp` argument, we don't generate two arguments (`-Rpass` from `DiagnosticOptions` and `-Rpass=regexp` from `CodeGenOptions`) by shifting the responsibility for handling both cases to `CodeGenOptions`. To distinguish between the cases correctly, additional information is stored in `CodeGenOptions`.

The `CodeGenOptions` parser of `-Rpass[=regexp]` arguments also looks at `-Rno-pass` and `-R[no-]everything`, which is necessary for generating the correct argument regardless of the ordering of `CodeGenOptions`/`DiagnosticOptions` parsing/generation.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D96847
The file was modifiedclang/include/clang/Basic/CodeGenOptions.h
The file was modifiedclang/lib/Frontend/CompilerInvocation.cpp
The file was modifiedclang/lib/CodeGen/CodeGenAction.cpp
Commit d748908fa02b11c7840a7f03c7a52223126bdba9 by jan_svoboda
[clang][cli] Round-trip the whole CompilerInvocation

Finally, this patch moves from round-tripping one `CompilerInvocation` at a time to round-tripping the invocation as a whole.

This patch includes only the code required to make round-tripping the whole invocation work. More cleanups will be done in a follow-up patch.

Depends on D96847, D97041 & D97042.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D96280
The file was modifiedclang/include/clang/Frontend/CompilerInvocation.h
The file was modifiedclang/lib/Frontend/CompilerInvocation.cpp
The file was modifiedclang/include/clang/Basic/DiagnosticDriverKinds.td
The file was modifiedclang/test/Frontend/round-trip-cc1-args.c
Commit 201ada80ee15aed23728500982857ad3769f6802 by Tim Northover
AArch64: relax address-space assertion in FastISel.

Some people are using alternative address spaces to track GC data, but
otherwise they behave exactly the same. This is the only place in the backend
we even try to care about it so it's really not achieving anything.
The file was modifiedllvm/lib/Target/AArch64/AArch64FastISel.cpp
Commit 87dbcd88651a4e72fc8f5e1594f9b02232277301 by david.sherwood
[CodeGen] Canonicalise adds/subs of i1 vectors using XOR

When calling SelectionDAG::getNode() to create an ADD or SUB
of two vectors with i1 element types we can canonicalise this
to use XOR instead, where 1+1 is treated as wrapping around
to 0 and 0-1 wraps to 1.

I've added the following tests for SVE targets:

  CodeGen/AArch64/sve-pred-arith.ll

and modified some X86 tests to reflect the much simpler codegen
required.

Differential Revision: https://reviews.llvm.org/D97276
The file was addedllvm/test/CodeGen/AArch64/sve-pred-arith.ll
The file was modifiedllvm/test/CodeGen/X86/avx512-mask-op.ll
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
The file was modifiedllvm/test/CodeGen/X86/avx512bw-mask-op.ll
Commit a54f160b3a98b91cd241a555d904a6b6453affc4 by Raphael Isemann
Prefer /usr/bin/env xxx over /usr/bin/xxx where xxx = perl, python, awk

Allow users to use a non-system version of perl, python and awk, which is useful
in certain package managers.

Reviewed By: JDevlieghere, MaskRay

Differential Revision: https://reviews.llvm.org/D95119
The file was modifiedclang/utils/analyzer/update_plist_test.pl
The file was modifiedllvm/utils/llvm-compilers-check
The file was modifiedllvm/utils/codegen-diff
The file was modifiedllvm/utils/findsym.pl
The file was modifiedpolly/lib/External/isl/doc/mypod2latex
The file was modifiedclang/www/demo/index.cgi
The file was modifiedclang/tools/scan-build/bin/set-xcode-analyzer
The file was modifiedllvm/utils/llvm-native-gxx
The file was modifiedopenmp/runtime/tools/message-converter.pl
The file was modifiedllvm/utils/GenLibDeps.pl
The file was modifiedclang/utils/analyzer/reducer.pl
The file was modifiedclang/test/make_test_dirs.pl
The file was modifieddebuginfo-tests/llgdb-tests/test_debuginfo.pl
The file was modifiedlldb/docs/use/python-reference.rst
The file was modifiedlldb/scripts/disasm-gdb-remote.pl
The file was modifiedopenmp/runtime/tools/check-instruction-set.pl
The file was modifiedopenmp/runtime/tools/check-execstack.pl
The file was modifiedclang/utils/TestUtils/pch-test.pl
Commit 7cfa6e1cc64bc41e644cfc4a43bc122790896569 by Raphael Isemann
[lldb] Let ClangASTImporter assert that the target AST has an external source

This prevents people from accidentially using this code outside the
intended setup.
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/ClangASTImporter.h
Commit 2d6b767c1d15ec736b409370da33009de57de7f2 by Raphael Isemann
[lldb][NFC] Remove some obsolete comments in ClangASTImporter.cpp

The first two comments are incomplete and reference obsolete code. The
last one is just commented out code (that also doesn't look correct).
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/ClangASTImporter.cpp
Commit f0e461057221ad334cd194211ef4fa31364054e3 by sguelton
Support standalone build of clang-tidy unittest

Apply the same pattern as the one used in clangd/unittests/CMakeLists.txt

Differential Revision: https://reviews.llvm.org/D96788
The file was modifiedclang-tools-extra/unittests/clang-tidy/CMakeLists.txt
Commit 8b82669d56936b135fb0729368a8f5dbb2fb3639 by llvm-dev
[X86][SSE] Move unaryshuffle(xor(x,-1)) -> xor(unaryshuffle(x),-1) fold into helper. NFCI.

We should be able to extend this "canonicalizeShuffleWithBinOps" to handle more generic binop cases where either/both operands can be cheaply shuffled.
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
Commit 83d134c3c4222e8b8d3d90c099f749a3b3abc8e0 by ybrevnov
[NARY-REASSOCIATE] Support reassociation of min/max

Support reassociation for min/max. With that we should be able to transform min(min(a, b), c) -> min(min(a, c), b) if min(a, c) is already available.

Reviewed By: mkazantsev

Differential Revision: https://reviews.llvm.org/D88287
The file was modifiedllvm/test/Transforms/NaryReassociate/nary-umin.ll
The file was modifiedllvm/test/Transforms/NaryReassociate/nary-umax.ll
The file was modifiedllvm/lib/Transforms/Scalar/NaryReassociate.cpp
The file was modifiedllvm/test/Transforms/NaryReassociate/nary-smin.ll
The file was modifiedllvm/include/llvm/Transforms/Scalar/NaryReassociate.h
The file was modifiedllvm/include/llvm/IR/PatternMatch.h
The file was modifiedllvm/test/Transforms/NaryReassociate/nary-smax.ll
Commit 0d835ba48dfb803de3a170cee3b79b4deb9e80b8 by llvm-dev
[X86] Regenerate sdiv_fix.ll tests. NFCI.
The file was modifiedllvm/test/CodeGen/X86/sdiv_fix.ll
Commit d0a6f8bb6568979e986eb4b8938dba537e75db7b by ybrevnov
[NFC] Fix build failure after 83d134c3c4222e8b8d3d90c099f749a3b3abc8e0
The file was modifiedllvm/lib/Transforms/Scalar/NaryReassociate.cpp
Commit 821f8bb29a8967fc1dc6520fda4a2b94b9c7ea0d by fraser
[RISCV] Unify scalable- and fixed-vector EXTRACT_SUBVECTOR lowering

This patch unifies the two disparate paths for lowering
EXTRACT_SUBVECTOR operations under one roof. Consequently, with this
patch it is possible to support any fixed-length subvector extraction,
not just "cast-like" ones.

Reviewed By: craig.topper

Differential Revision: https://reviews.llvm.org/D97192
The file was modifiedllvm/lib/Target/RISCV/RISCVISelLowering.h
The file was modifiedllvm/lib/Target/RISCV/RISCVISelLowering.cpp
The file was modifiedllvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp
The file was addedllvm/test/CodeGen/RISCV/rvv/fixed-vectors-extract-subvector.ll