[Openmp-commits] [PATCH] D71989: [OpenMP][IRBuilder][WIP] Prototype `omp task` support

Andrey Churbanov via Phabricator via Openmp-commits openmp-commits at lists.llvm.org
Tue Jan 14 04:00:19 PST 2020


AndreyChurbanov added a comment.

> the task create and task issue step are
>  conceptually not separated anymore as it is

I don't think this can work reliably.  Because not all C++ objects can be mem-copied.
E.g. an object can keep its own address or reference, and mem-copy will make it broken.
This could be fixed by generating (optional) thunk routine which would create all needed objects 
in the library-allocated space, and similar routine which would destroy all the created objects.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71989/new/

https://reviews.llvm.org/D71989





More information about the Openmp-commits mailing list