SuccessChanges

Summary

  1. [NFC][scudo] Let disableMemoryTagChecksTestOnly to fail (details)
  2. [NFC][scudo] Fix typo in comment (details)
  3. [AIX] Print printable byte list as quoted string (details)
  4. [sanitizer_common] Add StackTrace::PrintTo method (details)
  5. [sanitizer_common] Remove unused var in test (details)
  6. [AMDGPU] Request module used variables from LDS lowering as internal (details)
  7. [APFloat] convertToDouble/Float can work on shorter types (details)
  8. GlobalISel: Help reduce operation width for instruction with two results. (details)
  9. [scudo] Fix compilation after D102886 (details)
  10. [HWASAN] No code changed, Only clang-format for HWAddressSanitizer.cpp (details)
  11. [scudo][NFC] Split BasicTest further (details)
  12. [clang][driver] Treat -flto=[auto,jobserver] as -flto (details)
  13. [lit][gtest] Support SKIPPED tests (details)
  14. [unittests][CodeGen] Mark tests that cannot be executed with GTEST_SKIP() (details)
  15. Allow incomplete template types in unique_function arguments (details)
  16. [lldb] Match test dependencies name to other LLVM projects. (details)
  17. [dexter] Change line label reference syntax to enable label-relative offsets (1/2) (details)
  18. [dexter] Change line label reference syntax to enable label-relative offsets (2/2) (details)
Commit 2c212db4ea42fbbc0e83647da4f62261f775388b by Vitaly Buka
[NFC][scudo] Let disableMemoryTagChecksTestOnly to fail

If this happend we can't run corresponding test.
The file was modifiedcompiler-rt/lib/scudo/standalone/memtag.h
The file was modifiedcompiler-rt/lib/scudo/standalone/tests/combined_test.cpp
Commit 51fe7ddce2beb8444a0dccc638b2a9d8dd63c791 by Vitaly Buka
[NFC][scudo] Fix typo in comment
The file was modifiedcompiler-rt/lib/scudo/standalone/tests/combined_test.cpp
Commit edf4d69d3888d99187ac28cfcd96a93b41623896 by Jinsong Ji
[AIX] Print printable byte list as quoted string

.byte supports string, so if the whole byte list are printable,
we can actually print the string for readability and LIT tests maintainence.

        .byte 'H,'e,'l,'l,'o,',,' ,'w,'o,'r,'l,'d
->
        .byte "Hello, world"

Reviewed By: hubert.reinterpretcast

Differential Revision: https://reviews.llvm.org/D102814
The file was modifiedllvm/test/DebugInfo/XCOFF/empty.ll
The file was modifiedllvm/test/CodeGen/PowerPC/aix-exception.ll
The file was modifiedllvm/test/CodeGen/PowerPC/aix-xcoff-rodata.ll
The file was modifiedclang/test/CodeGenCXX/debug-info-byval.cpp
The file was modifiedllvm/test/DebugInfo/XCOFF/explicit-section.ll
The file was modifiedllvm/test/DebugInfo/XCOFF/function-sections.ll
The file was modifiedllvm/include/llvm/MC/MCAsmInfo.h
The file was modifiedllvm/test/CodeGen/PowerPC/aix-emit-tracebacktable.ll
The file was modifiedllvm/test/CodeGen/PowerPC/aix-emit-tracebacktable-clobber-register.ll
The file was modifiedllvm/lib/MC/MCAsmInfoXCOFF.cpp
The file was modifiedllvm/test/CodeGen/PowerPC/aix-xcoff-data-sections.ll
The file was modifiedllvm/test/CodeGen/PowerPC/aix-xcoff-data.ll
The file was modifiedllvm/test/CodeGen/PowerPC/aix-xcoff-mergeable-str.ll
The file was modifiedllvm/lib/MC/MCAsmStreamer.cpp
Commit d10c1ba487c8b08db079e7698abd503a03c3862d by gbalats
[sanitizer_common] Add StackTrace::PrintTo method

This method is like StackTrace::Print but instead of printing to stderr
it copies its output to a user-provided buffer.

Part of https://reviews.llvm.org/D102451.

Reviewed By: vitalybuka, stephan.yichao.zhao

Differential Revision: https://reviews.llvm.org/D102815
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_stacktrace.h
The file was modifiedcompiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cpp
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_stacktrace_libcdep.cpp
Commit 7c35bf85bfdb52aba6b61433d0c0b058f958202f by gbalats
[sanitizer_common] Remove unused var in test

Reviewed By: stephan.yichao.zhao

Differential Revision: https://reviews.llvm.org/D102898
The file was modifiedcompiler-rt/lib/sanitizer_common/tests/sanitizer_stacktrace_test.cpp
Commit 49028858637946ce8c00f12e41138b5ed7783276 by Stanislav.Mekhanoshin
[AMDGPU] Request module used variables from LDS lowering as internal

I do not see any practical difference but technically
used.* variables are internal and a call to getGlobalVariable
misses true as a second argument. NFC as far as I can tell.

Differential Revision: https://reviews.llvm.org/D102884
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPULowerModuleLDSPass.cpp
Commit c162f086ba632ffaedfe92d63bf21571bc8ae4da by sepavloff
[APFloat] convertToDouble/Float can work on shorter types

Previously APFloat::convertToDouble may be called only for APFloats that
were built using double semantics. Other semantics like single precision
were not allowed although corresponding numbers could be converted to
double without loss of precision. The similar restriction applied to
APFloat::convertToFloat.

With this change any APFloat that can be precisely represented by double
can be handled with convertToDouble. Behavior of convertToFloat was
updated similarly. It make the conversion operations more convenient and
adds support for formats like half and bfloat.

Differential Revision: https://reviews.llvm.org/D102671
The file was modifiedllvm/lib/IR/AsmWriter.cpp
The file was modifiedllvm/unittests/ADT/APFloatTest.cpp
The file was modifiedllvm/lib/Support/APFloat.cpp
The file was modifiedllvm/include/llvm/ADT/APFloat.h
The file was modifiedllvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
The file was modifiedllvm/lib/Analysis/ConstantFolding.cpp
The file was modifiedllvm/lib/IR/Core.cpp
Commit ab60e361c261ae0d65608dc01023766eae2e93b5 by Christudasan.Devadasan
GlobalISel: Help reduce operation width for instruction with two results.

The function `reduceOperationWidth` helps to legalize a vector
operation either by narrowing its type or by scalarizing the
operation itself. It currently supports instructions with one result.
This patch, in addition allows the same for instructions with two
results (for instance, G_SDIVREM).

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D100725
The file was modifiedllvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
Commit 384a460e59bc67d4225b0c7e528dcb0c84668d49 by Vitaly Buka
[scudo] Fix compilation after D102886
The file was modifiedcompiler-rt/lib/scudo/standalone/tests/secondary_test.cpp
Commit 5684851cb0151d61b18c2a34b70203923d1cd9ec by xiang1.zhang
[HWASAN] No code changed, Only clang-format for HWAddressSanitizer.cpp
The file was modifiedllvm/lib/Transforms/Instrumentation/HWAddressSanitizer.cpp
Commit 53ec41a49c2b32bab74bb1ddf435bea4bf4b8a3a by Vitaly Buka
[scudo][NFC] Split BasicTest further

It's still the slowest test under our emulator.
The file was modifiedcompiler-rt/lib/scudo/standalone/tests/combined_test.cpp
Commit 95423c7c990d9100deb0056bd9738717cb2bcf2d by tbaeder
[clang][driver] Treat -flto=[auto,jobserver] as -flto

Instead of ignoring flto=auto and -flto=jobserver, treat them as -flto
and pass -flto=full along.

Differential Revision: https://reviews.llvm.org/D102479
The file was modifiedclang/test/Driver/lto.c
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedclang/lib/Driver/Driver.cpp
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
Commit 21b40f02d253be1b4b1e89c316c80ba6b6a7aa44 by ikudrin
[lit][gtest] Support SKIPPED tests

This updates the googletest format to support tests that use GTEST_SKIP(),
which is now available with the updated googletest framework.

Differential Revision: https://reviews.llvm.org/D102694
The file was modifiedllvm/utils/lit/tests/Inputs/googletest-format/DummySubDir/OneTest.py
The file was modifiedllvm/utils/lit/tests/googletest-format.py
The file was modifiedllvm/utils/lit/lit/formats/googletest.py
Commit 5bbf1feab5a40337ae8288eb9c9d8d37103c463e by ikudrin
[unittests][CodeGen] Mark tests that cannot be executed with GTEST_SKIP()

This helps to distinguish such tests from successfully passed ones.

Differential Revision: https://reviews.llvm.org/D102754
The file was modifiedllvm/unittests/CodeGen/TargetOptionsTest.cpp
The file was modifiedllvm/unittests/CodeGen/SelectionDAGAddressAnalysisTest.cpp
The file was modifiedllvm/unittests/CodeGen/DIETest.cpp
The file was modifiedllvm/unittests/CodeGen/AsmPrinterDwarfTest.cpp
The file was modifiedllvm/unittests/CodeGen/PassManagerTest.cpp
The file was modifiedllvm/unittests/CodeGen/DIEHashTest.cpp
The file was modifiedllvm/unittests/CodeGen/AArch64SelectionDAGTest.cpp
Commit e3eaff10b29d8bb85a0d09e6bb72fbdb7cc9c3ea by yrouban
Allow incomplete template types in unique_function arguments

We can't declare unique_function that has in its arguments a reference to
a template type with an incomplete argument.
For instance, we can't declare unique_function<void(SmallVectorImpl<A>&)>
when A is forward declared.

This is because SFINAE will trigger a hard error in this case, when instantiating
IsSizeLessThanThresholdT with the incomplete type.

This patch specialize AdjustedParamT for references to remove this error.

Committed on behalf of: @math-fehr (Fehr Mathieu)

Reviewed By: DaniilSuchkov, yrouban
The file was modifiedllvm/include/llvm/ADT/FunctionExtras.h
The file was modifiedllvm/unittests/ADT/FunctionExtrasTest.cpp
Commit 5e327785da36fa3a00767cfea0a47fcb0f0814aa by smeenai
[lldb] Match test dependencies name to other LLVM projects.

Other LLVM projects use the suffix `-depends` for the test dependencies,
however LLDB uses `-deps` and seems to be the only project under the
LLVM to do so.

In order to make the projects more homogeneous, switch all the
references to `lldb-test-deps` to `lldb-test-depends`.

Additionally, provide a compatibility target with the old name and
depending on the new name, in order to not break anyone workflow.

Reviewed By: JDevlieghere

Differential Revision: https://reviews.llvm.org/D102889
The file was modifiedlldb/test/API/CMakeLists.txt
The file was modifiedlldb/utils/lldb-repro/CMakeLists.txt
The file was modifiedlldb/test/CMakeLists.txt
The file was modifiedlldb/utils/lldb-dotest/CMakeLists.txt
The file was modifiedlldb/test/Shell/CMakeLists.txt
The file was modifiedlldb/test/Unit/CMakeLists.txt
Commit 723a8ae5dab25b329c6aebc25564b3630e8e7d17 by orlando.hyams
[dexter] Change line label reference syntax to enable label-relative offsets (1/2)

This patch changes how line labels are resolved in order to enable
label-relative offsets to be used in commands. This is a breaking change in
dexter. Instead of using label references directly as argument values, labels
will instead be referenced through a function `ref(str)`.

    // No way to use offsets currently.
    Currently: DexExpectWatchValue('x', '1', on_line='labled_line')
    Patched:   DexExpectWatchValue('x', '1', on_line=ref('labled_line'))
    Patched:   DexExpectWatchValue('x', '1', on_line=ref('labled_line') + 3)

A dexter command is "parsed" by finding the whole command and sending it off to
`eval`. This change adds a function called `ref` to the `eval` globals map that
simply looks up the name and returns an int. If the line name hasn't been
defined, or a name is defined more than once, an error is reported (see
err_bad_label_ref.cpp and err_duplicate_label.cpp). Label offsets can be
achieved by simply writing the desired expression.

The rationale behind removing the existing label referencing mechanic is for
consistency and to simplify the code required to make labels work.

I've separated the update to llvm's dexter tests into another patch for ease of
review here (D101148). Here is a small python script which can be used to
update tests to use the new syntax:
https://gist.github.com/OCHyams/8255efe7757cac266440ed2ba55f1442

If it helps anyone using dexter on downstream tests we can come up with a
deprecation plan instead out outright removing the existing syntax.

Reviewed By: jmorse

Differential Revision: https://reviews.llvm.org/D101147
The file was modifieddebuginfo-tests/dexter/dex/command/ParseCommand.py
The file was addeddebuginfo-tests/dexter/feature_tests/subtools/test/err_duplicate_label.cpp
The file was modifieddebuginfo-tests/dexter/dex/command/commands/DexExpectWatchBase.py
The file was modifieddebuginfo-tests/dexter/dex/command/commands/DexExpectProgramState.py
The file was addeddebuginfo-tests/dexter/feature_tests/subtools/test/label_offset.cpp
The file was modifieddebuginfo-tests/dexter/Commands.md
The file was modifieddebuginfo-tests/dexter/dex/command/commands/DexLimitSteps.py
The file was addeddebuginfo-tests/dexter/feature_tests/subtools/test/err_bad_label_ref.cpp
Commit 98e7911f9517cd9eab0f566ca445096d9e206a75 by orlando.hyams
[dexter] Change line label reference syntax to enable label-relative offsets (2/2)

Update dexter tests to use the new line label reference syntax introduced in D101147.

Updated with:
https://gist.github.com/OCHyams/8255efe7757cac266440ed2ba55f1442

Reviewed By: chrisjackson, jmorse

Differential Revision: https://reviews.llvm.org/D101148
The file was modifieddebuginfo-tests/dexter-tests/memvars/loop.c
The file was modifieddebuginfo-tests/dexter-tests/memvars/struct-dse.c
The file was modifieddebuginfo-tests/dexter/feature_tests/commands/penalty/expect_watch_value.cpp
The file was modifieddebuginfo-tests/dexter-tests/optnone-fastmath.cpp
The file was modifieddebuginfo-tests/dexter-tests/stack-var.c
The file was modifieddebuginfo-tests/dexter/feature_tests/commands/perfect/limit_steps/limit_steps_line_mismatch.cpp
The file was modifieddebuginfo-tests/dexter-tests/memvars/bitcast.c
The file was modifieddebuginfo-tests/dexter/feature_tests/commands/penalty/expect_program_state.cpp
The file was modifieddebuginfo-tests/dexter-tests/memvars/const-branch.c
The file was modifieddebuginfo-tests/dexter/feature_tests/commands/perfect/limit_steps/limit_steps_overlapping_ranges.cpp
The file was modifieddebuginfo-tests/dexter-tests/ctor.cpp
The file was modifieddebuginfo-tests/dexter-tests/hello.c
The file was modifieddebuginfo-tests/dexter-tests/dbg-arg.c
The file was modifieddebuginfo-tests/dexter-tests/memvars/unused-merged-value.c
The file was modifieddebuginfo-tests/dexter-tests/optnone-vectors-and-functions.cpp
The file was modifieddebuginfo-tests/dexter-tests/global-constant.cpp
The file was modifieddebuginfo-tests/dexter-tests/memvars/merged-store.c
The file was modifieddebuginfo-tests/dexter/feature_tests/commands/perfect/limit_steps/limit_steps_expect_loop.cpp
The file was modifieddebuginfo-tests/dexter/feature_tests/commands/perfect/limit_steps/limit_steps_expect_value.cpp
The file was modifieddebuginfo-tests/dexter-tests/memvars/inlining-dse.c
The file was modifieddebuginfo-tests/dexter-tests/memvars/inlining.c
The file was addeddebuginfo-tests/dexter/feature_tests/subtools/test/label_another_line.cpp.rej
The file was modifieddebuginfo-tests/dexter-tests/optnone-struct-and-methods.cpp
The file was modifieddebuginfo-tests/dexter-tests/memvars/ptr-to.c
The file was modifieddebuginfo-tests/dexter-tests/nrvo-string.cpp
The file was modifieddebuginfo-tests/dexter/feature_tests/commands/perfect/limit_steps/unconditional.cpp
The file was modifieddebuginfo-tests/dexter-tests/memvars/inline-escaping-function.c
The file was modifieddebuginfo-tests/dexter-tests/vla.c
The file was modifieddebuginfo-tests/dexter/feature_tests/commands/penalty/expect_watch_type.cpp
The file was modifieddebuginfo-tests/dexter/feature_tests/commands/perfect/expect_watch_value.cpp
The file was modifieddebuginfo-tests/dexter/feature_tests/commands/perfect/limit_steps/limit_steps_check_json_step_count.cpp
The file was modifieddebuginfo-tests/dexter/feature_tests/subtools/test/label_another_line.cpp
The file was modifieddebuginfo-tests/dexter-tests/memvars/ctrl-flow.c
The file was modifieddebuginfo-tests/dexter-tests/inline-line-gap.cpp
The file was modifieddebuginfo-tests/dexter-tests/optnone-loops.cpp
The file was modifieddebuginfo-tests/dexter/feature_tests/subtools/view.cpp
The file was modifieddebuginfo-tests/dexter/feature_tests/commands/perfect/limit_steps/limit_steps_same_line_conditional.cpp
The file was modifieddebuginfo-tests/dexter-tests/nrvo.cpp
The file was modifieddebuginfo-tests/dexter-tests/deferred_globals.cpp
The file was modifieddebuginfo-tests/dexter-tests/optnone-simple-functions.cpp
The file was modifieddebuginfo-tests/dexter-tests/aggregate-indirect-arg.cpp
The file was modifieddebuginfo-tests/dexter-tests/asan.c
The file was modifieddebuginfo-tests/dexter-tests/realigned-frame.cpp
The file was modifieddebuginfo-tests/dexter-tests/asan-deque.cpp
The file was modifieddebuginfo-tests/dexter/feature_tests/commands/perfect/expect_watch_type.cpp
The file was modifieddebuginfo-tests/dexter-tests/memvars/implicit-ptr.c
The file was modifieddebuginfo-tests/dexter/feature_tests/commands/perfect/expect_program_state.cpp
The file was modifieddebuginfo-tests/dexter-tests/namespace.cpp
The file was modifieddebuginfo-tests/dexter/feature_tests/subtools/test/source-root-dir.cpp