@@ -158,12 +158,10 @@ omp.private {type = firstprivate} @sv.firstprivate : i32 copy {
158
158
llvm.store %0 , %arg1 : i32 , !llvm.ptr
159
159
omp.yield (%arg1 : !llvm.ptr )
160
160
}
161
- llvm.func @target_simple_ () attributes {fir.internal_name = " _QPtarget_simple " } {
161
+ llvm.func @target_firstprivate_ () attributes {fir.internal_name = " _QPtarget_firstprivate " } {
162
162
%0 = llvm.mlir.constant (1 : i64 ) : i64
163
163
%sv = llvm.alloca %0 x i32 {bindc_name = " sv" } : (i64 ) -> !llvm.ptr
164
164
%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
167
165
%6 = omp.map.info var_ptr (%sv : !llvm.ptr , i32 ) map_clauses (to ) capture (ByRef ) -> !llvm.ptr
168
166
%7 = omp.map.info var_ptr (%sf : !llvm.ptr , f32 ) map_clauses (to ) capture (ByRef ) -> !llvm.ptr
169
167
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"}
189
187
// CHECK: call void @__omp_offloading_[[PRIVATE_MULTI_BLOCK_OFFLOADED_FUNCTION:.*]]()
190
188
// CHECK: define void @target_boxchar_
191
189
// CHECK: call void @__omp_offloading_[[BOXCHAR_OFFLOADED_FUNCTION:.*]](ptr {{.*}}, ptr {{.*}})
192
- // CHECK: define void @target_simple_ ()
190
+ // CHECK: define void @target_firstprivate_ ()
193
191
// CHECK: call void @__omp_offloading_[[SIMPLE_OFFLOADED_FUNCTION:.*]](ptr {{.*}}, ptr {{.*}})
194
192
195
193
// CHECK: define internal void @__omp_offloading_[[MAP_SINGLE_PRIVATE_OFFLOADED_FUNCTION]]
0 commit comments