SuccessChanges

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

Summary

  1. [InstCombine] Run the cast.ll test a twice, now also testing little (details)
  2. [lldb][NFC] Explicitly ask for a ClangASTContext in ClangASTSource (details)
  3. [lldb][NFC] Remove ClangASTContext::GetBuiltinTypeForEncodingAndBitSize (details)
  4. [lldb][NFC] Remove unused ClangASTContext::GetBasicType(ConstString) (details)
  5. [LLDB] [ARM] Use r11 as frame pointer on Windows on ARM (details)
  6. [clangd] Rethink how SelectionTree deals with macros and #includes. (details)
  7. [CIndex] Fix annotate-deep-statements test when using a Debug build (details)
  8. On Windows, fix fuse-ld.c test when lld is provided explictly in (details)
  9. Revert "[NFC] Fix test reserve_global_reg.ll after 2d739f9" (details)
  10. Revert "[ARM] Allocatable Global Register Variables for ARM" (details)
  11. [PowerPC][AIX] Add support for lowering int/float/double formal (details)
  12. Revert "[clangd] Rethink how SelectionTree deals with macros and (details)
Commit 363cbcc59040dd337f958fd0fd0584f7c6ebbd63 by bjorn.a.pettersson
[InstCombine] Run the cast.ll test a twice, now also testing little
endian. NFC
Some tests in test/Transforms/InstCombine/cast.ll depend on endianness.
Added a second run line to run the tests with both big and little
endian. In the past we only compiled for big endian, and then it was
hard to see if any big endian bugfixes would impact the little endian
result etc.
The file was modifiedllvm/test/Transforms/InstCombine/cast.ll
Commit bc7f1df6b61a3c8f88f2541ef9ba73f4ee0ee4fe by Raphael Isemann
[lldb][NFC] Explicitly ask for a ClangASTContext in ClangASTSource
ClangASTSource currently takes a clang::ASTContext and keeps that
around, but a lot of LLDB's functionality for doing operations on a
clang::ASTContext is in its ClangASTContext twin class. We currently
constantly recompute the respective ClangASTContext from the
clang::ASTContext while we instead could just pass and store a
ClangASTContext in the ClangASTSource. This also allows us to get rid of
a bunch of unreachable error checking for cases where recomputation
fails for some reason.
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.cpp
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/ClangASTSource.h
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp
The file was modifiedlldb/source/Symbol/ClangASTContext.cpp
Commit c214c92f3be7c15abc458f23c7be05a5790e6aed by Raphael Isemann
[lldb][NFC] Remove ClangASTContext::GetBuiltinTypeForEncodingAndBitSize
overload
The file was modifiedlldb/include/lldb/Symbol/ClangASTContext.h
The file was modifiedlldb/source/Symbol/ClangASTContext.cpp
The file was modifiedlldb/source/Plugins/ExpressionParser/Clang/ClangExpressionDeclMap.cpp
The file was modifiedlldb/unittests/Symbol/TestClangASTContext.cpp
Commit 8059188c45f049b52b779d6684ea78b6ef8b168c by Raphael Isemann
[lldb][NFC] Remove unused ClangASTContext::GetBasicType(ConstString)
The file was modifiedlldb/include/lldb/Symbol/ClangASTContext.h
The file was modifiedlldb/source/Symbol/ClangASTContext.cpp
Commit 45c843de4eb8a0d2aa42543b4fcfefcbca4191d8 by martin
[LLDB] [ARM] Use r11 as frame pointer on Windows on ARM
Extend EmulateMOVRdRm to identify "mov r11, sp" in thumb mode as setting
the frame pointer, if r11 is the frame pointer register.
Differential Revision: https://reviews.llvm.org/D70797
The file was modifiedlldb/source/Plugins/Instruction/ARM/EmulateInstructionARM.cpp
The file was addedlldb/test/Shell/Minidump/Windows/Inputs/arm-fp-unwind.exe.yaml
The file was addedlldb/test/Shell/Minidump/Windows/arm-fp-unwind.test
The file was addedlldb/test/Shell/Minidump/Windows/Inputs/arm-fp-unwind.dmp.yaml
Commit 19daa21f841ad45290c923689ee3d25198651a4c by sam.mccall
[clangd] Rethink how SelectionTree deals with macros and #includes.
Summary: The exclusive-claim model is successful at resolving conflicts
over tokens between parent/child or siblings. However claims at the
spelled-token level do the wrong thing for macro expansions, where
siblings can be equally associated with the macro invocation. Moreover,
any model that only uses the endpoints in a range can fail when a macro
invocation occurs inside the node.
To address this, we use the existing TokenBuffer in more depth. Claims
are expressed in terms of expanded tokens, so there is no need to worry
about macros, includes etc.
Once we know which expanded tokens were claimed, they are mapped onto
spelled tokens for hit-testing. This mapping is fairly flexible,
currently the handling of macros is pretty simple (map macro args onto
spellings, other macro expansions onto the macro name token). This
mapping is in principle token-by-token for correctness (though there's
some batching for performance).
The aggregation of the selection enum is now more principled as we need
to be able to aggregate several hit-test results together.
For simplicity i removed the ability to determine selectedness of
TUDecl.
(That was originally implemented in 90a5bf92ff97b1, but doesn't seem to
be very important or worth the complexity any longer).
The expandedTokens(SourceLocation) helper could be added locally, but
seems to make sense on TokenBuffer.
Fixes https://github.com/clangd/clangd/issues/202 Fixes
https://github.com/clangd/clangd/issues/126
Reviewers: hokein
Subscribers: MaskRay, jkorous, arphaman, kadircet, usaxena95,
cfe-commits, ilya-biryukov
Tags: #clang
Differential Revision: https://reviews.llvm.org/D70512
The file was modifiedclang-tools-extra/clangd/Selection.cpp
The file was modifiedclang/include/clang/Tooling/Syntax/Tokens.h
The file was modifiedclang/lib/Tooling/Syntax/Tokens.cpp
The file was modifiedclang/unittests/Tooling/Syntax/TokensTest.cpp
The file was modifiedclang-tools-extra/clangd/unittests/SelectionTests.cpp
The file was modifiedclang-tools-extra/clangd/Selection.h
The file was modifiedclang-tools-extra/clangd/unittests/TweakTests.cpp
Commit 471d06020a6a12c621131c508e58878890db3906 by alexandre.ganea
[CIndex] Fix annotate-deep-statements test when using a Debug build
Differential Revision: https://reviews.llvm.org/D70149
The file was modifiedclang/lib/Sema/SemaChecking.cpp
The file was modifiedclang/tools/libclang/CIndex.cpp
Commit 3b0b7536a3182c1c69ade2bee80cdf954813a059 by alexandre.ganea
On Windows, fix fuse-ld.c test when lld is provided explictly in
-DCMAKE_LINKER
The file was modifiedclang/test/Driver/fuse-ld.c
Commit c313a6bdbe365644a84069162a5f4d73dec2131c by carey.williams
Revert "[NFC] Fix test reserve_global_reg.ll after 2d739f9"
This reverts commit aea7578fade2563cb5ea60548914667b515c457a.
The file was modifiedllvm/test/Feature/reserve_global_reg.ll
Commit 76fd58d0fe69667304569cb1c4cffe041c3cb9c5 by carey.williams
Revert "[ARM] Allocatable Global Register Variables for ARM"
This reverts commit 2d739f98d8a53e38bf9faa88cdb6b0c2a363fb77.
The file was modifiedllvm/lib/Target/ARM/ARMSubtarget.cpp
The file was removedllvm/test/CodeGen/ARM/reg-alloc-with-fixed-reg-r6.ll
The file was removedclang/test/Sema/arm-global-regs.c
The file was removedllvm/test/Feature/reserve_global_reg.ll
The file was modifiedclang/lib/Driver/ToolChains/Arch/ARM.cpp
The file was modifiedllvm/lib/Target/ARM/ARMBaseRegisterInfo.cpp
The file was modifiedclang/lib/Basic/Targets/ARM.h
The file was modifiedclang/include/clang/Basic/TargetInfo.h
The file was removedllvm/test/CodeGen/Thumb/callee_save_reserved.ll
The file was modifiedclang/docs/ClangCommandLineReference.rst
The file was modifiedllvm/lib/Target/ARM/ARMAsmPrinter.cpp
The file was modifiedclang/include/clang/Basic/DiagnosticGroups.td
The file was modifiedllvm/lib/Target/ARM/ARMFrameLowering.cpp
The file was modifiedllvm/lib/Target/ARM/ARMSubtarget.h
The file was removedllvm/test/CodeGen/ARM/reg-alloc-with-fixed-reg-r6-modified.ll
The file was modifiedclang/include/clang/Basic/DiagnosticDriverKinds.td
The file was modifiedclang/lib/Sema/SemaDecl.cpp
The file was removedclang/test/Driver/arm-reserved-reg-options.c
The file was removedllvm/test/CodeGen/ARM/reg-alloc-wout-fixed-regs.ll
The file was modifiedclang/lib/Basic/Targets/ARM.cpp
The file was modifiedllvm/lib/Target/ARM/ARMISelLowering.cpp
The file was modifiedllvm/lib/Target/ARM/ARM.td
The file was modifiedclang/include/clang/Driver/Options.td
The file was removedllvm/test/CodeGen/ARM/reg-alloc-fixed-r6-vla.ll
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
The file was modifiedllvm/lib/Target/ARM/ARMTargetTransformInfo.h
Commit 26ab827c24c8dcebebad136c0580cae5fdc84c9f by sd.fertile
[PowerPC][AIX] Add support for lowering int/float/double formal
arguments.
This patch adds LowerFormalArguments_AIX, support is added for lowering
int, float, and double formal arguments into general purpose and
floating point registers only.
The aix calling convention testcase have been redone to test for caller
and callee functionality in the same lit test.
Patch by Zarko Todorovski!
Differential Revision: https://reviews.llvm.org/D69578
The file was removedllvm/test/CodeGen/PowerPC/aix_gpr_param.ll
The file was addedllvm/test/CodeGen/PowerPC/aix_cc_abi.ll
The file was modifiedllvm/lib/Target/PowerPC/PPCISelLowering.h
The file was modifiedllvm/lib/Target/PowerPC/PPCISelLowering.cpp
The file was removedllvm/test/CodeGen/PowerPC/aix_fpr_param.ll
Commit 905b002c139f039a32ab9bf1fad63d745d12423f by sam.mccall
Revert "[clangd] Rethink how SelectionTree deals with macros and
#includes."
This reverts commit 19daa21f841ad45290c923689ee3d25198651a4c.
It causes a bunch of failures on a bot that I've been unable to
reproduce so far: http://45.33.8.238/mac/3308/step_7.txt
The file was modifiedclang-tools-extra/clangd/unittests/TweakTests.cpp
The file was modifiedclang/include/clang/Tooling/Syntax/Tokens.h
The file was modifiedclang-tools-extra/clangd/unittests/SelectionTests.cpp
The file was modifiedclang-tools-extra/clangd/Selection.cpp
The file was modifiedclang/unittests/Tooling/Syntax/TokensTest.cpp
The file was modifiedclang-tools-extra/clangd/Selection.h
The file was modifiedclang/lib/Tooling/Syntax/Tokens.cpp