[llvm-commits] [llvm] r138759 - in /llvm/trunk/test/Transforms/SimplifyCFG: 2003-08-05-InvokeCrash.ll 2003-08-05-MishandleInvoke.ll 2005-10-02-InvokeSimplify.ll 2006-10-29-InvokeCrash.ll 2009-06-15-InvokeCrash.ll

Bill Wendling isanbard at gmail.com
Mon Aug 29 13:39:23 PDT 2011


Author: void
Date: Mon Aug 29 15:39:23 2011
New Revision: 138759

URL: http://llvm.org/viewvc/llvm-project?rev=138759&view=rev
Log:
Update tests to new EH model. Add landingpad instructions to landing pads.

Modified:
    llvm/trunk/test/Transforms/SimplifyCFG/2003-08-05-InvokeCrash.ll
    llvm/trunk/test/Transforms/SimplifyCFG/2003-08-05-MishandleInvoke.ll
    llvm/trunk/test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll
    llvm/trunk/test/Transforms/SimplifyCFG/2006-10-29-InvokeCrash.ll
    llvm/trunk/test/Transforms/SimplifyCFG/2009-06-15-InvokeCrash.ll

Modified: llvm/trunk/test/Transforms/SimplifyCFG/2003-08-05-InvokeCrash.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SimplifyCFG/2003-08-05-InvokeCrash.ll?rev=138759&r1=138758&r2=138759&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/SimplifyCFG/2003-08-05-InvokeCrash.ll (original)
+++ llvm/trunk/test/Transforms/SimplifyCFG/2003-08-05-InvokeCrash.ll Mon Aug 29 15:39:23 2011
@@ -8,6 +8,9 @@
 Ret:		; preds = %0
 	ret i32 %A
 Ret2:		; preds = %0
+        %val = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
+                 catch i8* null
 	ret i32 undef
 }
 
+declare i32 @__gxx_personality_v0(...)

Modified: llvm/trunk/test/Transforms/SimplifyCFG/2003-08-05-MishandleInvoke.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SimplifyCFG/2003-08-05-MishandleInvoke.ll?rev=138759&r1=138758&r2=138759&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/SimplifyCFG/2003-08-05-MishandleInvoke.ll (original)
+++ llvm/trunk/test/Transforms/SimplifyCFG/2003-08-05-MishandleInvoke.ll Mon Aug 29 15:39:23 2011
@@ -6,7 +6,10 @@
 	invoke i32 @test( )
 			to label %Ret unwind label %Ret		; <i32>:1 [#uses=0]
 Ret:		; preds = %0, %0
+        %val = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
+                 catch i8* null
 	%A = add i32 0, 1		; <i32> [#uses=1]
 	ret i32 %A
 }
 
+declare i32 @__gxx_personality_v0(...)

Modified: llvm/trunk/test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll?rev=138759&r1=138758&r2=138759&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll (original)
+++ llvm/trunk/test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll Mon Aug 29 15:39:23 2011
@@ -4,6 +4,8 @@
 	%X = invoke i1 @foo( )
 			to label %N unwind label %F		; <i1> [#uses=1]
 F:		; preds = %0
+        %val = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
+                 catch i8* null
 	ret i1 false
 N:		; preds = %0
 	br i1 %X, label %A, label %B
@@ -13,3 +15,4 @@
 	ret i1 true
 }
 
+declare i32 @__gxx_personality_v0(...)

Modified: llvm/trunk/test/Transforms/SimplifyCFG/2006-10-29-InvokeCrash.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SimplifyCFG/2006-10-29-InvokeCrash.ll?rev=138759&r1=138758&r2=138759&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/SimplifyCFG/2006-10-29-InvokeCrash.ll (original)
+++ llvm/trunk/test/Transforms/SimplifyCFG/2006-10-29-InvokeCrash.ll Mon Aug 29 15:39:23 2011
@@ -275,12 +275,16 @@
 	invoke void @_ZN12QFontMetricsD1Ev( %struct.QFontMetrics* %tmp.upgrd.2 )
 			to label %cleanup171 unwind label %cleanup173
 cleanup168:		; preds = %invcont151, %invcont148, %invcont146
+        %val168 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
+                    cleanup
 	invoke void @_ZN12QFontMetricsD1Ev( %struct.QFontMetrics* %tmp.upgrd.2 )
 			to label %cleanup173 unwind label %cleanup173
 cleanup171:		; preds = %invcont153
 	invoke void @_ZN5QFontD1Ev( %struct.QFont* %tmp.upgrd.3 )
 			to label %finally170 unwind label %cleanup192
 cleanup173:		; preds = %cleanup168, %cleanup168, %invcont153, %invcont144
+        %val173 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
+                    cleanup
 	invoke void @_ZN5QFontD1Ev( %struct.QFont* %tmp.upgrd.3 )
 			to label %cleanup192 unwind label %cleanup192
 finally170:		; preds = %cleanup171
@@ -300,12 +304,16 @@
 	invoke void @_ZN5QFontD1Ev( %struct.QFont* %font )
 			to label %cleanup190 unwind label %cleanup192
 cleanup187:		; preds = %invcont181, %invcont179, %invcont177
+        %val187 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
+                    cleanup
 	invoke void @_ZN5QFontD1Ev( %struct.QFont* %font )
 			to label %cleanup192 unwind label %cleanup192
 cleanup190:		; preds = %cleanup185
 	invoke void @_ZN16QTextFrameFormatD1Ev( %struct.QTextBlockFormat* %fmt )
 			to label %cond_next194 unwind label %cleanup329
 cleanup192:		; preds = %cleanup187, %cleanup187, %cleanup185, %finally170, %cleanup173, %cleanup173, %cleanup171, %invcont141, %invcont124, %invcont122, %invcont120, %invcont118, %invcont117, %invcont114, %invcont111
+        %val192 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
+                    cleanup
 	invoke void @_ZN16QTextFrameFormatD1Ev( %struct.QTextBlockFormat* %fmt )
 			to label %cleanup329 unwind label %cleanup329
 cond_next194:		; preds = %cleanup190, %invcont83
@@ -450,6 +458,8 @@
 	call void @_ZN8QPainterD1Ev( %struct.QPainter* %p )
 	ret void
 cleanup329:		; preds = %cond_true319, %cond_true302, %cond_next293, %cond_true277, %cond_true266, %cond_next258, %cond_next244, %cond_next225, %cond_true220, %invcont210, %cond_next208, %cond_false204, %cond_true200, %cond_next194, %cleanup192, %cleanup192, %cleanup190, %invcont106, %invcont104, %invcont103, %invcont100, %invcont98, %invcont94, %cond_false, %invcont83, %invcont79, %invcont57, %invcont51, %invcont45, %cond_next42, %invcont37, %cond_true35, %invcont29, %invcont25, %cond_true24, %cond_next, %entry
+        %val = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
+                 cleanup
 	call void @_ZN8QPainterD1Ev( %struct.QPainter* %p )
 	unwind
 }
@@ -553,3 +563,5 @@
 declare i1 @_ZN8QPrinter7newPageEv(%struct.QPrinter*)
 
 declare void @_ZN8QPainterD1Ev(%struct.QPainter*)
+
+declare i32 @__gxx_personality_v0(...)

Modified: llvm/trunk/test/Transforms/SimplifyCFG/2009-06-15-InvokeCrash.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/SimplifyCFG/2009-06-15-InvokeCrash.ll?rev=138759&r1=138758&r2=138759&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/SimplifyCFG/2009-06-15-InvokeCrash.ll (original)
+++ llvm/trunk/test/Transforms/SimplifyCFG/2009-06-15-InvokeCrash.ll Mon Aug 29 15:39:23 2011
@@ -277,12 +277,16 @@
 	invoke void @_ZN12QFontMetricsD1Ev( %struct.QFontMetrics* %tmp.upgrd.2 )
 			to label %cleanup171 unwind label %cleanup173
 cleanup168:		; preds = %invcont151, %invcont148, %invcont146
+        %val168 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
+                    cleanup
 	invoke void @_ZN12QFontMetricsD1Ev( %struct.QFontMetrics* %tmp.upgrd.2 )
 			to label %cleanup173 unwind label %cleanup173
 cleanup171:		; preds = %invcont153
 	invoke void @_ZN5QFontD1Ev( %struct.QFont* %tmp.upgrd.3 )
 			to label %finally170 unwind label %cleanup192
 cleanup173:		; preds = %cleanup168, %cleanup168, %invcont153, %invcont144
+        %val173 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
+                    cleanup
 	invoke void @_ZN5QFontD1Ev( %struct.QFont* %tmp.upgrd.3 )
 			to label %cleanup192 unwind label %cleanup192
 finally170:		; preds = %cleanup171
@@ -302,12 +306,16 @@
 	invoke void @_ZN5QFontD1Ev( %struct.QFont* %font )
 			to label %cleanup190 unwind label %cleanup192
 cleanup187:		; preds = %invcont181, %invcont179, %invcont177
+        %val187 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
+                    cleanup
 	invoke void @_ZN5QFontD1Ev( %struct.QFont* %font )
 			to label %cleanup192 unwind label %cleanup192
 cleanup190:		; preds = %cleanup185
 	invoke void @_ZN16QTextFrameFormatD1Ev( %struct.QTextBlockFormat* %fmt )
 			to label %cond_next194 unwind label %cleanup329
 cleanup192:		; preds = %cleanup187, %cleanup187, %cleanup185, %finally170, %cleanup173, %cleanup173, %cleanup171, %invcont141, %invcont124, %invcont122, %invcont120, %invcont118, %invcont117, %invcont114, %invcont111
+        %val192 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
+                    cleanup
 	invoke void @_ZN16QTextFrameFormatD1Ev( %struct.QTextBlockFormat* %fmt )
 			to label %cleanup329 unwind label %cleanup329
 cond_next194:		; preds = %cleanup190, %invcont83
@@ -452,6 +460,8 @@
 	call void @_ZN8QPainterD1Ev( %struct.QPainter* %p )
 	ret void
 cleanup329:		; preds = %cond_true319, %cond_true302, %cond_next293, %cond_true277, %cond_true266, %cond_next258, %cond_next244, %cond_next225, %cond_true220, %invcont210, %cond_next208, %cond_false204, %cond_true200, %cond_next194, %cleanup192, %cleanup192, %cleanup190, %invcont106, %invcont104, %invcont103, %invcont100, %invcont98, %invcont94, %cond_false, %invcont83, %invcont79, %invcont57, %invcont51, %invcont45, %cond_next42, %invcont37, %cond_true35, %invcont29, %invcont25, %cond_true24, %cond_next, %entry
+        %val329 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
+                    cleanup
 	call void @_ZN8QPainterD1Ev( %struct.QPainter* %p )
 	unwind
 }
@@ -555,3 +565,5 @@
 declare i1 @_ZN8QPrinter7newPageEv(%struct.QPrinter*)
 
 declare void @_ZN8QPainterD1Ev(%struct.QPainter*)
+
+declare i32 @__gxx_personality_v0(...)





More information about the llvm-commits mailing list