SuccessChanges

Summary

  1. [msan] Skip memcpy interceptor called by gethostname (details)
  2. Sema: add support for `__attribute__((__swift_private__))` (details)
  3. Add the ability to write target stop-hooks using the ScriptInterpreter. (details)
  4. [AArch64][SVE] Drop "argmemonly" from gather/scatter with vector base. (details)
  5. [TRE][NFC] Refactor Basic Block Processing (details)
  6. C API: functions to get mask of a ShuffleVector (details)
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 (diff)
The file was modifiedcompiler-rt/lib/msan/msan_interceptors.cpp (diff)
The file was modifiedcompiler-rt/lib/msan/tests/msan_test.cpp (diff)
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 (diff)
The file was addedclang/test/AST/attr-swift_private.m
The file was addedclang/test/SemaObjC/attr-swift_private.m
The file was modifiedclang/include/clang/Basic/Attr.td (diff)
The file was modifiedclang/lib/Sema/SemaDeclAttr.cpp (diff)
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/docs/use/python-reference.rst (diff)
The file was modifiedlldb/bindings/python/python-wrapper.swig (diff)
The file was modifiedlldb/source/Commands/Options.td (diff)
The file was modifiedlldb/include/lldb/Target/Target.h (diff)
The file was modifiedlldb/bindings/python/python-swigsafecast.swig (diff)
The file was modifiedlldb/source/Commands/CommandObjectTarget.cpp (diff)
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h (diff)
The file was modifiedlldb/test/API/commands/target/stop-hooks/TestStopHooks.py (diff)
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp (diff)
The file was addedlldb/test/Shell/Commands/Inputs/stop_hook.py
The file was modifiedlldb/include/lldb/Symbol/SymbolContext.h (diff)
The file was modifiedlldb/include/lldb/Interpreter/ScriptInterpreter.h (diff)
The file was modifiedlldb/source/Symbol/SymbolContext.cpp (diff)
The file was modifiedlldb/source/Target/Target.cpp (diff)
The file was addedlldb/test/API/commands/target/stop-hooks/TestStopHookScripted.py
The file was modifiedlldb/test/API/commands/target/stop-hooks/main.c (diff)
The file was addedlldb/test/API/commands/target/stop-hooks/stop_hook.py
The file was addedlldb/test/Shell/Commands/command-stop-hook-output.test
The file was modifiedlldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp (diff)
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/test/Transforms/LICM/AArch64/sve-load-hoist.ll (diff)
The file was modifiedllvm/include/llvm/IR/IntrinsicsAArch64.td (diff)
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 (diff)
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/lib/IR/Core.cpp (diff)
The file was modifiedllvm/tools/llvm-c-test/main.c (diff)
The file was modifiedllvm/include/llvm-c/Core.h (diff)
The file was modifiedllvm/tools/llvm-c-test/echo.cpp (diff)
The file was modifiedllvm/test/Bindings/llvm-c/echo.ll (diff)