[PATCH] D117318: [WIP][RISCV][GlobalISel] Add lowerReturn for calling conv

Lewis Revill via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 14 07:26:08 PST 2022


lewis-revill created this revision.
lewis-revill added reviewers: asb, Joe, simoncook, edward-jones, arsenm, wwei, dsanders.
Herald added subscribers: VincentWu, luke957, achieveartificialintelligence, vkmr, frasercrmck, evandro, luismarques, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, zzheng, jrtc27, kito-cheng, niosHD, sabuasal, johnrusso, rbar, hiraditya, rovka.
lewis-revill requested review of this revision.
Herald added subscribers: llvm-commits, MaskRay, wdng.
Herald added a project: LLVM.

Add minimal support to lower return, and introduce an outgoing ValueHandler for returns.

Supports return values with integer, pointer and aggregate types.

(Update of D69808 <https://reviews.llvm.org/D69808> - avoiding commandeering that revision)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D117318

Files:
  llvm/lib/CodeGen/TargetRegisterInfo.cpp
  llvm/lib/Target/RISCV/RISCVCallLowering.cpp
  llvm/lib/Target/RISCV/RISCVCallLowering.h
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVISelLowering.h
  llvm/test/CodeGen/RISCV/GlobalISel/calllowering-ret.ll
  llvm/test/CodeGen/RISCV/GlobalISel/irtranslator-calllowering.ll
  llvm/test/CodeGen/RISCV/GlobalISel/irtranslator/ret.ll
  llvm/test/CodeGen/RISCV/GlobalISel/ret-roundtrip.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D117318.399993.patch
Type: text/x-patch
Size: 22979 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220114/dde530db/attachment-0001.bin>


More information about the llvm-commits mailing list