[flang-commits] [flang] [mlir] [Flang][MLIR][OpenMP] - Add support for firstprivate when translating omp.target ops from MLIR to LLVMIR (PR #131213)

Pranav Bhandarkar via flang-commits flang-commits at lists.llvm.org
Thu Mar 20 08:08:28 PDT 2025


================
@@ -18,11 +18,6 @@ llvm.func @target_map_single_private() attributes {fir.internal_name = "_QPtarge
   }
   llvm.return
 }
-// CHECK: define internal void @__omp_offloading_
-// CHECK-NOT: define {{.*}}
-// CHECK: %[[PRIV_ALLOC:.*]] = alloca i32, align 4
-// CHECK: %[[ADD:.*]] = add i32 {{.*}}, 10
-// CHECK: store i32 %[[ADD]], ptr %[[PRIV_ALLOC]], align 4
----------------
bhandarkar-pranav wrote:

I had to change and move the `CHECK` statements at the bottom of the file because of reasons related to ordering. However, before my next update, I'll check to ensure that these checks are still there in their modified form.

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


More information about the flang-commits mailing list