llvm
llvm copied to clipboard
[SYCL][NATIVECPU] Fix linker errors for WorkGroup collective functions
This PR fixes some link-time error related to WorkGroup collective functions:
- adds overloads for the
_Float16data type and the__spirv_GroupBroadcastfunction, which leads toundefined referencelinker errors. - Makes it so the call to
clang-offload-depsis not emitted by the driver: the call introduced anllvm.usedarray, which contained function pointers to the kernels which prevented eliminating those functions from the module even when they are not needed anymore (due to inlining). This lead to otherundefined referencelinker errors for WorkGroup collectives.
Hi @intel/llvm-reviewers-runtime, after https://github.com/intel/llvm/pull/15142 the ownership of libdevice/nativecpu* has changed, but your approval is still required for this PR, could someone take a look? Thank you
@intel/llvm-gatekeepers this looks ready to merge, thank you