[PATCH] D137656: [PowerPC] Switch to by-name matching for instructions.

James Y Knight via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 8 09:53:06 PST 2022


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

This patch fixes all of the "easy" cases, and is _nearly_ all the way
to being able to disable useDeprecatedPositionallyEncodedOperands.
There are a small number of trickier cases, which I've split off into
the next (smaller) patch, for ease of review.

While this changes a large number of lines of source code, it produces
no significant changes in the code generated by tablegen, save for
MTVRSAVEv, which was previously encoding the wrong operand.

Also DQForm

X-Form instructions.

XXForm

DSS/DCB Form (actually misnamed X-forms...)

XLForm

XFXForm -- one codegen change, MTVRSAVEv was previously encoding the wrong operand.

XFLForm, XSForm, XOForm

AForm MForm MDForm MDSForm

VAForm Z22Form Z23Form

fixup: VAForm/VNForm

VXForm

PPC10 prefix formats

EVXForm


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137656

Files:
  llvm/lib/Target/PowerPC/PPCInstr64Bit.td
  llvm/lib/Target/PowerPC/PPCInstrAltivec.td
  llvm/lib/Target/PowerPC/PPCInstrFormats.td
  llvm/lib/Target/PowerPC/PPCInstrHTM.td
  llvm/lib/Target/PowerPC/PPCInstrInfo.td
  llvm/lib/Target/PowerPC/PPCInstrMMA.td
  llvm/lib/Target/PowerPC/PPCInstrP10.td
  llvm/lib/Target/PowerPC/PPCInstrSPE.td
  llvm/lib/Target/PowerPC/PPCInstrVSX.td
  llvm/lib/Target/PowerPC/PPCRegisterInfo.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137656.474037.patch
Type: text/x-patch
Size: 446877 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221108/22294b6d/attachment-0001.bin>


More information about the llvm-commits mailing list