[all-commits] [llvm/llvm-project] 8e810d: [SystemZ] Support builtin_{frame, return}_address()...

Ilya Leoshkevich via All-commits all-commits at lists.llvm.org
Wed Oct 18 10:05:46 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8e810dc7d93bebe5e2d3980d4db084f58248b37f
      https://github.com/llvm/llvm-project/commit/8e810dc7d93bebe5e2d3980d4db084f58248b37f
  Author: Ilya Leoshkevich <iii at linux.ibm.com>
  Date:   2023-10-18 (Wed, 18 Oct 2023)

  Changed paths:
    M llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
    M llvm/test/CodeGen/SystemZ/frameaddr-01.ll
    M llvm/test/CodeGen/SystemZ/frameaddr-02.ll
    M llvm/test/CodeGen/SystemZ/ret-addr-01.ll
    A llvm/test/CodeGen/SystemZ/ret-addr-02.ll

  Log Message:
  -----------
  [SystemZ] Support builtin_{frame,return}_address() with non-zero argument (#69405)

When the code is built with -mbackchain, it is possible to retrieve the
caller's frame and return addresses. GCC already can do this, add this
support to Clang as well. Use RISCVTargetLowering and GCC's
s390_return_addr_rtx() as inspiration. Add tests based on what GCC is
emitting.




More information about the All-commits mailing list