FailedChanges

Summary

  1. [runtimes] Remove the ability to select the old libc++ testing format (details)
  2. [SVE] Remove calls to VectorType::getNumElements from X86 (details)
  3. [ADT] Support const-qualified unique_functions (details)
  4. [DEBUGINFO]Add a test for packed bitfields, NFC. (details)
  5. [clangd] Config: config struct propagated through Context (details)
  6. Revert "[ADT] Support const-qualified unique_functions" (details)
  7. [IndVars] Regenerate test checks (NFC) (details)
  8. Add optimization to basic_string::assign for compile-time known constant values. (details)
  9. [gn build] Port 9963d93b073 (details)
  10. Silence unused var warning in NDEBUG build (details)
  11. X86: Use MOV32r0 pseudo instead of directly emitting xor (details)
  12. LowerConstantIntrinsics: Fix missing test for byval behavior (details)
  13. X86: Upgrade a test to not rely on byval pointee type (details)
  14. [darwin][driver] isMacosxVersionLT should check against the minimum supported OS version (details)
  15. [gn build] Add missing llvm-lipo dep to check-lld (details)
  16. [llvm][NFC] Use llvm_canonicalize_cmake_booleans for LLVM_HAVE_TF_AOT (details)
  17. [flang] Defer stmt function body analysis until specification part complete (details)
  18. [ProcessGDBRemote] Get rid of an unused function. (details)
  19. Reland [ADT] Support const-qualified unique_functions (details)
  20. Revert "[clangd] Config: config struct propagated through Context" (details)
  21. Reland [clangd] Config: config struct propagated through Context (details)
  22. Revert "[clang][SourceManager] cache Macro Expansions" (details)
  23. Reland "[clang][SourceManager] cache Macro Expansions"" (details)
  24. [clang][RelativeVTablesABI] Update CodeGenCXX/RelativeVTablesABI/dynamic-cast.cpp (details)
  25. [ADT] Use more explicit from to initialize member. Appease MSVC? (details)
  26. [mlir] [VectorOps] Extend vector reduction integration test with reassoc=true cases. (details)
  27. Simplify conditionals in DNBArchMachARM64::EnableHardwareSingleStep (details)
  28. [clangd] config() -> Config::current to avoid confict with NS (details)
  29. [X86] Add common prefixes to merge more hadd/sub tests checks (details)
  30. [PowerPC] Fix FeatureISA3_1 def in PPC.td to imply FeatureISA3_0. (details)
  31. [flang] Add coarray lowering hooks. (details)
  32. [mlir] add unsigned comparison builders to Affine EDSC (details)
  33. Fix a few cases that were incorrectly parsed as unary-expressions (details)
  34. [CMake] Fix incorrect handling of get_target_property failure (details)
  35. [MLIR] Add variadic isa<> for Type, Value, and Attribute (details)
  36. [CMake][compiler-rt] Only set lld as available when it was built (details)
  37. [SVE] Remove calls to VectorType::getNumElements from Instrumentation (details)
  38. Clang Driver: Use Apple ld64's new @response-file support. (details)
  39. Clang Driver: refactor support for writing response files to be (details)
  40. [FileCheck][NFC] Clean up RUN style in verbose.txt test (details)
  41. [FileCheck] Permit multiple -v or -vv (details)
  42. [MLIR][SPIRVToLLVM] Convert bitwise and logical not (details)
  43. [X86] Prefer AND over PSHUFB for v64i8 when possible (details)
  44. [ods] Update Operator to record Arg->[Attr|Operand]Index mapping (details)
  45. [MLIR][SPIRVToLLVM] Added Bitcast conversion pattern (details)
  46. Move Sema::PragmaStack<ValueType>::Act into Sema.h so it can be instantiated as needed (details)
  47. [c++20] Fix handling of operator rewrites naming consteval operator<=>. (details)
  48. [darwin][driver] pass the minimum supported OS version to the linker (details)
  49. [OpenMP] fix clang warning about printf format in CUDA plugin (details)
Commit 5d838808854b9b6a7cb357d7768d37fc94fa7d73 by Louis Dionne
[runtimes] Remove the ability to select the old libc++ testing format

As announced on libcxx-dev at [1], the old libc++ testing format is being
removed in favour of the new one. Follow-up commits will clean up the
code that is dead after the removal of this option.

[1]: http://lists.llvm.org/pipermail/libcxx-dev/2020-June/000885.html
The file was modifiedlibunwind/test/lit.site.cfg.in
The file was modifiedlibcxx/utils/libcxx/test/config.py
The file was modifiedlibcxxabi/test/lit.site.cfg.in
The file was modifiedlibcxx/test/lit.site.cfg.in
Commit 0da1e7ebf9a82e49858e77a5bbe1a14f08ef00d7 by ctetreau
[SVE] Remove calls to VectorType::getNumElements from X86

Reviewers: efriedma, RKSimon, craig.topper, fpetrogalli, c-rhodes

Reviewed By: RKSimon

Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D82508
The file was modifiedllvm/lib/Target/X86/X86TargetTransformInfo.h
The file was modifiedllvm/lib/Target/X86/X86TargetTransformInfo.cpp
The file was modifiedllvm/lib/Target/X86/X86ShuffleDecodeConstantPool.cpp
The file was modifiedllvm/lib/Target/X86/X86InterleavedAccess.cpp
The file was modifiedllvm/lib/Target/X86/X86PartialReduction.cpp
Commit 01bf8cdf5fa9bc71869e15e5e351b2b68c39feb6 by sam.mccall
[ADT] Support const-qualified unique_functions

Summary:
This technique should extend to rvalue-qualified etc, but I didn't add any.
I removed "volatile" from the future plans, which seems... speculative at best.

While here I moved the callbacks object out of the constructor into a
variable template, which I believe addresses the fixme there about unused
objects.

(I'm not a template guru, so it's always possible the old version was designed
for compile-time performance in a way I'm missing)

Reviewers: kadircet

Subscribers: dexonsmith, llvm-commits, chandlerc

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D82581
The file was modifiedllvm/include/llvm/ADT/FunctionExtras.h
The file was modifiedllvm/unittests/ADT/FunctionExtrasTest.cpp
Commit b8a6f58f696fd1113149a557ac4ecd8cd33688f7 by a.bataev
[DEBUGINFO]Add a test for packed bitfields, NFC.
The file was addedllvm/test/DebugInfo/X86/packed_bitfields.ll
Commit 9963d93b0731e21dd1c9c1cebf8baaecf2010330 by sam.mccall
[clangd] Config: config struct propagated through Context

Summary:
This introduces the "semantic form" of config exposed to features,
contrasted with the "syntactic form" exposed to users in e9fb1506b83d.

The two are not connected, CompiledFragment and Provider will bridge that gap.
Nor is configuration actually set: that needs changes to ClangdServer,
TUScheduler, and BackgroundQueue.

Reviewers: hokein, kadircet

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

Tags: #clang

Differential Revision: https://reviews.llvm.org/D82606
The file was addedclang-tools-extra/clangd/Config.cpp
The file was modifiedclang-tools-extra/clangd/CompileCommands.cpp
The file was modifiedclang-tools-extra/clangd/CMakeLists.txt
The file was addedclang-tools-extra/clangd/Config.h
The file was modifiedclang-tools-extra/clangd/unittests/CompileCommandsTests.cpp
Commit 09b6dffb8ed19d624fddc7a57ce886f8be3c45b2 by nikita.ppv
Revert "[ADT] Support const-qualified unique_functions"

This reverts commit 01bf8cdf5fa9bc71869e15e5e351b2b68c39feb6.

Breaks the build:

llvm/include/llvm/ADT/FunctionExtras.h:223:7: error: explicit template argument list not allowed
  223 |       Callbacks<CallableT, CalledAs, EnableIfTrivial<CallableT>>;
The file was modifiedllvm/include/llvm/ADT/FunctionExtras.h
The file was modifiedllvm/unittests/ADT/FunctionExtrasTest.cpp
Commit c84a952dc7cab11fda4a6f622cf1c955631b99f5 by nikita.ppv
[IndVars] Regenerate test checks (NFC)
The file was modifiedllvm/test/Transforms/IndVarSimplify/elim-extend.ll
Commit 2bad2226801f32362036b471d35a40dc5f343632 by mvels
Add optimization to basic_string::assign for compile-time known constant values.

Summary:
This change optimizes the assign() methods for string where either the contents or lengths are compile time known constants. For small strings (< min_cap) we can execute the assignment entirely inline. For strings up to 128 bytes we allow the compiler to efficiently inline the copy operation after we call the offline __resize<>() method. Short / long branches are taken at the call site for better branch prediction and allowing FDO optimizations.

Benchmarks (unstable / google perflab):
```
name                                                old time/op             new time/op             delta
BM_StringAssignAsciiz_Empty_Opaque                  5.69ns ± 7%             5.97ns ± 7%     ~             (p=0.056 n=5+5)
BM_StringAssignAsciiz_Empty_Transparent             5.39ns ± 7%             0.79ns ± 8%  -85.36%          (p=0.008 n=5+5)
BM_StringAssignAsciiz_Small_Opaque                  11.2ns ± 5%             11.0ns ± 6%     ~             (p=0.548 n=5+5)
BM_StringAssignAsciiz_Small_Transparent             10.1ns ± 7%              1.0ns ± 8%  -89.76%          (p=0.008 n=5+5)
BM_StringAssignAsciiz_Large_Opaque                  23.5ns ± 7%             23.8ns ± 7%     ~             (p=0.841 n=5+5)
BM_StringAssignAsciiz_Large_Transparent             21.4ns ± 7%             12.7ns ± 7%  -40.83%          (p=0.008 n=5+5)
BM_StringAssignAsciiz_Huge_Opaque                    336ns ± 4%              327ns ± 7%     ~             (p=0.421 n=5+5)
BM_StringAssignAsciiz_Huge_Transparent               331ns ± 5%              324ns ± 7%     ~             (p=0.548 n=5+5)
BM_StringAssignAsciizMix_Opaque                     13.6ns ±10%             13.7ns ± 9%     ~             (p=0.690 n=5+5)
BM_StringAssignAsciizMix_Transparent                12.9ns ± 8%              3.6ns ± 8%  -71.82%          (p=0.008 n=5+5)
```

Reviewers: EricWF, #libc!

Subscribers: jfb, libcxx-commits

Tags: #libc

Differential Revision: https://reviews.llvm.org/D82221
The file was modifiedlibcxx/include/string
The file was removedlibcxx/lib/abi/x86_64-apple-darwin.v2.abilist
The file was modifiedlibcxx/include/__string
Commit a450e0d8d092441977d57ca052ba6eb0f800b4fc by llvmgnsyncbot
[gn build] Port 9963d93b073
The file was modifiedllvm/utils/gn/secondary/clang-tools-extra/clangd/BUILD.gn
Commit 6d01a9419351b8ff63b520fd86148795e0d9f381 by rnk
Silence unused var warning in NDEBUG build
The file was modifiedllvm/lib/IR/Function.cpp
Commit 2790516418f4763b5846cd6dd7760a0986ccfa3c by Matthew.Arsenault
X86: Use MOV32r0 pseudo instead of directly emitting xor

This was producing reg = xor undef reg, undef reg. This looks similar
to a use of a value to define itself, and I want to disallow undef
uses for SSA virtual registers. If this were to use implicit_def,
there's no guarantee the two operands end up using the same register
(I think no guarantee exists even if the two operands start out as the
same register, but this was violated when I switched this to use an
explicit implicit_def). The MOV32r0 pseudo evidently exists to handle
this case, so use it instead. This was more work than I expected for
the 64-bit case, but I didn't see any helper for materializing a
64-bit 0.
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
The file was modifiedllvm/test/CodeGen/X86/shadow-stack.ll
Commit 7c308dc80a5c6efe4dcb85dc6e20b2691da5c367 by Matthew.Arsenault
LowerConstantIntrinsics: Fix missing test for byval behavior
The file was modifiedllvm/test/Transforms/LowerConstantIntrinsics/objectsize_basic.ll
Commit e7a1c2a4959a8543364d9d46b32351ef45a84e18 by Matthew.Arsenault
X86: Upgrade a test to not rely on byval pointee type
The file was modifiedllvm/test/CodeGen/X86/byval-callee-cleanup.ll
Commit f7a14514ee63dc2ab9558c50254efb8ac2ad7cc6 by Alex Lorenz
[darwin][driver] isMacosxVersionLT should check against the minimum supported OS version

This change ensures that the Darwin driver doesn't add unsupported libraries to the link
invocation when linking the Apple Silicon macOS slice.

rdar://61011136

Differential Revision: https://reviews.llvm.org/D82696
The file was modifiedclang/lib/Driver/ToolChains/Darwin.h
The file was addedclang/test/Driver/macos-apple-silicon-slice-link-libs.cpp
The file was modifiedllvm/lib/Support/Triple.cpp
The file was modifiedllvm/include/llvm/ADT/Triple.h
Commit 1c15229ba3a1c950852d8d149abca571a93c19a6 by rnk
[gn build] Add missing llvm-lipo dep to check-lld

Updates gn files for 918948db4dc8718cb7aae8765653c27cba3cfe86
The file was modifiedllvm/utils/gn/secondary/lld/test/BUILD.gn
Commit 5918d49ac152a67575cec84c2aa2c5c40b3612c8 by mtrofin
[llvm][NFC] Use llvm_canonicalize_cmake_booleans for LLVM_HAVE_TF_AOT

Reviewers: thakis

Subscribers: mgorny, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D82776
The file was modifiedllvm/test/lit.site.cfg.py.in
The file was modifiedllvm/test/CMakeLists.txt
Commit f45b41348ba49c4a76baab1e3e302ef8e2bb992b by pklausler
[flang] Defer stmt function body analysis until specification part complete

Expression analysis was being invoked on the bodies of statement functions
as they were being encountered during name resolution.  This led to failures
on some FCVS tests in cases where those expressions contained implicitly
typed objects.  Defer the analysis of statemet function bodies to the end
of the specification part, at which time the symbols of the enclosing scope
will have been typed.

Reviewed By: tskeith

Differential Revision: https://reviews.llvm.org/D82796
The file was modifiedflang/lib/Semantics/resolve-names.cpp
Commit 300bbbcb707ad08200543735326982664136d3bc by ditaliano
[ProcessGDBRemote] Get rid of an unused function.

The define was wrong. I could've fixed it, but given this is
unused I decided to drop the function altogether.
The file was modifiedlldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp
Commit 8c288db2c69a2a9c75bfa629d54f80cf8953b11b by sam.mccall
Reland [ADT] Support const-qualified unique_functions

This reverts commit 09b6dffb8ed19d624fddc7a57ce886f8be3c45b2.

Now compiles with GCC!
The file was modifiedllvm/unittests/ADT/FunctionExtrasTest.cpp
The file was modifiedllvm/include/llvm/ADT/FunctionExtras.h
Commit a3684dfc45c3a7bbdf72750d8a527e07e776b608 by sam.mccall
Revert "[clangd] Config: config struct propagated through Context"

This reverts commit 9963d93b0731e21dd1c9c1cebf8baaecf2010330.

Fails on mac/win:
http://45.33.8.238/win/18704/step_9.txt
http://45.33.8.238/mac/16341/step_9.txt
The file was removedclang-tools-extra/clangd/Config.cpp
The file was modifiedclang-tools-extra/clangd/CMakeLists.txt
The file was modifiedclang-tools-extra/clangd/CompileCommands.cpp
The file was removedclang-tools-extra/clangd/Config.h
The file was modifiedclang-tools-extra/clangd/unittests/CompileCommandsTests.cpp
Commit c5a6ee16f2f6cd7fd46616ba6808a98da53e71bd by sam.mccall
Reland [clangd] Config: config struct propagated through Context

This reverts commit a3684dfc45c3a7bbdf72750d8a527e07e776b608.
The file was modifiedclang-tools-extra/clangd/CMakeLists.txt
The file was addedclang-tools-extra/clangd/Config.cpp
The file was modifiedclang-tools-extra/clangd/CompileCommands.cpp
The file was modifiedclang-tools-extra/clangd/unittests/CompileCommandsTests.cpp
The file was addedclang-tools-extra/clangd/Config.h
Commit 7c2cb1448ad2d20e251db5e3ae4a0c84c12aa970 by ndesaulniers
Revert "[clang][SourceManager] cache Macro Expansions"

This reverts commit dffc1420451f674731cb36799c8ae084104ff0b5.

Missed a hunk (D82690).
The file was modifiedclang/lib/Basic/SourceManager.cpp
Commit 7b8cf98b4a9a2f5ea3667fdbf913a4f8952ed36a by ndesaulniers
Reland "[clang][SourceManager] cache Macro Expansions""

This reverts commit 33d63f02ce408d181e13089ee5a667fb2e1cdc78.

Differential Revision: https://reviews.llvm.org/D80681
The file was modifiedclang/lib/Basic/SourceManager.cpp
Commit de172dd17f0334e1fcbbf28a33d0ea24f7cbff1a by leonardchan
[clang][RelativeVTablesABI] Update CodeGenCXX/RelativeVTablesABI/dynamic-cast.cpp

After c7bcd431d9c4bfeb631a3599f1d628603e6351d6, this test started failing when
running with the new pass manager. One of the CHECKs in this file checks how the
vtable is loaded for a void cast, which involves taking 2 bitcasts from the pointer
to the original object. The order of these bitcasts changes under the new PM.
The order doesn't matter, so this relaxes the CHECKs.

Differential Revision: https://reviews.llvm.org/D82802
The file was modifiedclang/test/CodeGenCXX/RelativeVTablesABI/dynamic-cast.cpp
Commit 6f87b99a79a239edb04bf9d0818a529aa5c31f4b by sam.mccall
[ADT] Use more explicit from to initialize member. Appease MSVC?

Or at least get a clearer error message:
http://lab.llvm.org:8011/builders/mlir-windows/builds/3958/steps/build-unified-tree/logs/stdio
The file was modifiedllvm/include/llvm/ADT/FunctionExtras.h
Commit 4a80f1907860c9ebe55d0172d8e7d3ea95aa5d71 by ajcbik
[mlir] [VectorOps] Extend vector reduction integration test with reassoc=true cases.

Reviewed By: reidtatge

Differential Revision: https://reviews.llvm.org/D82674
The file was addedmlir/integration_test/Dialect/Vector/CPU/test-reductions-f32-reassoc.mlir
The file was modifiedmlir/integration_test/Dialect/LLVMIR/CPU/test-vector-reductions-fp.mlir
The file was addedmlir/integration_test/Dialect/Vector/CPU/test-reductions-f64-reassoc.mlir
Commit c48ccb6b4e513e467b22fab1de57a25c23af4361 by Jason Molenda
Simplify conditionals in DNBArchMachARM64::EnableHardwareSingleStep
The file was modifiedlldb/tools/debugserver/source/MacOSX/arm64/DNBArchImplARM64.cpp
Commit 1f14287eab972e76a521a32a2c326b8ff3b8d21f by sam.mccall
[clangd] config() -> Config::current to avoid confict with NS
The file was modifiedclang-tools-extra/clangd/Config.h
The file was modifiedclang-tools-extra/clangd/CompileCommands.cpp
The file was modifiedclang-tools-extra/clangd/Config.cpp
Commit 1bcdea5c36c296dcbf1fc244e14b3b21ca7934d0 by llvm-dev
[X86] Add common prefixes to merge more hadd/sub tests checks
The file was modifiedllvm/test/CodeGen/X86/avx2-phaddsub.ll
The file was modifiedllvm/test/CodeGen/X86/avx512-hadd-hsub.ll
Commit af9cc2d2afe8cbb8dc3b309707f17597ce43071e by lei
[PowerPC] Fix FeatureISA3_1 def in PPC.td to imply FeatureISA3_0.
The file was modifiedllvm/lib/Target/PowerPC/PPC.td
Commit bd2c3014e120949c4acc1d107ac71c4091f00a3d by eschweitz
[flang] Add coarray lowering hooks.

Differential review: https://reviews.llvm.org/D82790
The file was addedflang/lib/Lower/Coarray.cpp
The file was addedflang/include/flang/Lower/Coarray.h
The file was modifiedflang/lib/Lower/CMakeLists.txt
Commit 25055a4fb90292e49f44a0a708390a730cd1116e by zinenko
[mlir] add unsigned comparison builders to Affine EDSC

Current Affine comparison builders, which use operator overload, default to signed comparison.  This creates the possibility of misuse of these builders and potential correctness issues when dealing with unsigned integers.  This change makes the distinction between signed and unsigned comparison builders and forces the caller to make a choice between the two.

Differential Revision: https://reviews.llvm.org/D82323
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Loops.cpp
The file was modifiedmlir/lib/Conversion/VectorToSCF/VectorToSCF.cpp
The file was modifiedmlir/lib/Dialect/Affine/EDSC/Builders.cpp
The file was modifiedmlir/test/EDSC/builder-api-test.cpp
The file was modifiedmlir/include/mlir/EDSC/Builders.h
The file was modifiedmlir/include/mlir/Dialect/Affine/EDSC/Builders.h
The file was modifiedmlir/lib/Dialect/Linalg/EDSC/Builders.cpp
Commit 4d1b7e9820ee9c87541619ce4dd41e92dc43cd9c by richard
Fix a few cases that were incorrectly parsed as unary-expressions
instead of postfix-expressions, and improve error recovery for postfix
operators after unary-expressions.

This covers nullptr, __null, and some calls to type traits with special
parsing rules. We would previously not parse a postfix-expression suffix
for these expressions, so would reject expressions such as
__is_trivial(int)["foo"].

For the case where a postfix-expression suffix is *not* permitted after
a unary-expression (for example, after a new-expression or sizeof
expression), produce a diagnostic if one appears there anyway. That's
always ill-formed, but previously produced very bad diagnostics.
The file was modifiedclang/lib/Parse/ParseExpr.cpp
The file was addedclang/test/Parser/expressions.cpp
The file was modifiedclang/include/clang/Basic/DiagnosticParseKinds.td
Commit 657ac8e717e3cbb121e424c0cb6e2cffdacfd533 by ctetreau
[CMake] Fix incorrect handling of get_target_property failure

Summary:
add_unittest was checking that the result of get_target_property was not
"NOTFOUND", but despite what the documentation says, get_target_property
returns <the var>-NOTFOUND on failure.

Reviewers: efriedma, thakis, serge-sans-paille, chandlerc

Reviewed By: serge-sans-paille

Subscribers: mgorny, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81762
The file was modifiedllvm/cmake/modules/AddLLVM.cmake
Commit ee394e6842733a38ee0953d8ee018547ecbef8fd by jurahul
[MLIR] Add variadic isa<> for Type, Value, and Attribute

- Also adopt variadic llvm::isa<> in more places.
- Fixes https://bugs.llvm.org/show_bug.cgi?id=46445

Differential Revision: https://reviews.llvm.org/D82769
The file was modifiedmlir/lib/Dialect/Quant/Transforms/ConvertConst.cpp
The file was modifiedmlir/include/mlir/IR/Types.h
The file was modifiedmlir/lib/Conversion/StandardToSPIRV/ConvertStandardToSPIRV.cpp
The file was modifiedmlir/lib/Target/LLVMIR/ModuleTranslation.cpp
The file was modifiedmlir/lib/Parser/TypeParser.cpp
The file was modifiedmlir/include/mlir/IR/Matchers.h
The file was modifiedmlir/include/mlir/IR/Value.h
The file was modifiedmlir/include/mlir/IR/StandardTypes.h
The file was modifiedmlir/test/lib/Transforms/TestMemRefDependenceCheck.cpp
The file was modifiedmlir/lib/Analysis/Utils.cpp
The file was modifiedmlir/lib/Dialect/Traits.cpp
The file was modifiedmlir/include/mlir/IR/Attributes.h
The file was modifiedmlir/lib/Dialect/Affine/EDSC/Builders.cpp
The file was modifiedmlir/lib/Dialect/Quant/IR/QuantOps.cpp
The file was modifiedmlir/examples/toy/Ch7/mlir/Dialect.cpp
The file was modifiedmlir/lib/Dialect/StandardOps/IR/Ops.cpp
The file was modifiedmlir/lib/IR/StandardTypes.cpp
The file was modifiedmlir/docs/Tutorials/Toy/Ch-7.md
The file was modifiedmlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
The file was modifiedmlir/lib/IR/Attributes.cpp
The file was modifiedmlir/lib/Dialect/SPIRV/SPIRVOps.cpp
The file was modifiedmlir/lib/IR/SymbolTable.cpp
The file was modifiedmlir/lib/Dialect/Affine/Transforms/AffineLoopInvariantCodeMotion.cpp
The file was modifiedmlir/lib/Transforms/Utils/LoopFusionUtils.cpp
The file was modifiedmlir/lib/Dialect/Affine/Transforms/AffineDataCopyGeneration.cpp
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Fusion.cpp
The file was modifiedmlir/lib/Parser/AttributeParser.cpp
The file was modifiedmlir/include/mlir/EDSC/Builders.h
Commit cf1d04484344be52ada8178e41d18fd15a9b880c by phosek
[CMake][compiler-rt] Only set lld as available when it was built

The `-fuse-ld=lld` check might succeed because there's a system lld,
but that lld may be out-of-date which would cause any tests that
attempt to use for LTO fail. This was observed on some of the bots.

Differential Revision: https://reviews.llvm.org/D81629
The file was modifiedcompiler-rt/CMakeLists.txt
Commit bdcd20062933df3d6a3401dfe0a1fb8c2cb8071f by ctetreau
[SVE] Remove calls to VectorType::getNumElements from Instrumentation

Reviewers: efriedma, pcc, gchatelet, kmclaughlin, sdesmalen

Reviewed By: sdesmalen

Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D82241
The file was modifiedllvm/lib/Transforms/Instrumentation/MemorySanitizer.cpp
The file was modifiedllvm/lib/Transforms/Instrumentation/AddressSanitizer.cpp
Commit 381df1653c927efa9dac86c24a9db2b98f270de0 by jyknight
Clang Driver: Use Apple ld64's new @response-file support.

In XCode 12, ld64 got support for @files, in addition to the old
-filelist mechanism. Response files allow passing all command-line
arguments to the linker via a file, rather than just filenames, and is
therefore preferred.

Because of the way response-file support is currently implemented as
part of the Tool class in Clang, this change requires an ugly backdoor
function to access Args. A follow-up commit fixes this, but I've
ordered this change first, for easier backportability.

I've added no tests here, because unfortunately, there don't appear to
be _any_ response-file emission automated tests, and I don't see an
obvious way to add them. I've tested that this change works as
expected locally.

Differential Revision: https://reviews.llvm.org/D82777
The file was modifiedclang/include/clang/Driver/ToolChain.h
The file was modifiedclang/lib/Driver/ToolChains/Darwin.cpp
The file was modifiedclang/lib/Driver/ToolChains/Darwin.h
Commit 4772b99dffec4f87bb7bc9273495066058ac0186 by jyknight
Clang Driver: refactor support for writing response files to be
specified at Command creation, rather than as part of the Tool.

This resolves the hack I just added to allow Darwin toolchain to vary
its level of support based on `-mlinker-version=`.

The change preserves the _current_ settings for response-file support.
Some tools look likely to be declaring that they don't support
response files in error, however I kept them as-is in order for this
change to be a simple refactoring.

Differential Revision: https://reviews.llvm.org/D82782
The file was modifiedclang/lib/Driver/Driver.cpp
The file was modifiedclang/lib/Driver/ToolChains/WebAssembly.h
The file was modifiedclang/lib/Driver/ToolChains/PS4CPU.cpp
The file was modifiedclang/lib/Driver/ToolChains/Clang.h
The file was modifiedclang/lib/Driver/ToolChains/FreeBSD.h
The file was modifiedclang/lib/Driver/ToolChains/NaCl.cpp
The file was modifiedclang/lib/Driver/ToolChains/MSVC.cpp
The file was modifiedclang/lib/Driver/ToolChains/Solaris.cpp
The file was modifiedclang/lib/Driver/ToolChains/DragonFly.h
The file was modifiedclang/lib/Driver/ToolChains/MSP430.cpp
The file was modifiedclang/lib/Driver/ToolChains/Cuda.h
The file was modifiedclang/lib/Driver/ToolChains/MSVC.h
The file was modifiedclang/lib/Driver/ToolChains/AVR.h
The file was modifiedclang/include/clang/Driver/Job.h
The file was modifiedclang/lib/Driver/ToolChains/Fuchsia.cpp
The file was modifiedclang/lib/Driver/ToolChains/Darwin.h
The file was modifiedclang/lib/Driver/ToolChains/Hexagon.h
The file was modifiedclang/lib/Driver/ToolChains/Cuda.cpp
The file was modifiedclang/lib/Driver/ToolChains/CloudABI.h
The file was modifiedclang/lib/Driver/ToolChains/CommonArgs.cpp
The file was modifiedclang/lib/Driver/ToolChains/Minix.cpp
The file was modifiedclang/lib/Driver/ToolChains/OpenBSD.cpp
The file was modifiedclang/lib/Driver/ToolChains/XCore.cpp
The file was modifiedclang/lib/Driver/ToolChains/Flang.cpp
The file was modifiedclang/lib/Driver/ToolChains/CrossWindows.h
The file was modifiedclang/lib/Driver/Tool.cpp
The file was modifiedclang/lib/Driver/ToolChains/Hexagon.cpp
The file was modifiedclang/lib/Driver/ToolChains/WebAssembly.cpp
The file was modifiedclang/lib/Driver/ToolChains/CloudABI.cpp
The file was modifiedclang/lib/Driver/ToolChains/RISCVToolchain.h
The file was modifiedclang/lib/Driver/ToolChains/NetBSD.h
The file was modifiedclang/lib/Driver/ToolChains/AMDGPU.cpp
The file was modifiedclang/include/clang/Driver/Tool.h
The file was modifiedclang/lib/Driver/ToolChains/MinGW.cpp
The file was modifiedclang/lib/Driver/ToolChains/Minix.h
The file was modifiedclang/lib/Driver/ToolChains/Ananas.h
The file was modifiedclang/include/clang/Driver/ToolChain.h
The file was modifiedclang/lib/Driver/ToolChains/AMDGPU.h
The file was modifiedclang/lib/Driver/ToolChains/Gnu.h
The file was modifiedclang/lib/Driver/ToolChains/Darwin.cpp
The file was modifiedclang/lib/Driver/ToolChains/BareMetal.cpp
The file was modifiedclang/lib/Driver/ToolChains/RISCVToolchain.cpp
The file was modifiedclang/lib/Driver/ToolChains/InterfaceStubs.cpp
The file was modifiedclang/lib/Driver/ToolChains/HIP.cpp
The file was modifiedclang/lib/Driver/ToolChains/PS4CPU.h
The file was modifiedclang/lib/Driver/ToolChains/AVR.cpp
The file was modifiedclang/lib/Driver/ToolChains/Myriad.h
The file was modifiedclang/lib/Driver/ToolChains/Ananas.cpp
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was modifiedclang/lib/Driver/ToolChains/MSP430.h
The file was modifiedclang/lib/Driver/ToolChains/MinGW.h
The file was modifiedclang/lib/Driver/ToolChains/OpenBSD.h
The file was modifiedclang/lib/Driver/ToolChains/AIX.cpp
The file was modifiedclang/lib/Driver/Job.cpp
The file was modifiedclang/lib/Driver/ToolChains/Myriad.cpp
The file was modifiedclang/lib/Driver/ToolChains/FreeBSD.cpp
The file was modifiedclang/lib/Driver/ToolChains/NaCl.h
The file was modifiedclang/lib/Driver/ToolChains/CrossWindows.cpp
The file was modifiedclang/lib/Driver/ToolChains/NetBSD.cpp
The file was modifiedclang/lib/Driver/ToolChains/DragonFly.cpp
The file was modifiedclang/lib/Driver/ToolChains/Gnu.cpp
Commit 632438726429859b80a68721bf91daec2d8b7b2a by jdenny.ornl
[FileCheck][NFC] Clean up RUN style in verbose.txt test

Reviewed By: jhenderson, thopre

Differential Revision: https://reviews.llvm.org/D82658
The file was modifiedllvm/test/FileCheck/verbose.txt
Commit 782585a2144e2af019bd3e4dc48cab611545645b by jdenny.ornl
[FileCheck] Permit multiple -v or -vv

`FILECHECK_OPTS` was implemented so that a test runner, such as CI,
can specify FileCheck debugging options, such as `-v` and `-vv`.
However, if a test suite has a FileCheck call that already specifies
`-v` or `-vv`, then that call will fail if `FILECHECK_OPTS` also
specifies it.

For `-vv`, this problem already exists:

`clang/test/CodeGen/aarch64-v8.2a-fp16-intrinsics-constrained.c`

It's not yet clear if the `-vv` in that test was intentional, but this
usage shouldn't fail anyway.  It's already true that FileCheck permits
`-vv` and `-v` together even though `-vv` implies `-v`.

Compare D70784, which fixed the same problem for `-dump-input`.

Reviewed By: jhenderson, thopre

Differential Revision: https://reviews.llvm.org/D82601
The file was modifiedllvm/test/FileCheck/verbose.txt
The file was modifiedllvm/utils/FileCheck/FileCheck.cpp
Commit cd1bc5c15d4e58b574060c844917c8dfeb7a8f54 by antiagainst
[MLIR][SPIRVToLLVM] Convert bitwise and logical not

This patch introduces new conversion patterns for bit and logical
negation op: `spv.Not` and `spv.LogicalNot`. They are implemented
by applying xor on the operand and mask with all bits set.

Differential Revision: https://reviews.llvm.org/D82637
The file was modifiedmlir/lib/Conversion/SPIRVToLLVM/ConvertSPIRVToLLVM.cpp
The file was modifiedmlir/test/Conversion/SPIRVToLLVM/bitwise-ops-to-llvm.mlir
The file was modifiedmlir/test/Conversion/SPIRVToLLVM/logical-to-llvm.mlir
Commit 9b04d69ccefb57ec202a0ecdb36a84ed0568aead by craig.topper
[X86] Prefer AND over PSHUFB for v64i8 when possible

If the shuffle is a blend and one input is a 0 vector, we should prefer AND over PSHUFB since its available on more execution ports.

Differential Revision: https://reviews.llvm.org/D82798
The file was modifiedllvm/test/CodeGen/X86/vector-shuffle-512-v64.ll
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
The file was modifiedllvm/test/CodeGen/X86/avx512-mask-op.ll
Commit 71b9d89df78f25f373b6352c0f0c1e3a539634d0 by jpienaar
[ods] Update Operator to record Arg->[Attr|Operand]Index mapping

Also fixed bug in type inferface generator to address bug where operands and
attributes are interleaved.

Differential Revision: https://reviews.llvm.org/D82819
The file was modifiedmlir/include/mlir/TableGen/Operator.h
The file was modifiedmlir/test/mlir-tblgen/op-result.td
The file was modifiedmlir/tools/mlir-tblgen/OpDefinitionsGen.cpp
The file was modifiedmlir/lib/TableGen/Operator.cpp
Commit 3819789be6b83ac7af619b8279a0c480f9bffeeb by antiagainst
[MLIR][SPIRVToLLVM] Added Bitcast conversion pattern

Added conversion pattern and tests for `spv.Bitcast` op.  This one has
a direct mapping in LLVM dialect so `DirectConversionPattern` was used.

Differential Revision: https://reviews.llvm.org/D82748
The file was modifiedmlir/lib/Conversion/SPIRVToLLVM/ConvertSPIRVToLLVM.cpp
The file was modifiedmlir/test/Conversion/SPIRVToLLVM/cast-ops-to-llvm.mlir
Commit 31c689e69404bb8208de9599626f60c77b6fa81d by dblaikie
Move Sema::PragmaStack<ValueType>::Act into Sema.h so it can be instantiated as needed

Found by linker failures in ThinLTO where the definition wasn't
available when it needed to be. (eg: ThinLTO may've eliminated the one
caller in the same TU and dropped the definition - breaking accidental
implicit depenednce on that definition from elsewhere)
The file was modifiedclang/include/clang/Sema/Sema.h
The file was modifiedclang/lib/Sema/SemaAttr.cpp
Commit 5a5f5350e1cbe14eaf852d9003523c7fdb1132af by richard
[c++20] Fix handling of operator rewrites naming consteval operator<=>.
The file was modifiedclang/test/SemaCXX/cxx2a-consteval.cpp
The file was modifiedclang/lib/Sema/SemaOverload.cpp
Commit 6792a6077889f1ce77a3aa55b3e4fd3f1eb4333b by Alex Lorenz
[darwin][driver] pass the minimum supported OS version to the linker
if it's newer than the target version

This change ensures that the arm64-apple-macOS slice is linked for
macOS 11 even if the deployment target is earlier than macOS 11.
The file was modifiedclang/test/Driver/darwin-ld-platform-version-macos.c
The file was modifiedclang/lib/Driver/ToolChains/Darwin.cpp
Commit 45bb073da8efc8652f7b8b351709ce0c838ed4b0 by tianshilei1992
[OpenMP] fix clang warning about printf format in CUDA plugin

Summary: Warnings are printed by clang when building LIBOMPTARGET_ENABLE_DEBUG=ON due incorrect format string.

Reviewers: tianshilei1992, jdoerfert

Reviewed By: tianshilei1992

Subscribers: yaxunl, guansong, sstefan1, openmp-commits

Tags: #openmp

Differential Revision: https://reviews.llvm.org/D82789
The file was modifiedopenmp/libomptarget/plugins/cuda/src/rtl.cpp