[PATCH] D157438: [OpenMP] Ensure wrapper headers are included on both host and device
Joseph Huber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 8 14:23:55 PDT 2023
jhuber6 added inline comments.
================
Comment at: clang/lib/Driver/ToolChains/Clang.cpp:1190-1191
// the resource directory at clang/lib/Headers/llvm_libc_wrappers.
- if (C.getActiveOffloadKinds() == Action::OFK_None) {
+ if ((getToolChain().getTriple().isNVPTX() ||
+ getToolChain().getTriple().isAMDGCN()) &&
+ C.getActiveOffloadKinds() == Action::OFK_None) {
----------------
arsenm wrote:
> can we do something better than this NVPTX||AMDGCN checks
This is more or less "Are we one of the GPUs `libc` supports". This is for cross-compiling so there's no existing infrastructure.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157438/new/
https://reviews.llvm.org/D157438
More information about the cfe-commits
mailing list