This is an archive of the discontinued LLVM Phabricator instance.

[OPENMP]Add support for analysis of reduction variables.
ClosedPublic

Authored by ABataev on Jul 22 2019, 12:00 PM.

Details

Summary

Reduction variables are the variables, for which the private copies
must be created in the OpenMP regions. Then they are initialized with
the predefined values depending on the reduction operation. After exit
from the OpenMP region the original variable is updated using the
reduction value and the value of the original reduction variable.

Diff Detail

Repository
rL LLVM

Event Timeline

ABataev created this revision.Jul 22 2019, 12:00 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 22 2019, 12:00 PM
NoQ accepted this revision.Jul 25 2019, 3:02 PM

Great, thanks!

That'll be fun to model in the static analyzer :/

This revision is now accepted and ready to land.Jul 25 2019, 3:02 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJul 26 2019, 7:49 AM