This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Clang Option for enabling absolute jumptables with command line
ClosedPublic

Authored by kamaub on Oct 17 2019, 6:25 AM.

Details

Summary

This option allows the user to specify the use of absolute jumptables instead
of relative jumptables when they are running clang with the option:
-mllvm -ppc-use-absolute-jumptables

Event Timeline

kamaub created this revision.Oct 17 2019, 6:25 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 17 2019, 6:25 AM

Overall looks good to me. Some minor changes needed.

llvm/test/CodeGen/PowerPC/absol-jump-table-enabled.ll
2

Please add a brief note at the top stating what you are testing here.

19

nit: alignment of blr

21

nit: alignment of jumpTableTest (one less space)

27

nit: alignment of blr

amyk added a subscriber: amyk.Oct 17 2019, 1:19 PM

I have the same nits as @NeHuang, but this overall also looks good to me.

kamaub updated this revision to Diff 225624.Oct 18 2019, 7:52 AM
Minor formatting changes to the test case.
kamaub updated this revision to Diff 225626.Oct 18 2019, 7:57 AM
This comment was removed by kamaub.
kamaub marked 4 inline comments as done.Oct 18 2019, 7:59 AM

Thank you for your comments, I have addressed them.

Harbormaster completed remote builds in B39782: Diff 225626.
amyk added inline comments.Oct 18 2019, 3:29 PM
llvm/test/CodeGen/PowerPC/absol-jump-table-enabled.ll
4

; NOTE: table works correctly.

jsji added a reviewer: Restricted Project.Oct 19 2019, 2:23 PM
nemanjai accepted this revision.Oct 21 2019, 6:44 PM

LGTM (with Amy's comment addressed).

This revision is now accepted and ready to land.Oct 21 2019, 6:44 PM
kamaub updated this revision to Diff 226488.Oct 25 2019, 12:53 PM
  • Minor spelling correction to test case comment
kamaub marked an inline comment as done.Oct 25 2019, 12:53 PM

Thank you, comment addressed.

This revision was automatically updated to reflect the committed changes.