2017-07-25 23:53:26 +08:00
|
|
|
// RUN: %clang_cc1 -verify -triple x86_64-apple-darwin10 -fopenmp -x c++ -emit-llvm %s -o - | FileCheck %s
|
|
|
|
// RUN: %clang_cc1 -fopenmp -x c++ -triple x86_64-apple-darwin10 -emit-pch -o %t %s
|
|
|
|
// RUN: %clang_cc1 -fopenmp -x c++ -triple x86_64-apple-darwin10 -include-pch %t -verify %s -emit-llvm -o - | FileCheck %s
|
2017-10-25 23:54:04 +08:00
|
|
|
// RUN: %clang_cc1 -fopenmp -x c++ %s -verify -debug-info-kind=limited -emit-llvm -o - -triple x86_64-apple-darwin10 | FileCheck %s --check-prefix=CHECK --check-prefix=DEBUG
|
2017-12-30 02:07:07 +08:00
|
|
|
|
|
|
|
// RUN: %clang_cc1 -verify -triple x86_64-apple-darwin10 -fopenmp-simd -x c++ -emit-llvm %s -o - | FileCheck --check-prefix SIMD-ONLY0 %s
|
|
|
|
// RUN: %clang_cc1 -fopenmp-simd -x c++ -triple x86_64-apple-darwin10 -emit-pch -o %t %s
|
|
|
|
// RUN: %clang_cc1 -fopenmp-simd -x c++ -triple x86_64-apple-darwin10 -include-pch %t -verify %s -emit-llvm -o - | FileCheck --check-prefix SIMD-ONLY0 %s
|
|
|
|
// RUN: %clang_cc1 -fopenmp-simd -x c++ %s -verify -debug-info-kind=limited -emit-llvm -o - -triple x86_64-apple-darwin10 | FileCheck --check-prefix SIMD-ONLY0 %s
|
|
|
|
// SIMD-ONLY0-NOT: {{__kmpc|__tgt}}
|
2017-07-25 23:53:26 +08:00
|
|
|
// expected-no-diagnostics
|
|
|
|
#ifndef HEADER
|
|
|
|
#define HEADER
|
|
|
|
|
2018-03-07 02:59:43 +08:00
|
|
|
// CHECK-DAG: @reduction_size.[[ID:.+]]_[[CID:[0-9]+]].artificial.
|
|
|
|
// CHECK-DAG: @reduction_size.[[ID]]_[[CID]].artificial..cache.
|
|
|
|
|
2017-07-25 23:53:26 +08:00
|
|
|
struct S {
|
|
|
|
int a;
|
|
|
|
S() : a(0) {}
|
|
|
|
S(const S&) {}
|
|
|
|
S& operator=(const S&) {return *this;}
|
|
|
|
~S() {}
|
|
|
|
friend S operator+(const S&a, const S&b) {return a;}
|
|
|
|
};
|
|
|
|
|
|
|
|
int main(int argc, char **argv) {
|
|
|
|
int a;
|
|
|
|
float b;
|
|
|
|
S c[5];
|
|
|
|
short d[argc];
|
|
|
|
#pragma omp taskgroup task_reduction(+: a, b, argc)
|
|
|
|
{
|
|
|
|
#pragma omp taskgroup task_reduction(-:c, d)
|
|
|
|
;
|
|
|
|
}
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
// CHECK-LABEL: @main
|
|
|
|
// CHECK: alloca i32,
|
|
|
|
// CHECK: [[ARGC_ADDR:%.+]] = alloca i32,
|
|
|
|
// CHECK: [[ARGV_ADDR:%.+]] = alloca i8**,
|
|
|
|
// CHECK: [[A:%.+]] = alloca i32,
|
|
|
|
// CHECK: [[B:%.+]] = alloca float,
|
|
|
|
// CHECK: [[C:%.+]] = alloca [5 x %struct.S],
|
|
|
|
// CHECK: [[RD_IN1:%.+]] = alloca [3 x [[T1:%[^,]+]]],
|
|
|
|
// CHECK: [[TD1:%.+]] = alloca i8*,
|
|
|
|
// CHECK: [[RD_IN2:%.+]] = alloca [2 x [[T2:%[^,]+]]],
|
|
|
|
// CHECK: [[TD2:%.+]] = alloca i8*,
|
|
|
|
|
2018-10-05 23:08:53 +08:00
|
|
|
// CHECK: [[GTID:%.+]] = call i32 @__kmpc_global_thread_num(%struct.ident_t*
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK: [[VLA:%.+]] = alloca i16, i64 [[VLA_SIZE:%[^,]+]],
|
|
|
|
|
2018-04-17 01:59:34 +08:00
|
|
|
// CHECK: call void @__kmpc_taskgroup(%struct.ident_t* {{[^,]+}}, i32 [[GTID]])
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: [[BC_A:%.+]] = bitcast i32* [[A]] to i8*
|
|
|
|
// CHECK-DAG: store i8* [[BC_A]], i8** [[A_REF:[^,]+]],
|
|
|
|
// CHECK-DAG: [[A_REF]] = getelementptr inbounds [[T1]], [[T1]]* [[GEPA:%[^,]+]], i32 0, i32 0
|
|
|
|
// CHECK-DAG: [[GEPA]] = getelementptr inbounds [3 x [[T1]]], [3 x [[T1]]]* [[RD_IN1]], i64 0, i64
|
|
|
|
// CHECK-DAG: [[TMP6:%.+]] = getelementptr inbounds [[T1]], [[T1]]* [[GEPA]], i32 0, i32 1
|
|
|
|
// CHECK-DAG: store i64 4, i64* [[TMP6]],
|
|
|
|
// CHECK-DAG: [[TMP7:%.+]] = getelementptr inbounds [[T1]], [[T1]]* [[GEPA]], i32 0, i32 2
|
2018-01-09 04:09:47 +08:00
|
|
|
// CHECK-DAG: store i8* bitcast (void (i8*)* @[[AINIT:.+]] to i8*), i8** [[TMP7]],
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: [[TMP8:%.+]] = getelementptr inbounds [[T1]], [[T1]]* [[GEPA]], i32 0, i32 3
|
|
|
|
// CHECK-DAG: store i8* null, i8** [[TMP8]],
|
|
|
|
// CHECK-DAG: [[TMP9:%.+]] = getelementptr inbounds [[T1]], [[T1]]* [[GEPA]], i32 0, i32 4
|
2018-01-09 04:09:47 +08:00
|
|
|
// CHECK-DAG: store i8* bitcast (void (i8*, i8*)* @[[ACOMB:.+]] to i8*), i8** [[TMP9]],
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: [[TMP10:%.+]] = getelementptr inbounds [[T1]], [[T1]]* [[GEPA]], i32 0, i32 5
|
|
|
|
// CHECK-DAG: [[TMP11:%.+]] = bitcast i32* [[TMP10]] to i8*
|
Change memcpy/memove/memset to have dest and source alignment attributes (Step 1).
Summary:
Upstream LLVM is changing the the prototypes of the @llvm.memcpy/memmove/memset
intrinsics. This change updates the Clang tests for this change.
The @llvm.memcpy/memmove/memset intrinsics currently have an explicit argument
which is required to be a constant integer. It represents the alignment of the
dest (and source), and so must be the minimum of the actual alignment of the
two.
This change removes the alignment argument in favour of placing the alignment
attribute on the source and destination pointers of the memory intrinsic call.
For example, code which used to read:
call void @llvm.memcpy.p0i8.p0i8.i32(i8* %dest, i8* %src, i32 100, i32 4, i1 false)
will now read
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %dest, i8* align 4 %src, i32 100, i1 false)
At this time the source and destination alignments must be the same (Step 1).
Step 2 of the change, to be landed shortly, will relax that contraint and allow
the source and destination to have different alignments.
llvm-svn: 322964
2018-01-20 01:12:54 +08:00
|
|
|
// CHECK-DAG: call void @llvm.memset.p0i8.i64(i8* align 8 [[TMP11]], i8 0, i64 4, i1 false)
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: [[TMP13:%.+]] = bitcast float* [[B]] to i8*
|
|
|
|
// CHECK-DAG: store i8* [[TMP13]], i8** [[TMP12:%[^,]+]],
|
|
|
|
// CHECK-DAG: [[TMP12]] = getelementptr inbounds [[T1]], [[T1]]* [[GEPB:%[^,]+]], i32 0, i32 0
|
|
|
|
// CHECK-DAG: [[GEPB]] = getelementptr inbounds [3 x [[T1]]], [3 x [[T1]]]* [[RD_IN1]], i64 0, i64
|
|
|
|
// CHECK-DAG: [[TMP14:%.+]] = getelementptr inbounds [[T1]], [[T1]]* [[GEPB]], i32 0, i32 1
|
|
|
|
// CHECK-DAG: store i64 4, i64* [[TMP14]],
|
|
|
|
// CHECK-DAG: [[TMP15:%.+]] = getelementptr inbounds [[T1]], [[T1]]* [[GEPB]], i32 0, i32 2
|
2018-01-09 04:09:47 +08:00
|
|
|
// CHECK-DAG: store i8* bitcast (void (i8*)* @[[BINIT:.+]] to i8*), i8** [[TMP15]],
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: [[TMP16:%.+]] = getelementptr inbounds [[T1]], [[T1]]* [[GEPB]], i32 0, i32 3
|
|
|
|
// CHECK-DAG: store i8* null, i8** [[TMP16]],
|
|
|
|
// CHECK-DAG: [[TMP17:%.+]] = getelementptr inbounds [[T1]], [[T1]]* [[GEPB]], i32 0, i32 4
|
2018-01-09 04:09:47 +08:00
|
|
|
// CHECK-DAG: store i8* bitcast (void (i8*, i8*)* @[[BCOMB:.+]] to i8*), i8** [[TMP17]],
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: [[TMP18:%.+]] = getelementptr inbounds [[T1]], [[T1]]* [[GEPB]], i32 0, i32 5
|
|
|
|
// CHECK-DAG: [[TMP19:%.+]] = bitcast i32* [[TMP18]] to i8*
|
Change memcpy/memove/memset to have dest and source alignment attributes (Step 1).
Summary:
Upstream LLVM is changing the the prototypes of the @llvm.memcpy/memmove/memset
intrinsics. This change updates the Clang tests for this change.
The @llvm.memcpy/memmove/memset intrinsics currently have an explicit argument
which is required to be a constant integer. It represents the alignment of the
dest (and source), and so must be the minimum of the actual alignment of the
two.
This change removes the alignment argument in favour of placing the alignment
attribute on the source and destination pointers of the memory intrinsic call.
For example, code which used to read:
call void @llvm.memcpy.p0i8.p0i8.i32(i8* %dest, i8* %src, i32 100, i32 4, i1 false)
will now read
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %dest, i8* align 4 %src, i32 100, i1 false)
At this time the source and destination alignments must be the same (Step 1).
Step 2 of the change, to be landed shortly, will relax that contraint and allow
the source and destination to have different alignments.
llvm-svn: 322964
2018-01-20 01:12:54 +08:00
|
|
|
// CHECK-DAG: call void @llvm.memset.p0i8.i64(i8* align 8 [[TMP19]], i8 0, i64 4, i1 false)
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: [[TMP21:%.+]] = bitcast i32* [[ARGC_ADDR]] to i8*
|
|
|
|
// CHECK-DAG: store i8* [[TMP21]], i8** [[TMP20:%[^,]+]],
|
|
|
|
// CHECK-DAG: [[TMP20]] = getelementptr inbounds [[T1]], [[T1]]* [[GEPARGC:%[^,]+]], i32 0, i32 0
|
|
|
|
// CHECK-DAG: [[GEPARGC]] = getelementptr inbounds [3 x [[T1]]], [3 x [[T1]]]* [[RD_IN1]], i64 0, i64
|
|
|
|
// CHECK-DAG: [[TMP22:%.+]] = getelementptr inbounds [[T1]], [[T1]]* [[GEPARGC]], i32 0, i32 1
|
|
|
|
// CHECK-DAG: store i64 4, i64* [[TMP22]],
|
|
|
|
// CHECK-DAG: [[TMP23:%.+]] = getelementptr inbounds [[T1]], [[T1]]* [[GEPARGC]], i32 0, i32 2
|
2018-01-09 04:09:47 +08:00
|
|
|
// CHECK-DAG: store i8* bitcast (void (i8*)* @[[ARGCINIT:.+]] to i8*), i8** [[TMP23]],
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: [[TMP24:%.+]] = getelementptr inbounds [[T1]], [[T1]]* [[GEPARGC]], i32 0, i32 3
|
|
|
|
// CHECK-DAG: store i8* null, i8** [[TMP24]],
|
|
|
|
// CHECK-DAG: [[TMP25:%.+]] = getelementptr inbounds [[T1]], [[T1]]* [[GEPARGC]], i32 0, i32 4
|
2018-01-09 04:09:47 +08:00
|
|
|
// CHECK-DAG: store i8* bitcast (void (i8*, i8*)* @[[ARGCCOMB:.+]] to i8*), i8** [[TMP25]],
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: [[TMP26:%.+]] = getelementptr inbounds [[T1]], [[T1]]* [[GEPARGC]], i32 0, i32 5
|
|
|
|
// CHECK-DAG: [[TMP27:%.+]] = bitcast i32* [[TMP26]] to i8*
|
Change memcpy/memove/memset to have dest and source alignment attributes (Step 1).
Summary:
Upstream LLVM is changing the the prototypes of the @llvm.memcpy/memmove/memset
intrinsics. This change updates the Clang tests for this change.
The @llvm.memcpy/memmove/memset intrinsics currently have an explicit argument
which is required to be a constant integer. It represents the alignment of the
dest (and source), and so must be the minimum of the actual alignment of the
two.
This change removes the alignment argument in favour of placing the alignment
attribute on the source and destination pointers of the memory intrinsic call.
For example, code which used to read:
call void @llvm.memcpy.p0i8.p0i8.i32(i8* %dest, i8* %src, i32 100, i32 4, i1 false)
will now read
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %dest, i8* align 4 %src, i32 100, i1 false)
At this time the source and destination alignments must be the same (Step 1).
Step 2 of the change, to be landed shortly, will relax that contraint and allow
the source and destination to have different alignments.
llvm-svn: 322964
2018-01-20 01:12:54 +08:00
|
|
|
// CHECK-DAG: call void @llvm.memset.p0i8.i64(i8* align 8 [[TMP27]], i8 0, i64 4, i1 false)
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: [[TMP28:%.+]] = bitcast [3 x [[T1]]]* [[RD_IN1]] to i8*
|
|
|
|
// CHECK-DAG: [[TMP29:%.+]] = call i8* @__kmpc_task_reduction_init(i32 [[GTID]], i32 3, i8* [[TMP28]])
|
2017-10-25 23:54:04 +08:00
|
|
|
// DEBUG-DAG: call void @llvm.dbg.declare(metadata i8** [[TD1]],
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: store i8* [[TMP29]], i8** [[TD1]],
|
2018-04-17 01:59:34 +08:00
|
|
|
// CHECK-DAG: call void @__kmpc_taskgroup(%struct.ident_t* {{[^,]+}}, i32 [[GTID]])
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: [[TMP31:%.+]] = bitcast [5 x %struct.S]* [[C]] to i8*
|
|
|
|
// CHECK-DAG: store i8* [[TMP31]], i8** [[TMP30:%[^,]+]],
|
|
|
|
// CHECK-DAG: [[TMP30]] = getelementptr inbounds [[T2]], [[T2]]* [[GEPC:%[^,]+]], i32 0, i32 0
|
|
|
|
// CHECK-DAG: [[GEPC]] = getelementptr inbounds [2 x [[T2]]], [2 x [[T2]]]* [[RD_IN2]], i64 0, i64
|
|
|
|
// CHECK-DAG: [[TMP32:%.+]] = getelementptr inbounds [[T2]], [[T2]]* [[GEPC]], i32 0, i32 1
|
|
|
|
// CHECK-DAG: store i64 20, i64* [[TMP32]],
|
|
|
|
// CHECK-DAG: [[TMP33:%.+]] = getelementptr inbounds [[T2]], [[T2]]* [[GEPC]], i32 0, i32 2
|
2018-01-09 04:09:47 +08:00
|
|
|
// CHECK-DAG: store i8* bitcast (void (i8*)* @[[CINIT:.+]] to i8*), i8** [[TMP33]],
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: [[TMP34:%.+]] = getelementptr inbounds [[T2]], [[T2]]* [[GEPC]], i32 0, i32 3
|
2018-01-09 04:09:47 +08:00
|
|
|
// CHECK-DAG: store i8* bitcast (void (i8*)* @[[CFINI:.+]] to i8*), i8** [[TMP34]],
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: [[TMP35:%.+]] = getelementptr inbounds [[T2]], [[T2]]* [[GEPC]], i32 0, i32 4
|
2018-01-09 04:09:47 +08:00
|
|
|
// CHECK-DAG: store i8* bitcast (void (i8*, i8*)* @[[CCOMB:.+]] to i8*), i8** [[TMP35]],
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: [[TMP36:%.+]] = getelementptr inbounds [[T2]], [[T2]]* [[GEPC]], i32 0, i32 5
|
|
|
|
// CHECK-DAG: [[TMP37:%.+]] = bitcast i32* [[TMP36]] to i8*
|
Change memcpy/memove/memset to have dest and source alignment attributes (Step 1).
Summary:
Upstream LLVM is changing the the prototypes of the @llvm.memcpy/memmove/memset
intrinsics. This change updates the Clang tests for this change.
The @llvm.memcpy/memmove/memset intrinsics currently have an explicit argument
which is required to be a constant integer. It represents the alignment of the
dest (and source), and so must be the minimum of the actual alignment of the
two.
This change removes the alignment argument in favour of placing the alignment
attribute on the source and destination pointers of the memory intrinsic call.
For example, code which used to read:
call void @llvm.memcpy.p0i8.p0i8.i32(i8* %dest, i8* %src, i32 100, i32 4, i1 false)
will now read
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %dest, i8* align 4 %src, i32 100, i1 false)
At this time the source and destination alignments must be the same (Step 1).
Step 2 of the change, to be landed shortly, will relax that contraint and allow
the source and destination to have different alignments.
llvm-svn: 322964
2018-01-20 01:12:54 +08:00
|
|
|
// CHECK-DAG: call void @llvm.memset.p0i8.i64(i8* align 8 [[TMP37]], i8 0, i64 4, i1 false)
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: [[TMP39:%.+]] = bitcast i16* [[VLA]] to i8*
|
|
|
|
// CHECK-DAG: store i8* [[TMP39]], i8** [[TMP38:%[^,]+]],
|
|
|
|
// CHECK-DAG: [[TMP38]] = getelementptr inbounds [[T2]], [[T2]]* [[GEPVLA:%[^,]+]], i32 0, i32 0
|
|
|
|
// CHECK-DAG: [[GEPVLA]] = getelementptr inbounds [2 x [[T2]]], [2 x [[T2]]]* [[RD_IN2]], i64 0, i64
|
|
|
|
// CHECK-DAG: [[TMP40:%.+]] = mul nuw i64 [[VLA_SIZE]], 2
|
|
|
|
// CHECK-DAG: [[TMP41:%.+]] = udiv exact i64 [[TMP40]], ptrtoint (i16* getelementptr (i16, i16* null, i32 1) to i64)
|
|
|
|
// CHECK-DAG: [[TMP42:%.+]] = getelementptr inbounds [[T2]], [[T2]]* [[GEPVLA]], i32 0, i32 1
|
|
|
|
// CHECK-DAG: store i64 [[TMP40]], i64* [[TMP42]],
|
|
|
|
// CHECK-DAG: [[TMP43:%.+]] = getelementptr inbounds [[T2]], [[T2]]* [[GEPVLA]], i32 0, i32 2
|
2018-01-09 04:09:47 +08:00
|
|
|
// CHECK-DAG: store i8* bitcast (void (i8*)* @[[VLAINIT:.+]] to i8*), i8** [[TMP43]],
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: [[TMP44:%.+]] = getelementptr inbounds [[T2]], [[T2]]* [[GEPVLA]], i32 0, i32 3
|
|
|
|
// CHECK-DAG: store i8* null, i8** [[TMP44]],
|
|
|
|
// CHECK-DAG: [[TMP45:%.+]] = getelementptr inbounds [[T2]], [[T2]]* [[GEPVLA]], i32 0, i32 4
|
2018-01-09 04:09:47 +08:00
|
|
|
// CHECK-DAG: store i8* bitcast (void (i8*, i8*)* @[[VLACOMB:.+]] to i8*), i8** [[TMP45]],
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: [[TMP46:%.+]] = getelementptr inbounds [[T2]], [[T2]]* [[GEPVLA]], i32 0, i32 5
|
|
|
|
// CHECK-DAG: store i32 1, i32* [[TMP46]],
|
|
|
|
// CHECK: [[TMP47:%.+]] = bitcast [2 x [[T2]]]* [[RD_IN2]] to i8*
|
|
|
|
// CHECK: [[TMP48:%.+]] = call i8* @__kmpc_task_reduction_init(i32 [[GTID]], i32 2, i8* [[TMP47]])
|
|
|
|
// CHECK: store i8* [[TMP48]], i8** [[TD2]],
|
2018-04-17 01:59:34 +08:00
|
|
|
// CHECK: call void @__kmpc_end_taskgroup(%struct.ident_t* {{[^,]+}}, i32 [[GTID]])
|
|
|
|
// CHECK: call void @__kmpc_end_taskgroup(%struct.ident_t* {{[^,]+}}, i32 [[GTID]])
|
2017-07-25 23:53:26 +08:00
|
|
|
|
2018-01-09 04:09:47 +08:00
|
|
|
// CHECK-DAG: define internal void @[[AINIT]](i8*)
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: store i32 0, i32* %
|
|
|
|
// CHECK-DAG: ret void
|
|
|
|
// CHECK-DAG: }
|
|
|
|
|
2018-01-09 04:09:47 +08:00
|
|
|
// CHECK-DAG: define internal void @[[ACOMB]](i8*, i8*)
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: add nsw i32 %
|
|
|
|
// CHECK-DAG: store i32 %
|
|
|
|
// CHECK-DAG: ret void
|
|
|
|
// CHECK-DAG: }
|
|
|
|
|
2018-01-09 04:09:47 +08:00
|
|
|
// CHECK-DAG: define internal void @[[BINIT]](i8*)
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: store float 0.000000e+00, float* %
|
|
|
|
// CHECK-DAG: ret void
|
|
|
|
// CHECK-DAG: }
|
|
|
|
|
2018-01-09 04:09:47 +08:00
|
|
|
// CHECK-DAG: define internal void @[[BCOMB]](i8*, i8*)
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: fadd float %
|
|
|
|
// CHECK-DAG: store float %
|
|
|
|
// CHECK-DAG: ret void
|
|
|
|
// CHECK-DAG: }
|
|
|
|
|
2018-01-09 04:09:47 +08:00
|
|
|
// CHECK-DAG: define internal void @[[ARGCINIT]](i8*)
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: store i32 0, i32* %
|
|
|
|
// CHECK-DAG: ret void
|
|
|
|
// CHECK-DAG: }
|
|
|
|
|
2018-01-09 04:09:47 +08:00
|
|
|
// CHECK-DAG: define internal void @[[ARGCCOMB]](i8*, i8*)
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: add nsw i32 %
|
|
|
|
// CHECK-DAG: store i32 %
|
|
|
|
// CHECK-DAG: ret void
|
|
|
|
// CHECK-DAG: }
|
|
|
|
|
2018-01-09 04:09:47 +08:00
|
|
|
// CHECK-DAG: define internal void @[[CINIT]](i8*)
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: phi %struct.S* [
|
|
|
|
// CHECK-DAG: call {{.+}}(%struct.S* {{.+}})
|
|
|
|
// CHECK-DAG: br i1 %
|
|
|
|
// CHECK-DAG: ret void
|
|
|
|
// CHECK-DAG: }
|
|
|
|
|
2018-01-09 04:09:47 +08:00
|
|
|
// CHECK-DAG: define internal void @[[CFINI]](i8*)
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: phi %struct.S* [
|
|
|
|
// CHECK-DAG: call {{.+}}(%struct.S* {{.+}})
|
|
|
|
// CHECK-DAG: br i1 %
|
|
|
|
// CHECK-DAG: ret void
|
|
|
|
// CHECK-DAG: }
|
|
|
|
|
2018-01-09 04:09:47 +08:00
|
|
|
// CHECK-DAG: define internal void @[[CCOMB]](i8*, i8*)
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: phi %struct.S* [
|
|
|
|
// CHECK-DAG: phi %struct.S* [
|
|
|
|
// CHECK-DAG: call {{.+}}(%struct.S* {{.+}}, %struct.S* {{.+}}, %struct.S* {{.+}})
|
|
|
|
// CHECK-DAG: call {{.+}}(%struct.S* {{.+}}, %struct.S* {{.+}})
|
|
|
|
// CHECK-DAG: call {{.+}}(%struct.S* {{.+}})
|
|
|
|
// CHECK-DAG: br i1 %
|
|
|
|
// CHECK-DAG: ret void
|
|
|
|
// CHECK_DAG: }
|
|
|
|
|
2018-01-09 04:09:47 +08:00
|
|
|
// CHECK-DAG: define internal void @[[VLAINIT]](i8*)
|
2018-04-17 01:59:34 +08:00
|
|
|
// CHECK-DAG: call i32 @__kmpc_global_thread_num(%struct.ident_t* {{[^,]+}})
|
|
|
|
// CHECK-DAG: call i8* @__kmpc_threadprivate_cached(%struct.ident_t*
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: phi i16* [
|
|
|
|
// CHECK-DAG: store i16 0, i16* %
|
|
|
|
// CHECK-DAG: br i1 %
|
|
|
|
// CHECK-DAG: ret void
|
|
|
|
// CHECK-DAG: }
|
|
|
|
|
2018-01-09 04:09:47 +08:00
|
|
|
// CHECK-DAG: define internal void @[[VLACOMB]](i8*, i8*)
|
2018-04-17 01:59:34 +08:00
|
|
|
// CHECK-DAG: call i32 @__kmpc_global_thread_num(%struct.ident_t* {{[^,]+}})
|
|
|
|
// CHECK-DAG: call i8* @__kmpc_threadprivate_cached(%struct.ident_t*
|
2017-07-25 23:53:26 +08:00
|
|
|
// CHECK-DAG: phi i16* [
|
|
|
|
// CHECK-DAG: phi i16* [
|
|
|
|
// CHECK-DAG: sext i16 %{{.+}} to i32
|
|
|
|
// CHECK-DAG: add nsw i32 %
|
|
|
|
// CHECK-DAG: trunc i32 %{{.+}} to i16
|
|
|
|
// CHECK-DAG: store i16 %
|
|
|
|
// CHECK_DAG: br i1 %
|
|
|
|
// CHECK-DAG: ret void
|
|
|
|
// CHECK-DAG: }
|
|
|
|
#endif
|
2018-01-09 04:09:47 +08:00
|
|
|
|
|
|
|
// DEBUG-LABEL: distinct !DICompileUnit
|
|
|
|
// DEBUG-DAG: distinct !DISubprogram(linkageName: "[[AINIT]]",
|
|
|
|
// DEBUG-DAG: distinct !DISubprogram(linkageName: "[[ACOMB]]",
|
|
|
|
// DEBUG-DAG: distinct !DISubprogram(linkageName: "[[BINIT]]",
|
|
|
|
// DEBUG-DAG: distinct !DISubprogram(linkageName: "[[BCOMB]]",
|
|
|
|
// DEBUG-DAG: distinct !DISubprogram(linkageName: "[[ARGCINIT]]",
|
|
|
|
// DEBUG-DAG: distinct !DISubprogram(linkageName: "[[ARGCCOMB]]",
|
|
|
|
// DEBUG-DAG: distinct !DISubprogram(linkageName: "[[CINIT]]",
|
|
|
|
// DEBUG-DAG: distinct !DISubprogram(linkageName: "[[CFINI]]",
|
|
|
|
// DEBUG-DAG: distinct !DISubprogram(linkageName: "[[CCOMB]]",
|
|
|
|
// DEBUG-DAG: distinct !DISubprogram(linkageName: "[[VLAINIT]]",
|
|
|
|
// DEBUG-DAG: distinct !DISubprogram(linkageName: "[[VLACOMB]]",
|