This is an archive of the discontinued LLVM Phabricator instance.

[mlir][OpenMP]Improve OpenMP schedule modifier error checking and tests
AbandonedPublic

Authored by Leporacanthicus on Oct 26 2021, 4:28 AM.

Details

Reviewers
ftynse
jdoerfert
Summary

Add more thorough error checking in MLIR for OpenMP worksharing loops.

In particular:

  1. Only allow 1-2 modifiers.
  2. Do not allow "wrong order" of modifiers.
  3. Insert dummy "none" for monotonic/nonmonotonic modifier when only SIMD is present.

Add tests to cover failure cases, as well as simd being used on its
own in positive cases.

Diff Detail