This is an archive of the discontinued LLVM Phabricator instance.

[HIP] Use -mlink-builtin-bitcode to link device library
ClosedPublic

Authored by yaxunl on Apr 10 2019, 8:04 AM.

Details

Summary

Use -mlink-builtin-bitcode instead of llvm-link to link
device library so that device library bitcode and user
device code can be compiled in a consistent way.

This is the same approach used by CUDA and OpenMP.

Diff Detail

Repository
rL LLVM

Event Timeline

yaxunl created this revision.Apr 10 2019, 8:04 AM
ashi1 accepted this revision.Apr 10 2019, 10:54 AM

LGTM

This revision is now accepted and ready to land.Apr 10 2019, 10:54 AM
tra accepted this revision.Apr 10 2019, 12:01 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptApr 12 2019, 9:22 AM