This is an archive of the discontinued LLVM Phabricator instance.

[M68k] Add more specific operand classes
ClosedPublic

Authored by ricky26 on Mar 12 2021, 10:48 AM.

Details

Summary

This change adds an operand class for each addressing mode, which can then
be used as part of the assembler to match instructions.

Diff Detail

Event Timeline

ricky26 created this revision.Mar 12 2021, 10:48 AM
ricky26 published this revision for review.Mar 12 2021, 12:19 PM

@myhsu I've put together this stack for my assembler/disassembler implementation. I'd very much appreciate any help finding other appropriate reviewers!

Hopefully all the patches other than the final implementations should be pretty uncontroversial. :)

Herald added a project: Restricted Project. · View Herald TranscriptMar 12 2021, 12:19 PM
RKSimon added a subscriber: RKSimon.
RKSimon added inline comments.
llvm/lib/Target/M68k/M68kInstrInfo.td
341

Is this used anywhere?

ricky26 added inline comments.Mar 12 2021, 1:22 PM
llvm/lib/Target/M68k/M68kInstrInfo.td
341

Ah, this is a victim of how I re-split my changes. In one of the later patches it is used as MxOp's default operand class. I'll just switch that around so that change comes in with this patch.

ricky26 updated this revision to Diff 330393.Mar 12 2021, 4:04 PM

Move the operand parser declarations back to this patch

ricky26 marked an inline comment as done.Mar 12 2021, 4:07 PM
myhsu accepted this revision.Mar 15 2021, 2:36 PM

LGTM!

This revision is now accepted and ready to land.Mar 15 2021, 2:36 PM

I don't have commit access, so if someone could land this for me, I'd appreciate it! :)

This revision was landed with ongoing or failed builds.Mar 16 2021, 1:39 PM
This revision was automatically updated to reflect the committed changes.