Clang] Fix expansion of response files in -Wp after integrated-cc1 change
[llvm-project.git] / polly / test / GPGPU / managed-memory-rewrite-alloca.ll
blob597ae8eadc2ec2cd979d62b138db1fa9e2c4bf58
1 ; RUN: opt %loadPolly -analyze  -polly-process-unprofitable \
2 ; RUN: -polly-scops -polly-use-llvm-names < %s |  FileCheck %s --check-prefix=SCOP
4 ; RUN: opt %loadPolly -S  -polly-process-unprofitable -polly-acc-mincompute=0 \
5 ; RUN: -polly-target=gpu  -polly-codegen-ppcg -polly-acc-codegen-managed-memory \
6 ; RUN: -polly-acc-rewrite-managed-memory  -polly-acc-rewrite-allocas < %s | FileCheck %s --check-prefix=HOST-IR
8 ; REQUIRES: pollyacc
10 ; SCOP:      Function: f
11 ; SCOP-NEXT: Region: %for.body---%for.end
12 ; SCOP-NEXT: Max Loop Depth:  1
13 ; SCOP: i32 MemRef_arr[*];
15 ; Check that we generate a constructor call for @A.toptr
16 ; HOST-IR-NOT:   %arr = alloca [100 x i32]
18 source_filename = "test.c"
19 target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
20 target triple = "x86_64-apple-macosx10.12.0"
23 define void @f() {
24 entry:
25   %arr = alloca [100 x i32]
26   br label %entry.split
28 entry.split:                                      ; preds = %entry
29   br label %for.body
31 for.body:                                         ; preds = %entry.split, %for.body
32   %indvars.iv1 = phi i64 [ 0, %entry.split ], [ %indvars.iv.next, %for.body ]
33   %arrayidx = getelementptr inbounds [100 x i32], [100 x i32]* %arr, i64 0, i64 %indvars.iv1
34   store i32 42, i32* %arrayidx, align 4, !tbaa !3
35   %indvars.iv.next = add nuw nsw i64 %indvars.iv1, 1
36   %exitcond = icmp eq i64 %indvars.iv.next, 100
37   br i1 %exitcond, label %for.end, label %for.body
39 for.end:                                          ; preds = %for.body
40   ret void
43 ; Function Attrs: argmemonly nounwind
44 declare void @llvm.lifetime.start.p0i8(i64, i8* nocapture) #0
47 ; Function Attrs: argmemonly nounwind
48 declare void @llvm.lifetime.end.p0i8(i64, i8* nocapture) #0
50 attributes #0 = { argmemonly nounwind }
52 !llvm.module.flags = !{!0, !1}
53 !llvm.ident = !{!2}
55 !0 = !{i32 1, !"wchar_size", i32 4}
56 !1 = !{i32 7, !"PIC Level", i32 2}
57 !2 = !{!"clang version 6.0.0"}
58 !3 = !{!4, !4, i64 0}
59 !4 = !{!"int", !5, i64 0}
60 !5 = !{!"omnipotent char", !6, i64 0}
61 !6 = !{!"Simple C/C++ TBAA"}