This is an archive of the discontinued LLVM Phabricator instance.

AMDGPU: Don't emit amd_kernel_code_t for callable functions
ClosedPublic

Authored by arsenm on Mar 29 2017, 3:21 PM.

Details

Reviewers
kzhuravl
Summary

This is inserted directly in the text section. The relocation
for the function ends up resolving to the beginning of the
amd_kernel_code_t header rather than the actual function
entry point.

Also skip some of the comments for initialization
that only makes sense for kernels.

Diff Detail

Event Timeline

arsenm created this revision.Mar 29 2017, 3:21 PM
kzhuravl accepted this revision.Mar 30 2017, 10:53 AM

LGTM. Can you run pre-checkin before committing this?

This revision is now accepted and ready to land.Mar 30 2017, 10:53 AM
arsenm closed this revision.Apr 19 2017, 12:51 PM

r300736