[all-commits] [llvm/llvm-project] 9b57b1: [OMPIRBuilder] Fix shared clause for task construct
Prabhdeep Soni via All-commits
all-commits at lists.llvm.org
Fri Sep 15 09:20:13 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9b57b167bb4d849b6803e28f638b970f493511f9
https://github.com/llvm/llvm-project/commit/9b57b167bb4d849b6803e28f638b970f493511f9
Author: Prabhdeep Singh Soni <prabhdeep.singh.soni3 at huawei.com>
Date: 2023-09-15 (Fri, 15 Sep 2023)
Changed paths:
M llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
M llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
M llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
M mlir/test/Target/LLVMIR/openmp-llvm.mlir
Log Message:
-----------
[OMPIRBuilder] Fix shared clause for task construct
This patch fixes the shared clause for the task construct with multiple
shared variables. The shareds field in the kmp_task_t is not an inline
array in the struct, rather it is a pointer to an array. With an inline
array, the pointer dereference to the outlined function body of the task
would segmentation fault when accessed by the runtime.
Reviewed By: kiranchandramohan, jdoerfert
Differential Revision: https://reviews.llvm.org/D158462
More information about the All-commits
mailing list