================
@@ -30,30 +30,37 @@ be passed down to downstream AOT compilation tools like 
'ocloc' and 'opencl-aot'
 
 ```console
 OVERVIEW: A utility that wraps around the SYCL device code linking process.
-This enables LLVM IR linking, post-linking and code generation for SPIR-V
-JIT and AOT targets.
+This enables LLVM IR linking, post-linking and code generation for SPIR-V JIT 
and AOT targets.
 
 USAGE: clang-sycl-linker [options] <input bitcode files>
 
 OPTIONS:
-  --arch <value>                Specify the name of the target architecture.
-  --dry-run                     Print generated commands without running.
-  -help-hidden                  Display all available options
-  -help                         Display available options (--help-hidden for 
more)
-  -L <dir>                      Add <dir> to the library search path
-  -l <libname>                  Search for library <libname>
-  --whole-archive               Include all archive members in the link
-  --no-whole-archive            Only include archive members that resolve 
undefined symbols (default)
-  -u <symbol>                   Force undefined symbol during linking
-  --module-split-mode=<mode>    Module split mode: 'translation_unit' 
(default), 'kernel', or 'link_unit'
-  --ocloc-options=<value>       Options passed to ocloc for Intel GPU AOT 
compilation
-  --opencl-aot-options=<value>  Options passed to opencl-aot for Intel CPU AOT 
compilation
-  -o <path>                     Path to file to write output
-  --save-temps                  Save intermediate results
-  --triple <value>              Specify the target triple.
-  --version                     Display the version number and exit
-  -v                            Print verbose information
-  -spirv-dump-device-code=<dir> Directory to dump SPIR-V IR code into
+  --arch=<arch>           The device architecture
+  --code=<device>         Specify a real device to compile ahead of time for. 
Can be repeated. Without it, a real --arch is compiled ahead of time and a 
virtual one is kept for just-in-time compilation.
----------------
YuriPlyakhin wrote:

In the design, `--no-offload-embed-virtual-arch` is recorded per device image 
(`no-embed-virtual-arch`) and resolved per link group (`-exclude_ir` passed to 
`ocloc` only if all members have it, a warning if they're mixed), so 
`clang-sycl-linker` will need a way to know that. I guess it would be in a 
follow-up.

https://github.com/llvm/llvm-project/pull/239010
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to