r350426 - [HIP][DRIVER][OFFLOAD] Do not unbundle unsupported file types

Aaron Enye Shi via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 4 11:09:20 PST 2019


Author: aaronenyeshi
Date: Fri Jan  4 11:09:20 2019
New Revision: 350426

URL: http://llvm.org/viewvc/llvm-project?rev=350426&view=rev
Log:
[HIP][DRIVER][OFFLOAD] Do not unbundle unsupported file types

The offload bundler action should not unbundle the input file types that does not match the action type. This fixes an issue where .so files are unbundled when the action type is object files.

Reviewers: yaxunl

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

Modified:
    cfe/trunk/test/Driver/hip-link-shared-library.hip

Modified: cfe/trunk/test/Driver/hip-link-shared-library.hip
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/hip-link-shared-library.hip?rev=350426&r1=350425&r2=350426&view=diff
==============================================================================
--- cfe/trunk/test/Driver/hip-link-shared-library.hip (original)
+++ cfe/trunk/test/Driver/hip-link-shared-library.hip Fri Jan  4 11:09:20 2019
@@ -9,3 +9,4 @@
 // CHECK: # "amdgcn-amd-amdhsa" - "AMDGCN::Linker", inputs: ["[[OBJ3]]"], output: "[[IMG3:.*out]]"
 // CHECK-NOT: offload bundler
 // CHECK: # "x86_64-unknown-linux-gnu" - "GNU::Linker", inputs: ["[[OBJ1]]", "{{.*}}/Inputs/in.so", "[[IMG2]]", "[[IMG3]]"], output: "a.out"
+




More information about the cfe-commits mailing list