[flang-commits] [clang] [flang] [Clang] Introduce `--offload-targets` for `-fopenmp-targets` (PR #146594)

Nick Sarnie via flang-commits flang-commits at lists.llvm.org
Thu Jul 3 08:45:37 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=">,
----------------
sarnex wrote:

I'm not sure if this is a realistic usecase or one we care about, but if we have a single option would we lose the ability to have different offload targets for different offloading languages at the same time? Like `-fopenmp -fopenmp-targets=amdgcn -fsycl  -fsycl-targets=nvptx64`. I guess if we really wanted to support that we could add some special optional syntax to offload-targets.

https://github.com/llvm/llvm-project/pull/146594


More information about the flang-commits mailing list