This is an archive of the discontinued LLVM Phabricator instance.

[HIP] Use default triple in llvm-mc for system ld
ClosedPublic

Authored by ashi1 on Jul 3 2020, 1:04 PM.

Details

Summary

The Ubuntu system ld does not recognize the amdgcn-amd-amdhsa target.
Instead the host object with embedded device fat binary should not be
assembled by that triple. It should use default triple, so that the
object is compatible with system ld.

Diff Detail

Event Timeline

ashi1 created this revision.Jul 3 2020, 1:04 PM
yaxunl accepted this revision.Jul 6 2020, 1:02 PM

LGTM. Thanks.

This revision is now accepted and ready to land.Jul 6 2020, 1:02 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 7 2020, 9:45 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript