This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][OpenMP] Allow the single operation to have a region
ClosedPublic

Authored by kiranchandramohan on Oct 29 2022, 9:46 AM.

Details

Summary

The OpenMP standard specifies the region inside to be a structured
block. This means that branches into or out of the region is not
permitted but branches are permitted inside the OpenMP single region.
This is currently modeled by having a region of kind AnyRegion for
all the OpenMP ops. In future we can have a more strictly defined
region.

Fixes #58396.

Diff Detail

Event Timeline

kiranchandramohan requested review of this revision.Oct 29 2022, 9:46 AM
peixin accepted this revision.Oct 30 2022, 8:03 AM

LGTM. Thanks.

This revision is now accepted and ready to land.Oct 30 2022, 8:03 AM