[flang-commits] [flang] [llvm] [mlir] [OpenMPIRBuilder] Emit __atomic_load and __atomic_compare_exchange libcalls for complex types in atomic update (PR #92364)
via flang-commits
flang-commits at lists.llvm.org
Mon Sep 30 07:50:47 PDT 2024
================
@@ -129,8 +129,7 @@ static void processOmpAtomicTODO(mlir::Type elementType,
// Based on assertion for supported element types in OMPIRBuilder.cpp
// createAtomicRead
mlir::Type unwrappedEleTy = fir::unwrapRefType(elementType);
- bool supportedAtomicType =
- (!fir::isa_complex(unwrappedEleTy) && fir::isa_trivial(unwrappedEleTy));
+ bool supportedAtomicType = fir::isa_trivial(unwrappedEleTy);
----------------
NimishMishra wrote:
We could do that. I have the fix already available in my branch (https://github.com/NimishMishra/f18-llvm-project/commit/b61d1837b95e7f5dd431553f543f25e598100b0c). I will put it up for review as soon as this PR gets merged, if it is okay. Otherwise, we can add a TODO to make this PR self-sufficient.
https://github.com/llvm/llvm-project/pull/92364
More information about the flang-commits
mailing list