This is an archive of the discontinued LLVM Phabricator instance.

[AVR] Add the assembly instruction printer
ClosedPublic

Authored by dylanmckay on Sep 28 2016, 8:18 AM.

Details

Summary

This change adds the AVR assembly instruction printer.

No tests are included in this patch. I have left them downstream so we can
add them once llc successfully runs (there's very few components left
to upstream until this).

Diff Detail

Repository
rL LLVM

Event Timeline

dylanmckay updated this revision to Diff 72833.Sep 28 2016, 8:18 AM
dylanmckay retitled this revision from to [AVR] Add the assembly instruction printer.
dylanmckay updated this object.
dylanmckay added reviewers: kparzysz, arsenm.
kparzysz added inline comments.Sep 28 2016, 10:42 AM
lib/Target/AVR/InstPrinter/AVRInstPrinter.cpp
94 ↗(On Diff #72833)

Please prefer to spell out the type when it's not immediately obvious what the type is. In a case like this there is not much to be saved by using auto anyway.

158 ↗(On Diff #72833)

Please replace "auto" with the type. Especially given that line 131 lists the type explicitly.

Remove 'auto' in favor of concrete types in a few cases

It helps readablilty.

dylanmckay marked 2 inline comments as done.Sep 28 2016, 11:22 PM
kparzysz accepted this revision.Sep 30 2016, 4:54 AM
kparzysz edited edge metadata.
This revision is now accepted and ready to land.Sep 30 2016, 4:54 AM
This revision was automatically updated to reflect the committed changes.