[polly] r235146 - [opaque pointer types] Explicit non-pointer type for call expressions
David Blaikie
dblaikie at gmail.com
Thu Apr 16 16:24:53 PDT 2015
Author: dblaikie
Date: Thu Apr 16 18:24:52 2015
New Revision: 235146
URL: http://llvm.org/viewvc/llvm-project?rev=235146&view=rev
Log:
[opaque pointer types] Explicit non-pointer type for call expressions
(migration for recent LLVM change to textual IR for calls)
Modified:
polly/trunk/lib/Analysis/ScopDetectionDiagnostic.cpp
polly/trunk/test/Isl/CodeGen/simple_nonaffine_loop.ll
polly/trunk/test/Isl/CodeGen/single_do_loop_int_max_iterations.ll
polly/trunk/test/Isl/CodeGen/single_do_loop_scev_replace.ll
polly/trunk/test/ScheduleOptimizer/2012-04-16-Trivially-vectorizable-loops.ll
polly/trunk/test/ScopInfo/Alias-0.ll
polly/trunk/test/ScopInfo/Alias-1.ll
polly/trunk/test/ScopInfo/escaping_empty_scop.ll
polly/trunk/test/ScopInfo/max-loop-depth.ll
polly/trunk/test/ScopInfo/simple_nonaffine_loop_not.ll
Modified: polly/trunk/lib/Analysis/ScopDetectionDiagnostic.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopDetectionDiagnostic.cpp?rev=235146&r1=235145&r2=235146&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetectionDiagnostic.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetectionDiagnostic.cpp Thu Apr 16 18:24:52 2015
@@ -75,7 +75,7 @@ void getDebugLocation(const Region *R, u
DIScope Scope = cast<MDScope>(DL.getScope());
if (FileName.empty())
- FileName = Scope.getFilename();
+ FileName = Scope->getFilename();
unsigned NewLine = DL.getLine();
Modified: polly/trunk/test/Isl/CodeGen/simple_nonaffine_loop.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/Isl/CodeGen/simple_nonaffine_loop.ll?rev=235146&r1=235145&r2=235146&view=diff
==============================================================================
--- polly/trunk/test/Isl/CodeGen/simple_nonaffine_loop.ll (original)
+++ polly/trunk/test/Isl/CodeGen/simple_nonaffine_loop.ll Thu Apr 16 18:24:52 2015
@@ -47,7 +47,7 @@ for.end:
%idxprom3 = sext i32 %mul2 to i64
%arrayidx4 = getelementptr inbounds [1048576 x i32], [1048576 x i32]* %A, i64 0, i64 %idxprom3
%2 = load i32, i32* %arrayidx4, align 16
- %call5 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %2) nounwind
+ %call5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %2) nounwind
ret i32 0
}
Modified: polly/trunk/test/Isl/CodeGen/single_do_loop_int_max_iterations.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/Isl/CodeGen/single_do_loop_int_max_iterations.ll?rev=235146&r1=235145&r2=235146&view=diff
==============================================================================
--- polly/trunk/test/Isl/CodeGen/single_do_loop_int_max_iterations.ll (original)
+++ polly/trunk/test/Isl/CodeGen/single_do_loop_int_max_iterations.ll Thu Apr 16 18:24:52 2015
@@ -71,7 +71,7 @@ entry:
call void @single_do_loop_int_max_iterations()
%tmp = load %struct._IO_FILE*, %struct._IO_FILE** @stdout ; <%struct._IO_FILE*> [#uses=1]
%tmp1 = load i32, i32* getelementptr inbounds ([20 x i32], [20 x i32]* @A, i32 0, i32 0) ; <i32> [#uses=1]
- %call = call i32 (%struct._IO_FILE*, i8*, ...)* @fprintf(%struct._IO_FILE* %tmp, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i32 %tmp1) ; <i32> [#uses=0]
+ %call = call i32 (%struct._IO_FILE*, i8*, ...) @fprintf(%struct._IO_FILE* %tmp, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i32 %tmp1) ; <i32> [#uses=0]
%tmp2 = load i32, i32* getelementptr inbounds ([20 x i32], [20 x i32]* @A, i32 0, i32 0) ; <i32> [#uses=1]
%cmp = icmp eq i32 %tmp2, 2147483646 ; <i1> [#uses=1]
br i1 %cmp, label %if.then, label %if.else
Modified: polly/trunk/test/Isl/CodeGen/single_do_loop_scev_replace.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/Isl/CodeGen/single_do_loop_scev_replace.ll?rev=235146&r1=235145&r2=235146&view=diff
==============================================================================
--- polly/trunk/test/Isl/CodeGen/single_do_loop_scev_replace.ll (original)
+++ polly/trunk/test/Isl/CodeGen/single_do_loop_scev_replace.ll Thu Apr 16 18:24:52 2015
@@ -71,7 +71,7 @@ entry:
call void @single_do_loop_scev_replace()
%tmp = load %struct._IO_FILE*, %struct._IO_FILE** @stdout ; <%struct._IO_FILE*> [#uses=1]
%tmp1 = load i32, i32* getelementptr inbounds ([40 x i32], [40 x i32]* @A, i32 0, i32 0) ; <i32> [#uses=1]
- %call = call i32 (%struct._IO_FILE*, i8*, ...)* @fprintf(%struct._IO_FILE* %tmp, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i32 %tmp1) ; <i32> [#uses=0]
+ %call = call i32 (%struct._IO_FILE*, i8*, ...) @fprintf(%struct._IO_FILE* %tmp, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i32 0, i32 0), i32 %tmp1) ; <i32> [#uses=0]
%tmp2 = load i32, i32* getelementptr inbounds ([40 x i32], [40 x i32]* @A, i32 0, i64 38) ; <i32> [#uses=1]
%cmp = icmp eq i32 %tmp2, 19 ; <i1> [#uses=1]
br i1 %cmp, label %if.then, label %if.else
Modified: polly/trunk/test/ScheduleOptimizer/2012-04-16-Trivially-vectorizable-loops.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/ScheduleOptimizer/2012-04-16-Trivially-vectorizable-loops.ll?rev=235146&r1=235145&r2=235146&view=diff
==============================================================================
--- polly/trunk/test/ScheduleOptimizer/2012-04-16-Trivially-vectorizable-loops.ll (original)
+++ polly/trunk/test/ScheduleOptimizer/2012-04-16-Trivially-vectorizable-loops.ll Thu Apr 16 18:24:52 2015
@@ -94,14 +94,14 @@ for.body3:
%arrayidx5 = getelementptr inbounds [1536 x float], [1536 x float]* %arrayidx, i32 0, i64 %idxprom
%1 = load float, float* %arrayidx5, align 4
%conv = fpext float %1 to double
- %call = call i32 (%struct._IO_FILE*, i8*, ...)* @fprintf(%struct._IO_FILE* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), double %conv)
+ %call = call i32 (%struct._IO_FILE*, i8*, ...) @fprintf(%struct._IO_FILE* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), double %conv)
%rem = srem i32 %j.0, 80
%cmp6 = icmp eq i32 %rem, 79
br i1 %cmp6, label %if.then, label %if.end
if.then: ; preds = %for.body3
%2 = load %struct._IO_FILE*, %struct._IO_FILE** @stdout, align 8
- %call8 = call i32 (%struct._IO_FILE*, i8*, ...)* @fprintf(%struct._IO_FILE* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str1, i32 0, i32 0))
+ %call8 = call i32 (%struct._IO_FILE*, i8*, ...) @fprintf(%struct._IO_FILE* %2, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str1, i32 0, i32 0))
br label %if.end
if.end: ; preds = %if.then, %for.body3
@@ -113,7 +113,7 @@ for.inc:
for.end: ; preds = %for.cond1
%3 = load %struct._IO_FILE*, %struct._IO_FILE** @stdout, align 8
- %call9 = call i32 (%struct._IO_FILE*, i8*, ...)* @fprintf(%struct._IO_FILE* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str1, i32 0, i32 0))
+ %call9 = call i32 (%struct._IO_FILE*, i8*, ...) @fprintf(%struct._IO_FILE* %3, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str1, i32 0, i32 0))
br label %for.inc10
for.inc10: ; preds = %for.end
Modified: polly/trunk/test/ScopInfo/Alias-0.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/ScopInfo/Alias-0.ll?rev=235146&r1=235145&r2=235146&view=diff
==============================================================================
--- polly/trunk/test/ScopInfo/Alias-0.ll (original)
+++ polly/trunk/test/ScopInfo/Alias-0.ll Thu Apr 16 18:24:52 2015
@@ -7,7 +7,7 @@ target triple = "x86_64-linux-gnu"
define void @f(i32* nocapture %a, i32* nocapture %b) nounwind {
bb.nph:
- %0 = tail call i32 (...)* @rnd() nounwind ; <i32> [#uses=1]
+ %0 = tail call i32 (...) @rnd() nounwind ; <i32> [#uses=1]
%1 = icmp eq i32 %0, 0 ; <i1> [#uses=1]
%iftmp.0.0 = select i1 %1, i32* %b, i32* %a ; <i32*> [#uses=2]
br label %bb3
Modified: polly/trunk/test/ScopInfo/Alias-1.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/ScopInfo/Alias-1.ll?rev=235146&r1=235145&r2=235146&view=diff
==============================================================================
--- polly/trunk/test/ScopInfo/Alias-1.ll (original)
+++ polly/trunk/test/ScopInfo/Alias-1.ll Thu Apr 16 18:24:52 2015
@@ -7,7 +7,7 @@ target triple = "x86_64-linux-gnu"
define void @f(i32* nocapture %a, i32* nocapture %b) nounwind {
bb.nph:
- %0 = tail call i32 (...)* @rnd() nounwind ; <i32> [#uses=1]
+ %0 = tail call i32 (...) @rnd() nounwind ; <i32> [#uses=1]
%1 = icmp eq i32 %0, 0 ; <i1> [#uses=1]
%sel.b = getelementptr inbounds i32, i32* %b, i64 4
%iftmp.0.0 = select i1 %1, i32* %sel.b, i32* %a ; <i32*> [#uses=2]
Modified: polly/trunk/test/ScopInfo/escaping_empty_scop.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/ScopInfo/escaping_empty_scop.ll?rev=235146&r1=235145&r2=235146&view=diff
==============================================================================
--- polly/trunk/test/ScopInfo/escaping_empty_scop.ll (original)
+++ polly/trunk/test/ScopInfo/escaping_empty_scop.ll Thu Apr 16 18:24:52 2015
@@ -49,7 +49,7 @@ bb3:
br i1 %exitcond, label %bb1, label %bb5
bb5: ; preds = %bb1
- call void (...)* @g() #2
+ call void (...) @g() #2
%add = add i32 %a.0, %a.1
%add2 = add i32 %add, %a.2
ret i32 %add2
Modified: polly/trunk/test/ScopInfo/max-loop-depth.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/ScopInfo/max-loop-depth.ll?rev=235146&r1=235145&r2=235146&view=diff
==============================================================================
--- polly/trunk/test/ScopInfo/max-loop-depth.ll (original)
+++ polly/trunk/test/ScopInfo/max-loop-depth.ll Thu Apr 16 18:24:52 2015
@@ -26,7 +26,7 @@ for.cond:
br i1 %cmp, label %for.body, label %for.end15
for.body: ; preds = %for.cond
- call void (...)* @bar() #2
+ call void (...) @bar() #2
br label %for.cond1
for.cond1: ; preds = %for.inc, %for.body
Modified: polly/trunk/test/ScopInfo/simple_nonaffine_loop_not.ll
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/test/ScopInfo/simple_nonaffine_loop_not.ll?rev=235146&r1=235145&r2=235146&view=diff
==============================================================================
--- polly/trunk/test/ScopInfo/simple_nonaffine_loop_not.ll (original)
+++ polly/trunk/test/ScopInfo/simple_nonaffine_loop_not.ll Thu Apr 16 18:24:52 2015
@@ -30,7 +30,7 @@ for.end:
%idxprom3 = sext i32 %mul2 to i64
%arrayidx4 = getelementptr inbounds [1048576 x i32], [1048576 x i32]* %A, i64 0, i64 %idxprom3
%2 = load i32, i32* %arrayidx4, align 16
- %call5 = call i32 (i8*, ...)* @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %2) nounwind
+ %call5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %2) nounwind
ret i32 0
}
More information about the llvm-commits
mailing list