[clang] [clang][HIP] Apply clang-cl optimization options to device code (PR #228096)
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Sat Oct 3 04:29:07 PDT 2026
================
@@ -91,6 +92,17 @@ Compilation::getArgsForToolChain(const ToolChain *TC, BoundArch BA,
delete OpenMPArgs;
}
+ if (NewDAL && DeviceOffloadKind == Action::OFK_OpenMP &&
+ (TheDriver.IsCLMode() ||
----------------
yxsamliu wrote:
Changed the common translation to use only `IsCLMode()` for all toolchains. I kept the existing GNU-mode MSVC support in the OpenMP forwarding path, using the same helper.
https://github.com/llvm/llvm-project/pull/228096
More information about the cfe-commits
mailing list