[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / polly / test / CodeGen / OpenMP / reference-argument-from-non-affine-region.ll
blobf243c3a0494989ce46a0e4176ffcd36b07f803a3
1 ; RUN: opt %loadPolly -polly-parallel \
2 ; RUN: -polly-parallel-force -polly-codegen \
3 ; RUN: -S -verify-dom-info < %s \
4 ; RUN: | FileCheck %s -check-prefix=IR
6 ; RUN: opt %loadPolly -polly-parallel \
7 ; RUN: -polly-parallel-force -polly-codegen -polly-scheduling=runtime \
8 ; RUN: -S -verify-dom-info < %s \
9 ; RUN: | FileCheck %s -check-prefix=IR
11 ; RUN: opt %loadPolly -polly-parallel \
12 ; RUN: -polly-parallel-force -polly-codegen -polly-omp-backend=LLVM \
13 ; RUN: -S -verify-dom-info < %s \
14 ; RUN: | FileCheck %s -check-prefix=LIBOMP-IR
16 ; IR: @GOMP_parallel_loop_runtime_start
18 ; LIBOMP-IR: call void (ptr, i32, ptr, ...) @__kmpc_fork_call
19 ; LIBOMP-IR: call void @__kmpc_dispatch_init_{{[4|8]}}
21 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
23 @longLimit = external global [9 x [23 x i32]], align 16
24 @shortLimit = external global [9 x [14 x i32]], align 16
26 define void @init_layer3(i32 %down_sample_sblimit) #0 {
27 entry:
28   br label %for.cond.463.preheader
30 for.cond.463.preheader:                           ; preds = %entry
31   br label %for.cond.499.preheader
33 for.cond.533.preheader:                           ; preds = %for.inc.530
34   ret void
36 for.cond.499.preheader:                           ; preds = %for.inc.530, %for.cond.463.preheader
37   %indvars.iv140 = phi i64 [ 0, %for.cond.463.preheader ], [ %indvars.iv.next141, %for.inc.530 ]
38   %arrayidx483 = getelementptr inbounds [9 x [23 x i32]], ptr @longLimit, i64 0, i64 %indvars.iv140, i64 0
39   store i32 undef, ptr %arrayidx483, align 4, !tbaa !1
40   %arrayidx487 = getelementptr inbounds [9 x [23 x i32]], ptr @longLimit, i64 0, i64 %indvars.iv140, i64 0
41   %tmp = load i32, ptr %arrayidx487, align 4, !tbaa !1
42   %indvars.iv.next135 = add nuw nsw i64 0, 1
43   br label %for.body.502
45 for.body.502:                                     ; preds = %for.inc.527, %for.cond.499.preheader
46   %indvars.iv137 = phi i64 [ 0, %for.cond.499.preheader ], [ %indvars.iv.next138, %for.inc.527 ]
47   %arrayidx518 = getelementptr inbounds [9 x [14 x i32]], ptr @shortLimit, i64 0, i64 %indvars.iv140, i64 %indvars.iv137
48   %tmp1 = load i32, ptr %arrayidx518, align 4, !tbaa !1
49   %cmp519 = icmp sgt i32 %tmp1, %down_sample_sblimit
50   br i1 %cmp519, label %if.then.521, label %for.inc.527
52 if.then.521:                                      ; preds = %for.body.502
53   br label %for.inc.527
55 for.inc.527:                                      ; preds = %if.then.521, %for.body.502
56   %indvars.iv.next138 = add nuw nsw i64 %indvars.iv137, 1
57   %exitcond139 = icmp ne i64 %indvars.iv.next138, 14
58   br i1 %exitcond139, label %for.body.502, label %for.inc.530
60 for.inc.530:                                      ; preds = %for.inc.527
61   %indvars.iv.next141 = add nuw nsw i64 %indvars.iv140, 1
62   %exitcond142 = icmp ne i64 %indvars.iv.next141, 9
63   br i1 %exitcond142, label %for.cond.499.preheader, label %for.cond.533.preheader
66 attributes #0 = { nounwind uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" }
68 !llvm.ident = !{!0}
70 !0 = !{!"clang version 3.8.0 (trunk 246359)"}
71 !1 = !{!2, !2, i64 0}
72 !2 = !{!"int", !3, i64 0}
73 !3 = !{!"omnipotent char", !4, i64 0}
74 !4 = !{!"Simple C/C++ TBAA"}