hliao marked an inline comment as done.
hliao added inline comments.
================
Comment at: clang/lib/Tooling/Tooling.cpp:102
+ if (isa<driver::OffloadAction>(A)) {
+ assert(Actions.size() == 2);
+ assert(isa<driver::CompileJobAction>(Actions.front()));
----------------
tra wrote:
> Why 2? Will it not be different if user targeted multiple GPUs?
>
that's the number of top-level actions. no matter how many GPUs are specified,
that offload action is the top-level action masters all of them.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68660/new/
https://reviews.llvm.org/D68660
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits