[PowerPC] Refactor PPCInstrVSX.td
authorNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Sat, 2 May 2020 00:17:30 +0000 (19:17 -0500)
committerNemanja Ivanovic <nemanja.i.ibm@gmail.com>
Sat, 2 May 2020 00:17:39 +0000 (19:17 -0500)
commit8ca2fc9993c9e6e1f5b1ccaba925fd19059f719a
tree76b8f1bf6c1e9b21705186659f7a20b7488fc0b2
parent840bc47f8b0c2768ec6c0d7819c79c867bcbcec1
[PowerPC] Refactor PPCInstrVSX.td

Over time, we have made many additions to this file and it has frankly become a
bit of a mess. This has led to at least one issue - we have a number of
instructions where the side effects flag should be set to false and we neglected
to do this. This patch suggests a refactoring that should make the file much
more maintainable. The file is split up into major sections and the nesting
level is reduced, predicate blocks merged, etc.

Sections:
  - Custom PPCISD node definitions
  - Predicate definitions
  - Instruction formats
  - Instruction definitions
  - Helper DAG definitions
  - Anonymous patterns
  - Instruction aliases

Differential revision: https://reviews.llvm.org/D78132
llvm/lib/Target/PowerPC/PPCInstrVSX.td