SuccessChanges

Summary

  1. Sema: add support for `__attribute__((__swift_newtype__))` (details)
  2. [lldb/examples] Add missing declaration in heap.py (details)
  3. [OpenMP] cmake option LIBOMPTARGET_NVPTX_MAX_SM for nvptx device RTL (details)
  4. [IRSim][NFC] Removing dead variables from IRSimilarityIdentifier.cpp (details)
  5. [AArch64][GlobalISel] Implement __builtin_return_address for PAC-RET (details)
  6. [OPENMP]PR47606: Do not update the lastprivate item if it was captured by reference as firstprivate data member. (details)
  7. [AMDGPU] global-isel support for RT (details)
  8. [AArch64] Regenerate dag-numsignbits.ll checks (details)
  9. [Scalar] ConstantHoistingPass - iterate with const references. NFCI. (details)
Commit 296d8832a3b5fe97725be62c5bbc721cc0e2cd20 by Saleem Abdulrasool
Sema: add support for `__attribute__((__swift_newtype__))`

Add the `swift_newtype` attribute which allows a type definition to be
imported into Swift as a new type.  The imported type must be either an
enumerated type (enum) or an object type (struct).

This is based on the work of the original changes in
https://github.com/llvm/llvm-project-staging/commit/8afaf3aad2af43cfedca7a24cd817848c4e95c0c

Differential Revision: https://reviews.llvm.org/D87652
Reviewed By: Aaron Ballman
The file was modifiedclang/lib/Sema/SemaDeclAttr.cpp
The file was modifiedclang/include/clang/Basic/AttrDocs.td
The file was modifiedclang/include/clang/Basic/Attr.td
The file was modifiedclang/include/clang/Parse/Parser.h
The file was modifiedclang/test/Misc/pragma-attribute-supported-attributes-list.test
The file was addedclang/test/AST/attr-swift_newtype.m
The file was modifiedclang/lib/Parse/ParseDecl.cpp
The file was addedclang/test/SemaObjC/attr-swift_newtype.m
Commit ada1e2ffa1172ede1790b4b42ef8ab01508d3a47 by davelee.com
[lldb/examples] Add missing declaration in heap.py

Add missing declaration for `malloc_get_all_zones` in heap.py.

Differential Revision: https://reviews.llvm.org/D88158
The file was modifiedlldb/examples/darwin/heap_find/heap.py
Commit ffd159d8e919435561a8c9eac0dcdd83aacdcf6a by tianshilei1992
[OpenMP] cmake option LIBOMPTARGET_NVPTX_MAX_SM for nvptx device RTL

It allows customizing MAX_SM for non-flagship GPU and reduces graphic memory usage.

In addition, so far the size is hard-coded up to __CUDA_ARCH__ 700 and is already a hassle for 800.
Introduce MAX_SM for 800 and protect future arch

Reviewed By: JonChesterfield

Differential Revision: https://reviews.llvm.org/D88185
The file was modifiedopenmp/libomptarget/deviceRTLs/nvptx/CMakeLists.txt
The file was modifiedopenmp/libomptarget/deviceRTLs/nvptx/src/target_impl.h
Commit 08d145e6d7a9b3085d433d05abac5c8a4392e09a by andrew.litteken
[IRSim][NFC] Removing dead variables from IRSimilarityIdentifier.cpp

As informed by danielkiss.

Follow up to Differential Revision: https://reviews.llvm.org/D86972
The file was modifiedllvm/lib/Analysis/IRSimilarityIdentifier.cpp
Commit bd44558001e978d93fbff5a4537f38b46b0e355a by momchil.velikov
[AArch64][GlobalISel] Implement __builtin_return_address for PAC-RET

This patch implements stripping of the PAC in the return address for GlobalISel.

Implementation for when not using GLobalISel is in
https://reviews.llvm.org/D75044 The analogous GCC patch is
https://gcc.gnu.org/git/?p=gcc.git;a=commitdiff;h=a70d5d81c41048556fd86eaa1036018a6bfba115

Differential Revision: https://reviews.llvm.org/D84502
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/select-returnaddress-liveins.mir
The file was addedllvm/test/CodeGen/AArch64/GlobalISel/builtin-return-address-pacret.ll
The file was modifiedllvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/select-returnaddr.ll
Commit a9fca98ee4f653278d84713caecd152fef8494f5 by a.bataev
[OPENMP]PR47606: Do not update the lastprivate item if it was captured by reference as firstprivate data member.

No need to make final copy from the firsptrivate/lastprivate copy to the original item if the item is a data memeber.
Firstprivate copy creates a copy by reference and the original item gets
updated correctly when updating the lastprivate shared variable.

Differential Revision: https://reviews.llvm.org/D88179
The file was modifiedclang/test/OpenMP/for_lastprivate_codegen.cpp
The file was modifiedclang/lib/Sema/SemaOpenMP.cpp
Commit 27a62f6317f3faa845d1cb67ec3f0ed357ee07e8 by Stanislav.Mekhanoshin
[AMDGPU] global-isel support for RT

Differential Revision: https://reviews.llvm.org/D87847
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.h
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
The file was addedllvm/test/CodeGen/AMDGPU/GlobalISel/llvm.amdgcn.intersect_ray.ll
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
The file was modifiedllvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.h
The file was modifiedllvm/lib/Target/AMDGPU/SIInstructions.td
Commit bdd6af3a58d55ba4518ecd3a13769f8c111a65e7 by llvm-dev
[AArch64] Regenerate dag-numsignbits.ll checks

To improve the codegen diff in D87502
The file was modifiedllvm/test/CodeGen/AArch64/dag-numsignbits.ll
Commit 81a408808f668c74ada3a1ed3d55f1feef334872 by llvm-dev
[Scalar] ConstantHoistingPass - iterate with const references. NFCI.

Fix some clang-tidy warnings.
The file was modifiedllvm/lib/Transforms/Scalar/ConstantHoisting.cpp