[PowerPC] Support huge frame size for PPC64
authorKai Luo <lkail@cn.ibm.com>
Mon, 6 Jun 2022 09:08:02 +0000 (09:08 +0000)
committerKai Luo <lkail@cn.ibm.com>
Mon, 6 Jun 2022 09:08:28 +0000 (09:08 +0000)
commit5018a5dcbe70a9e2e39341762ec0ca0ad76d28b4
tree27e72cab4a7ed85d1dd5fe77b5b57e9c21d2771f
parenteaf48dd9b079c005d92ed9ef858f12bc452e71ef
[PowerPC] Support huge frame size for PPC64

Support allocation of huge stack frame(>2g) on PPC64.

For ELFv2 ABI on Linux, quoted from the spec 2.2.3.1 General Stack Frame Requirements
> There is no maximum stack frame size defined.

On AIX, XL allows such huge frame.

Reviewed By: #powerpc, nemanjai

Differential Revision: https://reviews.llvm.org/D107886
llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
llvm/lib/Target/PowerPC/PPCISelDAGToDAG.cpp
llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
llvm/lib/Target/PowerPC/PPCInstrInfo.h
llvm/lib/Target/PowerPC/PPCRegisterInfo.cpp
llvm/test/CodeGen/PowerPC/huge-frame-call.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/huge-frame-size.ll
llvm/test/CodeGen/PowerPC/huge-frame-unsupported.ll [new file with mode: 0644]
llvm/test/CodeGen/PowerPC/ppc64-rop-protection-aix.ll
llvm/test/CodeGen/PowerPC/ppc64-rop-protection.ll