[PATCH] D80240: [OPENMP50]Initial codegen for 'affinity' clauses.
Alexey Bataev via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 19 14:18:51 PDT 2020
ABataev created this revision.
ABataev added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, sstefan1, guansong, yaxunl.
Herald added projects: clang, LLVM.
Added initial codegen for 'affinity' clauses on task directives.
Emits next code:
kmp_task_affinity_info_t affs[<num_elems>];
void *td = __kmpc_task_alloc(..);
affs[<i>].base = &data_i;
affs[<i>].size = sizeof(data_i);
__kmpc_omp_reg_task_with_affinity(&loc, <gtid>, td, <num_elems>, affs);
The result returned by the call of `__kmpc_omp_reg_task_with_affinity`
function is ignored currently sincethe runtime currently ignores args
and returns 0 uncoditionally.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D80240
Files:
clang/lib/CodeGen/CGOpenMPRuntime.cpp
clang/lib/CodeGen/CGOpenMPRuntime.h
clang/test/OpenMP/task_affinity_codegen.cpp
llvm/include/llvm/Frontend/OpenMP/OMPKinds.def
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D80240.265028.patch
Type: text/x-patch
Size: 27951 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200519/11747ba0/attachment-0001.bin>
More information about the cfe-commits
mailing list