[PATCH] D47240: [GlobalISel][Tablegen] Assign small opcodes to pseudos

Roman Tereshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 22 18:36:35 PDT 2018


rtereshin created this revision.
rtereshin added reviewers: bogner, volkan, RKSimon, bkramer.
Herald added subscribers: llvm-commits, mgrang, kristof.beyls, rovka.

Sort pseudo instructions first while emitting enum's for target
instructions info. That puts them close to each other and to generic
G_* opcodes for GlobalISel. This makes it easier to build small jump
tables over opcodes that could be directly embedded into MatchTable's
Tablegen'erated for GlobalISel's InstructionSelect.

New order breaks `instregex`, thus this patch also fixes that.

There is an NFC going before this patch to tidy up the implementation a little and make the diff smaller.


Repository:
  rL LLVM

https://reviews.llvm.org/D47240

Files:
  utils/TableGen/CodeGenSchedule.cpp
  utils/TableGen/CodeGenTarget.cpp
  utils/TableGen/CodeGenTarget.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47240.148140.patch
Type: text/x-patch
Size: 5221 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180523/46a15146/attachment.bin>


More information about the llvm-commits mailing list