[PATCH] D149864: [M68k] Add new calling convention M68k_RTD
Min-Yih Hsu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 4 09:29:03 PDT 2023
myhsu created this revision.
myhsu added reviewers: 0x59616e, RKSimon, craig.topper.
Herald added subscribers: pengfei, hiraditya.
Herald added a project: All.
myhsu requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
`M68k_RTD` is really similar to X86's stdcall, in which callee pops the arguments from the stack.
This patch also improves how ExpandPseudo Pass handles popping stack at function returns in the absent of the RTD instruction.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D149864
Files:
llvm/include/llvm/IR/CallingConv.h
llvm/lib/Target/M68k/M68kExpandPseudo.cpp
llvm/lib/Target/M68k/M68kISelLowering.cpp
llvm/test/CodeGen/M68k/CConv/rtd-call.ll
llvm/test/CodeGen/M68k/CConv/rtd-ret.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149864.519527.patch
Type: text/x-patch
Size: 4939 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230504/b72ee1e0/attachment-0001.bin>
More information about the llvm-commits
mailing list