[all-commits] [llvm/llvm-project] e83258: [ObjC] Support objc_claimAutoreleasedReturnValue.

Marina Taylor via All-commits all-commits at lists.llvm.org
Mon May 12 08:47:36 PDT 2025


  Branch: refs/heads/users/citymarina/objc-claim-2b
  Home:   https://github.com/llvm/llvm-project
  Commit: e83258e216f89992a7c46eaf3478c7b31e1113dc
      https://github.com/llvm/llvm-project/commit/e83258e216f89992a7c46eaf3478c7b31e1113dc
  Author: Marina Taylor <marina_taylor at apple.com>
  Date:   2025-05-12 (Mon, 12 May 2025)

  Changed paths:
    M llvm/include/llvm/Analysis/ObjCARCUtil.h
    M llvm/include/llvm/IR/Intrinsics.td
    M llvm/lib/CodeGen/PreISelIntrinsicLowering.cpp
    M llvm/lib/IR/Verifier.cpp
    M llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
    M llvm/lib/Target/AArch64/GISel/AArch64CallLowering.cpp
    M llvm/test/CodeGen/AArch64/call-rv-marker.ll

  Log Message:
  -----------
  [ObjC] Support objc_claimAutoreleasedReturnValue.

This adds basic support for objc_claimAutoreleasedReturnValue,
which is mostly equivalent to objc_retainAutoreleasedReturnValue,
with the difference that it doesn't require the marker nop to be
emitted between it and the call it was attached to.

To achieve that, this also teaches the AArch64 attachedcall bundle
lowering to pick whether the marker should be emitted or not
based on whether the attachedcall target is claimARV or retainARV.

Co-authored-by: Ahmed Bougacha <ahmed at bougacha.org>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list