[llvm-branch-commits] [clang] [llvm] [OpenMP] Add codegen support for dyn_groupprivate clause (PR #152830)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Oct 27 07:15:50 PDT 2025


skc7 wrote:

Hi @kevinsala 

emitTargetCall in ompIRBuilder.cpp is populating the TargetKernelArgs, which contain your newly added DynCGroupMemFallback and DynCGGroupMem. These could be given as input arguments to emitTargetCall. 

OpenMPIRBuilder::createTarget inturn calls emitTargetCall. So, would be better to add DynCGroupMemFallback and DynCGGroupMem to createTarget. 

OpenMPToLLVMIRTranslation uses OpenMPIRBuilder::createTarget which can be used by #153562 for populating the dynGroup size and fallback modifiers from the omp.dyn_groupprivate mlir clause.



https://github.com/llvm/llvm-project/pull/152830


More information about the llvm-branch-commits mailing list