This is an archive of the discontinued LLVM Phabricator instance.

MIRParser: Use dot instead of colon to mark subregisters
ClosedPublic

Authored by MatzeB on Jul 14 2016, 5:11 PM.

Details

Summary

Change the syntax to use %0.sub8 to denote a subregister.

This seems like a more natural fit to denote subregisters; I also plan
to introduce a new ":classname" syntax in upcoming patches to denote the
register class of a vreg.

Note that this commit disallows plain identifiers to start with a '.'
character. This shouldn't affect anything as external names/IR
references are all prefixed with '$'/'%', plain identifiers are only
used for instruction names, register mask names and subreg indexes which should not start with a dot.

Diff Detail

Repository
rL LLVM

Event Timeline

MatzeB updated this revision to Diff 64067.Jul 14 2016, 5:11 PM
MatzeB retitled this revision from to MIRParser: Use dot instead of colon to mark subregisters.
MatzeB updated this object.
MatzeB added reviewers: qcolombet, arphaman.
MatzeB set the repository for this revision to rL LLVM.
MatzeB added a subscriber: llvm-commits.
qcolombet accepted this revision.Jul 20 2016, 10:49 AM
qcolombet edited edge metadata.

LGTM.

This revision is now accepted and ready to land.Jul 20 2016, 10:49 AM
This revision was automatically updated to reflect the committed changes.