[SystemZ] Support llvm.frameaddress/llvm.returnaddress intrinsics
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 4 Apr 2016 12:44:55 +0000 (12:44 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Mon, 4 Apr 2016 12:44:55 +0000 (12:44 +0000)
commitf557d083252598cc42ce1b5409edaa91a305c9f9
treeacda63c698807a15a1938ea0f8f033968925e89d
parente4a77057a3cee509f87af0893cd5705d70339194
[SystemZ] Support llvm.frameaddress/llvm.returnaddress intrinsics

Enable the SystemZ back-end to lower FRAMEADDR and RETURNADDR, which
previously would cause the back-end to crash.  Currently, only a
frame count of zero is supported.

Author: bryanpkc
Differential Revision: http://reviews.llvm.org/D18514

llvm-svn: 265291
llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
llvm/lib/Target/SystemZ/SystemZISelLowering.h
llvm/lib/Target/SystemZ/SystemZMachineFunctionInfo.h
llvm/test/CodeGen/SystemZ/frameaddr-01.ll [new file with mode: 0644]
llvm/test/CodeGen/SystemZ/ret-addr-01.ll [new file with mode: 0644]