================ @@ -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. ---------------- sarnex wrote:
i remember there is some Clang option to control including the virtual isa code, will that already be resolved before the call to `clang-sycl-linker` such that all this tool needs to care about is the `arch` and `code` values and won't be passed some flag about including virtual arch? https://github.com/llvm/llvm-project/pull/239010 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
