Page MenuHomePhabricator

Add new OpenMP 4.5 schedule clause modifiers (monotonic/non-monotonic) feature
ClosedPublic

Authored by jlpeyton on Feb 18 2016, 12:22 PM.

Details

Summary

The monotonic/non-monotonic flags are sent to the runtime via the sched_type by
setting the 30th (non-monotonic) or 29th (monotonic) bit in the sched_type.
Macros are added to probe if monotonic or non-monotonic is specified
(SCHEDULE_HAS_[NON]MONOTONIC & SCHEDULE_HAS_NO_MODIFIERS)
and also to to get the base sched_type (SCHEDULE_WITHOUT_MODIFIERS)

Currently, nothing is done with the modifiers.

Also, this patch adds some comments on the use of the enumerations in at least one place where it is subtle.

Diff Detail

Repository
rL LLVM

Event Timeline

jlpeyton updated this revision to Diff 48385.Feb 18 2016, 12:22 PM
jlpeyton retitled this revision from to Add new OpenMP 4.5 schedule clause modifiers (monotonic/non-monotonic) feature.
jlpeyton updated this object.
jlpeyton set the repository for this revision to rL LLVM.
AndreyChurbanov accepted this revision.Feb 25 2016, 8:03 AM
AndreyChurbanov edited edge metadata.

LGTM

This revision is now accepted and ready to land.Feb 25 2016, 8:03 AM
This revision was automatically updated to reflect the committed changes.