[clang] [flang] [Flang-new][OpenMP] Add offload related flags for AMDGPU (PR #96742)
Andrzej WarzyĆski via cfe-commits
cfe-commits at lists.llvm.org
Wed Jun 26 10:10:14 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);
----------------
banach-space wrote:
+1 to having better diagnostics
https://github.com/llvm/llvm-project/pull/96742
More information about the cfe-commits
mailing list