96d4140609
There are a couple problems with this. First, llvm-dis is an unstable llvm development tool and 3rd party users should generally not rely on it. The text format is unstable, and the regex here isn't even explicitly looking for the target triple field, so it could accidentally find something else. Second, picking the target to compile based on the library you are linking is a fundamentally backwards decision. The target you're compiling for changes the library you would want to link. The device libraries are only ever compiled with amdgcn-amd-amdhsa. If we had a second triple, this should be explicitly building for any it cares about. Change-Id: I3bae8398f60f78df61ab2177aa9e83f47ec6dea4