]> granicus.if.org Git - clang/commit
[HIP] Fix ordering of device-libs linking
authorAaron Enye Shi <enye.shi@gmail.com>
Wed, 27 Jun 2018 19:51:42 +0000 (19:51 +0000)
committerAaron Enye Shi <enye.shi@gmail.com>
Wed, 27 Jun 2018 19:51:42 +0000 (19:51 +0000)
commit81c2075695490183408d1a3f29feefba63069f81
tree9d603cfc7c1278b293e80a15ab3f824ad25dd452
parent53d8fcb5c281832f3c4bd5ae5dcdf1d23ac95656
[HIP] Fix ordering of device-libs linking

Summary:
HIP should link the bitcodes with caller functions before callee functions. Also added lit test to check the ordering of the linked bitcodes is matches.

Reviewers: yaxunl, b-sumner

Reviewed By: yaxunl, b-sumner

Subscribers: cfe-commits, yaxunl, b-sumner, scchan

Differential Revision: https://reviews.llvm.org/D48667

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@335774 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/HIP.cpp
test/Driver/hip-device-libs.hip