Set frame address when creating a task with dependences
Details
- Reviewers
protze.joachim Hahnfeld jlpeyton - Commits
- rG265fb584a569: [OMPT] Set and reset frame address when creating a task with dependences
rOMP321421: [OMPT] Set and reset frame address when creating a task with dependences
rL321421: [OMPT] Set and reset frame address when creating a task with dependences
Diff Detail
- Repository
- rL LLVM
Event Timeline
I think, the address needs to be reset on return. Please include commit 45a3a39 to this patch.
For the GOMP interface the address was already set. When entering using the
KMP interface, the address was not set.
The task is created in the implicit task of the master thread. So there must
be an enter and exit address set, as we are in the runtime.
This patch fixes the test case and sets the reenter address when entering with
the kmpc function.
Does the latest change assume current_task == new_taskdata->td_parent (which would make sense to me)? If not this change has more implications than the frame address.
Yes, that is the idea behind this change. This avoids to lookup the same pointer in two ways and especially I need the address also at the end of the function.