SuccessChanges

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

Summary

  1. Reland "[CodeGen] Make logic of CCState::resultsCompatible clearer" (details)
  2. [X86][SSE] getShuffleScalarElt - minor NFC cleanup. (details)
  3. [X86][SSE] Move VZEXT_MOVL removal into SimplifyDemandedVectorEltsForTargetNode (details)
  4. [mlir] Add a MemRefCastOp canonicalization pattern. (details)
  5. [Sema] Silence warnings when targeting x86 with VS2019 16.5.4 (details)
  6. [InstrProf] Silence warnings when targeting x86 with VS2019 16.5.4 (details)
  7. [Support] Silence warning: comparison of integers of different signs: 'const int' and 'const unsigned long' (details)
  8. [Debug][CodeView] Emit fully qualified names for globals (details)
  9. [ARM] Convert a bitcast VDUP to a VDUP (details)
  10. Check type for forward reference definition (details)
  11. [clangd] Do not offer "Add using" tweak in header files. (details)
Commit 055ea585c77cd8ae9cd3bc327c1e4404020fdf27 by david.spickett
Reland "[CodeGen] Make logic of CCState::resultsCompatible clearer"

This relands commit d782d1f898eaafee49548d5332e84c3ae11ebac4.
With a typo fixed, which was causing the x86 test failure.
The file was modifiedllvm/lib/CodeGen/CallingConvLower.cpp
Commit 1c4f118d893fd8042b0ce781d68242e88337be62 by llvm-dev
[X86][SSE] getShuffleScalarElt - minor NFC cleanup.

Use SelectionDAG::MaxRecursionDepth instead of (equal) hard coded constant.

clang-format
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
Commit 8650b36935ae8e9d584550539161e5851a17a912 by llvm-dev
[X86][SSE] Move VZEXT_MOVL removal into SimplifyDemandedVectorEltsForTargetNode

This patch replaces the VZEXT_MOVL removal from combineShuffle with a more general version based in SimplifyDemandedVectorEltsForTargetNode.

By using computeKnownBits we can always remove the VZEXT_MOVL if the upper elements of the source operand are known to be zero.

This requires us to add the conversion ops to computeKnownBitsForTargetNode as well.

Reviewed By: @craig.topper

Differential Revision: https://reviews.llvm.org/D79335
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
Commit 94438c86adef0a0f50bc3737253e8c98b4e3dd3e by ntv
[mlir] Add a MemRefCastOp canonicalization pattern.

Summary:
This revision adds a conservative canonicalization pattern for MemRefCastOp that are typically inserted during ViewOp and SubViewOp canonicalization.
Ideally such canonicalizations would propagate the type to consumers but this is not a local behavior. As a consequence MemRefCastOp are introduced to keep type compatibility but need to be cleaned up later, in the case where more dynamic behavior than necessary is introduced.

Differential Revision: https://reviews.llvm.org/D79438
The file was modifiedmlir/lib/Dialect/StandardOps/IR/Ops.cpp
The file was modifiedmlir/include/mlir/Dialect/StandardOps/IR/Ops.td
The file was modifiedmlir/include/mlir/Dialect/StandardOps/IR/Ops.h
The file was modifiedmlir/test/Transforms/canonicalize.mlir
The file was modifiedmlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
Commit 3483cdc8344d9c2c08c3f12490df54cfa63b6838 by alexandre.ganea
[Sema] Silence warnings when targeting x86 with VS2019 16.5.4

Differential Revision: https://reviews.llvm.org/D79337
The file was modifiedclang/lib/Sema/ParsedAttr.cpp
Commit db817d15d121d9bd650c566920820332c08d25b0 by alexandre.ganea
[InstrProf] Silence warnings when targeting x86 with VS2019 16.5.4

Differential Revision: https://reviews.llvm.org/D79337
The file was modifiedllvm/lib/ProfileData/InstrProfReader.cpp
Commit c503d97d1934116802663e7b38df304691480700 by alexandre.ganea
[Support] Silence warning: comparison of integers of different signs: 'const int' and 'const unsigned long'
The file was modifiedllvm/unittests/Support/ProcessTest.cpp
Commit 06591b6d191ad3582d21a801cbaf56b36714cae7 by alexandre.ganea
[Debug][CodeView] Emit fully qualified names for globals

Emit S_[L|G][THREAD32|DATA32] records with a fully qualified name (namespace + class scope).

Differential Revision: https://reviews.llvm.org/D79447
The file was modifiedllvm/test/DebugInfo/COFF/global_visibility.ll
The file was modifiedllvm/test/DebugInfo/COFF/types-array-unsized.ll
The file was modifiedllvm/test/DebugInfo/COFF/globals.ll
The file was modifiedllvm/test/DebugInfo/COFF/global-constants.ll
The file was modifiedllvm/lib/CodeGen/AsmPrinter/CodeViewDebug.cpp
Commit ed7db68c354e48daf1efb5f119cee20938732100 by david.green
[ARM] Convert a bitcast VDUP to a VDUP

The idea, under MVE, is to introduce more bitcasts around VDUP's in an
attempt to get the type correct across basic block boundaries. In order
to do that without other regressions we need a few fixups, of which this
is the first. If the code is a bitcast of a VDUP, we can convert that
straight into a VDUP of the new type, so long as they have the same
size.

Differential Revision: https://reviews.llvm.org/D78706
The file was modifiedllvm/test/CodeGen/Thumb2/mve-vcmpfr.ll
The file was modifiedllvm/test/CodeGen/Thumb2/mve-vaddqr.ll
The file was modifiedllvm/lib/Target/ARM/ARMISelLowering.cpp
Commit 5010b5b7e6cf0925465ecaa4111927ee9bcfac67 by rengolin
Check type for forward reference definition

The types of forward references are checked that they match with other
uses, but they do not check they match with the definition.

    func @forward_reference_type_check() -> (i8) {
      br ^bb2

    ^bb1:
      return %1 : i8

    ^bb2:
      %1 = "bar"() : () -> (f32)
      br ^bb1
    }

Would be parsed and the use site of '%1' would be silently changed to
'f32'.

This commit adds a test for this case, and a check during parsing for
the types to match.

Patch by Matthew Parkinson <mattpark@microsoft.com>

Closes D79317.
The file was modifiedmlir/test/IR/invalid.mlir
The file was modifiedmlir/lib/Parser/Parser.cpp
Commit 319787315dd65f05aea562760cf57ac486bd2812 by sam.mccall
[clangd] Do not offer "Add using" tweak in header files.

Reviewers: sammccall

Reviewed By: sammccall

Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, usaxena95, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D79488
The file was modifiedclang-tools-extra/clangd/unittests/TweakTests.cpp
The file was modifiedclang-tools-extra/clangd/refactor/tweaks/AddUsing.cpp