llvm
llvm copied to clipboard
[SYCL][NATIVECPU] Allow building Native CPU with shared libraries
Currently building Native CPU with shared libraries enabled leads to a CMake error when configuring: some components of the oneAPI Construction Kit depend on LLVMPasses, and since they are also added as link_libraries to SYCLLowerIR (which LLVMPasses depends on), that creates a circular dependency that is not allowed when building with shared libraries enabled.
This PR addresses this by moving all the Native CPU components to a new folder (SYCLNativeCPUUtils), that is not linked to LLVMPasses, thus breaking the circular dependencies.