[clang] [llvm] [clang-linker-wrapper][SYCL] Support relocatable linking (PR #242098)
Yury Plyakhin via cfe-commits
cfe-commits at lists.llvm.org
Fri Nov 13 15:49:48 PST 2026
================
@@ -106,3 +106,20 @@ space attributes for pointers:
```C++
//TODO: add support for __attribute__((opencl_global_host)) and __attribute__((opencl_global_device)).
```
+
+## Relocatable linking
+
+With `-r`, clang links the SYCL device code of its inputs and merges the inputs
+into one object file. That object file also contains the code that registers the
----------------
YuriPlyakhin wrote:
nit
```suggestion
With `-r`, clang links the SYCL device code embedded in the input object files and merges those object files
into one. That object file also contains the code that registers the
```
https://github.com/llvm/llvm-project/pull/242098
More information about the cfe-commits
mailing list