psyclone.psyir.transformations.omp_critical_trans#
This module contains the implementation of the OpenMP Critical transformation.
Classes#
OMPCriticalTrans: Adds an OpenMP critical directive around a region of code.
- class psyclone.psyir.transformations.omp_critical_trans.OMPCriticalTrans[source]#
Adds an OpenMP critical directive around a region of code.
Note
This transformation does not currently do any validation about critical regions, and their correct usage is up to the user. In the future, we may try to improve this (after issues like #3238 are resolved).
Inheritance
