diff options
author | Shraiysh Vaishay <Shraiysh.Vaishay@amd.com> | 2021-10-20 18:02:21 +0530 |
---|---|---|
committer | Shraiysh Vaishay <Shraiysh.Vaishay@amd.com> | 2021-10-20 21:36:09 +0530 |
commit | c4c7e06bd700aeccfbe5c1f075bd5897f54b68f2 (patch) | |
tree | 66a51b42ae38d6fe488662e8bc40db6311fb9afc /llvm/lib/Object/ModuleSymbolTable.cpp | |
parent | fe66433fe119819a033827610f7eae4cdd8b1470 (diff) | |
download | llvm-c4c7e06bd700aeccfbe5c1f075bd5897f54b68f2.zip llvm-c4c7e06bd700aeccfbe5c1f075bd5897f54b68f2.tar.gz llvm-c4c7e06bd700aeccfbe5c1f075bd5897f54b68f2.tar.bz2 |
[MLIR][OpenMP] Shifted hint from CriticalOp to CriticalDeclareOp
According to the OpenMP 5.0 standard, names and hints of critical operation are
closely related. The following are the restrictions on them:
- Unless the effect is as if `hint(omp_sync_hint_none)` was specified, the
critical construct must specify a name.
- If the hint clause is specified, each of the critical constructs with the
same name must have a hint clause for which the hint-expression evaluates to
the same value.
These restrictions will be enforced by design if the hint expression is a part
of the `omp.critical.declare` operation.
- Any operation with no "name" will be considered to have
`hint(omp_sync_hint_none)`.
- All the operations with the same "name" will have the same hint value.
Reviewed By: kiranchandramohan
Differential Revision: https://reviews.llvm.org/D112134
Diffstat (limited to 'llvm/lib/Object/ModuleSymbolTable.cpp')
0 files changed, 0 insertions, 0 deletions