This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Add support for declaring critical construct names
ClosedPublic

Authored by kiranchandramohan on Aug 25 2021, 10:50 AM.

Details

Summary

Add an operation omp.critical.declare to declare names/symbols of
critical sections. Named omp.critical operations should use symbols
declared by omp.critical.declare. Having a declare operation ensures that
the names of critical sections are global and unique. In the lowering flow
to LLVM IR, the OpenMP IRBuilder creates unique names for critical sections.

Diff Detail

Event Timeline

kiranchandramohan requested review of this revision.Aug 25 2021, 10:50 AM
jdoerfert retitled this revision from Add support for declaring critical construct names to [MLIR] Add support for declaring critical construct names.Aug 25 2021, 11:28 AM
ftynse accepted this revision.Aug 26 2021, 2:01 AM
This revision is now accepted and ready to land.Aug 26 2021, 2:01 AM
jeanPerier accepted this revision.Aug 26 2021, 2:49 AM

Looks like a good solution to me.

kiranchandramohan edited the summary of this revision. (Show Details)Sep 2 2021, 7:14 AM