[all-commits] [llvm/llvm-project] 49b63d: [CIR] Forward a byref argument loaded from a byref...

Adam Smith via All-commits all-commits at lists.llvm.org
Wed Sep 9 07:58:29 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 49b63de374d9da1ccabcc70bffbf83efcf49023c
      https://github.com/llvm/llvm-project/commit/49b63de374d9da1ccabcc70bffbf83efcf49023c
  Author: Adam Smith <adams at nvidia.com>
  Date:   2026-09-09 (Wed, 09 Sep 2026)

  Changed paths:
    M clang/include/clang/CIR/Dialect/IR/CIRDialect.h
    M clang/lib/CIR/CodeGen/Address.h
    M clang/lib/CIR/Dialect/IR/CIRDialect.cpp
    M clang/lib/CIR/Dialect/Transforms/TargetLowering/CIRABIRewriteContext.cpp
    M clang/test/CIR/CodeGen/call-conv-lowering-x86_64-byref.cpp
    M clang/test/CIR/Transforms/abi-lowering/expand-struct-arg.cir
    A clang/test/CIR/Transforms/abi-lowering/indirect-byref-forward-param.cir
    M clang/test/CIR/Transforms/abi-lowering/indirect-byref-nyi.cir
    M clang/test/CIR/Transforms/abi-lowering/indirect-byval.cir

  Log Message:
  -----------
  [CIR] Forward a byref argument loaded from a byref parameter (#221057)

When a callee argument comes out of the calling function's own byref
parameter, that pointer already names the object its caller will
destroy, so pass it along as-is.

Assisted-by: Cursor / claude-opus-5



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