f3dc04a50d
This is related to SWDEV-410182, but it's not enough to fix it. Functions from device-libs are precompiled into llvm-ir in a "target agnostic" way (in reality, it's not 100% target agnostic, which brings us many headaches). When linking builtins (like device-libs) from the command line, we use the flag -mlink-builtin-bitcode. The difference between regular linking of bitcode and this flag is that the later propagates target-specific attributes. If this attributes are not propagated, we can end up with incosistent target attributes. Comgr provides the action AMD_COMGR_ACTION_COMPILE_SOURCE_WITH_DEVICE_LIBS_TO_BC for this exact reason. The old action is currently deprecated and this one should be used. Change-Id: I518415214debdf4fedf0b1d81456d6e9fb8a3d19