This is an archive of the discontinued LLVM Phabricator instance.

[M68k] Replace unknown operand with explicit type
ClosedPublic

Authored by ricky26 on Mar 17 2021, 2:54 PM.

Details

Summary

Replace the unknown operand used for immediate operands for DIV/MUL with a fixed 16-bit immediate.

This is required since the assembly parser generator requires that all operands are typed.

Diff Detail

Event Timeline

ricky26 created this revision.Mar 17 2021, 2:54 PM
ricky26 requested review of this revision.Mar 17 2021, 2:54 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 17 2021, 2:54 PM
myhsu added a comment.Mar 18 2021, 8:57 PM

LGTM after the inlined comment is addressed.

llvm/lib/Target/M68k/M68kInstrArithmetic.td
548

Though this is only used by division for now, I would recommend to write a more general description (without mentioning division).

ricky26 updated this revision to Diff 331855.Mar 19 2021, 6:44 AM

Made as_imm16 comment more generic

ricky26 marked an inline comment as done.Mar 19 2021, 6:45 AM
This revision was not accepted when it landed; it landed in state Needs Review.Mar 19 2021, 6:45 AM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.