[flang-commits] [flang] [llvm] [flang][OpenMP] Overhaul implementation of ATOMIC construct (PR #137852)
via flang-commits
flang-commits at lists.llvm.org
Fri May 30 22:53:17 PDT 2025
================
@@ -0,0 +1,82 @@
+!RUN: %flang_fc1 -fopenmp -fopenmp-version=60 -emit-hlfir -mmlir -fdebug-dump-atomic-analysis %s -o /dev/null 2>&1 | FileCheck %s
+
+subroutine f00(x)
+ integer :: x, v
+ !$omp atomic read
+ v = x
+end
+
+!CHECK: Analysis {
+!CHECK-NEXT: atom: x
+!CHECK-NEXT: cond: <null>
+!CHECK-NEXT: op0 {
+!CHECK-NEXT: what: Read
+!CHECK-NEXT: assign: v=x
+!CHECK-NEXT: }
+!CHECK-NEXT: op1 {
----------------
NimishMishra wrote:
Nit: In cases where op1 is NULL, is it better to simply skip dumping it?
https://github.com/llvm/llvm-project/pull/137852
More information about the flang-commits
mailing list