SuccessChanges

Summary

  1. [docs][llvm-readelf][llvm-readobj] Improve --stack-sizes documentation llvm-readobj's document was missing --stack-sizes entirely from its document, so this patch adds it. It also adds a note to the llvm-readelf description that the switch is only implemented for GNU style output currently. For reference, --stack-sizes was added in r367942. Reviewed by: MaskRay Differential Revision: https://reviews.llvm.org/D67548
  2. [X86] Use incDecVectorConstant to simplify the min/max code in LowerVSETCC. incDecVectorConstant is used for a similar reason in LowerVSETCCWithSUBUS so we might as well share the code.
  3. Fix a few spellos in docs. (Trying to debug an incremental build thing on a bot...)
  4. [Sema][Typo Correction] Fix potential infite loop on ambiguity checks Summary: This fixes a bug introduced in D62648, where Clang could infinite loop if it became stuck on a single TypoCorrection when it was supposed to be testing ambiguous corrections. Although not a common case, it could happen if there are multiple possible corrections with the same edit distance. The fix is simply to wipe the TypoExpr from the `TransformCache` so that the call to `TransformTypoExpr` doesn't use the `CachedEntry`. Reviewers: rsmith Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D67515
  5. gn build: pacify "gn format" after 371102
  6. [PowerPC][NFC] Move codegen tests to PowerPC from MIR/PowerPC All tests with -run-pass !=none should not in MIR/, See MIR/README. ``` Tests for codegen passes should NOT be here but in test/CodeGen/sometarget. As a rule of thumb this directory should only contain tests using 'llc -run-pass none'. ```
  7. [ADT] Remove a workaround for old versions of clang
  8. [docs][llvm-objcopy][llvm-strip] Improve --strip-unneeded description Behaviour was recently added to this switch to strip debug sections too. See r369761. This change also makes the description for the --strip-unneeded switch consistent between the two docs. Reviewed by: MaskRay Differential Revision: https://reviews.llvm.org/D67546
  9. clang-format: Add support for formatting (some) lambdas with explicit template parameters. This patch makes cases work where the lambda's template list doesn't contain any of + - ! ~ / % << | || && ^ == != >= <= ? : true false (see added FIXME). Ports r359967 to clang-format. Differential Revision: https://reviews.llvm.org/D67246
  10. Fix depfile name construction - When using -o, the provided filename is using for constructing the depfile name (when -MMD is passed). - The logic looks for the rightmost '.' character and replaces what comes after with 'd'. - This works incorrectly when the filename has no extension and the directories have '.' in them (e.g. out.dir/test) - This replaces the funciton to just llvm::sys::path functionality Differential Revision: https://reviews.llvm.org/D67542
  11. gn build: (manually) merge r371834, take 2
  12. Revert "gn build: (manually) merge r371834" This reverts commit abc7e2b6004cd693cf3b6dedbc7908e099c7ac6a. The commit was incomplete. I'll revert and reland the full commit, so that the correct change is a single commit.
  13. gn build: (manually) merge r371834
  14. gn build: Merge r371822
  15. gn build: (manually) merge r371787
Revision 371862 by jhenderson:
[docs][llvm-readelf][llvm-readobj] Improve --stack-sizes documentation

llvm-readobj's document was missing --stack-sizes entirely from its
document, so this patch adds it. It also adds a note to the llvm-readelf
description that the switch is only implemented for GNU style output
currently. For reference, --stack-sizes was added in r367942.

Reviewed by: MaskRay

Differential Revision: https://reviews.llvm.org/D67548
Change TypePath in RepositoryPath in Workspace
The file was modified/llvm/trunk/docs/CommandGuide/llvm-readelf.rst (diff)llvm.src/docs/CommandGuide/llvm-readelf.rst
The file was modified/llvm/trunk/docs/CommandGuide/llvm-readobj.rst (diff)llvm.src/docs/CommandGuide/llvm-readobj.rst
Revision 371861 by ctopper:
[X86] Use incDecVectorConstant to simplify the min/max code in LowerVSETCC.

incDecVectorConstant is used for a similar reason in LowerVSETCCWithSUBUS
so we might as well share the code.
Change TypePath in RepositoryPath in Workspace
The file was modified/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (diff)llvm.src/lib/Target/X86/X86ISelLowering.cpp
Revision 371860 by nico:
Fix a few spellos in docs.

(Trying to debug an incremental build thing on a bot...)
Change TypePath in RepositoryPath in Workspace
The file was modified/llvm/trunk/docs/BuildingADistribution.rst (diff)llvm.src/docs/BuildingADistribution.rst
The file was modified/llvm/trunk/docs/CommandGuide/llvm-nm.rst (diff)llvm.src/docs/CommandGuide/llvm-nm.rst
The file was modified/llvm/trunk/docs/LangRef.rst (diff)llvm.src/docs/LangRef.rst
The file was modified/llvm/trunk/docs/ORCv2.rst (diff)llvm.src/docs/ORCv2.rst
The file was modified/llvm/trunk/docs/PDB/MsfFile.rst (diff)llvm.src/docs/PDB/MsfFile.rst
The file was modified/llvm/trunk/docs/SpeculativeLoadHardening.md (diff)llvm.src/docs/SpeculativeLoadHardening.md
The file was modified/llvm/trunk/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst (diff)llvm.src/docs/tutorial/MyFirstLanguageFrontend/LangImpl04.rst
The file was modified/llvm/trunk/docs/tutorial/MyFirstLanguageFrontend/LangImpl07.rst (diff)llvm.src/docs/tutorial/MyFirstLanguageFrontend/LangImpl07.rst
Revision 371859 by dgoldman:
[Sema][Typo Correction] Fix potential infite loop on ambiguity checks

Summary:
This fixes a bug introduced in D62648, where Clang could infinite loop
if it became stuck on a single TypoCorrection when it was supposed to
be testing ambiguous corrections. Although not a common case, it could
happen if there are multiple possible corrections with the same edit
distance.

The fix is simply to wipe the TypoExpr from the `TransformCache` so that
the call to `TransformTypoExpr` doesn't use the `CachedEntry`.

Reviewers: rsmith

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D67515
Change TypePath in RepositoryPath in Workspace
The file was modified/cfe/trunk/lib/Sema/SemaExprCXX.cpp (diff)clang.src/lib/Sema/SemaExprCXX.cpp
The file was added/cfe/trunk/test/Sema/typo-correction-ambiguity.cppclang.src/test/Sema/typo-correction-ambiguity.cpp
Revision 371858 by nico:
gn build: pacify "gn format" after 371102
Change TypePath in RepositoryPath in Workspace
The file was modified/llvm/trunk/utils/gn/secondary/compiler-rt/lib/builtins/BUILD.gn (diff)llvm.src/utils/gn/secondary/compiler-rt/lib/builtins/BUILD.gn
Revision 371857 by jsji:
[PowerPC][NFC] Move codegen tests to PowerPC from MIR/PowerPC

All tests with -run-pass !=none should not in MIR/, See MIR/README.

```
Tests for codegen passes should NOT be here but in
test/CodeGen/sometarget. As
a rule of thumb this directory should only contain tests using
'llc -run-pass none'.
```
Change TypePath in RepositoryPath in Workspace
The file was removed/llvm/trunk/test/CodeGen/MIR/PowerPC/ifcvt-diamond-ret.mirllvm.src/test/CodeGen/MIR/PowerPC/ifcvt-diamond-ret.mir
The file was removed/llvm/trunk/test/CodeGen/MIR/PowerPC/machine-backward-cp.mirllvm.src/test/CodeGen/MIR/PowerPC/machine-backward-cp.mir
The file was removed/llvm/trunk/test/CodeGen/MIR/PowerPC/peephole-miscompile-extswsli.mirllvm.src/test/CodeGen/MIR/PowerPC/peephole-miscompile-extswsli.mir
The file was removed/llvm/trunk/test/CodeGen/MIR/PowerPC/prolog_vec_spills.mirllvm.src/test/CodeGen/MIR/PowerPC/prolog_vec_spills.mir
The file was added/llvm/trunk/test/CodeGen/PowerPC/ifcvt-diamond-ret.mirllvm.src/test/CodeGen/PowerPC/ifcvt-diamond-ret.mir
The file was added/llvm/trunk/test/CodeGen/PowerPC/machine-backward-cp.mirllvm.src/test/CodeGen/PowerPC/machine-backward-cp.mir
The file was added/llvm/trunk/test/CodeGen/PowerPC/peephole-miscompile-extswsli.mirllvm.src/test/CodeGen/PowerPC/peephole-miscompile-extswsli.mir
The file was added/llvm/trunk/test/CodeGen/PowerPC/prolog_vec_spills.mirllvm.src/test/CodeGen/PowerPC/prolog_vec_spills.mir
Revision 371856 by d0k:
[ADT] Remove a workaround for old versions of clang
Change TypePath in RepositoryPath in Workspace
The file was modified/llvm/trunk/include/llvm/ADT/DenseMap.h (diff)llvm.src/include/llvm/ADT/DenseMap.h
Revision 371855 by jhenderson:
[docs][llvm-objcopy][llvm-strip] Improve --strip-unneeded description

Behaviour was recently added to this switch to strip debug sections too.
See r369761.

This change also makes the description for the --strip-unneeded switch
consistent between the two docs.

Reviewed by: MaskRay

Differential Revision: https://reviews.llvm.org/D67546
Change TypePath in RepositoryPath in Workspace
The file was modified/llvm/trunk/docs/CommandGuide/llvm-objcopy.rst (diff)llvm.src/docs/CommandGuide/llvm-objcopy.rst
The file was modified/llvm/trunk/docs/CommandGuide/llvm-strip.rst (diff)llvm.src/docs/CommandGuide/llvm-strip.rst
Revision 371854 by nico:
clang-format: Add support for formatting (some) lambdas with explicit template parameters.

This patch makes cases work where the lambda's template list doesn't
contain any of + - ! ~ / % << | || && ^ == != >= <= ? : true false
(see added FIXME).

Ports r359967 to clang-format.

Differential Revision: https://reviews.llvm.org/D67246
Change TypePath in RepositoryPath in Workspace
The file was modified/cfe/trunk/lib/Format/TokenAnnotator.cpp (diff)clang.src/lib/Format/TokenAnnotator.cpp
The file was modified/cfe/trunk/lib/Format/UnwrappedLineParser.cpp (diff)clang.src/lib/Format/UnwrappedLineParser.cpp
The file was modified/cfe/trunk/unittests/Format/FormatTest.cpp (diff)clang.src/unittests/Format/FormatTest.cpp
Revision 371853 by lukecheeseman:
Fix depfile name construction

- When using -o, the provided filename is using for constructing the depfile
  name (when -MMD is passed).
- The logic looks for the rightmost '.' character and replaces what comes after
  with 'd'.
- This works incorrectly when the filename has no extension and the directories
  have '.' in them (e.g. out.dir/test)
- This replaces the funciton to just llvm::sys::path functionality

Differential Revision: https://reviews.llvm.org/D67542
Change TypePath in RepositoryPath in Workspace
The file was modified/cfe/trunk/lib/Driver/ToolChains/Clang.cpp (diff)clang.src/lib/Driver/ToolChains/Clang.cpp
The file was added/cfe/trunk/test/Driver/metadata-with-dots.cclang.src/test/Driver/metadata-with-dots.c
Revision 371851 by nico:
gn build: (manually) merge r371834, take 2
Change TypePath in RepositoryPath in Workspace
The file was modified/llvm/trunk/utils/gn/secondary/clang/lib/AST/BUILD.gn (diff)llvm.src/utils/gn/secondary/clang/lib/AST/BUILD.gn
The file was removed/llvm/trunk/utils/gn/secondary/clang/lib/AST/Interpllvm.src/utils/gn/secondary/clang/lib/AST/Interp
The file was modified/llvm/trunk/utils/gn/secondary/clang/utils/TableGen/BUILD.gn (diff)llvm.src/utils/gn/secondary/clang/utils/TableGen/BUILD.gn
Revision 371850 by nico:
Revert "gn build: (manually) merge r371834"

This reverts commit abc7e2b6004cd693cf3b6dedbc7908e099c7ac6a.
The commit was incomplete. I'll revert and reland the full commit,
so that the correct change is a single commit.
Change TypePath in RepositoryPath in Workspace
The file was modified/llvm/trunk/utils/gn/secondary/clang/lib/AST/BUILD.gn (diff)llvm.src/utils/gn/secondary/clang/lib/AST/BUILD.gn
The file was added/llvm/trunk/utils/gn/secondary/clang/lib/AST/Interpllvm.src/utils/gn/secondary/clang/lib/AST/Interp
The file was added/llvm/trunk/utils/gn/secondary/clang/lib/AST/Interp/BUILD.gnllvm.src/utils/gn/secondary/clang/lib/AST/Interp/BUILD.gn
Revision 371849 by nico:
gn build: (manually) merge r371834
Change TypePath in RepositoryPath in Workspace
The file was modified/llvm/trunk/utils/gn/secondary/clang/lib/AST/BUILD.gn (diff)llvm.src/utils/gn/secondary/clang/lib/AST/BUILD.gn
The file was removed/llvm/trunk/utils/gn/secondary/clang/lib/AST/Interpllvm.src/utils/gn/secondary/clang/lib/AST/Interp
Revision 371848 by nico:
gn build: Merge r371822
Change TypePath in RepositoryPath in Workspace
The file was modified/llvm/trunk/utils/gn/secondary/compiler-rt/include/BUILD.gn (diff)llvm.src/utils/gn/secondary/compiler-rt/include/BUILD.gn
Revision 371847 by nico:
gn build: (manually) merge r371787
Change TypePath in RepositoryPath in Workspace
The file was modified/llvm/trunk/utils/gn/secondary/clang/tools/libclang/BUILD.gn (diff)llvm.src/utils/gn/secondary/clang/tools/libclang/BUILD.gn
The file was modified/llvm/trunk/utils/gn/secondary/clang/unittests/BUILD.gn (diff)llvm.src/utils/gn/secondary/clang/unittests/BUILD.gn
The file was added/llvm/trunk/utils/gn/secondary/clang/unittests/libclang/CrashTestsllvm.src/utils/gn/secondary/clang/unittests/libclang/CrashTests
The file was added/llvm/trunk/utils/gn/secondary/clang/unittests/libclang/CrashTests/BUILD.gnllvm.src/utils/gn/secondary/clang/unittests/libclang/CrashTests/BUILD.gn