SuccessChanges

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

Summary

  1. [IR] fix potential crash in Constant::isElementWiseEqual() (details)
  2. [lldb/Utility] Use assert instead of llvm_unreachable for LLDBAssert (details)
  3. [RISCV] Add Clang frontend support for Bitmanip extension (details)
  4. [test] Make data layout of load-bitcast64.ll explicit, use (details)
  5. Removed PointerUnion3 and PointerUnion4 aliases in favor of the variadic (details)
  6. [ELF] --exclude-libs: don't assign VER_NDX_LOCAL to undefined symbols (details)
Commit c8a14c2d4773841daa303736332d0038ead6f36a by spatel
[IR] fix potential crash in Constant::isElementWiseEqual()
There's only one user of this API currently, and it seems impossible
that it would compare values with different types.
But that's not true in general, so we need to make sure the types are
the same.
As denoted by the FIXME comments, we will also crash on FP values.
That's what brought me here, but we can make that a follow-up patch.
The file was modifiedllvm/unittests/IR/ConstantsTest.cpp
The file was modifiedllvm/lib/IR/Constants.cpp
Commit fd19ffc6a502f8e647696d550abb04a6c8c1b182 by Jonas Devlieghere
[lldb/Utility] Use assert instead of llvm_unreachable for LLDBAssert
llvm_unreachable is marked noreturn so the compiler can assume the code
for printing the error message in release builds isn't hit which defeats
the purpose.
The file was modifiedlldb/source/Utility/LLDBAssert.cpp
Commit 57cf6ee9c84434161088c39a6f8dd2aae14eb12d by scott.egerton
[RISCV] Add Clang frontend support for Bitmanip extension
Summary: This adds the __riscv_bitmanip macro and the 'b' target feature
to enable it.
Reviewers: asb, simoncook, lewis-revill, PaoloS, lenary
Reviewed By: lenary
Subscribers: Jim, rbar, johnrusso, sabuasal, niosHD, kito-cheng,
shiva0217, jrtc27, MaskRay, zzheng, edward-jones, rogfer01,
MartinMosbeck, brucehoult, the_o, rkruppe, PkmX, jocewei, psnobl, benna,
pzheng, sameer.abuasal, apazos, luismarques, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D71553
The file was modifiedclang/lib/Basic/Targets/RISCV.h
The file was modifiedclang/test/Preprocessor/riscv-target-features.c
The file was modifiedclang/lib/Driver/ToolChains/Arch/RISCV.cpp
The file was modifiedclang/lib/Basic/Targets/RISCV.cpp
Commit 0877843ddacca0bea049b65d8a328e5038c72b66 by aqjune
[test] Make data layout of load-bitcast64.ll explicit, use
update_test_checks.py
The file was modifiedllvm/test/Transforms/InstCombine/load-bitcast64.ll
Commit 2948ec5ca98f8593584f2117bc92fe8d75f6f098 by gribozavr
Removed PointerUnion3 and PointerUnion4 aliases in favor of the variadic
template
The file was modifiedllvm/include/llvm/Support/SourceMgr.h
The file was modifiedclang/tools/libclang/CXCursor.h
The file was modifiedclang/include/clang/AST/Decl.h
The file was modifiedclang/include/clang/AST/ExprObjC.h
The file was modifiedclang/unittests/CodeGen/IRMatchers.h
The file was modifiedllvm/lib/Transforms/IPO/LowerTypeTests.cpp
The file was modifiedclang/include/clang/AST/TemplateName.h
The file was modifiedllvm/tools/llvm-pdbutil/InputFile.h
The file was modifiedclang/include/clang/AST/DeclTemplate.h
The file was modifiedclang/lib/AST/ASTContext.cpp
The file was modifiedllvm/include/llvm/ADT/PointerUnion.h
The file was modifiedclang/include/clang/AST/DeclCXX.h
The file was modifiedllvm/unittests/ADT/PointerUnionTest.cpp
Commit 40c5bd4212a51216a489fdaaf59060921d677009 by maskray
[ELF] --exclude-libs: don't assign VER_NDX_LOCAL to undefined symbols
Suggested by Peter Collingbourne.
Non-VER_NDX_GLOBAL versions should not be assigned to defined symbols.
--exclude-libs violates this and can cause a spurious error "cannot
refer to absolute symbol" after D71795.
excludeLibs incorrectly assigns VER_NDX_LOCAL to an undefined weak
symbol => isPreemptible is false => R_PLT_PC is optimized to R_PC => in
isStaticLinkTimeConstant, an error is emitted.
Reviewed By: pcc, grimar
Differential Revision: https://reviews.llvm.org/D72681
The file was modifiedlld/ELF/Driver.cpp
The file was addedlld/test/ELF/exclude-libs-undef.s