This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP]Skip generating this[:1] map info for non-member variable.
ClosedPublic

Authored by jyu2 on Mar 13 2023, 4:28 PM.

Details

Summary

My change of D14093 is only fixed problem for "pragma target data".

The problem still here for "pragma target"
what I am missing is:
When processing "pragma target data", the VD is passed when call to
emitCombinedEntry, so check VD is null as map for this pointer.

But when processing "pragma target" the VD is passed as nullptr, so
check VD is null is not working.

To fix this I add a new parameter IsMapThis. During the call to
emitCombinedEntry passes true if it is capturing this pointer and use
that instead check of "!VD".

Diff Detail

Event Timeline

jyu2 created this revision.Mar 13 2023, 4:28 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 13 2023, 4:28 PM
jyu2 requested review of this revision.Mar 13 2023, 4:28 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 13 2023, 4:28 PM
jyu2 updated this revision to Diff 504907.Mar 13 2023, 6:31 PM

Fix clang format problem

This revision is now accepted and ready to land.Mar 14 2023, 4:25 AM