yaxunl added a comment. Also, I don't see the advantage of resolving this issue through toolchains. You still need to detect kernels and device variables referenced by host code, and generate IR's which introduce artificial references to them. It just becomes more complicated since you have to do them with external tools and handle extra outputs and inputs with the toolchain. Whereas in the current approach the information is directly available in AST and the IR can be generated by clang codegen.
CHANGES SINCE LAST ACTION https://reviews.llvm.org/D123441/new/ https://reviews.llvm.org/D123441 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits