[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:35:02 PDT 2018
ashi1 updated this revision to Diff 153154.
ashi1 added a comment.
Updated diff with a lit test.
https://reviews.llvm.org/D48667
Files:
lib/Driver/ToolChains/HIP.cpp
test/Driver/hip-device-libs.hip
Index: test/Driver/hip-device-libs.hip
===================================================================
--- test/Driver/hip-device-libs.hip
+++ test/Driver/hip-device-libs.hip
@@ -21,6 +21,7 @@
// COM: [[LLVM_LINK:"*.llvm-link"]]
+// COM-SAME: {{.*}} "{{.*}}ocml.amdgcn.bc" "{{.*}}ockl.amdgcn.bc" "{{.*}}irif.amdgcn.bc"
// FLUSHD-SAME: {{.*}} "{{.*}}oclc_daz_opt_on.amdgcn.bc"
// NOFLUSHD-SAME: {{.*}} "{{.*}}oclc_daz_opt_off.amdgcn.bc"
// COM-SAME: {{.*}} "-o" "{{.*}}-gfx900-linked-{{.*bc}}"
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.153154.patch
Type: text/x-patch
Size: 1107 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180627/957cb675/attachment.bin>
More information about the cfe-commits
mailing list