FailedChanges

Summary

  1. Tooling: Migrate to FileEntryRef in clang::tooling::applyAllReplacements, NFC (details)
  2. [DWARF] Allow toolchain to adjust specified DWARF version. (details)
  3. [AMDGPU] Fix expansion of 192 bit spills in PEI (details)
  4. Rename -plugin-opt=no-new-pass-manager to -plugin-opt=legacy-pass-manager (details)
  5. [Driver] Add -f[no-]legacy-pass-manager to supersede -f[no-]experimental-new-pass-manager (details)
  6. clangd: Migrate to FileEntryRef in TweakTests, NFC (details)
Commit 2ea8c69eff07c491c7cb14dd46afd30529b89d91 by Duncan P. N. Exon Smith
Tooling: Migrate to FileEntryRef in clang::tooling::applyAllReplacements, NFC

Migrate to the `FileEntryRef` overload of `SourceManager::createFileID`.
The file was modifiedclang/lib/Tooling/Core/Replacement.cpp
Commit 016e4ebfde28d6bb1ab6399fc8abd8cfc6a1d9fd by tra
[DWARF] Allow toolchain to adjust specified DWARF version.

This is needed for CUDA compilation where NVPTX back-end only supports DWARF2,
but host compilation should be allowed to use newer DWARF versions.

Differential Revision: https://reviews.llvm.org/D92617
The file was modifiedclang/lib/Driver/ToolChains/Cuda.h
The file was addedclang/test/Driver/dwarf-target-version-clamp.cu
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was addedclang/test/Driver/cuda-omp-unsupported-debug-options.cu
The file was modifiedclang/include/clang/Driver/ToolChain.h
The file was removedclang/test/Driver/openmp-unsupported-debug-options.c
The file was modifiedclang/include/clang/Basic/DiagnosticDriverKinds.td
The file was removedclang/test/Driver/cuda-unsupported-debug-options.cu
Commit 4617cc68f64a4aea04580cc4df5497a1f24ebfdb by Stanislav.Mekhanoshin
[AMDGPU] Fix expansion of 192 bit spills in PEI

Differential Revision: https://reviews.llvm.org/D92979
The file was modifiedllvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
The file was addedllvm/test/CodeGen/AMDGPU/pei-build-spill.mir
Commit 7adcacda0686b6f73555fbae0beef6b9178fced0 by i
Rename -plugin-opt=no-new-pass-manager to -plugin-opt=legacy-pass-manager
The file was modifiedlld/test/ELF/lto/new-pass-manager.ll
The file was modifiedllvm/test/tools/gold/X86/new-pm.ll
The file was modifiedllvm/tools/gold/gold-plugin.cpp
The file was modifiedlld/ELF/Options.td
Commit f9c0d1b0562c4789638a91ce97f1c2d99608005b by i
[Driver] Add -f[no-]legacy-pass-manager to supersede -f[no-]experimental-new-pass-manager

The new PM is considered stable and many downstream groups have adopted it (some
have adopted it for more than two years). Add -f[no-]legacy-pass-manager to reflect the
fact that it is no longer experimental and the legacy pass manager is something we strive to retire.

In the future, when the legacy PM eventually goes away,
-fno-experimental-new-pass-manager and -flegacy-pass-manager will be removed.

This patch also changes -f[no-]legacy-pass-manager to pass `-plugin-opt={new,legacy}-pass-manager` to the linker (supported by both ld.lld and LLVMgold.so) when -flto/-flto=thin is specified

Reviewed By: aeubanks, rsmith

Differential Revision: https://reviews.llvm.org/D92915
The file was modifiedclang/include/clang/Basic/CodeGenOptions.def
The file was modifiedclang/lib/Driver/ToolChains/CommonArgs.cpp
The file was addedclang/test/Driver/flegacy-pass-manager.c
The file was modifiedclang/lib/Frontend/CompilerInvocation.cpp
The file was modifiedclang/test/Driver/clang_f_opts.c
The file was modifiedclang/include/clang/Driver/Options.td
The file was modifiedclang/lib/CodeGen/BackendUtil.cpp
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was removedclang/test/Driver/gold-lto-new-pass-man.c
Commit 028e55d2d411f19e193e3d5df589162a317ab5f1 by Duncan P. N. Exon Smith
clangd: Migrate to FileEntryRef in TweakTests, NFC
The file was modifiedclang-tools-extra/clangd/unittests/tweaks/TweakTests.cpp