]> granicus.if.org Git - clang/commitdiff
[HIP] Replace irif library with hip.amdgcn.bc
authorAaron Enye Shi <enye.shi@gmail.com>
Thu, 11 Oct 2018 19:41:54 +0000 (19:41 +0000)
committerAaron Enye Shi <enye.shi@gmail.com>
Thu, 11 Oct 2018 19:41:54 +0000 (19:41 +0000)
No longer use irif amdgcn library, instead we will use the previous fence functions from new hip.amdgcn.bc bitcode library. Update hip-device-libs.hip test as well.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@344281 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/ToolChains/HIP.cpp
test/Driver/Inputs/hip_dev_lib/hip.amdgcn.bc [new file with mode: 0644]
test/Driver/hip-device-libs.hip

index 58e8e79420d544bd26d6a3a2b8431096e8eed733..1ed470d1acbc275403d9a956e2f4060adcab2e5a 100644 (file)
@@ -81,8 +81,8 @@ const char *AMDGCN::Linker::constructLLVMLinkCommand(
     else
       FlushDenormalControlBC = "oclc_daz_opt_off.amdgcn.bc";
 
-    BCLibs.append({"opencl.amdgcn.bc",
-                   "ocml.amdgcn.bc", "ockl.amdgcn.bc", "irif.amdgcn.bc",
+    BCLibs.append({"hip.amdgcn.bc", "opencl.amdgcn.bc",
+                   "ocml.amdgcn.bc", "ockl.amdgcn.bc",
                    "oclc_finite_only_off.amdgcn.bc",
                    FlushDenormalControlBC,
                    "oclc_correctly_rounded_sqrt_on.amdgcn.bc",
diff --git a/test/Driver/Inputs/hip_dev_lib/hip.amdgcn.bc b/test/Driver/Inputs/hip_dev_lib/hip.amdgcn.bc
new file mode 100644 (file)
index 0000000..e69de29
index 04afab1b73ad836adf515c4d1e9657e2e6933a62..3a7e7fd7dfc51479ecc8b83e8e5ee217590ffbb8 100644 (file)
@@ -21,7 +21,8 @@
 
 
 // COM: [[LLVM_LINK:"*.llvm-link"]]
-// COM-SAME: {{.*}} "{{.*}}ocml.amdgcn.bc" "{{.*}}ockl.amdgcn.bc" "{{.*}}irif.amdgcn.bc"
+// COM-SAME: "{{.*}}hip.amdgcn.bc" "{{.*}}opencl.amdgcn.bc"
+// COM-SAME: "{{.*}}ocml.amdgcn.bc" "{{.*}}ockl.amdgcn.bc"
 // FLUSHD-SAME: {{.*}} "{{.*}}oclc_daz_opt_on.amdgcn.bc"
 // NOFLUSHD-SAME: {{.*}} "{{.*}}oclc_daz_opt_off.amdgcn.bc"
 // COM-SAME: {{.*}} "-o" "{{.*}}-gfx900-linked-{{.*bc}}"