Skip to content

Commit b0cc40d

Browse files
author
Shashwathi N
committed
updated
1 parent f32b8c8 commit b0cc40d

File tree

1 file changed

+2
-33
lines changed

1 file changed

+2
-33
lines changed

clang/test/OpenMP/target_update_codegen.cpp

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1581,39 +1581,8 @@ void foo(int arg) {
15811581
void foo(){
15821582
int a[10];
15831583
#pragma omp target update to(iterator(int it = 0:10) : a[it])
1584-
// CHECK: define dso_local void @_Z4testv()
1585-
// CHECK-NEXT: %[[A1:.*]] = alloca \[10 x i32\], align 16
1586-
// CHECK-NEXT: %[[A2:.*]] = alloca \[1 x ptr\], align 8
1587-
// CHECK-NEXT: %[[A3:.*]] = alloca \[1 x ptr\], align 8
1588-
// CHECK-NEXT: %[[A4:.*]] = alloca \[1 x ptr\], align 8
1589-
// CHECK-NEXT: %[[A5:.*]] = alloca \[1 x ptr\], align 8
1590-
// CHECK-NEXT: %[[A6:.*]] = alloca \[1 x ptr\], align 8
1591-
// CHECK-NEXT: %[[A7:.*]] = alloca \[1 x ptr\], align 8
1592-
// CHECK: %[[LOAD1:.*]] = load i32, ptr @_ZZ4testvE16iteratorvariable, align 4
1593-
// CHECK: %[[SEXT1:.*]] = sext i32 %[[LOAD1]] to i64
1594-
// CHECK: %[[GEP1:.*]] = getelementptr inbounds \[10 x i32\], ptr %[[A1]], i64 0, i64 %[[SEXT1]]
1595-
// CHECK: %[[GEP2:.*]] = getelementptr inbounds \[1 x ptr\], ptr %[[A2]], i32 0, i32 0
1596-
// CHECK: store ptr %[[A1]], ptr %[[GEP2]], align 8
1597-
// CHECK: %[[GEP3:.*]] = getelementptr inbounds \[1 x ptr\], ptr %[[A3]], i32 0, i32 0
1598-
// CHECK: store ptr %[[GEP1]], ptr %[[GEP3]], align 8
1599-
// CHECK: %[[GEP4:.*]] = getelementptr inbounds \[1 x ptr\], ptr %[[A4]], i64 0, i64 0
1600-
// CHECK: store ptr null, ptr %[[GEP4]], align 8
1601-
// CHECK: %[[GEP5:.*]] = getelementptr inbounds \[1 x ptr\], ptr %[[A2]], i32 0, i32 0
1602-
// CHECK: %[[GEP6:.*]] = getelementptr inbounds \[1 x ptr\], ptr %[[A3]], i32 0, i32 0
1603-
// CHECK: call void @__tgt_target_data_update_mapper(ptr @2, i64 -1, i32 1, ptr %[[GEP5]], ptr %[[GEP6]], ptr @.offload_sizes, ptr @.offload_maptypes, ptr @.offload_mapnames, ptr null)
1604-
// CHECK: %[[LOAD2:.*]] = load i32, ptr @[[ITER]], align 4
1605-
// CHECK: %[[SEXT2:.*]] = sext i32 %[[LOAD2]] to i64
1606-
// CHECK: %[[GEP7:.*]] = getelementptr inbounds \[10 x i32\], ptr %[[A1]], i64 0, i64 %[[SEXT2]]
1607-
// CHECK: %[[GEP8:.*]] = getelementptr inbounds \[1 x ptr\], ptr %[[A5]], i32 0, i32 0
1608-
// CHECK: store ptr %[[A1]], ptr %[[GEP8]], align 8
1609-
// CHECK: %[[GEP9:.*]] = getelementptr inbounds \[1 x ptr\], ptr %[[A6]], i32 0, i32 0
1610-
// CHECK: store ptr %[[GEP7]], ptr %[[GEP9]], align 8
1611-
// CHECK: %[[GEP10:.*]] = getelementptr inbounds \[1 x ptr\], ptr %[[A7]], i64 0, i64 0
1612-
// CHECK: store ptr null, ptr %[[GEP10]], align 8
1613-
// CHECK: %[[GEP11:.*]] = getelementptr inbounds \[1 x ptr\], ptr %[[A5]], i32 0, i32 0
1614-
// CHECK: %[[GEP12:.*]] = getelementptr inbounds \[1 x ptr\], ptr %[[A6]], i32 0, i32 0
1615-
// CHECK: call void @__tgt_target_data_update_mapper(ptr @4, i64 -1, i32 1, ptr %[[GEP11]], ptr %[[GEP12]], ptr @.offload_sizes.1, ptr @.offload_maptypes.2, ptr @.offload_mapnames.3, ptr null)
1616-
// CHECK: ret void
1584+
// CK26-LABEL: define {{.+}}foo
1585+
// CK26: %[[LOAD2:.*]] = load i32, ptr @[[ITER]], align 4
16171586
}
16181587
#endif
16191588
#endif

0 commit comments

Comments
 (0)