SuccessChanges

Summary

  1. [libc++] Remove unnecessary LLVM_INCLUDE_BENCHMARKS option in the Apple build (details)
  2. Fix polly build after 8c2082e1dc9505da21806b707dfb3eae3f0550ff (details)
  3. [WebAssembly] Adding 64-bit versions of __stack_pointer and other globals (details)
  4. [WebAssembly] Add warnings for -shared and -pie (details)
  5. [lldb/test] Skip TestBreakpointThumbCodesection on arm64. (details)
  6. [lldb/test] XFAIL TestHWBreakMultiThread on arch rather platform. (details)
  7. [test] XFail TestSigtrampUnwind based on arch rather than OS (details)
  8. [test] XFail TestStepNoDebug based on arch rather than OS (details)
  9. [libc++] Add missing <stddef.h> include to <wchar.h> (details)
  10. [compiler-rt] Add support for arm64 macOS (details)
  11. Remove references to the 4.0 release as a major breaking (NFC) (details)
  12. [CMake] Add llvm-config to DEBUGINFO_TEST_DEPS (details)
  13. [lldb/ScriptInterpreter] Fix Windows error C2371: 'pid_t': redefinition (details)
  14. [AArch64][GlobalISel] Fix extended shift addressing mode selection not handling sxth. (details)
  15. [debuginfo-tests] Require "lldb" for some dexter tests (details)
  16. [InferAddressSpaces] Handle the pair of `ptrtoint`/`inttoptr`. (details)
  17. [CMake] Add optional asan & safestack dependencies to DEBUGINFO_TEST_DEPS (details)
  18. [clangd] Fix test compile with GCC (name conflict) (details)
  19. [NewPM][BasicAA] Rename basicaa -> basic-aa, add alias (details)
  20. [CMake] Add optional lldb dependency to DEBUGINFO_TEST_DEPS (details)
  21. [hip] Disable test temporarily due to failures on build servers. (details)
  22. [hip] Re-enable `clang/test/CodeGenCUDA/amdgpu-kernel-arg-pointer-type.cu` (details)
  23. [PowerPC][Power10] Implement centrifuge, vector gather every nth bit, vector evaluate Builtins in LLVM/Clang (details)
  24. [NFC] Extract unifyTargetFeatures (details)
  25. [hip] Refine `clang/test/CodeGenCUDA/amdgpu-kernel-arg-pointer-type.cu` (details)
  26. [HIP] Add missing options for lto (details)
Commit 7014b44c0af6c1befb804be5aa8c9de4888f378c by Louis Dionne
[libc++] Remove unnecessary LLVM_INCLUDE_BENCHMARKS option in the Apple build

Since we're using an empty top-level CMakeLists.txt instead of the CMakeLists.txt
inside llvm/, we don't need to specify LLVM_INCLUDE_BENCHMARKS anymore.
The file was modifiedlibcxx/utils/ci/apple-install-libcxx.sh
Commit 6e11ed52057ffc39941cb2de6d93cae522db4782 by maskray
Fix polly build after 8c2082e1dc9505da21806b707dfb3eae3f0550ff
The file was modifiedpolly/lib/Transform/ScopInliner.cpp
Commit b9a539c01084a572e406579c326a0da1e22e286f by aardappel
[WebAssembly] Adding 64-bit versions of __stack_pointer and other globals

We have 6 globals, all of which except for __table_base are 64-bit under wasm64.

Differential Revision: https://reviews.llvm.org/D82130
The file was modifiedllvm/test/MC/WebAssembly/stack-ptr.ll
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyMCInstLower.cpp
The file was modifiedllvm/test/CodeGen/WebAssembly/stack-alignment.ll
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyLateEHPrepare.cpp
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyRegisterInfo.cpp
The file was modifiedclang/lib/Driver/ToolChains/WebAssembly.cpp
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.h
The file was modifiedllvm/test/MC/WebAssembly/wasm64.s
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyFrameLowering.cpp
The file was modifiedllvm/include/llvm/BinaryFormat/Wasm.h
The file was modifiedllvm/test/CodeGen/WebAssembly/userstack.ll
The file was modifiedlld/wasm/InputChunks.cpp
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyISelDAGToDAG.cpp
The file was modifiedlld/wasm/Driver.cpp
The file was modifiedlld/wasm/Config.h
The file was modifiedlld/wasm/Options.td
The file was modifiedllvm/lib/Target/WebAssembly/WebAssemblyRegStackify.cpp
Commit 46a32683123a05b58302f10dc4c270519c80115a by sunfish
[WebAssembly] Add warnings for -shared and -pie

The meaning of -shared and -pie are expected to be changed in the
future when Module Linking-style libraries are implemented. Begin
issuing warnings to give people a heads-up that they will be changing.

For compatibility with Emscripten, add a --experimental-pic flag which
disables these warnings.

Differential Revision: https://reviews.llvm.org/D81760
The file was modifiedlld/wasm/Driver.cpp
The file was modifiedlld/wasm/Config.h
The file was modifiedlld/wasm/Options.td
Commit d358ec463943878936080064d1c43afd8798aaf0 by ditaliano
[lldb/test] Skip TestBreakpointThumbCodesection on arm64.

This test relies on thumb, which is a 32-bits feature only.
The file was modifiedlldb/test/API/arm/breakpoint-thumb-codesection/TestBreakpointThumbCodesection.py
Commit 0df7be234412e60fbbaaf8c181fe2dfb3a2c1cc3 by ditaliano
[lldb/test] XFAIL TestHWBreakMultiThread on arch rather platform.
The file was modifiedlldb/test/API/functionalities/breakpoint/hardware_breakpoints/hardware_breakpoint_on_multiple_threads/TestHWBreakMultiThread.py
Commit 38135b2a7fff008093c0ca020855373f33ec9b12 by ditaliano
[test] XFail TestSigtrampUnwind based on arch rather than OS
The file was modifiedlldb/test/API/functionalities/unwind/sigtramp/TestSigtrampUnwind.py
Commit c7eb06a880522867e7df3f025056f6c5b10d0eca by ditaliano
[test] XFail TestStepNoDebug based on arch rather than OS
The file was modifiedlldb/test/API/functionalities/step-avoids-no-debug/TestStepNoDebug.py
Commit 8808574e7438c8768b78ae7dd0f029385c6df01d by Louis Dionne
[libc++] Add missing <stddef.h> include to <wchar.h>

It is needed because <wchar.h> uses size_t.
The file was modifiedlibcxx/include/wchar.h
Commit b2303debfa63b60c21c93c318bed63341564a549 by Steven Wu
[compiler-rt] Add support for arm64 macOS

Summary: Allow compiler-rt to build for arm64 support on macOS.

Reviewers: arphaman, doug.gregor, dexonsmith

Reviewed By: arphaman, dexonsmith

Subscribers: dberris, mgorny, kristof.beyls, jkorous, ributzka, danielkiss, #sanitizers, llvm-commits

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D82610
The file was modifiedcompiler-rt/cmake/builtin-config-ix.cmake
The file was modifiedcompiler-rt/cmake/Modules/CompilerRTDarwinUtils.cmake
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h
The file was modifiedcompiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.cpp
Commit 4abf0243367d6e923cfa1a32e26ac3cb7787e3c9 by joker.eph
Remove references to the 4.0 release as a major breaking (NFC)

This is cleaning up comments (mostly in the bitcode handling) about
removing some backward compatibility aspect in the 4.0 release.
Historically, "4.0" was used during the development of the 3.x
versions as "this future major breaking change version". At the time
the major number was used to indicate the compatibility. When we
reached 3.9 we decided to change the numbering, instead of going to
3.10 we went to 4.0 but after changing the meaning of the major
number to not mean anything anymore with respect to bitcode backward
compatibility.

The current policy
(https://llvm.org/docs/DeveloperPolicy.html#ir-backwards-compatibility)
indicates only now:

  The current LLVM version supports loading any bitcode since version 3.0.

Differential Revision: https://reviews.llvm.org/D82514
The file was modifiedllvm/lib/Bitcode/Reader/BitcodeAnalyzer.cpp
The file was modifiedllvm/include/llvm/Bitcode/LLVMBitCodes.h
The file was modifiedllvm/lib/Bitcode/Reader/MetadataLoader.cpp
The file was modifiedllvm/docs/HowToUseAttributes.rst
The file was modifiedllvm/lib/IR/DataLayout.cpp
The file was modifiedllvm/lib/Bitcode/Reader/BitcodeReader.cpp
Commit ca8b7ef763797253e08f614a7d38b76e77806b12 by maskray
[CMake] Add llvm-config to DEBUGINFO_TEST_DEPS

Fix `fatal: Could not run process ['/path/to/build/./bin/llvm-config', '--build-mode']`
when running check-debuginfo in a fresh build directory.
The file was modifieddebuginfo-tests/CMakeLists.txt
Commit f441313464b2eef94a41c60bfde31a2bf9c602d7 by Jonas Devlieghere
[lldb/ScriptInterpreter] Fix Windows error C2371: 'pid_t': redefinition

pyconfig.h(194): error C2371: 'pid_t': redefinition; different basic types
PosixApi.h(82): note: see declaration of 'pid_t'
The file was modifiedlldb/unittests/ScriptInterpreter/Python/PythonTestSuite.cpp
Commit 97a34b5f8d2e855be5d43854de6ef237ed81139f by Amara Emerson
[AArch64][GlobalISel] Fix extended shift addressing mode selection not handling sxth.

The complex pattern for extended shift offsets only allow sxtw as the extend,
not sxth. Our equivalent function to do this was not rejecting SXTH so we
were miscompiling. This was exposed by D81992.
The file was modifiedllvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
The file was addedllvm/test/CodeGen/AArch64/GlobalISel/sext-inreg-ldrow-16b.mir
Commit 40dd5cb11074050434db999a388a2b7aab517e4d by maskray
[debuginfo-tests] Require "lldb" for some dexter tests
The file was modifieddebuginfo-tests/dexter/feature_tests/subtools/view.cpp
The file was addeddebuginfo-tests/dexter/feature_tests/commands/perfect/lit.local.cfg
Commit dccfaacf93e1c4801cbcc4686f64eb8a35564ff7 by michael.hliao
[InferAddressSpaces] Handle the pair of `ptrtoint`/`inttoptr`.

Summary:
- `ptrtoint` and `inttoptr` are defined as no-op casts if the integer
  value as the same size as the pointer value. The pair of
  `ptrtoint`/`inttoptr` is in fact a no-op cast sequence between
  different address spaces. Teach `infer-address-spaces` to handle them
  like a `bitcast`.

Reviewers: arsenm, chandlerc

Subscribers: jvesely, wdng, nhaehnle, hiraditya, kerbowa, cfe-commits, llvm-commits

Tags: #clang, #llvm

Differential Revision: https://reviews.llvm.org/D81938
The file was addedllvm/test/Transforms/InferAddressSpaces/AMDGPU/noop-ptrint-pair.ll
The file was modifiedllvm/lib/Transforms/Scalar/InferAddressSpaces.cpp
The file was modifiedclang/test/CodeGenCUDA/amdgpu-kernel-arg-pointer-type.cu
Commit e477a5f6c88de0ef7745694ec5f00bd69da23177 by maskray
[CMake] Add optional asan & safestack dependencies to DEBUGINFO_TEST_DEPS
The file was modifieddebuginfo-tests/CMakeLists.txt
Commit 0e1997ed4ef74202a1bec6e7c18ba7a1df496896 by sam.mccall
[clangd] Fix test compile with GCC (name conflict)
The file was modifiedclang-tools-extra/clangd/unittests/ConfigYAMLTests.cpp
Commit 0c6bf90b568ff832f1465959d6adca219da84513 by aeubanks
[NewPM][BasicAA] Rename basicaa -> basic-aa, add alias

Summary:
BasicAA under the new pass manager is called "basic-aa", which fits more
with the other AA names which almost always contain a dash.

Keep an alias from basicaa -> basic-aa.

Will change all references of "basicaa" to "basic-aa", then remove the
alias.

Makes check-llvm failures under NPM go from 2307 to 1867.

Reviewers: asbirlea, ychen

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D82607
The file was modifiedllvm/test/Analysis/BasicAA/empty.ll
The file was modifiedllvm/include/llvm/IR/LegacyPassNameParser.h
The file was modifiedllvm/lib/Analysis/BasicAliasAnalysis.cpp
Commit 161ae1f39816edf667aaa190bce702a86879c7bd by maskray
[CMake] Add optional lldb dependency to DEBUGINFO_TEST_DEPS

if(TARGET asan) is still brittle as it depends on the order of
compiler-rt and debuginfo-tests in LLVM_ENABLE_PROJECTS.
The file was modifieddebuginfo-tests/CMakeLists.txt
Commit d3f437d35189f7567294daf3e60e08326e64994a by michael.hliao
[hip] Disable test temporarily due to failures on build servers.
The file was modifiedclang/test/CodeGenCUDA/amdgpu-kernel-arg-pointer-type.cu
Commit 0723b1891fac8f79f92549e3bcac9112be4ebd43 by michael.hliao
[hip] Re-enable `clang/test/CodeGenCUDA/amdgpu-kernel-arg-pointer-type.cu`

- Require amdgpu target being enabled.
The file was modifiedclang/test/CodeGenCUDA/amdgpu-kernel-arg-pointer-type.cu
Commit e0c02dc9800ebd317d1369848f4e74c8f783533a by amy.kwan1
[PowerPC][Power10] Implement centrifuge, vector gather every nth bit, vector evaluate Builtins in LLVM/Clang

This patch implements builtins for the following prototypes:

unsigned long long __builtin_cfuged (unsigned long long, unsigned long long);
vector unsigned long long vec_cfuge (vector unsigned long long, vector unsigned long long);
unsigned long long vec_gnb (vector unsigned __int128, const unsigned int);
vector unsigned char vec_ternarylogic (vector unsigned char, vector unsigned char, vector unsigned char, const unsigned int);
vector unsigned short vec_ternarylogic (vector unsigned short, vector unsigned short, vector unsigned short, const unsigned int);
vector unsigned int vec_ternarylogic (vector unsigned int, vector unsigned int, vector unsigned int, const unsigned int);
vector unsigned long long vec_ternarylogic (vector unsigned long long, vector unsigned long long, vector unsigned long long, const unsigned int);
vector unsigned __int128 vec_ternarylogic (vector unsigned __int128, vector unsigned __int128, vector unsigned __int128, const unsigned int);

Differential Revision: https://reviews.llvm.org/D80970
The file was modifiedclang/test/CodeGen/builtins-ppc-p10vector.c
The file was modifiedllvm/lib/Target/PowerPC/PPCInstrPrefix.td
The file was modifiedllvm/test/MC/PowerPC/p10.s
The file was modifiedllvm/test/CodeGen/PowerPC/p10-bit-manip-ops.ll
The file was modifiedllvm/test/MC/Disassembler/PowerPC/p10insts.txt
The file was modifiedclang/include/clang/Basic/BuiltinsPPC.def
The file was modifiedllvm/include/llvm/IR/IntrinsicsPowerPC.td
The file was modifiedclang/lib/Headers/altivec.h
The file was modifiedclang/lib/Sema/SemaChecking.cpp
The file was modifiedclang/test/CodeGen/builtins-ppc-p10.c
Commit ed398c3ca404f9ec50b134863a227555a9e374df by Yaxun.Liu
[NFC] Extract unifyTargetFeatures

Differential Revision: https://reviews.llvm.org/D82579
The file was modifiedclang/lib/Driver/ToolChains/Clang.cpp
The file was modifiedclang/lib/Driver/ToolChains/CommonArgs.cpp
The file was modifiedclang/lib/Driver/ToolChains/CommonArgs.h
The file was modifiedclang/test/Driver/hip-toolchain-features.hip
Commit 471c806a45bbac2f0f4274d8bea383d06d397a84 by michael.hliao
[hip] Refine `clang/test/CodeGenCUDA/amdgpu-kernel-arg-pointer-type.cu`

- Require target x86 being enabled as well.
The file was modifiedclang/test/CodeGenCUDA/amdgpu-kernel-arg-pointer-type.cu
Commit 8013ce4490225faf8aae911ee88087ce445e604c by Yaxun.Liu
[HIP] Add missing options for lto

Add -mcpu, -mattr, -mllvm, and -save-temps options for lto when necessary.

Differential Revision: https://reviews.llvm.org/D82506
The file was modifiedclang/lib/Driver/ToolChains/AMDGPU.h
The file was modifiedclang/test/Driver/hip-toolchain-rdc.hip
The file was modifiedclang/lib/Driver/ToolChains/HIP.cpp
The file was modifiedclang/test/Driver/hip-toolchain-opt.hip
The file was modifiedclang/test/Driver/hip-toolchain-features.hip
The file was modifiedclang/test/Driver/hip-toolchain-mllvm.hip
The file was modifiedclang/test/Driver/hip-link-save-temps.hip
The file was modifiedclang/test/Driver/hip-save-temps.hip
The file was modifiedclang/test/Driver/hip-toolchain-rdc-separate.hip