SuccessChanges

Summary

  1. [InstCombine] Fix test name to match type. NFCI. (details)
  2. [InstCombine] matchRotate - support (uniform) constant rotation amounts (PR46895) (details)
  3. Fix copy+paste typo in doxygen parameter name to fix Wdocumentation. NFCI. (details)
  4. Revert "[IRSim] Adding basic implementation of llvm-sim." (details)
  5. [lsan] Add interceptor for pthread_detach. (details)
  6. Add support for firmware/standalone LC_NOTE "main bin spec" corefiles (details)
  7. [msan] Skip memcpy interceptor called by gethostname (details)
  8. Sema: add support for `__attribute__((__swift_private__))` (details)
  9. Add the ability to write target stop-hooks using the ScriptInterpreter. (details)
  10. [AArch64][SVE] Drop "argmemonly" from gather/scatter with vector base. (details)
  11. [TRE][NFC] Refactor Basic Block Processing (details)
  12. C API: functions to get mask of a ShuffleVector (details)
Commit 994ef4e7bb22ccdc871ee876207e529ed118f114 by llvm-dev
[InstCombine] Fix test name to match type. NFCI.

We're testing a <2 x i36> not <2 x i16>
The file was modifiedllvm/test/Transforms/InstCombine/rotate.ll
Commit 9ff9c1d8ee1d412f088b0fc9ea1b5c2cffe95c88 by llvm-dev
[InstCombine] matchRotate - support (uniform) constant rotation amounts (PR46895)

This patch adds handling of rotation patterns with constant shift amounts - the next bit will be how we want to support non-uniform constant vectors.

Differential Revision: https://reviews.llvm.org/D87452
The file was modifiedllvm/test/Transforms/InstCombine/rotate.ll
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
The file was modifiedllvm/test/Transforms/InstCombine/or-concat.ll
The file was modifiedllvm/test/Transforms/InstCombine/fsh.ll
The file was modifiedllvm/test/Transforms/InstCombine/bswap.ll
Commit 7fa464f33d723051850f1d5785a93d5d2d6cd58f by llvm-dev
Fix copy+paste typo in doxygen parameter name to fix Wdocumentation. NFCI.
The file was modifiedllvm/include/llvm/Analysis/IRSimilarityIdentifier.h
Commit 69c6f6be07e4db11f2aca91ad7bbc0db1e9044d6 by andrew.litteken
Revert "[IRSim] Adding basic implementation of llvm-sim."

This reverts commit 15645d044bcfe2a0f63156048b302f997a717688.
The file was removedllvm/test/tools/llvm-sim/Inputs/sim1.ll
The file was removedllvm/test/tools/llvm-sim/single-sim-file.test
The file was removedllvm/tools/llvm-sim/CMakeLists.txt
The file was removedllvm/test/tools/llvm-sim/single-sim.test
The file was removedllvm/tools/llvm-sim/LLVMBuild.txt
The file was removedllvm/test/tools/llvm-sim/fail-cases.test
The file was removedllvm/tools/llvm-sim/llvm-sim.cpp
The file was modifiedllvm/tools/LLVMBuild.txt
Commit a83eb048cb9a75da7a07a9d5318bbdbf54885c87 by mvanotti
[lsan] Add interceptor for pthread_detach.

This commit adds an interceptor for the pthread_detach function,
calling into ThreadRegistry::DetachThread, allowing for thread contexts
to be reused.

Without this change, programs may fail when they create more than 8K
threads.

Fixes: https://bugs.llvm.org/show_bug.cgi?id=47389

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D88184
The file was modifiedcompiler-rt/lib/lsan/lsan_thread.cpp
The file was modifiedcompiler-rt/lib/lsan/lsan_thread.h
The file was addedcompiler-rt/test/lsan/TestCases/many_threads_detach.cpp
The file was modifiedcompiler-rt/lib/lsan/lsan_interceptors.cpp
Commit 1bec6eb3f5cba594698bae5b2789744e0c8ee5f2 by Jason Molenda
Add support for firmware/standalone LC_NOTE "main bin spec" corefiles

When a Mach-O corefile has an LC_NOTE "main bin spec" for a
standalone binary / firmware, with only a UUID and no load
address, try to locate the binary and dSYM by UUID and if
found, load it at offset 0 for the user.

Add a test case that tests a firmware/standalone corefile
with both the "kern ver str" and "main bin spec" LC_NOTEs.

<rdar://problem/68193804>

Differential Revision: https://reviews.llvm.org/D88282
The file was modifiedlldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.cpp
The file was modifiedlldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp
The file was addedlldb/test/API/macosx/lc-note/firmware-corefile/main.c
The file was addedlldb/test/API/macosx/lc-note/firmware-corefile/Makefile
The file was addedlldb/test/API/macosx/lc-note/firmware-corefile/bout.mk
The file was modifiedlldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h
The file was addedlldb/test/API/macosx/lc-note/firmware-corefile/create-empty-corefile.cpp
The file was addedlldb/test/API/macosx/lc-note/firmware-corefile/TestFirmwareCorefiles.py
The file was modifiedlldb/include/lldb/Symbol/ObjectFile.h
Commit 152ff3772c2bc4463555fb5dbb75f9b0dcc700f5 by Vitaly Buka
[msan] Skip memcpy interceptor called by gethostname

No test as reproducer requires particular glibc build.

Reviewed By: eugenis

Differential Revision: https://reviews.llvm.org/D88284
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_errno_codes.h
The file was modifiedcompiler-rt/lib/msan/msan_interceptors.cpp
The file was modifiedcompiler-rt/lib/msan/tests/msan_test.cpp
Commit 58cdbf518b6ebaee59d0492375e2e8f7da87ca41 by Saleem Abdulrasool
Sema: add support for `__attribute__((__swift_private__))`

This attribute allows declarations to be restricted to the framework
itself, enabling Swift to remove the declarations when importing
libraries.  This is useful in the case that the functions can be
implemented in a more natural way for Swift.

This is based on the work of the original changes in
https://github.com/llvm/llvm-project-staging/commit/8afaf3aad2af43cfedca7a24cd817848c4e95c0c

Differential Revision: https://reviews.llvm.org/D87720
Reviewed By: Aaron Ballman
The file was modifiedclang/include/clang/Basic/AttrDocs.td
The file was modifiedclang/lib/Sema/SemaDeclAttr.cpp
The file was modifiedclang/include/clang/Basic/Attr.td
The file was addedclang/test/AST/attr-swift_private.m
The file was addedclang/test/SemaObjC/attr-swift_private.m
Commit b65966cff65bfb66de59621347ffd97238d3f645 by jingham
Add the ability to write target stop-hooks using the ScriptInterpreter.

Differential Revision: https://reviews.llvm.org/D88123
The file was modifiedlldb/include/lldb/Target/Target.h
The file was modifiedlldb/source/Commands/Options.td
The file was modifiedlldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp
The file was modifiedlldb/source/Symbol/SymbolContext.cpp
The file was modifiedlldb/source/Commands/CommandObjectTarget.cpp
The file was modifiedlldb/source/Target/Target.cpp
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
The file was modifiedlldb/bindings/python/python-wrapper.swig
The file was modifiedlldb/test/API/commands/target/stop-hooks/main.c
The file was addedlldb/test/Shell/Commands/Inputs/stop_hook.py
The file was addedlldb/test/API/commands/target/stop-hooks/TestStopHookScripted.py
The file was modifiedlldb/bindings/python/python-swigsafecast.swig
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
The file was addedlldb/test/API/commands/target/stop-hooks/stop_hook.py
The file was modifiedlldb/include/lldb/Interpreter/ScriptInterpreter.h
The file was modifiedlldb/test/API/commands/target/stop-hooks/TestStopHooks.py
The file was addedlldb/test/Shell/Commands/command-stop-hook-output.test
The file was modifiedlldb/docs/use/python-reference.rst
The file was modifiedlldb/include/lldb/Symbol/SymbolContext.h
Commit 4600e210514281d2ac049e1c46d3f10bd17bf25c by efriedma
[AArch64][SVE] Drop "argmemonly" from gather/scatter with vector base.

The intrinsics don't have any pointer arguments, so "argmemonly" makes
optimizations think they don't write to memory at all.

Differential Revision: https://reviews.llvm.org/D88186
The file was modifiedllvm/include/llvm/IR/IntrinsicsAArch64.td
The file was modifiedllvm/test/Transforms/LICM/AArch64/sve-load-hoist.ll
Commit 48961ba0de3c556b092d434bd86583401495f101 by efriedma
[TRE][NFC] Refactor Basic Block Processing

Simplify and improve readability.

Differential Revision: https://reviews.llvm.org/D82269
The file was modifiedllvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
Commit 51cad041e0cb26597c7ccc0fbfaa349b8fffbcda by efriedma
C API: functions to get mask of a ShuffleVector

This commit fixes a regression (from LLVM 10 to LLVM 11 RC3) in the LLVM
C API.

Previously, commit 1ee6ec2bf removed the mask operand from the
ShuffleVector instruction, storing the mask data separately in the
instruction instead; this reduced the number of operands of
ShuffleVector from 3 to 2. AFAICT, this change unintentionally caused
a regression in the LLVM C API. Specifically, it is no longer possible
to get the mask of a ShuffleVector instruction through the C API. This
patch introduces new functions which together allow a C API user to get
the mask of a ShuffleVector instruction, restoring the functionality
which was previously available through LLVMGetOperand().

This patch also adds tests for this change to the llvm-c-test
executable, which involved adding support for InsertElement,
ExtractElement, and ShuffleVector itself (as well as constant vectors)
to echo.cpp. Previously, vector operations weren't tested at all in
echo.ll.

I also fixed some typos in comments and help-text nearby these changes,
which I happened to spot while developing this patch. Since the typo
fixes are technically unrelated other than being in the same files, I'm
happy to take them out if you'd rather they not be included in the patch.

Differential Revision: https://reviews.llvm.org/D88190
The file was modifiedllvm/tools/llvm-c-test/main.c
The file was modifiedllvm/include/llvm-c/Core.h
The file was modifiedllvm/test/Bindings/llvm-c/echo.ll
The file was modifiedllvm/lib/IR/Core.cpp
The file was modifiedllvm/tools/llvm-c-test/echo.cpp

Summary

  1. [test-suite, CUDA] Compile-time test for builtin variables. (details)
Commit 93b9e85695e583d1c577b4064806ee16a19b723c by tra
[test-suite, CUDA] Compile-time test for builtin variables.
The file was modifiedExternal/CUDA/CMakeLists.txt (diff)
The file was addedExternal/CUDA/builtin_var.cu