practicalswift
50baf2e53b
Use consistent formatting in top of file headers.
2016-01-04 02:17:48 +01:00
Zach Panzarino
e3a4147ac9
Update copyright date
2015-12-31 23:28:40 +00:00
John McCall
f262b13b80
Handle try_apply in the diagnostic unreachable-code pass.
...
A somewhat more natural solution would be to replace the
normal successor with an edge to an unreachable block,
but that would require adding blocks during the iteration.
Add a small amount of SIL infrastructure for asking a
pred_iterator exactly which edge out of a terminator it
represents.
Swift SVN r28514
2015-05-13 08:52:31 +00:00
Michael Gottesman
177f48a897
Change SILSuccessorIterator++() to be a canonical preincrement and add in a postincrement operator.
...
Swift SVN r10737
2013-12-02 22:52:01 +00:00
Anna Zaks
dde5e15457
[SIL] Cleanup, remove redundant initializers.
...
Swift SVN r6666
2013-07-27 00:25:02 +00:00
Joe Groff
8e56e45f22
SIL: Define a switch_oneof instruction.
...
This instruction encapsulates testing, branching, and destructuring a oneof, as in:
oneof Expr {
case True
case False
case IntLiteral(Int)
case StringLiteral(String)
}
sil @dispatch_expr : $(Expr) -> () {
entry(%expr : $Expr):
switch_oneof %expr, \
case #Expr.True!oneofelt : bb1, \
case #Expr.False!oneofelt : bb2, \
case #Expr.IntLiteral!oneofelt : bb3, \
default bb4
bb1:
...
bb2:
...
bb3(%int : $Int):
...
bb4:
...
}
Swift SVN r6329
2013-07-17 16:55:29 +00:00
Chris Lattner
a71bc3a78e
rename Value -> SILValue, BasicBlock -> SILBasicBlock, BBArgument -> SILArgument.
...
Swift SVN r4594
2013-04-03 21:05:42 +00:00
Joe Groff
b105e02534
IRGen: Lower SIL bb arguments to LLVM phi nodes.
...
Swift SVN r4493
2013-03-27 17:07:17 +00:00
Joe Groff
59d418de81
SIL: Add arguments to branch instructions.
...
BranchInst and CondBranchInst need to be able to pass arguments into the target BB. Add argument lists to the instructions.
Swift SVN r4485
2013-03-25 19:28:13 +00:00
Chris Lattner
eab0962c5f
rename many references to CFG to SIL.
...
Swift SVN r3130
2012-11-07 01:06:19 +00:00
Chris Lattner
93ae03891d
rename the SIL/CFG*.h headers to SIL/SIL*.h
...
Swift SVN r3128
2012-11-07 00:56:21 +00:00