[flang-commits] [clang] [flang] [Clang] Introduce `--offload-targets` for `-fopenmp-targets` (PR #146594)
Joseph Huber via flang-commits
flang-commits at lists.llvm.org
Thu Jul 3 15:00:43 PDT 2025
================
@@ -1138,6 +1138,10 @@ def fno_convergent_functions : Flag<["-"], "fno-convergent-functions">,
// Common offloading options
let Group = offload_Group in {
+def offload_targets_EQ : CommaJoined<["--"], "offload-targets=">,
----------------
jhuber6 wrote:
Yeah, I'm not sure if it will ever make sense to mix languages. The offloading kind is a function of the input, though that's muddled by arguments like `-fopenmp` and `-fsycl` which 'pretend' it's a flag when really it's like putting `-x c` in front of every input. *theoretically* we could have something similar like `-Xlang_sycl --offload-target=abc`,but I really don't know if anyone will ever care about that.
https://github.com/llvm/llvm-project/pull/146594
More information about the flang-commits
mailing list