This is an archive of the discontinued LLVM Phabricator instance.

[OpenMP][FIX] Properly align for firstprivate variables
ClosedPublic

Authored by jdoerfert on Feb 27 2023, 3:39 PM.

Details

Summary

The old code didn't actually align the values, and it added padding even
when none was necessary. This approach will pad entries if necessary
and, similar to the struct case, use the host pointer as guidance.

Fixes: https://github.com/llvm/llvm-project/issues/61034

Diff Detail

Event Timeline

jdoerfert created this revision.Feb 27 2023, 3:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 27 2023, 3:39 PM
jdoerfert requested review of this revision.Feb 27 2023, 3:39 PM
jdoerfert updated this revision to Diff 500948.Feb 27 2023, 3:40 PM

add context

This revision is now accepted and ready to land.Feb 27 2023, 4:30 PM