[PATCH] D149867: [M68k] Add Clang support for the new M68k_RTD CC

Min-Yih Hsu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu May 4 09:31:11 PDT 2023


myhsu created this revision.
myhsu added reviewers: 0x59616e, RKSimon, craig.topper.
Herald added a subscriber: pengfei.
Herald added a project: All.
myhsu requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

We basically piggyback most of implementations on top of X86's stdcall due to their similarities, all the way until CodeGen where we use `llvm::CallingConv::M68k_RTD` rather than `llvm::CallingConv::X86_StdCall`.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D149867

Files:
  clang/lib/Basic/Targets/M68k.cpp
  clang/lib/Basic/Targets/M68k.h
  clang/lib/CodeGen/CGCall.cpp
  clang/lib/Frontend/CompilerInvocation.cpp
  clang/test/CodeGen/mrtd.c
  clang/test/Sema/mrtd.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149867.519528.patch
Type: text/x-patch
Size: 5671 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230504/ee92599c/attachment-0001.bin>


More information about the cfe-commits mailing list