Changes

Summary

  1. [AST] Build recovery expressions by default for C++. (details)
  2. [VE] Change name of enum to CondCode (details)
  3. Add freeze(and x, const) case to codegenprepare's freeze-cmp.ll (details)
  4. [clang-apply-replacements] No longer deduplucates replacements from the same TU (details)
  5. [ARM,MVE] Add missing tests for vqdmlash intrinsics. (details)
Commit 0788acbccbec094903a3425ffe5a98f8d55cbd64 by hokein.wu
[AST] Build recovery expressions by default for C++.

Update the existing tests.

Reviewers: sammccall

Subscribers: cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D76696
The file was modifiedclang/include/clang/Basic/LangOptions.def
The file was modifiedclang/test/SemaCXX/cxx1z-copy-omission.cpp
The file was modifiedclang/test/Parser/objcxx11-invalid-lambda.cpp
The file was modifiedclang/test/SemaTemplate/instantiate-init.cpp
The file was modifiedclang/unittests/Sema/CodeCompleteTest.cpp
The file was modifiedclang/test/OpenMP/target_update_to_messages.cpp
The file was modifiedclang/test/Parser/objcxx0x-lambda-expressions.mm
The file was modifiedclang/test/SemaCXX/cast-conversion.cpp
The file was modifiedclang/test/SemaCXX/decltype-crash.cpp
The file was modifiedclang/test/SemaCXX/varargs.cpp
The file was modifiedclang/lib/Frontend/CompilerInvocation.cpp
The file was modifiedclang/test/SemaCXX/builtins.cpp
The file was modifiedclang/test/SemaOpenCLCXX/address-space-references.cl
The file was modifiedclang-tools-extra/clangd/unittests/CodeCompleteTests.cpp
The file was modifiedclang/lib/Sema/SemaExpr.cpp
The file was modifiedclang/test/OpenMP/target_update_from_messages.cpp
Commit 28a42dd1b9e964dba39d92b1a7af2317e2d16e95 by simon.moll
[VE] Change name of enum to CondCode

Summary: Change enum name for condition codes from CondCodes to CondCode.

Reviewers: arsenm, simoll, k-ishizaka

Reviewed By: arsenm

Subscribers: wdng, hiraditya, llvm-commits

Tags: #llvm, #ve

Differential Revision: https://reviews.llvm.org/D76747
The file was modifiedllvm/lib/Target/VE/VEInstrInfo.cpp
The file was modifiedllvm/lib/Target/VE/VEInstrInfo.td
The file was modifiedllvm/lib/Target/VE/MCTargetDesc/VEInstPrinter.cpp
The file was modifiedllvm/lib/Target/VE/VE.h
Commit e951a4899626bc32612c44f6b13a18e43b0a8260 by aqjune
Add freeze(and x, const) case to codegenprepare's freeze-cmp.ll
The file was modifiedllvm/test/Transforms/CodeGenPrepare/X86/freeze-cmp.ll
Commit 6538b4393dc3e7df9fee2b07eba148d4cf603a24 by n.james93
[clang-apply-replacements] No longer deduplucates replacements from the same TU

Summary:
clang-apply-replacements currently deduplicates all diagnostic replacements. However if you get a duplicated replacement from one TU then its expected that it should not be deduplicated. This goes some way to solving [[ https://bugs.llvm.org/show_bug.cgi?id=45150 | export-fixes to yaml adds extra newlines and breaks offsets. ]]

Take this example yaml.
```
---
MainSourceFile:  '/home/nathan/test/test.cpp'
Diagnostics:
  - DiagnosticName:  readability-braces-around-statements
    DiagnosticMessage:
      Message:         statement should be inside braces
      FilePath:        '/home/nathan/test/test.cpp'
      FileOffset:      14
      Replacements:
        - FilePath:        '/home/nathan/test/test.cpp'
          Offset:          14
          Length:          0
          ReplacementText: ' {'
        - FilePath:        '/home/nathan/test/test.cpp'
          Offset:          28
          Length:          0
          ReplacementText: '

}'
  - DiagnosticName:  readability-braces-around-statements
    DiagnosticMessage:
      Message:         statement should be inside braces
      FilePath:        '/home/nathan/test/test.cpp'
      FileOffset:      20
      Replacements:
        - FilePath:        '/home/nathan/test/test.cpp'
          Offset:          20
          Length:          0
          ReplacementText: ' {'
        - FilePath:        '/home/nathan/test/test.cpp'
          Offset:          28
          Length:          0
          ReplacementText: '

}'
...```

The current behaviour is to deduplicate the text insertions at Offset 28 and only apply one of the replacements.
However as both of these replacements came from the same translation unit we can be confident they were both meant to be applied together
The new behaviour won't deduplicate the text insertion and instead insert both of the replacements.
If the duplicate replacement is found inside different translation units (from a header file change perhaps) then they will still be deduplicated as before.

Reviewers: aaron.ballman, gribozavr2, klimek, ymandel

Reviewed By: ymandel

Subscribers: ymandel, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D76054
The file was addedclang-tools-extra/test/clang-apply-replacements/Inputs/identical-in-TU/file2.yaml
The file was addedclang-tools-extra/test/clang-apply-replacements/Inputs/identical-in-TU/file1.yaml
The file was addedclang-tools-extra/test/clang-apply-replacements/Inputs/identical-in-TU/identical-in-TU.cpp
The file was addedclang-tools-extra/test/clang-apply-replacements/identical-in-TU.cpp
The file was modifiedclang-tools-extra/clang-apply-replacements/lib/Tooling/ApplyReplacements.cpp
Commit 8f1651ccead149fbd2e6fe692fb8a7f787a222bd by simon.tatham
[ARM,MVE] Add missing tests for vqdmlash intrinsics.

Summary:
These were accidentally left out of D76123. I added tests for the
other three instructions in this small cross-product family (vqdmlah,
vqrdmlah, vqrdmlash) but missed this one.

Reviewers: miyuki

Reviewed By: miyuki

Subscribers: kristof.beyls, dmgreen, cfe-commits

Tags: #clang

Differential Revision: https://reviews.llvm.org/D76714
The file was modifiedclang/test/CodeGen/arm-mve-intrinsics/ternary.c
The file was modifiedllvm/test/CodeGen/Thumb2/mve-intrinsics/ternary.ll