[Mlir-commits] [flang] [mlir] [Flang] [OpenMP] atomic compare (PR #184761)

Tom Eccles llvmlistbot at llvm.org
Thu Mar 5 04:23:12 PST 2026


================
@@ -485,6 +485,47 @@ genAtomicOperation(lower::AbstractConverter &converter,
   }
 }
 
+/// Map a Fortran relational operator to an MLIR integer comparison predicate.
+static mlir::arith::CmpIPredicate
+mapRelationalOpToIntPredicate(Fortran::common::RelationalOperator relOpr) {
----------------
tblah wrote:

nit: There is already an implementation of this (and for FP predicates) in ConvertExprToHLFIR.cpp. Maybe these can be shared somewhere.

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


More information about the Mlir-commits mailing list