[PATCH] D46471: [HIP] Add hip offload kind

Yaxun Liu via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue May 8 13:25:54 PDT 2018


yaxunl marked an inline comment as done.
yaxunl added inline comments.


================
Comment at: lib/Driver/ToolChains/Clang.cpp:133-135
     Work(*C.getSingleOffloadToolChain<Action::OFK_Host>());
 
+  if (JA.isHostOffloading(Action::OFK_HIP))
----------------
tra wrote:
> CUDA and HIP are mutually exclusive, so this should probably be `else if`
Will do when committing.


https://reviews.llvm.org/D46471





More information about the cfe-commits mailing list