SuccessChanges

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

Summary

  1. [Attributor][Tests] Copy & use the ArgumentPromotion tests (details)
  2. [NFC][llvm][MIRVRegNamerUtils] Refactoring GetHashableMO into (details)
  3. Move ASTRecordReader into its own header; NFC. (details)
  4. Move ASTRecordWriter into its own header; NFC. (details)
  5. gn build: (manually) merge 6404bd236 and d505e57cc2 (details)
  6. Revert "[clangd] Fall back to selecting token-before-cursor if (details)
  7. gn build: Merge 91dd67ef724 (details)
  8. Fix build with older (still supported) gcc versions. (details)
  9. [AArch64] add tests for fcvtl2; NFC (details)
  10. [clang] Fix modules build after addition of TypeBitCodes.def (details)
  11. [AArch64][test] Fix machine-outliner-size-info.mir after D71168 (details)
Commit 6cc2b1d789172143d9eff98412ee477ad8c7cad7 by johannes
[Attributor][Tests] Copy & use the ArgumentPromotion tests
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/nonzero-address-spaces.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/pr33641_remove_arg_dbgvalue.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/X86/attributes.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/tail.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/naked_functions.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/X86/min-legal-vector-width.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/basictest.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/byval-2.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/reserve-tbaa.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/fp80.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/musttail.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/attrs.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/profile.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/aggregate-promote.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/2008-02-01-ReturnAttrs.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/2008-07-02-array-indexing.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/control-flow2.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/X86/lit.local.cfg
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/invalidation.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/variadic.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/byval.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/pr3085.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/2008-09-08-CGUpdateSelfEdge.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/crash.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/2008-09-07-CGUpdate.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/X86/thiscall.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/pr27568.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/inalloca.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/pr32917.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/control-flow.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/dbg.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/sret.ll
The file was addedllvm/test/Transforms/Attributor/ArgumentPromotion/chained.ll
Commit 816985c12053e0f0654e28e1a517799954ea5360 by puyan
[NFC][llvm][MIRVRegNamerUtils] Refactoring GetHashableMO into
switch-statement.
This refactors the if-statements handling the hashing of various
MachineOperand types into a switch-statement. The purpose is to cover
all the basis for all MachineOperand types while being very deliberate
about which MachineOperand types we are not handling and why (better
added comments). This patch is a NFC redo of
https://reviews.llvm.org/D71396. Much of the changes present in D71396
will come in smaller follow-up patches that will add support for hashing
the MachineOperand types that aren't covered piece-meal with tests for
each new case.
The file was modifiedllvm/lib/CodeGen/MIRVRegNamerUtils.cpp
Commit c2f18315ff53006e44afe065368019e41cb98053 by rjmccall
Move ASTRecordReader into its own header; NFC.
AbstractBasicReader.h has quite a few dependencies already, and that's
only likely to increase.  Meanwhile, ASTRecordReader is really an
implementation detail of the ASTReader that is only used in a small
number of places.
I've kept it in a public header for the use of projects like Swift that
might want to plug in to Clang's serialization framework.
I've also moved OMPClauseReader into an implementation file, although it
can't be made private because of friendship.
The file was modifiedclang/include/clang/Serialization/ASTReader.h
The file was modifiedclang/lib/StaticAnalyzer/Frontend/ModelInjector.cpp
The file was modifiedclang/lib/Serialization/ASTReaderStmt.cpp
The file was addedclang/include/clang/Serialization/ASTRecordReader.h
The file was modifiedclang/lib/Serialization/ASTReaderDecl.cpp
The file was modifiedclang/lib/Serialization/ASTReader.cpp
Commit 2ac702aaf09174432905a9f05b31418a89019437 by rjmccall
Move ASTRecordWriter into its own header; NFC.
Similar motivations to the movement of ASTRecordReader:
AbstractBasicWriter.h already has quite a few dependencies, and it's
going to get pretty large as we generate more and more into it.
Meanwhile, most clients don't depend on this detail of the
implementation and shouldn't need to be recompiled.
I've also made OMPClauseWriter private, like it belongs.
The file was modifiedclang/include/clang/Serialization/ASTWriter.h
The file was modifiedclang/lib/Serialization/ASTWriterStmt.cpp
The file was modifiedclang/lib/Serialization/ASTWriterDecl.cpp
The file was modifiedclang/lib/Serialization/ASTWriter.cpp
The file was addedclang/include/clang/Serialization/ASTRecordWriter.h
Commit 6fe527765a325d6c4ae17b2460faf479d2151fee by thakis
gn build: (manually) merge 6404bd236 and d505e57cc2
The file was modifiedllvm/utils/gn/secondary/clang/lib/AST/BUILD.gn
The file was modifiedllvm/utils/gn/secondary/clang/include/clang/AST/BUILD.gn
The file was modifiedllvm/utils/gn/secondary/clang/utils/TableGen/BUILD.gn
Commit f0604e73a4daa35a10eb17a998657d6c4bd0e971 by thakis
Revert "[clangd] Fall back to selecting token-before-cursor if
token-after-cursor fails."
This reverts commit b60896fad926754f715acc5d771555aaaa577e0f. Breaks
building with gcc:
/usr/include/c++/7/bits/stl_construct.h:75:7: error: use of deleted
function ‘clang::clangd::Tweak::Selection::Selection(const
clang::clangd::Tweak::Selection&)’
    { ::new(static_cast<void*>(__p))
_T1(std::forward<_Args>(__args)...); }
      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from
/home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/llvm/clang-tools-extra/clangd/ClangdServer.h:28:0,
                from
/home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/llvm/clang-tools-extra/clangd/ClangdServer.cpp:9:
/home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/llvm/clang-tools-extra/clangd/refactor/Tweak.h:49:10:
note: ‘clang::clangd::Tweak::Selection::Selection(const
clang::clangd::Tweak::Selection&)’ is implicitly deleted because the
default definition would be ill-formed:
  struct Selection {
         ^~~~~~~~~
/home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/llvm/clang-tools-extra/clangd/refactor/Tweak.h:49:10:
error: use of deleted function
‘clang::clangd::SelectionTree::SelectionTree(const
clang::clangd::SelectionTree&)’ In file included from
/home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/llvm/clang-tools-extra/clangd/refactor/Tweak.h:25:0,
                from
/home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/llvm/clang-tools-extra/clangd/ClangdServer.h:28,
                from
/home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/llvm/clang-tools-extra/clangd/ClangdServer.cpp:9:
/home/buildslave/buildslave/clang-cmake-armv7-selfhost-neon/llvm/clang-tools-extra/clangd/Selection.h:96:3:
note: declared here
  SelectionTree(const SelectionTree &) = delete;
  ^~~~~~~~~~~~~
e.g. here:
http://lab.llvm.org:8011/builders/clang-cmake-armv7-selfhost-neon/builds/2714
http://lab.llvm.org:8011/builders/clang-ppc64be-linux/builds/41866
The file was modifiedclang-tools-extra/clangd/SemanticSelection.cpp
The file was modifiedclang-tools-extra/clangd/refactor/Rename.cpp
The file was modifiedclang-tools-extra/clangd/unittests/SelectionTests.cpp
The file was modifiedclang-tools-extra/clangd/unittests/HoverTests.cpp
The file was modifiedclang-tools-extra/clangd/Selection.h
The file was modifiedclang-tools-extra/clangd/ClangdServer.cpp
The file was modifiedclang-tools-extra/clangd/refactor/Tweak.h
The file was modifiedclang-tools-extra/clangd/unittests/FindTargetTests.cpp
The file was modifiedclang-tools-extra/clangd/Selection.cpp
The file was modifiedclang-tools-extra/clangd/unittests/TweakTesting.cpp
The file was modifiedclang-tools-extra/clangd/refactor/Tweak.cpp
The file was modifiedclang-tools-extra/clangd/unittests/TweakTests.cpp
The file was modifiedclang-tools-extra/clangd/Hover.cpp
The file was modifiedclang-tools-extra/clangd/XRefs.cpp
Commit 1de1add159122ae3db2ffe8eb0fa48c1f3396a10 by thakis
gn build: Merge 91dd67ef724
The file was modifiedllvm/utils/gn/secondary/clang/utils/TableGen/BUILD.gn
Commit 687e98d294c4f77e8b431adb7d86dfba5ab84645 by thakis
Fix build with older (still supported) gcc versions.
Older gccs can't handle multiline raw string literals in macro
parameters.
The file was modifiedclang-tools-extra/clangd/unittests/FormattedStringTests.cpp
Commit 796e009c31c6ac0fb8473e94066c7405460a7177 by spatel
[AArch64] add tests for fcvtl2; NFC
The file was modifiedllvm/test/CodeGen/AArch64/arm64-vcvt_f.ll
Commit 5708f2daf7386ef5f1ec54db4bda2b48bbcbe934 by Raphael Isemann
[clang] Fix modules build after addition of TypeBitCodes.def
In revision 139006ceb641f038a2b19cac1174316e57004ed6 the Serialization
folder got its first def file 'TypeBitCodes.def'. This broke the modules
build as this .def file was not textually included but implicitly
converted into a module due to our umbrella directive.
This patch fixes this by explicitly marking the .def file as textual.
The file was modifiedclang/include/clang/module.modulemap
Commit ccc453eb57b91a4e64ecfd7a9ee8d9415345c6b6 by maskray
[AArch64][test] Fix machine-outliner-size-info.mir after D71168
The file was modifiedllvm/test/CodeGen/AArch64/machine-outliner-size-info.mir