SuccessChanges

Changes from Git (git http://labmaster3.local/git/llvm-zorg.git)

Summary

  1. Removed redundant code. (details)
Commit 45ff0650596cd570c2de0e04e7884fd541344471 by gkistanova
Removed redundant code.
The file was modifiedzorg/buildbot/builders/SanitizerBuilder.py

Changes from Git (git http://labmaster3.local/git/llvm-project.git)

Summary

  1. Add proper move ctor/move assign to APValue. NFCI. (details)
  2. [ARM] Regenerate tests. NFC (details)
  3. [ARM] Remove -O3 from mve intrinsic tests. NFC (details)
  4. [X86][AVX] lowerShuffleWithPERMV - adjust binary shuffle masks to account for widening on non-VLX targets (details)
  5. [SmallVector] Move error handling out of line (details)
  6. Thread safety analysis: Test and document release_generic_capability (details)
  7. Thread safety analysis: Improve documentation for scoped capabilities (details)
  8. [mlir] Add Shaped Type, Tensor Type and MemRef Type to python bindings. (details)
  9. [DSE,MemorySSA] Add a few additional debug messages. (details)
  10. [compiler-rt] Implement __clear_cache() on OpenBSD/arm (details)
  11. [ValueTracking] Avoid known bits fallback for non-zero get check (NFCI) (details)
  12. [asan_symbolize] Pass --demangle/--no-demangle instead of --demangle={True,False} (details)
  13. [PowerPC] Implement Vector Expand Mask builtins in LLVM/Clang (details)
  14. [WebAssembly] Fix incorrect assumption of simple value types (details)
  15. [machinesink] add testcase for more sinking - NFC (details)
  16. [ELF] Add a new e_machine value EM_CSKY and add some CSKY relocation types (details)
  17. Move targetHasSVE function to lldbtest.py (details)
  18. When dumping results of StackLifetime, it will print the following (details)
  19. Move NativeRegisterContextLinux/RegisterContextPOSIX*_arm to RegisterInfoAndSetInterface (details)
  20. Extend PyConcreteType to support intermediate base classes. (details)
  21. [Sparc] Select the UltraSPARC instruction set with the external assembler (details)
  22. [scan-view] Explicitly use utf-8 in send_string (details)
  23. [CMake][TableGen] Simplify code by using list(TRANSFORM) (details)
  24. [CMake][Polly] Remove dead CMake code (details)
  25. [CMake][OpenMP] Remove old dead CMake code (details)
  26. [CMake][TableGen] Remove dead CMake version checks (details)
  27. [cmake] Fix build of attribute plugin example on Windows (details)
  28. [KnownBits] Implement accurate unsigned and signed max and min (details)
  29. Add BinaryFormat/ELFRelocs/CSKY.def to LLVM modulemap (details)
Commit 4d0312c8e05be5353c6c29b31036647dceca3ce5 by benny.kra
Add proper move ctor/move assign to APValue. NFCI.

Swapping 64 bytes to make a move isn't cheap.
The file was modifiedclang/lib/AST/APValue.cpp
The file was modifiedclang/include/clang/AST/APValue.h
Commit d866dc374986ac1cff6b4950ea5fa3f8687fdadd by david.green
[ARM] Regenerate tests. NFC
The file was modifiedllvm/test/CodeGen/Thumb2/mve-gather-scatter-tailpred.ll
The file was modifiedllvm/test/CodeGen/Thumb2/mve-pred-vctpvpsel.ll
Commit 667e800bb3a8c1bdda0cabad7549c766b3424064 by david.green
[ARM] Remove -O3 from mve intrinsic tests. NFC
The file was modifiedclang/test/CodeGen/arm-mve-intrinsics/vmaxaq.c
The file was modifiedclang/test/CodeGen/arm-mve-intrinsics/vminnmaq.c
The file was modifiedclang/test/CodeGen/arm-mve-intrinsics/vmaxnmaq.c
The file was modifiedclang/test/CodeGen/arm-mve-intrinsics/vmaxnmq.c
The file was modifiedclang/test/CodeGen/arm-mve-intrinsics/vminaq.c
The file was modifiedclang/test/CodeGen/arm-mve-intrinsics/vminnmq.c
The file was modifiedclang/test/CodeGen/arm-mve-intrinsics/vmaxq.c
The file was modifiedclang/test/CodeGen/arm-mve-intrinsics/vminq.c
Commit ecac5c28089283fbaef1fec758535ca700095a09 by llvm-dev
[X86][AVX] lowerShuffleWithPERMV - adjust binary shuffle masks to account for widening on non-VLX targets

rGabd33bf5eff2 enabled us to pad 128/256-bit shuffles to 512-bit on non-VLX targets, but wasn't updating binary shuffles to account for the new vector width.
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
The file was modifiedllvm/test/CodeGen/X86/shuffle-vs-trunc-512.ll
The file was modifiedllvm/test/CodeGen/X86/shuffle-strided-with-offset-512.ll
Commit 8c386c94749a78392fd763f8449ca3e55f030ffd by benny.kra
[SmallVector] Move error handling out of line

This reduces duplication and avoids emitting ice cold code into every
instance of grow().
The file was modifiedllvm/lib/Support/SmallVector.cpp
The file was modifiedllvm/include/llvm/ADT/SmallVector.h
Commit cc6713a2c35edf17cfb567284cc76b374308e5e4 by aaronpuchert
Thread safety analysis: Test and document release_generic_capability

The old locking attributes had a generic release, but as it turns out
the capability-based attributes have it as well.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D87064
The file was modifiedclang/docs/ThreadSafetyAnalysis.rst
The file was modifiedclang/test/SemaCXX/thread-safety-annotations.h
Commit bbb3baf6205c54231257f64fd18661a13a5c97ee by aaronpuchert
Thread safety analysis: Improve documentation for scoped capabilities

They are for more powerful than the current documentation implies, this
adds

* adopting a lock,
* deferring a lock,
* manually unlocking the scoped capability,
* relocking the scoped capability, possibly in a different mode,
* try-relocking the scoped capability.

Also there is now a generic explanation how attributes on scoped
capabilities work. There has been confusion in the past about how to
annotate them (see e.g. PR33504), hopefully this clears things up.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D87066
The file was modifiedclang/docs/ThreadSafetyAnalysis.rst
Commit 54d432aa6b835ee7e835d0626c15ca5e7eb83ab4 by stellaraccident
[mlir] Add Shaped Type, Tensor Type and MemRef Type to python bindings.

Based on the PyType and PyConcreteType classes, this patch implements the bindings of Shaped Type, Tensor Type and MemRef Type subclasses.
The Tensor Type and MemRef Type are bound as ranked and unranked separately.
This patch adds the ***GetChecked C API to make sure the python side can get a valid type or a nullptr.
Shaped type is not a kind of standard types, it is the base class for vectors, memrefs and tensors, this patch binds the PyShapedType class as the base class of Vector Type, Tensor Type and MemRef Type subclasses.

Reviewed By: stellaraccident

Differential Revision: https://reviews.llvm.org/D87091
The file was modifiedmlir/test/Bindings/Python/ir_types.py
The file was modifiedmlir/include/mlir-c/StandardTypes.h
The file was modifiedmlir/lib/Bindings/Python/IRModules.cpp
The file was modifiedmlir/lib/CAPI/IR/StandardTypes.cpp
Commit 16bb71fd4f898d296397336ecb81b79a7297933c by flo
[DSE,MemorySSA] Add a few additional debug messages.
The file was modifiedllvm/lib/Transforms/Scalar/DeadStoreElimination.cpp
Commit 8542dab909f895a8b6812428bb5e1acf7ea15305 by brad
[compiler-rt] Implement __clear_cache() on OpenBSD/arm
The file was modifiedcompiler-rt/lib/builtins/clear_cache.c
Commit b536cbaac5f85a3a1ab8c971c300cd27e5603fda by nikita.ppv
[ValueTracking] Avoid known bits fallback for non-zero get check (NFCI)

The known bits fall back will never be able to infer a non-null
value here, so don't bother.
The file was modifiedllvm/lib/Analysis/ValueTracking.cpp
Commit ab68517e6b7e51b84c4b0e813a30258ec1ce5da5 by i
[asan_symbolize] Pass --demangle/--no-demangle instead of --demangle={True,False}

`--demangle={True,False}` were accepted but disallowed after llvm-symbolizer's switch to OptTable.
(`--demangle={true,false}` were temporarily supported but they are case sensitive.)
The file was modifiedcompiler-rt/lib/asan/scripts/asan_symbolize.py
Commit efa57f9a7adb11a14b4e0d930f49070c769fa6ac by amy.kwan1
[PowerPC] Implement Vector Expand Mask builtins in LLVM/Clang

This patch implements the vec_expandm function prototypes in altivec.h in order
to utilize the vector expand with mask instructions introduced in Power10.

Differential Revision: https://reviews.llvm.org/D82727
The file was modifiedclang/include/clang/Basic/BuiltinsPPC.def
The file was modifiedclang/test/CodeGen/builtins-ppc-p10vector.c
The file was modifiedllvm/lib/Target/PowerPC/PPCInstrPrefix.td
The file was modifiedllvm/test/CodeGen/PowerPC/p10-vector-mask-ops.ll
The file was modifiedclang/lib/Headers/altivec.h
The file was modifiedllvm/include/llvm/IR/IntrinsicsPowerPC.td
Commit caee15a0ed52471bd329d01dc253ec9be3936c6d by tlively
[WebAssembly] Fix incorrect assumption of simple value types

Fixes PR47375, in which an assertion was triggering because
WebAssemblyTargetLowering::isVectorLoadExtDesirable was improperly
assuming the use of simple value types.

Differential Revision: https://reviews.llvm.org/D87110
The file was addedllvm/test/CodeGen/WebAssembly/pr47375.ll
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
Commit d5c45041f1465f4ecc3828efbbb27aa7b4d23d89 by czhengsz
[machinesink] add testcase for more sinking - NFC
The file was addedllvm/test/CodeGen/PowerPC/sink-down-more-instructions.ll
Commit 69f2c79f2ad2c3ebdb000cb1311612db7bd2bef8 by zixuan.wu
[ELF] Add a new e_machine value EM_CSKY and add some CSKY relocation types

This is the split part of D86269, which add a new ELF machine flag called EM_CSKY and related relocations.
Some target-specific flags and tests for csky can be added in follow-up patches later.

Differential Revision: https://reviews.llvm.org/D86610
The file was modifiedllvm/lib/ObjectYAML/ELFYAML.cpp
The file was modifiedllvm/unittests/Object/ELFObjectFileTest.cpp
The file was modifiedllvm/include/llvm/Object/ELFObjectFile.h
The file was addedllvm/include/llvm/BinaryFormat/ELFRelocs/CSKY.def
The file was modifiedllvm/lib/Object/ELF.cpp
The file was modifiedllvm/include/llvm/BinaryFormat/ELF.h
Commit 9bee13f89085b08e4e8e24c51c11526fcef6efe1 by omair.javaid
Move targetHasSVE function to lldbtest.py

targetHasSVE helper function was added to test for availability of SVE support
by connected platform. We now intend to use this function in other testcases
and I am moving it to a generic location in lldbtest.py to allow usage by
other upcoming testcases.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D86872
The file was modifiedlldb/test/API/commands/register/register/aarch64_sve_registers/rw_access_static_config/TestSVERegisters.py
The file was modifiedlldb/packages/Python/lldbsuite/test/lldbtest.py
Commit 1fd7dc40748b17d8fc47ef1ebede9df61e973056 by dongaxis
When dumping results of StackLifetime, it will print the following
log:

BB  [7, 8): begin {}, end {}, livein {}, liveout {}
BB  [1, 2): begin {}, end {}, livein {}, liveout {}
...

But it is not convenient to know what the basic block is.
So I add the basic block name to it.

Reviewed By: vitalybuka
TestPlan: check-llvm
Differential Revision: https://reviews.llvm.org/D87152
The file was modifiedllvm/lib/Analysis/StackLifetime.cpp
Commit 76953321666617bcace6b067ebdde92dd9313a92 by omair.javaid
Move NativeRegisterContextLinux/RegisterContextPOSIX*_arm to RegisterInfoAndSetInterface

This patch removes register set definitions and other redundant code from
NativeRegisterContextLinux/RegisterContextPOSIX*_arm. Register sets are now
moved under RegisterInfosPOSIX_arm which now uses RegisterInfoAndSetInterface.
This is similar to what we earlier did for AArch64.

Reviewed By: labath

Differential Revision: https://reviews.llvm.org/D86962
The file was modifiedlldb/source/Plugins/Process/FreeBSD/FreeBSDThread.cpp
The file was modifiedlldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.cpp
The file was modifiedlldb/source/Plugins/Process/Utility/RegisterContextPOSIX_arm.cpp
The file was modifiedlldb/source/Plugins/Process/elf-core/ThreadElfCore.cpp
The file was modifiedlldb/source/Plugins/Process/Utility/RegisterContextPOSIX_arm.h
The file was modifiedlldb/source/Plugins/Process/FreeBSD/RegisterContextPOSIXProcessMonitor_arm.h
The file was modifiedlldb/source/Plugins/Process/Utility/RegisterInfoPOSIX_arm.h
The file was modifiedlldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_arm.cpp
The file was modifiedlldb/source/Plugins/Process/elf-core/RegisterContextPOSIXCore_arm.h
The file was modifiedlldb/source/Plugins/Process/FreeBSD/RegisterContextPOSIXProcessMonitor_arm.cpp
The file was modifiedlldb/source/Plugins/Process/Utility/RegisterInfoPOSIX_arm.cpp
The file was modifiedlldb/source/Plugins/Process/Linux/NativeRegisterContextLinux_arm.h
Commit 7403e3ee324018c79d0e55532240952dbaa4fcbe by stellaraccident
Extend PyConcreteType to support intermediate base classes.

* Resolves todos from D87091.
* Also modifies PyConcreteAttribute to follow suite (should be useful for ElementsAttr and friends).
* Adds a test to ensure that the ShapedType base class functions as expected.

Differential Revision: https://reviews.llvm.org/D87208
The file was modifiedmlir/test/Bindings/Python/ir_types.py
The file was modifiedmlir/lib/Bindings/Python/IRModules.cpp
Commit 70523ecfaca692bf5d0192e466c34ae7514624ea by brad
[Sparc] Select the UltraSPARC instruction set with the external assembler

Select the UltraSPARC instruction set with the external assembler on
Linux / FreeBSD / OpenBSD, matches GCC.
The file was modifiedclang/test/Driver/freebsd.c
The file was modifiedclang/test/Driver/openbsd.c
The file was modifiedclang/lib/Driver/ToolChains/Arch/Sparc.cpp
The file was modifiedclang/test/Driver/linux-as.c
Commit b3205e2ace4378600dedba0cc5a42b481c4e22c9 by sguelton
[scan-view] Explicitly use utf-8 in send_string

send_patched_file decodes with utf-8.
The default encoder for python 2 is ascii.

So it is necessary to also change send_string to use utf-8.

Differential Revision: https://reviews.llvm.org/D83984
The file was modifiedclang/tools/scan-view/share/ScanView.py
Commit 80186e4efc92aaa0c279846a438950c7bbe1e022 by raul.tambre
[CMake][TableGen] Simplify code by using list(TRANSFORM)

LLVM requires CMake 3.13.4 so now we can simplify the code.

Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D87193
The file was modifiedllvm/cmake/modules/TableGen.cmake
Commit 098130fa403a82f2a425761bbccdede022fac3ff by raul.tambre
[CMake][Polly] Remove dead CMake code

LLVM requires CMake 3.13.4 so remove code behind checks for an older version.

Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D87192
The file was modifiedpolly/cmake/polly_macros.cmake
The file was modifiedpolly/lib/External/CMakeLists.txt
Commit 21c0e74c9e7fa33153c484a6dabf33b38aede0d1 by raul.tambre
[CMake][OpenMP] Remove old dead CMake code

LLVM requires CMake 3.13.4 so remove code behind checks for an older version.

Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D87191
The file was modifiedopenmp/cmake/OpenMPTesting.cmake
The file was modifiedopenmp/runtime/cmake/LibompCheckFortranFlag.cmake
Commit f4835b94f2cfc89e430263d1807b118e0e937f4d by raul.tambre
[CMake][TableGen] Remove dead CMake version checks

LLVM requires CMake 3.13.4, so remove version checks that are dead code.

Reviewed By: phosek

Differential Revision: https://reviews.llvm.org/D87190
The file was modifiedllvm/cmake/modules/TableGen.cmake
Commit 04ea680a8ccc4f9a4d7333cd712333960348c35b by kbessonova
[cmake] Fix build of attribute plugin example on Windows

Seems '${cmake_2_8_12_PRIVATE}' was removed a long time ago, so it should
be just PRIVATE keyword here.

Reviewed By: john.brawn

Differential Revision: https://reviews.llvm.org/D86091
The file was modifiedclang/examples/Attribute/CMakeLists.txt
Commit 5350e1b5096aa4707aa525baf7398d93b4a4f1a5 by jay.foad
[KnownBits] Implement accurate unsigned and signed max and min

Use the new implementation in ValueTracking, SelectionDAG and
GlobalISel.

Differential Revision: https://reviews.llvm.org/D87034
The file was modifiedllvm/lib/Analysis/ValueTracking.cpp
The file was modifiedllvm/unittests/CodeGen/GlobalISel/KnownBitsTest.cpp
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
The file was modifiedllvm/include/llvm/Support/KnownBits.h
The file was modifiedllvm/lib/Support/KnownBits.cpp
The file was modifiedllvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
The file was modifiedllvm/unittests/Support/KnownBitsTest.cpp
Commit a98b126696ef8edc42d193d2e03048cd0d61ebc2 by Raphael Isemann
Add BinaryFormat/ELFRelocs/CSKY.def to LLVM modulemap
The file was modifiedllvm/include/llvm/module.modulemap