SuccessChanges

Summary

  1. Fix the test case from D88686 (details)
  2. [CUDA][HIP] Fix bound arch for offload action for fat binary (details)
  3. [fuzzer] Remove unused variable (details)
  4. Diagnose invalid target ID for AMDGPU toolchain for assembler (details)
  5. Revert "[Driver] Move detectLibcxxIncludePath to ToolChain" (details)
  6. [gn build] Port ace644030e6 (details)
  7. [CMake] Don't use CMakePushCheckState (details)
  8. [Sparc] Remove cast that truncates immediate operands to 32 bits. (details)
  9. Fix the test case in D88686 (details)
  10. [lsan] Share platform allocator settings between ASan and LSan (details)
  11. Revert "[lsan] Share platform allocator settings between ASan and LSan" (details)
  12. [X86] Add missing intrinsic test for aesdecwide128kl and aesdecwide256kl. Capture all output values in keylocker tests. NFC (details)
  13. [X86] Move MWAITX_DAG ISD opcode so it is not in the strict FP range. (details)
  14. [Driver] Move detectLibcxxIncludePath to ToolChain (details)
  15. [PATCH] Fix typo (NFC) (details)
Commit 3847986fd2c838026b9d883bb61f2e419988c1a5 by jianzhouzh
Fix the test case from D88686

It seems that one buildnot RSS value is much higher after munmap than
local run.
The file was modifiedcompiler-rt/test/dfsan/munmap_release_shadow.c
Commit cbd420c5ed8568774ace3ad8385b2346288e152c by Yaxun.Liu
[CUDA][HIP] Fix bound arch for offload action for fat binary

Currently CUDA/HIP toolchain uses "unknown" as bound arch
for offload action for fat binary. This causes -mcpu or -march
with "unknown" added in HIPToolChain::TranslateArgs or
CUDAToolChain::TranslateArgs.

This causes issue for https://reviews.llvm.org/D88377 since
HIP toolchain needs to check -mcpu in HIPToolChain::TranslateArgs.

The bound arch of offload action for fat binary is not really
used, therefore set it to CudaArch::UNUSED.

Differential Revision: https://reviews.llvm.org/D88524
The file was modifiedclang/lib/Basic/Cuda.cpp
The file was modifiedclang/test/Driver/hip-phases.hip
The file was addedclang/test/Driver/hip-toolchain-device-only.hip
The file was modifiedclang/lib/CodeGen/CGOpenMPRuntimeGPU.cpp
The file was modifiedclang/lib/Driver/Driver.cpp
The file was modifiedclang/include/clang/Basic/Cuda.h
The file was modifiedclang/lib/Basic/Targets/NVPTX.cpp
Commit c56bb45e839940fffabcbf928a3778cfffc31ddd by julian.lettner
[fuzzer] Remove unused variable

`TempAutoDictionary` is never used.  Maybe a leftover of a previous
experiment?

Differential Revision: https://reviews.llvm.org/D88763
The file was modifiedcompiler-rt/lib/fuzzer/FuzzerMutate.h
Commit 2cd75f738ec6b150719a9468372d77b7064ff340 by Yaxun.Liu
Diagnose invalid target ID for AMDGPU toolchain for assembler

AMDGPU toolchain currently only diagnose invalid target ID for OpenCL
source compilation. Invalid target ID is not diagnosed for assembler.

This patch fixes that.

Differential Revision: https://reviews.llvm.org/D88377
The file was modifiedclang/lib/Driver/ToolChains/HIP.cpp
The file was addedclang/test/Driver/amdgpu-invalid-target-id.s
The file was modifiedclang/lib/Driver/ToolChains/AMDGPU.cpp
The file was modifiedclang/lib/Driver/ToolChains/AMDGPU.h
Commit 9a48411f35a122ac8755a8453887b919c77daf3f by phosek
Revert "[Driver] Move detectLibcxxIncludePath to ToolChain"

This reverts commit a594fd28e373cb7cd348cf01f6a90e055bf6cf6d which
is failign on some bots.
The file was modifiedclang/include/clang/Driver/ToolChain.h
The file was modifiedclang/lib/Driver/ToolChain.cpp
The file was modifiedclang/lib/Driver/ToolChains/Fuchsia.cpp
The file was modifiedclang/lib/Driver/ToolChains/Gnu.cpp
Commit c8e73920ee61951096909a1d3cbfe7f2fa5bf814 by llvmgnsyncbot
[gn build] Port ace644030e6
The file was modifiedllvm/utils/gn/secondary/clang-tools-extra/clang-tidy/readability/BUILD.gn
Commit 64f2855f15d8496be2275ea82f8996868b618b15 by phosek
[CMake] Don't use CMakePushCheckState

When we call cmake_pop_check_state, we undo any changes to REQUIRED
variables performed by HandleLLVMOptions which is undesirable. Rather
use replacement which is what we've used prior to 8d26760a.

Differential Revision: https://reviews.llvm.org/D88756
The file was modifiedllvm/runtimes/CMakeLists.txt
Commit 9ae95a0f8f1bc9bd9e8eb30a5a9444fbdca5cc29 by brad
[Sparc] Remove cast that truncates immediate operands to 32 bits.

Patch by: Mark Kettenis

Test provided by Jessica Clarke.

Differential Revision: https://reviews.llvm.org/D87210
The file was modifiedllvm/test/CodeGen/SPARC/inlineasm-v9.ll
The file was modifiedllvm/lib/Target/Sparc/SparcAsmPrinter.cpp
Commit 88c9162c9d47ef43a505bc5301dc626f3cd4f437 by jianzhouzh
Fix the test case in D88686

Adjusted when to check RSS.
The file was modifiedcompiler-rt/test/dfsan/munmap_release_shadow.c
Commit 1c897e9d72979730f7555e77dd54fe892a461637 by mcgrathr
[lsan] Share platform allocator settings between ASan and LSan

This moves the platform-specific parameter logic from asan into
lsan_common.h to lsan can share it.

Reviewed By: vitalybuka

Differential Revision: https://reviews.llvm.org/D87795
The file was modifiedcompiler-rt/lib/asan/asan_allocator.h
The file was modifiedcompiler-rt/lib/lsan/lsan_allocator.h
The file was modifiedcompiler-rt/lib/lsan/lsan_common.h
Commit 5b0cfe93b6cdaf2e0383ed8edaa867430d7e6e4e by mcgrathr
Revert "[lsan] Share platform allocator settings between ASan and LSan"

This reverts commit 1c897e9d72979730f7555e77dd54fe892a461637.

It broke builds for 32-bit targets.

Differential Revision: https://reviews.llvm.org/D88768
The file was modifiedcompiler-rt/lib/lsan/lsan_common.h
The file was modifiedcompiler-rt/lib/asan/asan_allocator.h
The file was modifiedcompiler-rt/lib/lsan/lsan_allocator.h
Commit 63fc8499f305be192f0f9a62c43e0fcfdbdb7607 by craig.topper
[X86] Add missing intrinsic test for aesdecwide128kl and aesdecwide256kl. Capture all output values in keylocker tests. NFC

The aesdec/enc instructions produce a flag output and one or eight
xmm regsiter outputs. The test were not capturing the xmm outputs.

Also add nounwind to tests to remove .cfi directives
The file was modifiedllvm/test/CodeGen/X86/keylocker-intrinsics.ll
Commit 8ae4842669f1fee33d22cc3f0c895c7839d05aef by craig.topper
[X86] Move MWAITX_DAG ISD opcode so it is not in the strict FP range.

Add a comment to hopefully prevent anyone else from making the
same mistake.
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.h
Commit e25bf2592060e7751f8b14522c97081ce2047175 by phosek
[Driver] Move detectLibcxxIncludePath to ToolChain

This helper method is useful even outside of Gnu toolchains, so move
it to ToolChain so it can be reused in other toolchains such as Fuchsia.

Differential Revision: https://reviews.llvm.org/D88452
The file was addedclang/test/Driver/Inputs/basic_fuchsia_tree/include/c++/v1/.keep
The file was modifiedclang/lib/Driver/ToolChains/Fuchsia.cpp
The file was modifiedclang/lib/Driver/ToolChain.cpp
The file was modifiedclang/lib/Driver/ToolChains/Gnu.cpp
The file was modifiedclang/include/clang/Driver/ToolChain.h
Commit a0a8f83718454186686f9c11db72408cc36482e3 by ebahapo
[PATCH] Fix typo (NFC)
The file was modifiedclang/test/Driver/riscv-cpus.c