Joe Groff
3d273367f4
SIL: rename TupleElementInst -> ExtractInst
...
Now that it's being used on both tuples and structs, the current name doesn't make much sense. SIL.rst specifies a unified set of extract/insert/gep instructions that operate on either tuples or nominal fragile structs.
Swift SVN r3303
2012-11-30 01:49:57 +00:00
Chris Lattner
f59185141c
Change integer_literal and friends to take a comma for consistency with other operations. Make a few more tweaks to the printer to match SIL.rst.
...
Swift SVN r3259
2012-11-27 18:48:30 +00:00
Chris Lattner
d734b4e989
change the SIL printer for a few instructions to follow SIL.rst
...
Swift SVN r3258
2012-11-27 18:40:58 +00:00
Chris Lattner
6d8d9daee8
rename DestroyInst -> DestroyAddr to conform to SIL.rst. The non-addr form of destroy will be added later.
...
Swift SVN r3257
2012-11-27 18:35:57 +00:00
Chris Lattner
9750e36943
rename Copy -> CopyAddr to follow SIL.rst
...
Swift SVN r3256
2012-11-27 18:34:40 +00:00
Chris Lattner
a9abb47cf0
rip out the 'is initialization' bit from StoreInst per SIL.rst. The AssignStmt
...
lowering code needs to emit the retain/release dance, but I'll leave that to
Joe :)
Swift SVN r3234
2012-11-17 01:56:57 +00:00
Chris Lattner
aad1b3c904
remove the 'take' flag from LoadInst
...
Swift SVN r3232
2012-11-17 01:47:55 +00:00
Chris Lattner
2ddc716bba
rename TypeConversion to Convert to follow SIL.rst
...
Swift SVN r3231
2012-11-17 01:38:41 +00:00
Joe Groff
6d58ee281d
SIL: rip out redundant CharacterLiteralInst
...
Swift SVN r3230
2012-11-17 01:32:16 +00:00
Chris Lattner
30c50c2c2d
minor tweaks to SILPrint to follow SIL.rst, e.g. "store ... to".
...
Swift SVN r3229
2012-11-17 01:25:47 +00:00
Chris Lattner
8c0513f9cc
rename index_lvalue instruction to index_addr to follow SIL.rst.
...
Swift SVN r3226
2012-11-17 01:22:19 +00:00
Chris Lattner
8ad5ba2428
introduce an alloc_box instruction. Also, normalize alloc_array to follow
...
the syntax in SIL.rst.
Swift SVN r3224
2012-11-17 01:09:42 +00:00
Chris Lattner
c9831b0219
fix some SILPrinter bugs handling results with multiple values.
...
Swift SVN r3219
2012-11-17 00:10:49 +00:00
Chris Lattner
4962f35f24
teach SILPrinter to print out %3#1 when referencing an instruction with multiple results.
...
Swift SVN r3209
2012-11-16 22:27:00 +00:00
Chris Lattner
d87f65f1a3
Land a pretty big conceptual/API change to pave the way for multiple
...
return values. Now the base class of the value hierarchy is "ValueBase"
instead of "Value", and "Value" is now a PointerIntPair indicating the
ValueBase (e.g. an instruction) being referenced along with what result
value is being referenced.
By default, any place you used "Value*" before, you should now use "Value".
Swift SVN r3207
2012-11-16 22:21:47 +00:00
Joe Groff
73f87996c3
SIL: add instruction types for ARC and lvalues
...
Add RetainInst, ReleaseInst, DeallocInst for managing object lifetimes, and CopyInst and DestroyInst for indirectly managing resilient types and other non-materializable types.
Swift SVN r3159
2012-11-12 18:00:16 +00:00
Chris Lattner
6cadce0ab1
rename the CFG type to "Function", since it is the SIL Function concept,
...
which is separable from the SIL library.
Swift SVN r3134
2012-11-07 01:37:49 +00:00
Chris Lattner
57eea530a9
more random changes CFG -> SIL
...
Swift SVN r3133
2012-11-07 01:31:27 +00:00
Chris Lattner
8eec098ffd
rename more references to CFGs to SIL.
...
Swift SVN r3132
2012-11-07 01:13:31 +00:00
Chris Lattner
9eae97457e
rename lib/SIL/CFG* to lib/SIL/SIL*
...
Swift SVN r3131
2012-11-07 01:07:08 +00:00