[clang] [clang] Add isOffloadingTarget function to LangOpts (PR #126956)
Nick Sarnie via cfe-commits
cfe-commits at lists.llvm.org
Tue Mar 18 09:26:52 PDT 2025
================
@@ -4357,6 +4357,10 @@ bool CompilerInvocation::ParseLangArgs(LangOptions &Opts, ArgList &Args,
Opts.OpenACCMacroOverride = A->getValue();
}
+ Opts.IsOffloadingTarget =
+ (Opts.OpenMPIsTargetDevice || Opts.SYCLIsDevice || Opts.CUDAIsDevice) &&
----------------
sarnex wrote:
Sorry, what would the two flags be? `IsOffloading` and `IsGPU`?
https://github.com/llvm/llvm-project/pull/126956
More information about the cfe-commits
mailing list