[Openmp-commits] [PATCH] D68100: [OpenMP 5.0] declare mapper runtime implementation
Alexey Bataev via Phabricator via Openmp-commits
openmp-commits at lists.llvm.org
Thu Nov 14 08:25:32 PST 2019
ABataev added inline comments.
================
Comment at: libomptarget/src/omptarget.cpp:550
+ (void (*)(void *, void *, void *, int64_t, int64_t))(arg_mappers[i]);
+ // The mapper function fills up Components.
+ (*mapper_func_ptr)((void *)&Components, args_base[i], args[i],
----------------
lildmh wrote:
> JonChesterfield wrote:
> > The rest of this looks quite familiar too. Perhaps factor the copy & paste into helper functions that are called by both locations?
> The duplication is not too much though. Do you think it will worth it to have a helper function?
+1 for refactoring.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D68100/new/
https://reviews.llvm.org/D68100
More information about the Openmp-commits
mailing list