This is an archive of the discontinued LLVM Phabricator instance.

[TableGen] Add EncoderMethod to RegisterOperand
ClosedPublic

Authored by SamWot on Apr 25 2017, 9:24 AM.

Details

Summary

Currently custom encoding method can only be specified in Operand class. For other types of operands only way to change encoding is through general MCCodeEmitter::getMachineOpValue().
This change simplifies encoding process for complex register operands.

Diff Detail

Repository
rL LLVM

Event Timeline

SamWot created this revision.Apr 25 2017, 9:24 AM
SamWot edited the summary of this revision. (Show Details)Apr 25 2017, 9:29 AM
vpykhtin accepted this revision.Apr 25 2017, 9:30 AM

LGTM.

This revision is now accepted and ready to land.Apr 25 2017, 9:30 AM
This revision was automatically updated to reflect the committed changes.