[clang] [clang][OpenMP][SPIR-V] Fix addrspace of pointer kernel arguments (PR #157172)
Nick Sarnie via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 8 11:46:44 PDT 2025
================
@@ -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
More information about the cfe-commits
mailing list