[clang] [flang] [Flang-new][OpenMP] Add offload related flags for AMDGPU (PR #96742)
Tom Eccles via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 26 05:24:54 PDT 2024
================
@@ -333,6 +333,9 @@ void Flang::AddAMDGPUTargetArgs(const ArgList &Args,
StringRef Val = A->getValue();
CmdArgs.push_back(Args.MakeArgString("-mcode-object-version=" + Val));
}
+
+ const ToolChain &TC = getToolChain();
+ TC.addClangTargetOptions(Args, CmdArgs, Action::OffloadKind::OFK_OpenMP);
----------------
tblah wrote:
Should there be some kind of warning if these flags are used not with AMDGPU? I don't have a strong opinion here as it is only an fc1 flag.
https://github.com/llvm/llvm-project/pull/96742
More information about the cfe-commits
mailing list