SuccessChanges

Summary

  1. [NFC][memprof] Compile *.c tests as C (details)
  2. [NFC][asan] format ThreadStackContainsAddress (details)
  3. [NFC][memprof] FIx delete[] usage in test (details)
  4. [NFC][asan] Fix include order (details)
  5. [NFC][asan] Split fake_stack() into two funcions (details)
  6. [lld][MachO] Add first bits to support special symbols (details)
  7. Fix some -Wunused-but-set-variable in -DLLVM_ENABLE_ASSERTIONS=off build (details)
  8. [LLDB/API] Expose args and env from SBProcessInfo. (details)
  9. Revert "[gn build] manually port 60e5243e593e (weak asan symbol)" (details)
  10. Update and improve compiler-rt tests for -mllvm -asan_use_after_return=(never|[runtime]|always). (details)
  11. [MC] Add getLSDASection interface (details)
  12. Revert "Update and improve compiler-rt tests for -mllvm -asan_use_after_return=(never|[runtime]|always)." (details)
  13. [lld][MachO] Fix typo in special-symbol-ld-previous.s (details)
  14. [LoopUnroll] Separate peeling from unrolling (details)
Commit 4a91118793391ca529ba1f686a98d405f95ce3ac by Vitaly Buka
[NFC][memprof] Compile *.c tests as C
The file was modifiedcompiler-rt/test/memprof/TestCases/stress_dtls.c
The file was modifiedcompiler-rt/test/memprof/TestCases/test_malloc_load_store.c
Commit 585b9679ad757868e96ced634b60b479206ebb19 by Vitaly Buka
[NFC][asan] format ThreadStackContainsAddress
The file was modifiedcompiler-rt/lib/asan/asan_thread.cpp
Commit 6f122d96f728c36b3f13af441f7bd31a7232b31a by Vitaly Buka
[NFC][memprof] FIx delete[] usage in test
The file was modifiedcompiler-rt/test/memprof/TestCases/test_memintrin.cpp
Commit 64b1cbca1978d7b1984c7e6a21e2dafd46d78571 by Vitaly Buka
[NFC][asan] Fix include order
The file was modifiedcompiler-rt/lib/asan/asan_rtl.cpp
Commit 5b0e50550c0b01d76754eb9a4affe2d1a2505bbc by Vitaly Buka
[NFC][asan] Split fake_stack() into two funcions
The file was modifiedcompiler-rt/lib/asan/asan_fake_stack.cpp
The file was modifiedcompiler-rt/lib/asan/asan_thread.cpp
The file was modifiedcompiler-rt/lib/asan/asan_rtl.cpp
The file was modifiedcompiler-rt/lib/asan/asan_thread.h
Commit 1309c181a85233c80051544f43008963c3d5fe71 by alexshap
[lld][MachO] Add first bits to support special symbols

This diff adds first bits to support special symbols $ld$previous* in LLD.
$ld$* symbols modify properties/behavior of the library
(e.g. its install name, compatibility version or hide/add symbols)
for specific target versions.

Test plan: make check-lld-macho

Differential revision: https://reviews.llvm.org/D103505
The file was modifiedlld/MachO/Writer.cpp
The file was addedlld/test/MachO/special-symbol-ld-previous.s
The file was modifiedlld/MachO/Config.h
The file was modifiedlld/MachO/InputFiles.h
The file was modifiedlld/MachO/InputFiles.cpp
Commit 06e7de795bf19b950693b8dc86fa36f355dc6760 by i
Fix some -Wunused-but-set-variable in -DLLVM_ENABLE_ASSERTIONS=off build
The file was modifiedllvm/lib/Target/X86/X86FastISel.cpp
The file was modifiedllvm/lib/Analysis/BranchProbabilityInfo.cpp
The file was modifiedllvm/lib/Transforms/Utils/LoopRotationUtils.cpp
The file was modifiedllvm/utils/TableGen/X86DisassemblerTables.cpp
The file was modifiedllvm/lib/AsmParser/LLParser.cpp
The file was modifiedllvm/lib/Transforms/Instrumentation/IndirectCallPromotion.cpp
Commit 8d33437d030af27fff21dd3fd0e66893b0148217 by bruce.mitchener
[LLDB/API] Expose args and env from SBProcessInfo.

This is another step towards implementing the equivalent of
`platform process list` and related functionality.

`uint32_t` is used for the argument count and index despite the
underlying value being `size_t` to be consistent with other
index-based access to arguments.

Differential Revision: https://reviews.llvm.org/D103675
The file was modifiedlldb/include/lldb/API/SBProcessInfo.h
The file was modifiedlldb/bindings/interface/SBProcessInfo.i
The file was modifiedlldb/test/API/python_api/process/TestProcessAPI.py
The file was modifiedlldb/source/API/SBProcessInfo.cpp
The file was modifiedlldb/include/lldb/API/SBEnvironment.h
Commit c2f2c1b32c9c8fadc1082aec4066d184b455057f by Vitaly Buka
Revert "[gn build] manually port 60e5243e593e (weak asan symbol)"

Not needed after d8a4a2cb93212c493b7b47663c1cda1103de0bfc.

This reverts commit 00542932fe13ea3b989f40b434399c72f5eca4ec.
The file was modifiedllvm/utils/gn/secondary/compiler-rt/lib/asan/BUILD.gn
Commit 927688a4cd9dcde92e8bf430e6ceefac6ab8c8a0 by Vitaly Buka
Update and improve compiler-rt tests for -mllvm -asan_use_after_return=(never|[runtime]|always).

In addition:
  - optionally add global flag to capture compile intent for UAR:
    __asan_detect_use_after_return_always.
    The global is a SANITIZER_WEAK_ATTRIBUTE.

for issue: https://github.com/google/sanitizers/issues/1394

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D103304
The file was modifiedcompiler-rt/test/asan/TestCases/heavy_uar_test.cpp
The file was modifiedcompiler-rt/lib/asan/asan_interface.inc
The file was modifiedllvm/test/Instrumentation/AddressSanitizer/fake-stack.ll
The file was modifiedcompiler-rt/test/asan/TestCases/uar_and_exceptions.cpp
The file was modifiedllvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
The file was modifiedcompiler-rt/lib/asan/asan_rtl.cpp
The file was modifiedcompiler-rt/lib/asan/weak_symbols.txt
The file was modifiedcompiler-rt/test/asan/TestCases/pass-struct-byval-uar.cpp
The file was modifiedllvm/utils/gn/secondary/compiler-rt/lib/asan/BUILD.gn
The file was modifiedcompiler-rt/test/asan/TestCases/scariness_score_test.cpp
The file was modifiedcompiler-rt/test/asan/TestCases/Posix/stack-use-after-return.cpp
The file was modifiedcompiler-rt/test/asan/TestCases/Linux/uar_signals.cpp
Commit 065a9316aa6089b851cffd214d2cf723d8940164 by alexshap
[MC] Add getLSDASection interface

This diff adds getLSDASection method to MCObjectFileInfo.

Test plan: make check-all

Differential revision: https://reviews.llvm.org/D102298
The file was modifiedllvm/include/llvm/MC/MCObjectFileInfo.h
Commit e3258b0894be23ca820927aa68288404ca167dd4 by Vitaly Buka
Revert "Update and improve compiler-rt tests for -mllvm -asan_use_after_return=(never|[runtime]|always)."

Windows is still broken.

This reverts commit 927688a4cd9dcde92e8bf430e6ceefac6ab8c8a0.
The file was modifiedllvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
The file was modifiedcompiler-rt/lib/asan/weak_symbols.txt
The file was modifiedcompiler-rt/test/asan/TestCases/Linux/uar_signals.cpp
The file was modifiedcompiler-rt/lib/asan/asan_rtl.cpp
The file was modifiedcompiler-rt/test/asan/TestCases/uar_and_exceptions.cpp
The file was modifiedcompiler-rt/lib/asan/asan_interface.inc
The file was modifiedcompiler-rt/test/asan/TestCases/Posix/stack-use-after-return.cpp
The file was modifiedcompiler-rt/test/asan/TestCases/heavy_uar_test.cpp
The file was modifiedcompiler-rt/test/asan/TestCases/pass-struct-byval-uar.cpp
The file was modifiedcompiler-rt/test/asan/TestCases/scariness_score_test.cpp
The file was modifiedllvm/test/Instrumentation/AddressSanitizer/fake-stack.ll
The file was modifiedllvm/utils/gn/secondary/compiler-rt/lib/asan/BUILD.gn
Commit cf29a92b9026a901855ce6998dc96d796c24c57e by alexshap
[lld][MachO] Fix typo in special-symbol-ld-previous.s

Fix typo in the test special-symbol-ld-previous.s. NFC.
The file was modifiedlld/test/MachO/special-symbol-ld-previous.s
Commit db45746821ab01a54f8df033991c3280c4284e3b by nikita.ppv
[LoopUnroll] Separate peeling from unrolling

Loop peeling is currently performed as part of UnrollLoop().
Outside test scenarios, it is always performed with an unroll
count of 1. This means that unrolling doesn't actually do anything
apart from performing post-unroll simplification.

When testing, it's currently possible to specify both an explicit
peel count and an explicit unroll count. This doesn't perform any
sensible operation and may result in miscompiles, see
https://bugs.llvm.org/show_bug.cgi?id=45939.

This patch moves peeling from UnrollLoop() into tryToUnrollLoop(),
so that peeling does not also perform a susequent unroll. We only
run the post-unroll simplifications. Specifying both an explicit
peel count and unroll count is forbidden.

In the future, we may want to support both (non-PGO) peeling a
loop and unrolling it, but this needs to be done by first performing
the peel and then recalculating unrolling heuristics on a now
possibly analyzable loop.

Differential Revision: https://reviews.llvm.org/D103362
The file was addedllvm/test/Transforms/LoopUnroll/peel-loop-and-unroll.ll
The file was modifiedllvm/test/Transforms/LoopUnroll/pr45939-peel-count-and-complete-unroll.ll
The file was modifiedllvm/include/llvm/Transforms/Utils/UnrollLoop.h
The file was modifiedllvm/test/Transforms/LoopUnroll/pr33437.ll
The file was modifiedllvm/lib/Transforms/Scalar/LoopUnrollPass.cpp
The file was modifiedllvm/lib/Transforms/Utils/LoopUnroll.cpp
The file was modifiedllvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp
The file was modifiedllvm/test/Transforms/LoopUnroll/wrong_assert_in_peeling.ll