AbortedChanges

Summary

  1. [zorg] Cleanup clang-cmake-{armv7,aarch64}-quick bots (details)
  2. [zorg] Build all targets on Linaro-maintained bots (details)
  3. [zorg] Add AArch64 SVE vector-length-specific (VLS) bots (details)
  4. [zorg] Rename Linaro's AArch64 and ARM bots to use consistent names (details)
  5. [zorg] Remove settings that match defaults from Linaro bots (details)
Commit 3f8251ff00a50c67bc04a500d674bd51bb4d66e8 by maxim.kuvyrkov
[zorg] Cleanup clang-cmake-{armv7,aarch64}-quick bots

Run "ninja check" for armv7 bot and don't pretend we run
LNT testsuite for the aarch64 bot.

Reviewed By: rovka, DavidSpickett

Differential Revision: https://reviews.llvm.org/D103468
The file was modifiedbuildbot/osuosl/master/config/builders.py (diff)
Commit 986da61015dc684d43a1c3b1849726c72fcf1592 by maxim.kuvyrkov
[zorg] Build all targets on Linaro-maintained bots

... not just AArch64 and ARM.  Make an exception for the quick
bots, which build a single target.

Reviewed By: rovka, zatrazz

Differential Revision: https://reviews.llvm.org/D103469
The file was modifiedbuildbot/osuosl/master/config/builders.py (diff)
Commit 2f6844e02cae962a4dd6ddf2f4ef279900e77fa6 by maxim.kuvyrkov
[zorg] Add AArch64 SVE vector-length-specific (VLS) bots

We add 1-stage bot that tests SVE support by building/running testsuite,
and 2-stage bot that additionally builds 2nd stage compiler with SVE.

Reviewed By: rovka

Differential Revision: https://reviews.llvm.org/D103470
The file was modifiedbuildbot/osuosl/master/config/builders.py (diff)
The file was modifiedbuildbot/osuosl/master/config/workers.py (diff)
Commit 89bc08fea5e20fdf8fb18c19c48f0046499f20b5 by maxim.kuvyrkov
[zorg] Rename Linaro's AArch64 and ARM bots to use consistent names

This will simplify Linaro's buildbot maintenance scripts.  We also
remove now-unused AArch64 and ARM libcxx workers, since these have
been migrated to buildkite a few months ago.

Reviewed By: DavidSpickett

Differential Revision: https://reviews.llvm.org/D103957
The file was modifiedbuildbot/osuosl/master/config/workers.py (diff)
The file was modifiedbuildbot/osuosl/master/config/builders.py (diff)
Commit 7b33ebd712c3a7d5d80f247bbc4ff844dc541304 by maxim.kuvyrkov
[zorg] Remove settings that match defaults from Linaro bots

Remove from arguments of ClangBuilder.getClangCMakeBuildFactory
- checkout_compiler_rt=True
- checkout_lld=True
- test=True
- useTwoStage=False
- testStage1=True
All these are defaults anyway.

Reviewed By: DavidSpickett

Differential Revision: https://reviews.llvm.org/D103963
The file was modifiedbuildbot/osuosl/master/config/builders.py (diff)

Summary

  1. [clang][deps] NFC: Preserve the original frontend action (details)
  2. [libc] Add a set of elementary operations (details)
  3. [clang][modules][pch] Allow loading PCH with different modules cache path (details)
  4. Reland "[lldb] Set return status to failed when adding a command error" (details)
  5. [lldb] Add missing changes to a2363c0cf9b6a9a81c76ac652da667f73845d38b (details)
  6. [clang][deps] Handle precompiled headers' AST files (details)
  7. Revert "[libc] Add a set of elementary operations" (details)
  8. [lldb] Correct "else if" to "elif" in TestRegisters (details)
  9. [flang] Add POSIX implementation for CPU_TIME (details)
  10. Fix -Wswitch warning after 092c303955cd18be6c0b923b1c0a1b96e2c91893. (details)
  11. [clang][deps] Handle modular dependencies present in PCH (details)
  12. [Analyzer][solver] Simplify existing eq classes and constraints when a new constraint is added (details)
  13. [clang][deps] Move stripping of diagnostic serialization from `clang-scan-deps` to `DependencyScanning` library (details)
  14. [clang][deps] Move invocation adjustments from `clang-scan-deps` to `DependencyScanning` library (details)
  15. [clang][deps] Move injection of `-Wno-error` from `clang-scan-deps` to `DependencyScanning` library (details)
  16. [clang][deps] Move enabling system header deps from `clang-scan-deps` to `DependencyScanning` library (details)
  17. [VPlan] Add additional tests for region merging. (details)
  18. [clang][deps] Fix failing modules.cpp test (details)
  19. [lldb][docs] Document SBType (details)
  20. [clang][deps] NFC: Check the correct context hashes in tests (details)
  21. [clang][deps] Prevent unintended modifications of the original TU command-line (details)
  22. Revert "[lldb] Set return status to failed when adding a command error" (and fixups) (details)
  23. [libc++] Refactor the tests for std::prev, next and advance (details)
  24. [MLIR][NFC] Rename MemRefDataFlow -> AffineScalarReplacement (details)
  25. [clang][deps] NFC: Fix an XFAIL test on Windows (details)
  26. [libc++] NFC: More refactoring in the prev/next/advance tests per review comments (details)
  27. Intrinsic::getName: require a Module argument (details)
Commit 669771cfe75b48ac4c195ce9e8824319be973f4d by Jan Svoboda
[clang][deps] NFC: Preserve the original frontend action

This patch stops adjusting the frontend action when `clang-scan-deps` is configured to use the full output format.

In a future patch, the dependency scanner needs to check whether the original compiler invocation builds a PCH. That's impossible when `-Eonly` et al. override `-emit-pch`.

The `-Eonly` flag is not needed - the dependency scanner explicitly sets up its own frontend action anyways.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D103461
The file was modifiedclang/tools/clang-scan-deps/ClangScanDeps.cpp
Commit e63f27a3cf8129cb66b8350ad50bf19633554a6b by gchatelet
[libc] Add a set of elementary operations

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.

Differential Revision: https://reviews.llvm.org/D100646
The file was modifiedlibc/src/string/memory_utils/CMakeLists.txt
The file was modifiedlibc/src/string/x86_64/memcpy.cpp
The file was modifiedlibc/src/string/memory_utils/memset_utils.h
The file was modifiedlibc/test/src/string/memory_utils/CMakeLists.txt
The file was modifiedlibc/src/string/CMakeLists.txt
The file was removedlibc/test/src/string/memory_utils/memcpy_utils_test.cpp
The file was modifiedlibc/src/string/memcpy.cpp
The file was addedlibc/src/string/memory_utils/elements.h
The file was addedlibc/src/string/memory_utils/elements_x86.h
The file was addedlibc/test/src/string/memory_utils/memory_access_test.cpp
The file was modifiedlibc/src/string/aarch64/memcpy.cpp
The file was removedlibc/src/string/memory_utils/memcpy_utils.h
The file was addedlibc/test/src/string/memory_utils/elements_test.cpp
Commit 78668c822af9504f77a554f5924e1097365d9c33 by Jan Svoboda
[clang][modules][pch] Allow loading PCH with different modules cache path

It's useful to be able to load explicitly-built PCH files into an implicit build (e.g. during dependency scanning). That's currently impossible, since the explicitly-built PCH has an empty modules cache path, while the current compilation has (and needs to have) a valid path, triggering an error in the `PCHValidator`.

This patch adds a preprocessor option and command-line flag that can be used to omit this check.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D103802
The file was addedclang/test/Modules/Inputs/pch-typedef.h
The file was modifiedclang/include/clang/Lex/PreprocessorOptions.h
The file was addedclang/test/Modules/module-pch-different-cache-path.c
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedclang/lib/Serialization/ASTReader.cpp
Commit a2363c0cf9b6a9a81c76ac652da667f73845d38b by david.spickett
Reland "[lldb] Set return status to failed when adding a command error"

This reverts commit db93e4e70aa453e5ba04ba0d9e01f581882b6c81.

This modifies TestRegsters.py to account for Darwin showing
AVX registers as part of "Floating Point Registers" instead
of in a separate "Advanced Vector Extensions" category.
The file was modifiedlldb/source/Interpreter/CommandReturnObject.cpp
The file was addedlldb/test/Shell/Commands/command-backtrace-parser-2.test
The file was addedlldb/test/Shell/Commands/command-backtrace-parser-1.test
The file was modifiedlldb/test/API/commands/register/register/register_command/TestRegisters.py
The file was removedlldb/test/Shell/Commands/command-backtrace.test
Commit 0f94d68a2e15d50796439f20bcb508b95931d2ae by david.spickett
[lldb] Add missing changes to a2363c0cf9b6a9a81c76ac652da667f73845d38b

Completely forgot to actually update the change before relanding it.
This adds the Darwin AVX changes.
The file was modifiedlldb/test/API/commands/register/register/register_command/TestRegisters.py
Commit 9223209be11e93c1b701054c6fff88d46ee54658 by Jan Svoboda
[clang][deps] Handle precompiled headers' AST files

The `PreprocessOnlyAction` doesn't support loading the AST file of a precompiled header. This is problematic for dependency scanning, since the `#include` manufactured for the PCH is treated as textual. This means the PCH contents get scanned with each TU, which is redundant. Moreover, dependencies of the PCH end up being considered dependency of the TU.

To handle AST file of PCH properly, this patch creates new `FrontendAction` that behaves the same way `PreprocessorOnlyAction` does, but treats the manufactured PCH `#include` as a normal compilation would (by not claiming it only uses a preprocessor and creating the default AST consumer).

The AST file is now reported as a file dependency of the TU.

Depends on D103519.

Reviewed By: Bigcheese

Differential Revision: https://reviews.llvm.org/D103524
The file was modifiedclang/lib/Frontend/FrontendActions.cpp
The file was modifiedclang/include/clang/Frontend/FrontendActions.h
The file was modifiedclang/test/ClangScanDeps/modules-pch.c
The file was modifiedclang/lib/Tooling/DependencyScanning/ModuleDepCollector.cpp
The file was modifiedclang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
Commit ab45c1f21f63bfd0acb9e27a626ab33659918868 by gchatelet
Revert "[libc] Add a set of elementary operations"

This reverts commit e63f27a3cf8129cb66b8350ad50bf19633554a6b.
The file was modifiedlibc/src/string/memory_utils/memset_utils.h
The file was addedlibc/test/src/string/memory_utils/memcpy_utils_test.cpp
The file was addedlibc/src/string/memory_utils/memcpy_utils.h
The file was modifiedlibc/src/string/x86_64/memcpy.cpp
The file was modifiedlibc/src/string/memcpy.cpp
The file was modifiedlibc/src/string/memory_utils/CMakeLists.txt
The file was modifiedlibc/src/string/aarch64/memcpy.cpp
The file was removedlibc/test/src/string/memory_utils/memory_access_test.cpp
The file was modifiedlibc/test/src/string/memory_utils/CMakeLists.txt
The file was removedlibc/test/src/string/memory_utils/elements_test.cpp
The file was removedlibc/src/string/memory_utils/elements_x86.h
The file was modifiedlibc/src/string/CMakeLists.txt
The file was removedlibc/src/string/memory_utils/elements.h
Commit f583029da3d6dbabe82f48b160227eb0120abd33 by david.spickett
[lldb] Correct "else if" to "elif" in TestRegisters
The file was modifiedlldb/test/API/commands/register/register/register_command/TestRegisters.py
Commit 166192eb78cdeb41ee25a37e920259fb13f82f6a by diana.picus
[flang] Add POSIX implementation for CPU_TIME

Add an implementation for CPU_TIME using the POSIX function
clock_gettime. I think on most POSIX systems this will be included for
free via <ctime>, which corresponds to "time.h" (YMMV, we can fix the
code if the need arises).

Detecting that clock_gettime is available is tricky. For instance, commit
827407a86aa07 used the following incantation in f18-parse-demo.cpp:

  #if _POSIX_C_SOURCE >= 199309L && _POSIX_TIMERS > 0 && _POSIX_CPUTIME && \
    defined CLOCK_PROCESS_CPUTIME_ID

This doesn't work on my AArch64 Ubuntu system, which provides
clock_gettime but doesn't define _POSIX_TIMERS. Since finding the right
combination of macros requires infinite time, patience and access to
sundry POSIX systems, we should probably try a different approach.

This patch attempts to use SFINAE instead of the preprocessor to choose
an implementation for CPU_TIME. We define a helper function template
which helps us check if clock_gettime is available (and has the
interface we expect). I hope the comments explain it well enough.

This approach has the advantage that it keeps the detection of
clock_gettime close to the code that uses it. An alternative would be to
use CMake to check for the symbol (I personally haven't used this before
so I don't know if there are any quirks).

Differential Revision: https://reviews.llvm.org/D104020
The file was modifiedflang/runtime/time-intrinsic.cpp
Commit a83ef21ff82e4283044fd31470fc6c1bc4b99c51 by hokein.wu
Fix -Wswitch warning after 092c303955cd18be6c0b923b1c0a1b96e2c91893.
The file was modifiedclang/lib/Basic/Targets/X86.cpp
Commit 4629554f0b664c94ada7c44fe40855d7a9a39820 by Jan Svoboda
[clang][deps] Handle modular dependencies present in PCH

When a translation unit uses a PCH and imports the same modules as the PCH, we'd prefer to resolve to those modules instead of inventing new modules and reporting them as modular dependencies. Since the PCH modules have already been built nudge the compiler to reuse them when deciding whether to build a new module and don't report them as regular modular dependencies.

Depends on D103524 & D103802.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D103526
The file was addedclang/test/ClangScanDeps/Inputs/modules-pch/cdb_tu_with_common.json
The file was addedclang/test/ClangScanDeps/Inputs/modules-pch/mod_pch.h
The file was addedclang/test/ClangScanDeps/Inputs/modules-pch/mod_tu_with_common.h
The file was modifiedclang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
The file was modifiedclang/include/clang/Tooling/DependencyScanning/ModuleDepCollector.h
The file was modifiedclang/lib/Tooling/DependencyScanning/ModuleDepCollector.cpp
The file was modifiedclang/test/ClangScanDeps/modules-pch.c
The file was modifiedclang/include/clang/Tooling/DependencyScanning/DependencyScanningTool.h
The file was modifiedclang/test/ClangScanDeps/Inputs/modules-pch/pch.h
The file was modifiedclang/lib/Tooling/DependencyScanning/DependencyScanningTool.cpp
The file was addedclang/test/ClangScanDeps/Inputs/modules-pch/mod_common_1.h
The file was modifiedclang/include/clang/Tooling/DependencyScanning/DependencyScanningWorker.h
The file was modifiedclang/test/ClangScanDeps/Inputs/modules-pch/module.modulemap
The file was addedclang/test/ClangScanDeps/Inputs/modules-pch/cdb_pch.json
The file was addedclang/test/ClangScanDeps/Inputs/modules-pch/mod_common_2.h
The file was addedclang/test/ClangScanDeps/Inputs/modules-pch/tu_with_common.c
Commit 8ddbb442b6e87efc9c6599280740c6f4fc40963d by gabor.marton
[Analyzer][solver] Simplify existing eq classes and constraints when a new constraint is added

Update `setConstraint` to simplify existing equivalence classes when a
new constraint is added. In this patch we iterate over all existing
equivalence classes and constraints and try to simplfy them with
simplifySVal. This solves problematic cases where we have two symbols in
the tree, e.g.:
```
int test_rhs_further_constrained(int x, int y) {
  if (x + y != 0)
    return 0;
  if (y != 0)
    return 0;
  clang_analyzer_eval(x + y == 0); // expected-warning{{TRUE}}
  clang_analyzer_eval(y == 0);     // expected-warning{{TRUE}}
  return 0;
}
```

Differential Revision: https://reviews.llvm.org/D103314
The file was modifiedclang/lib/StaticAnalyzer/Core/RangeConstraintManager.cpp
The file was modifiedclang/include/clang/StaticAnalyzer/Core/PathSensitive/RangedConstraintManager.h
The file was addedclang/test/Analysis/find-binop-constraints.cpp
Commit 35fa3e60d1612dcc4f8e233b046423d948ca9a9b by Jan Svoboda
[clang][deps] Move stripping of diagnostic serialization from `clang-scan-deps` to `DependencyScanning` library

To prevent the creation of diagnostics file, `clang-scan-deps` strips the corresponding command-line argument. This behavior is useful even when using the C++ `DependencyScanner` library.

This patch transforms stripping of command-line in `clang-scan-deps` into stripping of `CompilerInvocation` in `DependencyScanning`.

AFAIK, the `clang-cl` driver doesn't even accept `--serialize-diagnostics`, so I've removed the test. (It would fail with an unknown command-line argument otherwise.)

Note: Since we're generating command-lines for modular dependencies from `CompilerInvocation`, the `--serialize-diagnostics` will be dropped. This was already happening in `clang-scan-deps` before this patch, but it will now happen also when using `DependencyScanning` library directly. This is resolved in D104036.

Reviewed By: dexonsmith, arphaman

Differential Revision: https://reviews.llvm.org/D104012
The file was modifiedclang/include/clang/Tooling/ArgumentsAdjusters.h
The file was modifiedclang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
The file was modifiedclang/test/ClangScanDeps/Inputs/strip_diag_serialize.json
The file was modifiedclang/test/ClangScanDeps/strip_diag_serialize.cpp
The file was modifiedclang/lib/Tooling/ArgumentsAdjusters.cpp
The file was modifiedclang/tools/clang-scan-deps/ClangScanDeps.cpp
Commit d8bab69ead22a10dc4cdb2e36f6ea6fdfe774e2e by Jan Svoboda
[clang][deps] Move invocation adjustments from `clang-scan-deps` to `DependencyScanning` library

The `clang-scan-deps` tool has some logic that parses and modifies the original Clang command-line. The goal is to setup `DependencyOutputOptions` by injecting `-M -MT <target>` and prevent the creation of output files.

This patch moves the logic into the `DependencyScanning` library, and uses the parsed `CompilerInvocation` instead of the raw command-line. The code simpler and can be used from the C++ API as well.

The `-o /dev/null` arguments are not necessary, since the `DependencyScanning` library only runs a preprocessing action, so there's no way it'll produce an actual object file.

Related: The `-M` argument implies `-w`, which would appear on the command-line of modular dependencies even though it was not on the original TU command line (see D104036).

Some related tests were updated.

Reviewed By: arphaman

Differential Revision: https://reviews.llvm.org/D104030
The file was modifiedclang/test/ClangScanDeps/modules.cpp
The file was modifiedclang/tools/clang-scan-deps/ClangScanDeps.cpp
The file was modifiedclang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
The file was modifiedclang/test/ClangScanDeps/regular_cdb.cpp
The file was modifiedclang/test/ClangScanDeps/modules-pch.c
Commit cf7d9704688db746b26d739a6e154ad54b6b676e by Jan Svoboda
[clang][deps] Move injection of `-Wno-error` from `clang-scan-deps` to `DependencyScanning` library

This moves another piece of logic specific to `clang-scan-deps` into the `DependencyScanning` library. This makes it easier to check how the original command-line looked like in the library and will enable the library to stop inventing `-Wno-error` for modular dependencies (see D104036).

Reviewed By: arphaman

Differential Revision: https://reviews.llvm.org/D104031
The file was modifiedclang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
The file was modifiedclang/tools/clang-scan-deps/ClangScanDeps.cpp
Commit 6c6dcfc4ce750bb7dc15d0a4ad631c66beed70d4 by Jan Svoboda
[clang][deps] Move enabling system header deps from `clang-scan-deps` to `DependencyScanning` library

This patch moves enabling system header deps from `clang-scan-deps` into the `DependencyScanning` library. This will make it easier to preserve semantics of the original TU command-line for modular dependencies (see D104036).

Reviewed By: arphaman

Differential Revision: https://reviews.llvm.org/D104033
The file was modifiedclang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
The file was modifiedclang/tools/clang-scan-deps/ClangScanDeps.cpp
Commit 9e77526d467340ba4486a471c9ef3f7c859f2b60 by flo
[VPlan] Add additional tests for region merging.

Add additional tests suggested in D100260.

Also drop the unneeded `indvars.` prefix from induction phi name.
The file was modifiedllvm/test/Transforms/LoopVectorize/vplan-sink-scalars-and-merge.ll
Commit 1d8882b5e44e577f226b7a5a83c27df3b16b3ab6 by Jan Svoboda
[clang][deps] Fix failing modules.cpp test

Commit d8bab69ead22a10dc4cdb2e36f6ea6fdfe774e2e updated the ClangScanDeps/modules.cpp test. The new `{{.*}}` regex is supposed to only match `modules_cdb_input.o`, `a.o` or `b.o`. However, due to non-determinism, this can sometimes also match `modules_cdb_input2.o`, causing match failure on the next line. This commit changes the regex to only match one of the three valid cases.

Buildbot failure: https://lab.llvm.org/buildbot/#/builders/109/builds/16675
The file was modifiedclang/test/ClangScanDeps/modules.cpp
Commit 11e2922bb7adbbca17c3a0f44779aa87dbc64b42 by Raphael Isemann
[lldb][docs] Document SBType

This documents the behaviour of the different SBType functions with notes for
the language-specific behaviour for C/C++/Objective-C. All of this reflects the
current behaviour of LLDB (even though that also means some functions behave
kinda weird but at least they are now documented to be weird)

Reviewed By: #lldb, mib

Differential Revision: https://reviews.llvm.org/D103454
The file was modifiedlldb/bindings/interface/SBType.i
Commit 41115efca642981c2165cdf9ef2b2148605faa12 by Jan Svoboda
[clang][deps] NFC: Check the correct context hashes in tests

The `clang-scan-deps` tests for the full output format were written under the assumption that most TUs/modules have the same context hash. This is no longer true, since we're changing the original compilation options. This patch updates the tests, which no longer conflate multiple context hashes into a single FileCheck variable.
The file was modifiedclang/test/ClangScanDeps/modules-inferred.m
The file was modifiedclang/test/ClangScanDeps/modules-full.cpp
Commit 80c0c639687ef52f5c432ea059ff9cb53125d08e by Jan Svoboda
[clang][deps] Prevent unintended modifications of the original TU command-line

One of the goals of the dependency scanner is to generate command-lines that can be used to explicitly build modular dependencies of a translation unit. The only modifications to these command-lines should be for the purposes of explicit modular build.

However, the current version of dependency scanner leaks its implementation details into the command-lines.

The first problem is that the `clang-scan-deps` tool adjusts the original textual command-line (adding `-Eonly -M -MT <target> -sys-header-deps -Wno-error -o /dev/null `, removing `--serialize-diagnostics`) in order to set up the `DependencyScanning` library. This has been addressed in D103461, D104012, D104030, D104031, D104033. With these patches, the `DependencyScanning` library receives the unmodified `CompilerInvocation`, sets it up and uses it for the implicit modular build.

Finally, to prevent leaking the implementation details to the resulting command-lines, this patch generates them from the **original** unmodified `CompilerInvocation` rather than from the one that drives the implicit build.

Reviewed By: dexonsmith

Differential Revision: https://reviews.llvm.org/D104036
The file was addedclang/test/ClangScanDeps/preserved-args.c
The file was modifiedclang/lib/Tooling/DependencyScanning/DependencyScanningWorker.cpp
The file was addedclang/test/ClangScanDeps/Inputs/preserved-args/tu.c
The file was modifiedclang/lib/Tooling/DependencyScanning/ModuleDepCollector.cpp
The file was modifiedclang/include/clang/Tooling/DependencyScanning/ModuleDepCollector.h
The file was addedclang/test/ClangScanDeps/Inputs/preserved-args/cdb.json.template
The file was addedclang/test/ClangScanDeps/Inputs/preserved-args/mod.h
The file was addedclang/test/ClangScanDeps/Inputs/preserved-args/module.modulemap
Commit ac031c8db2ce454a9b08f23192ce698e8bde4447 by david.spickett
Revert "[lldb] Set return status to failed when adding a command error" (and fixups)

This reverts commit f583029da3d6dbabe82f48b160227eb0120abd33,
0f94d68a2e15d50796439f20bcb508b95931d2ae and
a2363c0cf9b6a9a81c76ac652da667f73845d38b.

Due to test failures from incorrect SB API usage.
The file was addedlldb/test/Shell/Commands/command-backtrace.test
The file was modifiedlldb/source/Interpreter/CommandReturnObject.cpp
The file was modifiedlldb/test/API/commands/register/register/register_command/TestRegisters.py
The file was removedlldb/test/Shell/Commands/command-backtrace-parser-1.test
The file was removedlldb/test/Shell/Commands/command-backtrace-parser-2.test
Commit 8e93aa304b3fbe57bb7d22f63681f1b9758e63a9 by Louis Dionne
[libc++] Refactor the tests for std::prev, next and advance

This started as an attempt to fix a GCC 11 warning of misplaced parentheses.
I then noticed that trying to fix the parentheses warning actually triggered
errors in the tests, showing that we were incorrectly assuming that the
implementation of ranges::advance was using operator+= or operator-=.

This commit fixes that issue and makes the tests easier to follow by
localizing the assertions it makes.

Differential Revision: https://reviews.llvm.org/D103272
The file was modifiedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.next/iterator_count_sentinel.pass.cpp
The file was modifiedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.prev/iterator_count.pass.cpp
The file was addedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.advance/iterator_count_sentinel.pass.cpp
The file was addedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.advance/iterator_sentinel.pass.cpp
The file was addedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.advance/iterator_count.pass.cpp
The file was removedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.prev/constraints.verify.cpp
The file was modifiedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.next/iterator_count.pass.cpp
The file was modifiedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.prev/iterator_count_sentinel.pass.cpp
The file was modifiedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.next/iterator_sentinel.pass.cpp
The file was modifiedlibcxx/include/__iterator/advance.h
The file was addedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.next/constraints.compile.pass.cpp
The file was removedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.prev/check_round_trip.h
The file was addedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.prev/constraints.compile.pass.cpp
The file was modifiedlibcxx/test/support/test_iterators.h
The file was modifiedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.next/iterator.pass.cpp
The file was removedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.advance/advance.pass.cpp
The file was modifiedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.prev/iterator.pass.cpp
The file was modifiedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.prev/special_function.compile.pass.cpp
The file was removedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.next/check_round_trip.h
The file was removedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.next/constraints.verify.cpp
Commit 88e4aae57d4deabf55de534e1d3e0794739f4be6 by uday
[MLIR][NFC] Rename MemRefDataFlow -> AffineScalarReplacement

NFC. Rename MemRefDataFlow -> AffineScalarReplacement and move to
AffineTransforms library. Pass command line rename: -memref-dataflow-opt
-> affine-scalrep. Update outdated pass documentation.

Rationale:
https://llvm.discourse.group/t/move-and-rename-memref-dataflow-opt-lib-transforms-lib-affine-dialect-transforms/3640

Differential Revision: https://reviews.llvm.org/D104190
The file was modifiedmlir/examples/toy/Ch7/toyc.cpp
The file was modifiedmlir/lib/Dialect/Affine/Transforms/CMakeLists.txt
The file was modifiedmlir/examples/toy/Ch5/toyc.cpp
The file was modifiedmlir/include/mlir/Transforms/Passes.h
The file was modifiedmlir/include/mlir/Dialect/Affine/Passes.h
The file was removedmlir/lib/Transforms/MemRefDataFlowOpt.cpp
The file was modifiedmlir/lib/Transforms/CMakeLists.txt
The file was removedmlir/test/Transforms/memref-dataflow-opt.mlir
The file was modifiedmlir/examples/toy/Ch6/toyc.cpp
The file was addedmlir/test/Dialect/Affine/scalrep.mlir
The file was modifiedmlir/include/mlir/Transforms/Passes.td
The file was modifiedmlir/include/mlir/Dialect/Affine/Passes.td
The file was addedmlir/lib/Dialect/Affine/Transforms/AffineScalarReplacement.cpp
Commit f39dcf85f994b464946cd6702bbceadc518ce904 by Jan Svoboda
[clang][deps] NFC: Fix an XFAIL test on Windows

The `sed` command ensures Windows-specific path separators (single and double backslashes) are replaced by forward slashes in the output file. FileCheck can continue using forward slashes in paths this way.
The file was modifiedclang/test/ClangScanDeps/modules-full.cpp
Commit 9f967eed89e66e39909c59ec0246dc2877d75f51 by Louis Dionne
[libc++] NFC: More refactoring in the prev/next/advance tests per review comments
The file was modifiedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.next/iterator_count.pass.cpp
The file was modifiedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.prev/constraints.compile.pass.cpp
The file was modifiedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.prev/iterator.pass.cpp
The file was modifiedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.advance/iterator_sentinel.pass.cpp
The file was modifiedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.next/iterator_count_sentinel.pass.cpp
The file was modifiedlibcxx/test/support/test_iterators.h
The file was modifiedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.next/iterator_sentinel.pass.cpp
The file was modifiedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.advance/iterator_count.pass.cpp
The file was modifiedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.prev/iterator_count_sentinel.pass.cpp
The file was modifiedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.next/constraints.compile.pass.cpp
The file was modifiedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.next/iterator.pass.cpp
The file was modifiedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.prev/iterator_count.pass.cpp
The file was modifiedlibcxx/test/std/iterators/iterator.primitives/range.iter.ops/range.iter.ops.advance/iterator_count_sentinel.pass.cpp
Commit bb8ce25e88218be60d2a4ea9c9b0b721809eff27 by jeroen.dobbelaere
Intrinsic::getName: require a Module argument

Ensure that we provide a `Module` when checking if a rename of an intrinsic is necessary.

This fixes the issue that was detected by https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=32288
(as mentioned by @fhahn), after committing D91250.

Note that the `LLVMIntrinsicCopyOverloadedName` is being deprecated in favor of `LLVMIntrinsicCopyOverloadedName2`.

Reviewed By: nikic

Differential Revision: https://reviews.llvm.org/D99173
The file was modifiedllvm/lib/CodeGen/ReplaceWithVeclib.cpp
The file was modifiedllvm/include/llvm/IR/Intrinsics.h
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp
The file was modifiedllvm/lib/Transforms/Scalar/LowerMatrixIntrinsics.cpp
The file was modifiedllvm/lib/IR/AutoUpgrade.cpp
The file was modifiedllvm/include/llvm-c/Core.h
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
The file was modifiedllvm/lib/IR/Core.cpp
The file was modifiedllvm/lib/CodeGen/MachineOperand.cpp
The file was modifiedllvm/docs/ReleaseNotes.rst
The file was modifiedllvm/lib/IR/Function.cpp
The file was modifiedllvm/test/Assembler/auto_upgrade_intrinsics.ll

Summary

  1. [zorg] Cleanup clang-cmake-{armv7,aarch64}-quick bots (details)
  2. [zorg] Build all targets on Linaro-maintained bots (details)
  3. [zorg] Add AArch64 SVE vector-length-specific (VLS) bots (details)
  4. [zorg] Rename Linaro's AArch64 and ARM bots to use consistent names (details)
  5. [zorg] Remove settings that match defaults from Linaro bots (details)
Commit 3f8251ff00a50c67bc04a500d674bd51bb4d66e8 by maxim.kuvyrkov
[zorg] Cleanup clang-cmake-{armv7,aarch64}-quick bots

Run "ninja check" for armv7 bot and don't pretend we run
LNT testsuite for the aarch64 bot.

Reviewed By: rovka, DavidSpickett

Differential Revision: https://reviews.llvm.org/D103468
The file was modifiedbuildbot/osuosl/master/config/builders.py
Commit 986da61015dc684d43a1c3b1849726c72fcf1592 by maxim.kuvyrkov
[zorg] Build all targets on Linaro-maintained bots

... not just AArch64 and ARM.  Make an exception for the quick
bots, which build a single target.

Reviewed By: rovka, zatrazz

Differential Revision: https://reviews.llvm.org/D103469
The file was modifiedbuildbot/osuosl/master/config/builders.py
Commit 2f6844e02cae962a4dd6ddf2f4ef279900e77fa6 by maxim.kuvyrkov
[zorg] Add AArch64 SVE vector-length-specific (VLS) bots

We add 1-stage bot that tests SVE support by building/running testsuite,
and 2-stage bot that additionally builds 2nd stage compiler with SVE.

Reviewed By: rovka

Differential Revision: https://reviews.llvm.org/D103470
The file was modifiedbuildbot/osuosl/master/config/workers.py
The file was modifiedbuildbot/osuosl/master/config/builders.py
Commit 89bc08fea5e20fdf8fb18c19c48f0046499f20b5 by maxim.kuvyrkov
[zorg] Rename Linaro's AArch64 and ARM bots to use consistent names

This will simplify Linaro's buildbot maintenance scripts.  We also
remove now-unused AArch64 and ARM libcxx workers, since these have
been migrated to buildkite a few months ago.

Reviewed By: DavidSpickett

Differential Revision: https://reviews.llvm.org/D103957
The file was modifiedbuildbot/osuosl/master/config/workers.py
The file was modifiedbuildbot/osuosl/master/config/builders.py
Commit 7b33ebd712c3a7d5d80f247bbc4ff844dc541304 by maxim.kuvyrkov
[zorg] Remove settings that match defaults from Linaro bots

Remove from arguments of ClangBuilder.getClangCMakeBuildFactory
- checkout_compiler_rt=True
- checkout_lld=True
- test=True
- useTwoStage=False
- testStage1=True
All these are defaults anyway.

Reviewed By: DavidSpickett

Differential Revision: https://reviews.llvm.org/D103963
The file was modifiedbuildbot/osuosl/master/config/builders.py