================ @@ -682,23 +687,27 @@ CodeGenFunction::GenerateOpenMPCapturedStmtFunction(const CapturedStmt &S, SmallString<256> Buffer; llvm::raw_svector_ostream Out(Buffer); Out << CapturedStmtInfo->getHelperName(); - + OpenMPDirectiveKind EKind = getEffectiveDirectiveKind(D); + bool IsDeviceKernel = CGM.getOpenMPRuntime().isGPU() && ---------------- sarnex wrote:
it took me a while to find kernel detection logic that passes all the tests, this seems same to be but i am definitely not an expert in this code, so would appreciate a closer look at this part, thanks! https://github.com/llvm/llvm-project/pull/157172 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
