[flang-commits] [flang] [llvm] [flang][llvm][OpenMP][OpenACC] Add implicit casts to omp.atomic and acc.atomic (PR #131603)

via flang-commits flang-commits at lists.llvm.org
Tue Apr 15 07:40:17 PDT 2025


================
@@ -386,6 +442,7 @@ void genOmpAccAtomicRead(Fortran::lower::AbstractConverter &converter,
       fir::getBase(converter.genExprAddr(fromExpr, stmtCtx));
   mlir::Value toAddress = fir::getBase(converter.genExprAddr(
       *Fortran::semantics::GetExpr(assignmentStmtVariable), stmtCtx));
+  emitImplicitCast(converter, loc, fromAddress, toAddress, elementType);
----------------
NimishMishra wrote:

Also, I checked that the `alloca` are not rightly placed at `AllocaIP`, since we are now leveraging typed statements for the conversion. Thus issues like https://github.com/llvm/llvm-project/issues/120724 should not arise with this version of the PR.

https://github.com/llvm/llvm-project/pull/131603


More information about the flang-commits mailing list