Joe Groff
26c00fd429
SIL: Add a switch_int instruction.
This will help represent cleanup blocks in the grown-up Clang way instead of the childish SILGen way, e.g.:
retain %x
retain %y
...
break_branch:
%1 = int_literal 1 : $Builtin.Int64
br cleanup(%1)
return_branch:
%2 = int_literal 2 : $Builtin.Int64
br cleanup(%2)
cleanup(%dest : $Builtin.Int64):
release %z
release %y
switch %dest, case 1: break_dest, case 2: return_dest
Swift SVN r6753
2013-07-30 21:32:23 +00:00
..
2012-07-23 18:50:00 +00:00
2012-07-23 18:50:00 +00:00
2013-04-24 11:08:27 +00:00
2013-07-05 22:52:12 +00:00
2013-03-29 23:47:01 +00:00
2013-06-17 22:18:49 +00:00
2013-03-28 13:45:11 +00:00
2013-07-29 22:03:15 +00:00
2013-07-05 22:52:12 +00:00
2013-07-05 22:52:12 +00:00
2013-07-05 22:33:50 +00:00
2013-07-05 22:33:50 +00:00
2013-07-26 21:39:10 +00:00
2013-07-05 22:52:12 +00:00
2013-03-28 13:45:11 +00:00
2013-03-29 22:58:37 +00:00
2013-07-05 22:52:12 +00:00
2013-06-17 21:15:02 +00:00
2013-07-01 17:34:56 +00:00
2013-07-05 22:52:12 +00:00
2013-07-29 15:48:34 +00:00
2013-03-29 22:58:37 +00:00
2013-07-05 22:52:12 +00:00
2012-07-23 18:50:00 +00:00
2013-07-05 22:52:12 +00:00
2013-07-05 22:52:12 +00:00
2013-07-05 22:52:12 +00:00
2013-07-05 22:52:12 +00:00
2013-07-01 20:10:36 +00:00
2013-07-25 01:33:17 +00:00
2013-04-25 20:22:15 +00:00
2013-03-28 13:45:11 +00:00
2013-07-30 21:32:23 +00:00
2013-06-20 17:20:53 +00:00
2012-06-28 22:34:43 +00:00
2012-01-18 01:51:09 +00:00
2013-07-26 00:32:25 +00:00
2013-07-05 22:52:12 +00:00
2013-07-05 22:52:12 +00:00
2013-07-05 22:52:12 +00:00
2013-07-09 08:37:30 +00:00