SuccessChanges

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

Summary

  1. Allow newlines in AST Matchers in clang-query files (details)
  2. Revert "Allow newlines in AST Matchers in clang-query files" (details)
  3. Revert "[msan] Check qsort input." (details)
  4. Allow newlines in AST Matchers in clang-query files (details)
  5. [X86] Add custom widening for v2f64->v2i32 strict_fp_to_uint with (details)
  6. [ELF] Improve the condition to create .interp (details)
Commit 6a3ecf4dc7ec299394e71b3124df2b3a34ed4ac3 by steveire
Allow newlines in AST Matchers in clang-query files
Reviewers: aaron.ballman
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D71842
The file was modifiedclang/lib/ASTMatchers/Dynamic/Parser.cpp
The file was modifiedclang-tools-extra/clang-query/tool/ClangQuery.cpp
The file was modifiedclang-tools-extra/clang-query/QueryParser.cpp
The file was modifiedclang-tools-extra/clang-query/Query.cpp
The file was modifiedclang/unittests/ASTMatchers/Dynamic/ParserTest.cpp
The file was modifiedclang-tools-extra/clang-query/Query.h
The file was modifiedclang-tools-extra/unittests/clang-query/QueryParserTest.cpp
The file was modifiedclang/include/clang/ASTMatchers/Dynamic/Parser.h
Commit 831b636861ea33c3cc1c1c28384fb1800facf792 by steveire
Revert "Allow newlines in AST Matchers in clang-query files"
This reverts commit 6a3ecf4dc7ec299394e71b3124df2b3a34ed4ac3.
The file was modifiedclang/unittests/ASTMatchers/Dynamic/ParserTest.cpp
The file was modifiedclang/lib/ASTMatchers/Dynamic/Parser.cpp
The file was modifiedclang-tools-extra/clang-query/tool/ClangQuery.cpp
The file was modifiedclang/include/clang/ASTMatchers/Dynamic/Parser.h
The file was modifiedclang-tools-extra/clang-query/Query.cpp
The file was modifiedclang-tools-extra/clang-query/QueryParser.cpp
The file was modifiedclang-tools-extra/clang-query/Query.h
The file was modifiedclang-tools-extra/unittests/clang-query/QueryParserTest.cpp
Commit 04926e67fda210c9709da4f8672ac0b5147ebb90 by eugenis
Revert "[msan] Check qsort input."
This change breaks LLVM bootstrap with ASan and MSan.
FAILED: lib/ToolDrivers/llvm-lib/Options.inc OptParser.td:137:1: error:
Option is equivalent to def INPUT : Option<[], "<input>", KIND_INPUT>;
^ OptParser.td:137:1: error: Other defined here def INPUT : Option<[],
"<input>", KIND_INPUT>;
This reverts commit caa48a6b88aeed8ae80e6ddb1eae8c6a7cbe260b.
The file was modifiedcompiler-rt/test/msan/qsort.cpp
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_common_interceptors.inc
Commit 522ee29a4fb3814db604b585c8637247477ec057 by steveire
Allow newlines in AST Matchers in clang-query files
Reviewers: aaron.ballman
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D71842
The file was modifiedclang-tools-extra/clang-query/QueryParser.cpp
The file was modifiedclang-tools-extra/clang-query/Query.h
The file was modifiedclang-tools-extra/clang-query/tool/ClangQuery.cpp
The file was modifiedclang/lib/ASTMatchers/Dynamic/Parser.cpp
The file was modifiedclang-tools-extra/unittests/clang-query/QueryParserTest.cpp
The file was modifiedclang/unittests/ASTMatchers/Dynamic/ParserTest.cpp
The file was modifiedclang/include/clang/ASTMatchers/Dynamic/Parser.h
The file was modifiedclang-tools-extra/clang-query/Query.cpp
Commit bb0138729b8d4af3d8bd888c821ff79f1350f045 by craig.topper
[X86] Add custom widening for v2f64->v2i32 strict_fp_to_uint with
avx512f, but not avx512vl.
AVX512F added instruction for vector fp_to_uint conversions. With
AVX512VL we can use a specific instruction that does v2f64->v4i32 with
zeroes in the 2 extra elements. For non-strict nodes without AVX512VL we
relied on type legalization to turn it to v4f64->v4i32 which would later
be widened by op legalization to v8f64->v8i32. But type legalization
doesn't currently widen strict nodes since it doesn't know how to safely
and efficiently pad the extra elements. But for X86 we know padding with
zeroes is safe and efficient so do that ourselves.
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
The file was modifiedllvm/test/CodeGen/X86/vector-constrained-fp-intrinsics.ll
The file was modifiedllvm/test/CodeGen/X86/vec-strict-fptoint-128.ll
Commit 1417558e4a61794347c6bfbafaff7cd96985b2c3 by maskray
[ELF] Improve the condition to create .interp
Similar to rL362355, but with the `!config->shared` guard.
(1) {gcc,clang} -fuse-ld=bfd -pie -fPIE -nostdlib a.c => .interp created
(2) {gcc,clang} -fuse-ld=lld -pie -fPIE -nostdlib a.c => .interp not
created
(3) {gcc,clang} -fuse-ld=lld -pie -fPIE -nostdlib a.c a.so => .interp
created
The inconsistency of (2) is due to the condition
`!Config->SharedFiles.empty()`. To make lld behave more like ld.bfd, we
could change the condition to:
    config->hasDynSymTab && !config->dynamicLinker.empty() &&
script->needsInterpSection();
However, that would bring another inconsistency as can be observed with:
(4) {gcc,clang} -fuse-ld=bfd -no-pie -nostdlib a.c => .interp not
created
The file was modifiedlld/test/ELF/dynamic-linker.s
The file was modifiedlld/test/ELF/ppc64-func-entry-points.s
The file was modifiedlld/ELF/Writer.cpp