[libc-commits] [clang-tools-extra] [clang] [libc] [mlir] [llvm] [compiler-rt] [OpenMP] atomic compare fail : Codegen support (PR #75709)
Alexey Bataev via libc-commits
libc-commits at lists.llvm.org
Wed Dec 20 05:40:27 PST 2023
================
@@ -6580,6 +6578,51 @@ void CodeGenFunction::EmitOMPAtomicDirective(const OMPAtomicDirective &S) {
}
}
+ if (KindsEncountered.contains(OMPC_compare) &&
+ KindsEncountered.contains(OMPC_fail)) {
+ Kind = OMPC_compare;
+ const OMPFailClause *fC = S.getSingleClause<OMPFailClause>();
+ if (fC) {
+ OpenMPClauseKind fP = fC->getFailParameter();
----------------
alexey-bataev wrote:
```suggestion
OpenMPClauseKind FP = fC->getFailParameter();
```
https://github.com/llvm/llvm-project/pull/75709
More information about the libc-commits
mailing list