@@ -158,12 +158,10 @@ omp.private {type = firstprivate} @sv.firstprivate : i32 copy {
158158 llvm.store %0 , %arg1 : i32 , !llvm.ptr
159159 omp.yield (%arg1 : !llvm.ptr )
160160}
161- llvm.func @target_simple_ () attributes {fir.internal_name = " _QPtarget_simple " } {
161+ llvm.func @target_firstprivate_ () attributes {fir.internal_name = " _QPtarget_firstprivate " } {
162162 %0 = llvm.mlir.constant (1 : i64 ) : i64
163163 %sv = llvm.alloca %0 x i32 {bindc_name = " sv" } : (i64 ) -> !llvm.ptr
164164 %sf = llvm.alloca %0 x f32 {bindc_name = " sf" } : (i64 ) -> !llvm.ptr
165- %4 = llvm.mlir.constant (1 : i64 ) : i64
166- %5 = llvm.mlir.constant (1 : i64 ) : i64
167165 %6 = omp.map.info var_ptr (%sv : !llvm.ptr , i32 ) map_clauses (to ) capture (ByRef ) -> !llvm.ptr
168166 %7 = omp.map.info var_ptr (%sf : !llvm.ptr , f32 ) map_clauses (to ) capture (ByRef ) -> !llvm.ptr
169167 omp.target map_entries (%6 -> %arg0 , %7 -> %arg1 : !llvm.ptr , !llvm.ptr ) private (@sv.firstprivate %sv -> %arg2 [map_idx =0 ], @sf.firstprivate %sf -> %arg3 [map_idx =1 ] : !llvm.ptr , !llvm.ptr ) {
@@ -189,7 +187,7 @@ llvm.func @target_simple_() attributes {fir.internal_name = "_QPtarget_simple"}
189187// CHECK: call void @__omp_offloading_[[PRIVATE_MULTI_BLOCK_OFFLOADED_FUNCTION:.*]]()
190188// CHECK: define void @target_boxchar_
191189// CHECK: call void @__omp_offloading_[[BOXCHAR_OFFLOADED_FUNCTION:.*]](ptr {{.*}}, ptr {{.*}})
192- // CHECK: define void @target_simple_ ()
190+ // CHECK: define void @target_firstprivate_ ()
193191// CHECK: call void @__omp_offloading_[[SIMPLE_OFFLOADED_FUNCTION:.*]](ptr {{.*}}, ptr {{.*}})
194192
195193// CHECK: define internal void @__omp_offloading_[[MAP_SINGLE_PRIVATE_OFFLOADED_FUNCTION]]
0 commit comments