FailedChanges

Summary

  1. Add type information to integral template argument if required. (details)
  2. [InstCombine] Support one-hot merge for logical and/or (details)
  3. [libc++][nfc] remove duplicated __to_unsigned. (details)
  4. [cmake] Fix typo in function name (details)
  5. [libcxx] [test] Fix fs.op.last_write_time for Windows (details)
  6. [LLD] [COFF] Fix including the personality function for DWARF EH when linking with --gc-sections (details)
Commit 99d63ccff04b672694f8a2b3eed024b873dc163d by v.g.vassilev
Add type information to integral template argument if required.

Non-comprehensive list of cases:
* Dumping template arguments;
* Corresponding parameter contains a deduced type;
* Template arguments are for a DeclRefExpr that hadMultipleCandidates()

Type information is added in the form of prefixes (u8, u, U, L),
suffixes (U, L, UL, LL, ULL) or explicit casts to printed integral template
argument, if MSVC codeview mode is disabled.

Differential revision: https://reviews.llvm.org/D77598
The file was modifiedclang/lib/AST/TemplateBase.cpp
The file was modifiedclang/test/SemaTemplate/temp_arg_enum_printing.cpp
The file was addedclang/test/SemaTemplate/default-arguments-ast-print.cpp
The file was modifiedclang/test/SemaCXX/cxx11-ast-print.cpp
The file was modifiedclang/test/CXX/lex/lex.literal/lex.ext/p12.cpp
The file was modifiedclang/test/SemaCXX/matrix-type-builtins.cpp
The file was modifiedclang/include/clang/AST/TemplateBase.h
The file was modifiedclang/lib/Analysis/PathDiagnostic.cpp
The file was modifiedclang/test/SemaTemplate/matrix-type.cpp
The file was addedclang/test/CXX/lex/lex.literal/lex.ext/p13.cpp
The file was modifiedclang/test/SemaCXX/builtin-align-cxx.cpp
The file was modifiedclang/lib/AST/TypePrinter.cpp
The file was modifiedclang-tools-extra/clangd/Hover.cpp
The file was modifiedclang/lib/AST/DeclPrinter.cpp
The file was addedclang/test/SemaCXX/cxx1z-ast-print.cpp
The file was modifiedclang/include/clang/AST/StmtDataCollectors.td
The file was addedclang/test/CodeGenCXX/debug-info-codeview-template-literal.cpp
The file was modifiedclang/lib/Sema/SemaTemplateInstantiate.cpp
The file was modifiedclang/test/Analysis/eval-predefined-exprs.cpp
The file was modifiedclang/test/SemaTemplate/temp_arg_nontype.cpp
The file was modifiedclang/tools/libclang/CIndex.cpp
The file was modifiedclang/include/clang/AST/DeclTemplate.h
The file was modifiedclang/lib/Sema/SemaTemplateDeduction.cpp
The file was modifiedclang/lib/AST/NestedNameSpecifier.cpp
The file was modifiedclang/lib/AST/StmtPrinter.cpp
The file was modifiedclang/test/SemaTemplate/delegating-constructors.cpp
The file was modifiedclang/lib/AST/Expr.cpp
The file was modifiedclang/test/SemaCXX/matrix-type-operators.cpp
The file was addedclang/test/CXX/lex/lex.literal/lex.ext/p14.cpp
The file was modifiedclang/unittests/Tooling/RecursiveASTVisitorTests/TemplateArgumentLocTraverser.cpp
The file was modifiedclang/include/clang/AST/Expr.h
The file was modifiedclang/lib/AST/DeclTemplate.cpp
The file was addedclang/test/CodeGenCXX/debug-info-codeview-template-type.cpp
The file was modifiedclang/lib/AST/ASTTypeTraits.cpp
The file was modifiedclang/test/SemaTemplate/address_space-dependent.cpp
The file was modifiedclang/test/SemaTemplate/temp_arg_nontype_cxx1z.cpp
The file was modifiedclang/lib/Sema/SemaTemplate.cpp
The file was modifiedclang/lib/Sema/SemaDeclCXX.cpp
Commit a8f7dee1dffbf8c18acbcc7b1f6d659bf808798e by nikita.ppv
[InstCombine] Support one-hot merge for logical and/or

If a logical and/or is used, we need to be careful not to propagate
a potential poison value from the RHS by inserting a freeze
instruction. Otherwise it works the same way as bitwise and/or.

This is intended to address the regression reported at
https://reviews.llvm.org/D101191#2751002.

Differential Revision: https://reviews.llvm.org/D102279
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineInternal.h
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
The file was modifiedllvm/test/Transforms/InstCombine/onehot_merge.ll
Commit c273f5ef7d3f5ac05f67ec899e25830cd9543e56 by koraq
[libc++][nfc] remove duplicated __to_unsigned.

Both `<type_traits>` and `<charconv>` implemented this function with
different names and a slightly different behavior. This removes the
version in `<charconv>` and improves the version in `<typetraits>`.

- The code can be used again in C++11.
-  The original claimed C++14 support, but `[[nodiscard]]` is not
   available in  C++14.
- Adds `_LIBCPP_INLINE_VISIBILITY`.

Reviewed By: zoecarver, #libc, Quuxplusone

Differential Revision: https://reviews.llvm.org/D102332
The file was modifiedlibcxx/include/__ranges/size.h
The file was modifiedlibcxx/include/type_traits
The file was modifiedlibcxx/include/charconv
Commit 77997f28d5954fa2417806586f2c5c9d1a0ffeef by smeenai
[cmake] Fix typo in function name

Not sure how my local testing didn't trigger this path. Should fix
https://lab.llvm.org/buildbot/#/builders/132/builds/5494
The file was modifiedllvm/cmake/modules/AddLLVM.cmake
Commit 6bd3d8a17cef9108a338ada9b3dbed201bf9c158 by martin
[libcxx] [test] Fix fs.op.last_write_time for Windows

Don't use stat and lstat on Windows; lstat is missing, stat only provides
the modification times with second granularity (and does the wrong thing
regarding symlinks). Instead do a minimal reimplementation using the
native windows APIs.

Differential Revision: https://reviews.llvm.org/D101731
The file was modifiedlibcxx/test/support/filesystem_test_helper.h
The file was modifiedlibcxx/test/std/input.output/filesystems/fs.op.funcs/fs.op.last_write_time/last_write_time.pass.cpp
Commit 7e0768329ca347e37c7bdb0da16b51cb3e7b7d8b by martin
[LLD] [COFF] Fix including the personality function for DWARF EH when linking with --gc-sections

Since c579a5b1d92a9bc2046d00ee2d427832e0f5ddec we don't traverse
.eh_frame when doing GC. But the exception handling personality
function needs to be included, and is only referenced from within
.eh_frame.

Differential Revision: https://reviews.llvm.org/D102138
The file was modifiedlld/COFF/Driver.cpp
The file was addedlld/test/COFF/gc-dwarf-eh.s