This is an archive of the discontinued LLVM Phabricator instance.

Allow target to specify prefix for labels
ClosedPublic

Authored by arsenm on Dec 1 2014, 12:56 PM.

Details

Reviewers
rafael
Summary

Use the MCAsmInfo instead of the DataLayout, and allow
specifying a custom prefix for labels specifically. HSAIL
requires that labels begin with @, but global symbols with &.

Diff Detail

Event Timeline

arsenm updated this revision to Diff 16782.Dec 1 2014, 12:56 PM
arsenm retitled this revision from to Allow target to specify prefix for labels .
arsenm updated this object.
arsenm edited the test plan for this revision. (Show Details)
arsenm added a reviewer: rafael.
arsenm added a subscriber: Unknown Object (MLST).
rafael edited edge metadata.Dec 3 2014, 2:01 PM

This is probably OK.

My only question is how long do you expect this to be dead code? That is, how long until we have a test with HSAIL showing the @ and & difference?

arsenm added a comment.Dec 3 2014, 2:08 PM
In D6467#4, @rafael wrote:

This is probably OK.

My only question is how long do you expect this to be dead code? That is, how long until we have a test with HSAIL showing the @ and & difference?

The plan is to upstream the HSAIL target as soon as possible, which is once I've finished fixing a long list of problems with it. My hope is this will take < 3 months

rafael accepted this revision.Dec 3 2014, 2:09 PM
rafael edited edge metadata.

LGTM

This revision is now accepted and ready to land.Dec 3 2014, 2:09 PM
arsenm closed this revision.Dec 3 2014, 4:07 PM

r223323 plus missing updates for places that reset it from the default