[LoongArch] Support lowering FrameIndex
commit5b1ec705904aa621349e471959587f2c2d4d6273
authorwanglei <wanglei@loongson.cn>
Wed, 6 Jul 2022 07:27:46 +0000 (6 15:27 +0800)
committerWeining Lu <luweining@loongson.cn>
Wed, 6 Jul 2022 07:40:43 +0000 (6 15:40 +0800)
tree6c0e9210edc92014cdd7ca188d2e625c12d11b32
parent3decc2f04d63d924239acf739144a5f0e9119c70
[LoongArch] Support lowering FrameIndex

Ensure callee-saved registers are accessed relative to the stackpointer.

Differential Revision: https://reviews.llvm.org/D128430
llvm/lib/Target/LoongArch/LoongArchFrameLowering.cpp
llvm/lib/Target/LoongArch/LoongArchFrameLowering.h
llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.cpp
llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.h
llvm/lib/Target/LoongArch/LoongArchInstrInfo.td
llvm/test/CodeGen/LoongArch/frame.ll [new file with mode: 0644]