[PATCH] D68660: [tooling] Teach Tooling to understand compilation with offloading.

Artem Belevich via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Oct 8 13:56:23 PDT 2019


tra added a reviewer: klimek.
tra added a comment.

Added Manuel as someone familiar with tooling.



================
Comment at: clang/lib/Tooling/Tooling.cpp:117
   // The one job we find should be to invoke clang again.
   const auto &Cmd = cast<driver::Command>(*Jobs.begin());
   if (StringRef(Cmd.getCreator().getName()) != "clang") {
----------------
Is this still the right job for us to pick? I think we want this to be the host compilation. 

As things are right now my guess is that we're probably picking the first device-side compilation.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68660/new/

https://reviews.llvm.org/D68660





More information about the cfe-commits mailing list