FailedChanges

Summary

  1. Add support for firmware/standalone LC_NOTE "main bin spec" corefiles (details)
  2. [msan] Skip memcpy interceptor called by gethostname (details)
  3. Sema: add support for `__attribute__((__swift_private__))` (details)
  4. Add the ability to write target stop-hooks using the ScriptInterpreter. (details)
  5. [AArch64][SVE] Drop "argmemonly" from gather/scatter with vector base. (details)
  6. [TRE][NFC] Refactor Basic Block Processing (details)
  7. C API: functions to get mask of a ShuffleVector (details)
  8. [LangRef] Clarify the behavior of memory access instructions when pointers/sizes aren't well-defined (details)
  9. [RISCV] Fix formatting (NFC) (details)
  10. [IR] Improve the description for Constant::isNormalFP to list all things that are not normal instead of just denormal. NFC (details)
  11. [Object][MachO] Refine the interface of Slice (details)
  12. [RISCV] Scheduler description for Bullet (details)
  13. [RISCV] Update driver tests (details)
  14. [lldb/bindings] Fix -Wformat after D88123 (details)
  15. [AArch64][GlobalISel] Add a few more vector type combinations for shift selection. (details)
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 addedlldb/test/API/macosx/lc-note/firmware-corefile/Makefile
The file was addedlldb/test/API/macosx/lc-note/firmware-corefile/main.c
The file was modifiedlldb/source/Plugins/ObjectFile/Mach-O/ObjectFileMachO.h
The file was modifiedlldb/include/lldb/Symbol/ObjectFile.h
The file was modifiedlldb/source/Plugins/Process/mach-core/ProcessMachCore.cpp
The file was addedlldb/test/API/macosx/lc-note/firmware-corefile/TestFirmwareCorefiles.py
The file was addedlldb/test/API/macosx/lc-note/firmware-corefile/bout.mk
The file was addedlldb/test/API/macosx/lc-note/firmware-corefile/create-empty-corefile.cpp
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/msan/tests/msan_test.cpp
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_errno_codes.h
The file was modifiedcompiler-rt/lib/msan/msan_interceptors.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 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
The file was modifiedclang/lib/Sema/SemaDeclAttr.cpp
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/bindings/python/python-swigsafecast.swig
The file was modifiedlldb/test/API/commands/target/stop-hooks/TestStopHooks.py
The file was addedlldb/test/Shell/Commands/Inputs/stop_hook.py
The file was modifiedlldb/source/Symbol/SymbolContext.cpp
The file was addedlldb/test/Shell/Commands/command-stop-hook-output.test
The file was modifiedlldb/source/Target/Target.cpp
The file was addedlldb/test/API/commands/target/stop-hooks/TestStopHookScripted.py
The file was addedlldb/test/API/commands/target/stop-hooks/stop_hook.py
The file was modifiedlldb/include/lldb/Symbol/SymbolContext.h
The file was modifiedlldb/source/Commands/Options.td
The file was modifiedlldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp
The file was modifiedlldb/test/API/commands/target/stop-hooks/main.c
The file was modifiedlldb/include/lldb/Interpreter/ScriptInterpreter.h
The file was modifiedlldb/include/lldb/Target/Target.h
The file was modifiedlldb/source/Commands/CommandObjectTarget.cpp
The file was modifiedlldb/bindings/python/python-wrapper.swig
The file was modifiedlldb/docs/use/python-reference.rst
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPythonImpl.h
The file was modifiedlldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
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
The file was modifiedllvm/include/llvm/IR/IntrinsicsAArch64.td
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/test/Bindings/llvm-c/echo.ll
The file was modifiedllvm/tools/llvm-c-test/echo.cpp
The file was modifiedllvm/tools/llvm-c-test/main.c
The file was modifiedllvm/include/llvm-c/Core.h
The file was modifiedllvm/lib/IR/Core.cpp
Commit 8bd205bf1de486a32abd956390f6527da4c13e33 by aqjune
[LangRef] Clarify the behavior of memory access instructions when pointers/sizes aren't well-defined

This is a patch to LangRef that clarifies the behavior of load/store/memset/memcpy/memmove when the pointers or sizes are not well-defined
as well.

MSan detects a case when e.g., only lower bits of address are garbage when `-msan-check-access-address` is enabled, and it does not directly conflict with this patch because a C program should not use a pointer with undef bits and reasonable optimizations do not convert a well-defined pointer into a pointer with undef bits.

This patch contains a definition of a well-defined value as well.

Reviewed By: jdoerfert

Differential Revision: https://reviews.llvm.org/D87994
The file was modifiedllvm/docs/LangRef.rst
Commit 0291c471aad4bf8422405586e2bf80cb8df25980 by ebahapo
[RISCV] Fix formatting (NFC)
The file was modifiedllvm/lib/Target/RISCV/RISCVSchedRocket.td
The file was modifiedllvm/lib/Target/RISCV/RISCVSchedule.td
The file was modifiedllvm/lib/Target/RISCV/RISCV.td
Commit b5f46534c4dd5ac32bc3b63685de1d66eec96595 by craig.topper
[IR] Improve the description for Constant::isNormalFP to list all things that are not normal instead of just denormal. NFC
The file was modifiedllvm/include/llvm/IR/Constant.h
Commit 97702c3d9234ddc7dd39d4d107c8bec8765746ce by alexshap
[Object][MachO] Refine the interface of Slice

This patch performs a minor cleanup of the class Slice:
static methods and constructors which take a pointer but assume that
it's not null now take the argument by reference.
NFC.

Test plan: make check-all

Differential revision: https://reviews.llvm.org/D88320
The file was modifiedllvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp
The file was modifiedllvm/lib/Object/MachOUniversalWriter.cpp
The file was modifiedllvm/include/llvm/Object/MachOUniversalWriter.h
The file was modifiedllvm/tools/llvm-lipo/llvm-lipo.cpp
Commit 764c1b7a4db1606438c8daea13c9d2a18190a865 by ebahapo
[RISCV] Scheduler description for Bullet

Add the pipeline model for the RISC-V Bullet micro architecture.

Co-authored-by: Evandro Menezes <evandro.menezes@sifive.com>
The file was addedllvm/lib/Target/RISCV/RISCVSchedBullet.td
The file was modifiedllvm/lib/Target/RISCV/RISCV.td
The file was modifiedllvm/include/llvm/Support/RISCVTargetParser.def
Commit a000580a89718a1ff27a3129e34367b9a3fa1730 by ebahapo
[RISCV] Update driver tests

Add the RISC-V Bullet core to the driver tests.
The file was modifiedclang/test/Misc/target-invalid-cpu-note.c
The file was modifiedclang/test/Driver/riscv-cpus.c
Commit 67782a0f99c6a792c9d60267d42b21f7335814ba by i
[lldb/bindings] Fix -Wformat after D88123
The file was modifiedlldb/bindings/python/python-wrapper.swig
Commit 2dba5461be2d1b35e8461a60a2149281b42fea48 by Amara Emerson
[AArch64][GlobalISel] Add a few more vector type combinations for shift selection.
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/select-vector-shift.mir
The file was modifiedllvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp