[PATCH] D146425: [SystemZ] Enable AtomicExpandPass for i128

Jonas Paulsson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 20 07:54:25 PDT 2023


jonpa created this revision.
jonpa added a reviewer: uweigand.
Herald added a subscriber: hiraditya.
Herald added a project: All.
jonpa requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

- Set MaxAtomicPromoteWidth and MaxAtomicInlineWidth to 128 in the front end. This will result in LLVM I/R in the aligned cases and libcalls otherwise.

- Some FE tests for smaller integer types as well.

- Enable AtomicExpandPass.

- Set MaxAtomicSizeInBitsSupported to 128.

- Fix RegCoalescer for these types of loops, which already has a hack for i128 in the SystemZ backend.


https://reviews.llvm.org/D146425

Files:
  clang/lib/Basic/Targets/SystemZ.h
  clang/test/CodeGen/SystemZ/gnu-atomic-builtins-i128-16Al.c
  clang/test/CodeGen/SystemZ/gnu-atomic-builtins-i128-8Al.c
  clang/test/CodeGen/SystemZ/gnu-atomic-builtins-i16.c
  clang/test/CodeGen/SystemZ/gnu-atomic-builtins-i32.c
  clang/test/CodeGen/SystemZ/gnu-atomic-builtins-i64.c
  clang/test/CodeGen/SystemZ/gnu-atomic-builtins-i8.c
  llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
  llvm/lib/Target/SystemZ/SystemZISelLowering.h
  llvm/lib/Target/SystemZ/SystemZRegisterInfo.cpp
  llvm/lib/Target/SystemZ/SystemZTargetMachine.cpp
  llvm/test/CodeGen/SystemZ/atomicrmw-ops-i128.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D146425.506584.patch
Type: text/x-patch
Size: 76644 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230320/6465b921/attachment-0001.bin>


More information about the llvm-commits mailing list