[PATCH] D43086: [PowerPC] Infrastructure work. Implement getting the opcode for a spill in one place.

Stefan Pintilie via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 8 12:50:23 PST 2018


stefanp created this revision.
stefanp added reviewers: kbarton, nemanjai, inouehrs, sfertile, lei, syzaara, echristo, hfinkel.

Currently we compute the opcode for a given type of register spill in a couple of different places. This means that when a register class is added or changed multiple places have to be checked to make sure that everything is updated correctly. A new function `getOpcodeForSpill` should now be the only place to get the opcode for a given spilled register.


https://reviews.llvm.org/D43086

Files:
  lib/Target/PowerPC/PPCInstrInfo.cpp
  lib/Target/PowerPC/PPCInstrInfo.h
  lib/Target/PowerPC/PPCRegisterInfo.cpp
  lib/Target/PowerPC/PPCRegisterInfo.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43086.133469.patch
Type: text/x-patch
Size: 18627 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180208/39fa7d89/attachment-0001.bin>


More information about the llvm-commits mailing list