This is an archive of the discontinued LLVM Phabricator instance.

[LoongArch] Add an option for MCInstPrinter to print numeric reg names
ClosedPublic

Authored by wangleiat on Jan 13 2023, 5:40 PM.

Details

Summary

-loongarch-numeric-reg for llvm-mc and llc.
-M numeric (which matches GNU objdump) for llvm-objdump and llvm-mc.

Diff Detail

Event Timeline

wangleiat created this revision.Jan 13 2023, 5:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 13 2023, 5:40 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
wangleiat requested review of this revision.Jan 13 2023, 5:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 13 2023, 5:40 PM
xen0n added a comment.Jan 15 2023, 5:46 AM

Aren't all the register indexes less human-friendly to most? ;-)

llvm/test/MC/LoongArch/Misc/numeric-reg-names.s
32

One space before "CHECK" for all these lines.

wangleiat retitled this revision from [LoongArch] Add human friendly assembler output option for reg names to [LoongArch] Add an option for assembler print numeric reg names.Jan 15 2023, 5:00 PM
wangleiat added inline comments.
llvm/test/MC/LoongArch/Misc/numeric-reg-names.s
32

Thanks.

wangleiat updated this revision to Diff 489407.Jan 15 2023, 5:01 PM

Address @xen0n's comments.

wangleiat retitled this revision from [LoongArch] Add an option for assembler print numeric reg names to [LoongArch] Add an option for MCInstPrinter print numeric reg names.Jan 15 2023, 5:19 PM
SixWeining added inline comments.Jan 17 2023, 5:58 AM
llvm/test/MC/LoongArch/Misc/numeric-reg-names.s
1

f is enough :)

SixWeining retitled this revision from [LoongArch] Add an option for MCInstPrinter print numeric reg names to [LoongArch] Add an option for MCInstPrinter to print numeric reg names.Jan 17 2023, 6:01 AM
wangleiat updated this revision to Diff 489994.Jan 17 2023, 5:15 PM

Address @SixWeining's comments and rebase.

SixWeining accepted this revision.Jan 17 2023, 5:31 PM
This revision is now accepted and ready to land.Jan 17 2023, 5:31 PM
This revision was landed with ongoing or failed builds.Jan 19 2023, 12:42 AM
This revision was automatically updated to reflect the committed changes.