Fix Polly
[polly-mirror.git] / test / ScopInfo / constant_functions_as_unknowns.ll
blobb3bbc8c2ee0501b6d6a4057be59bc4a57926ea14
1 ; RUN: opt %loadPolly -polly-scops -analyze < %s | FileCheck %s
3 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
4 target triple = "x86_64-unknown-linux-gnu"
6 ; CHECK:      Context:
7 ; CHECK-NEXT: [__global_id_0] -> {  : -9223372036854775808 <= __global_id_0 <= 9223372036854775807 }
8 ; CHECK-NEXT: Assumed Context:
9 ; CHECK-NEXT: [__global_id_0] -> {  :  }
10 ; CHECK-NEXT: Invalid Context:
11 ; CHECK-NEXT: [__global_id_0] -> {  : false }
12 ; CHECK-NEXT: p0: %__global_id_0
13 ; CHECK-NEXT: Arrays {
14 ; CHECK-NEXT:     i64 MemRef_A[*]; // Element size 8
15 ; CHECK-NEXT: }
16 ; CHECK-NEXT: Arrays (Bounds as pw_affs) {
17 ; CHECK-NEXT:     i64 MemRef_A[*]; // Element size 8
18 ; CHECK-NEXT: }
19 ; CHECK-NEXT: Alias Groups (0):
20 ; CHECK-NEXT:     n/a
21 ; CHECK-NEXT: Statements {
22 ; CHECK-NEXT:   Stmt_bb
23 ; CHECK-NEXT:         Domain :=
24 ; CHECK-NEXT:             [__global_id_0] -> { Stmt_bb[] };
25 ; CHECK-NEXT:         Schedule :=
26 ; CHECK-NEXT:             [__global_id_0] -> { Stmt_bb[] -> [] };
27 ; CHECK-NEXT:         MustWriteAccess :=        [Reduction Type: NONE] [Scalar: 0]
28 ; CHECK-NEXT:             [__global_id_0] -> { Stmt_bb[] -> MemRef_A[__global_id_0] };
29 ; CHECK-NEXT: }
31 define void @globalid(i64* nocapture %A) local_unnamed_addr #0 !kernel_arg_addr_space !2 !kernel_arg_access_qual !3 !kernel_arg_type !4 !kernel_arg_base_type !4 !kernel_arg_type_qual !5 {
32 entry:
33   br label %next
35 next:
36   br i1 true, label %bb, label %exit
38 bb:
39   %__global_id_0 = tail call i64 @_Z13get_global_idj(i32 0) #2
40   %arrayidx = getelementptr inbounds i64, i64* %A, i64 %__global_id_0
41   store i64 0, i64* %arrayidx, align 8, !tbaa !6
42   br label %exit
44 exit:
45   ret void
48 ; Function Attrs: nounwind readnone
49 declare i64 @_Z13get_global_idj(i32) local_unnamed_addr #1
51 attributes #0 = { nounwind uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-__global_id_0s"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
52 attributes #1 = { nounwind readnone "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-__global_id_0s"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
53 attributes #2 = { nounwind readnone }
55 !llvm.module.flags = !{!0}
56 !llvm.ident = !{!1}
58 !0 = !{i32 1, !"wchar_size", i32 4}
59 !1 = !{!"clang version 5.0.0 (trunk 303846) (llvm/trunk 303834)"}
60 !2 = !{i32 1}
61 !3 = !{!"none"}
62 !4 = !{!"long*"}
63 !5 = !{!""}
64 !6 = !{!7, !7, i64 0}
65 !7 = !{!"long", !8, i64 0}
66 !8 = !{!"omnipotent char", !9, i64 0}
67 !9 = !{!"Simple C/C++ TBAA"}