Changeset View
Changeset View
Standalone View
Standalone View
clang/test/OpenMP/nvptx_data_sharing.cpp
Show All 22 Lines | #pragma omp target | ||||
#pragma omp parallel private(c) | #pragma omp parallel private(c) | ||||
{ | { | ||||
int *c1 = &c; | int *c1 = &c; | ||||
b = a + 10000; | b = a + 10000; | ||||
} | } | ||||
} | } | ||||
} | } | ||||
// SEQ: [[MEM_TY:%.+]] = type { [128 x i8] } | // SEQ: [[MEM_TY:%.+]] = type { [128 x i8] } | ||||
// SEQ-DAG: [[SHARED_GLOBAL_RD:@.+]] = common addrspace(3) global [[MEM_TY]] zeroinitializer | // SEQ-DAG: [[SHARED_GLOBAL_RD:@.+]] = weak addrspace(3) global [[MEM_TY]] undef | ||||
// SEQ-DAG: [[KERNEL_PTR:@.+]] = internal addrspace(3) global i8* null | // SEQ-DAG: [[KERNEL_PTR:@.+]] = internal addrspace(3) global i8* undef | ||||
// SEQ-DAG: [[KERNEL_SIZE:@.+]] = internal unnamed_addr constant i64 8 | // SEQ-DAG: [[KERNEL_SIZE:@.+]] = internal unnamed_addr constant i64 8 | ||||
// SEQ-DAG: [[KERNEL_SHARED:@.+]] = internal unnamed_addr constant i16 1 | // SEQ-DAG: [[KERNEL_SHARED:@.+]] = internal unnamed_addr constant i16 1 | ||||
/// ========= In the worker function ========= /// | /// ========= In the worker function ========= /// | ||||
// CK1: {{.*}}define internal void @__omp_offloading{{.*}}test_ds{{.*}}_worker() | // CK1: {{.*}}define internal void @__omp_offloading{{.*}}test_ds{{.*}}_worker() | ||||
// CK1: call void @__kmpc_barrier_simple_spmd(%struct.ident_t* null, i32 0) | // CK1: call void @__kmpc_barrier_simple_spmd(%struct.ident_t* null, i32 0) | ||||
// CK1-NOT: call void @__kmpc_data_sharing_init_stack | // CK1-NOT: call void @__kmpc_data_sharing_init_stack | ||||
▲ Show 20 Lines • Show All 79 Lines • Show Last 20 Lines |