This is an archive of the discontinued LLVM Phabricator instance.

MIRParser: Add %subreg.xxx syntax for subregister index operands
ClosedPublic

Authored by MatzeB on Mar 18 2016, 1:48 PM.

Diff Detail

Repository
rL LLVM

Event Timeline

MatzeB updated this revision to Diff 51065.Mar 18 2016, 1:48 PM
MatzeB retitled this revision from to MIRParser: Add %subreg.xxx syntax for subregister index operands.
MatzeB updated this object.
MatzeB added reviewers: arphaman, qcolombet.
MatzeB set the repository for this revision to rL LLVM.
MatzeB added a subscriber: llvm-commits.
qcolombet accepted this revision.Mar 18 2016, 4:41 PM
qcolombet edited edge metadata.

Hi Matthias,

LGTM, although in the long run I would rather not have to write %subreg. but this is for another time when we actually make the parser a bit smarter.

Cheers,
-Quentin

This revision is now accepted and ready to land.Mar 18 2016, 4:41 PM

Hi Matthias,

LGTM, although in the long run I would rather not have to write %subreg. but this is for another time when we actually make the parser a bit smarter.

The alternatives "subregname" or "%subregname" had the problem that they can clash with the name of a global or a register. So for now I chose something unambiguous.

Agreed, you did the right thing :).

For now, we didn’t have further options. I was more thinking like when we will merge the MachineInstr dumps and MIR. One of my goal is to have the MIR input to be as user-friendly as possible, even if in that case that means that the parser needs to be aware that the third operand of INSERT_SUBREG is a subreg.

This revision was automatically updated to reflect the committed changes.