HomePhabricator

[OMPT] Fix thread_num for implicit_task_end callbacks in nested parallel regions

Authored by protze.joachim on May 7 2018, 5:42 AM.

Description

[OMPT] Fix thread_num for implicit_task_end callbacks in nested parallel regions

implicit_task_end callbacks in nested parallel regions did not always give the
correct thread_num, since the inner parallel region may have already been
finalized.
Now, the thread_num is stored at the beginning of the implicit task and
retrieved at the end, whenever necessary.

A testcase was added as well.

Differential Revision: https://reviews.llvm.org/D46260

llvm-svn: 331632