[flang-commits] [clang] [flang] [llvm] [OpenMPIRBuilder] Emit __atomic_load and __atomic_compare_exchange libcalls for complex types in atomic update (PR #92364)
Michael Kruse via flang-commits
flang-commits at lists.llvm.org
Tue Jul 9 07:48:28 PDT 2024
================
@@ -6033,6 +6034,52 @@ std::pair<Value *, Value *> OpenMPIRBuilder::emitAtomicUpdate(
Res.second = Res.first;
else
Res.second = emitRMWOpAsInstruction(Res.first, Expr, RMWOp);
+ } else if (RMWOp == llvm::AtomicRMWInst::BinOp::BAD_BINOP) {
----------------
Meinersbur wrote:
`BAD_BINOP`? Doesn't this implement `BinOp::Xchg`?
https://github.com/llvm/llvm-project/pull/92364
More information about the flang-commits
mailing list