[all-commits] [llvm/llvm-project] c4c7e0: [MLIR][OpenMP] Shifted hint from CriticalOp to Cri...
Shraiysh via All-commits
all-commits at lists.llvm.org
Wed Oct 20 09:06:27 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c4c7e06bd700aeccfbe5c1f075bd5897f54b68f2
https://github.com/llvm/llvm-project/commit/c4c7e06bd700aeccfbe5c1f075bd5897f54b68f2
Author: Shraiysh Vaishay <Shraiysh.Vaishay at amd.com>
Date: 2021-10-20 (Wed, 20 Oct 2021)
Changed paths:
M mlir/include/mlir/Dialect/OpenMP/OpenMPOps.td
M mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
M mlir/lib/Target/LLVMIR/Dialect/OpenMP/OpenMPToLLVMIRTranslation.cpp
M mlir/test/Dialect/OpenMP/invalid.mlir
M mlir/test/Dialect/OpenMP/ops.mlir
M mlir/test/Target/LLVMIR/openmp-llvm.mlir
Log Message:
-----------
[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
More information about the All-commits
mailing list