[PATCH] D48667: [HIP] Fix ordering of device-lib linking

Aaron Enye Shi via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 27 12:16:58 PDT 2018


ashi1 created this revision.
ashi1 added reviewers: yaxunl, b-sumner.
ashi1 added projects: clang, AMDGPU.
Herald added a subscriber: cfe-commits.

Should link the bitcodes with caller functions before callee functions.


Repository:
  rC Clang

https://reviews.llvm.org/D48667

Files:
  lib/Driver/ToolChains/HIP.cpp


Index: lib/Driver/ToolChains/HIP.cpp
===================================================================
--- lib/Driver/ToolChains/HIP.cpp
+++ lib/Driver/ToolChains/HIP.cpp
@@ -82,7 +82,7 @@
       FlushDenormalControlBC = "oclc_daz_opt_off.amdgcn.bc";

     BCLibs.append({"opencl.amdgcn.bc",
-                   "ockl.amdgcn.bc", "irif.amdgcn.bc", "ocml.amdgcn.bc",
+                   "ocml.amdgcn.bc", "ockl.amdgcn.bc", "irif.amdgcn.bc",
                    "oclc_finite_only_off.amdgcn.bc",
                    FlushDenormalControlBC,
                    "oclc_correctly_rounded_sqrt_on.amdgcn.bc",


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48667.153151.patch
Type: text/x-patch
Size: 604 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180627/a37bf25f/attachment.bin>


More information about the cfe-commits mailing list