[llvm] [SystemZ][z/OS] Implement llvm.returnaddress for XPLINK (PR #89440)

Ulrich Weigand via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 22 07:25:46 PDT 2024


================
@@ -97,6 +106,11 @@ class SystemZELFFrameLowering : public SystemZFrameLowering {
     return usePackedStack(MF) ? SystemZMC::ELFCallFrameSize - 8 : 0;
   }
 
+  // Return the offset of the return address.
+  virtual int getReturnAddressOffset(MachineFunction &MF) const override {
+    return (usePackedStack(MF) ? -2 : 14) * getPointerSize();
----------------
uweigand wrote:

OK, fair enough.

https://github.com/llvm/llvm-project/pull/89440


More information about the llvm-commits mailing list