[flang-commits] [flang] [flang][OpenMP] Port OpenMP FIR tests for atomic update/capture to HLFIR (PR #70627)

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Mon Oct 30 00:23:31 PDT 2023


================
@@ -0,0 +1,98 @@
+! This test checks the lowering of atomic capture
+
+! RUN: bbc --use-desc-for-alloc=false -fopenmp -emit-hlfir %s -o - | FileCheck %s
+! RUN: %flang_fc1 -mllvm --use-desc-for-alloc=false -emit-hlfir -fopenmp %s -o - | FileCheck %s 
+
+
+
+program OmpAtomicCapture
+    use omp_lib                                                                                                       
+
+!CHECK: %[[val_X_alloca:.*]] = fir.alloca i32 {bindc_name = "x", uniq_name = "_QFEx"}
----------------
kiranchandramohan wrote:

Nit: Rename all captured variables to use CAPS for better readability.

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


More information about the flang-commits mailing list