[PATCH] D124415: [PowerPC][NFC] Add a function to determine if a call needs to be NOTOC.

Stefan Pintilie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 25 13:37:41 PDT 2022


stefanp created this revision.
Herald added subscribers: shchenz, kbarton, hiraditya, nemanjai.
Herald added a project: All.
stefanp requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Add the isNoTOCCallInstr function to PPCInstrInfo to determine if a call opcode
does not need a TOC restore after the call. All call opcodes should be listed in
this function. A default unreachable in this function should force future call
opcodes to also be added.

This is a follow up patch to D122012 <https://reviews.llvm.org/D122012>


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124415

Files:
  llvm/lib/Target/PowerPC/MCTargetDesc/PPCMCCodeEmitter.cpp
  llvm/lib/Target/PowerPC/PPCInstrInfo.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124415.425019.patch
Type: text/x-patch
Size: 3746 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220425/4af72b41/attachment.bin>


More information about the llvm-commits mailing list