[M68k][GlobalISel] Implement lowerCall based on M68k calling convention
authorSheng <ox59616e@gmail.com>
Tue, 8 Feb 2022 02:08:21 +0000 (21:08 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 8 Feb 2022 02:18:54 +0000 (21:18 -0500)
commit5aa3af3fcb014145ab315090bd3cbea00bea0038
tree3bd47250146027c233d38f448764d93e520ebf06
parente5e93f60ee0249d7aa8fe1723f8531e795adc479
[M68k][GlobalISel] Implement lowerCall based on M68k calling convention

This patch implements CallLowering::lowerCall based on M68k calling
convention and adds M68kOutgoingValueHandler and CallReturnHandler to
handle argument passing and returned value.
llvm/lib/Target/M68k/GISel/M68kCallLowering.cpp
llvm/lib/Target/M68k/GISel/M68kCallLowering.h
llvm/test/CodeGen/M68k/GlobalISel/irtranslator-call.ll [new file with mode: 0644]
llvm/test/CodeGen/M68k/GlobalISel/irtranslator-pic.ll [new file with mode: 0644]