Erik Eckstein
1e88689bad
vim-utils: highlight the sil call instructions in a bolder color.
...
Because often these are the most important instructions in a function.
2016-02-09 16:25:43 -08:00
Erik Eckstein
e70b38b1a5
vim-utils: add missing instruction keywords in sil syntax file
2016-02-09 16:25:43 -08:00
practicalswift
71e00fefa1
[gardening] Fix typos: "word word" (two spaces) → "word word" (one space)
2016-01-24 21:27:16 +01:00
Slava Pestov
250b6055c6
sil.vim: /* */ and // are valid comments in SIL, too
2016-01-08 17:39:23 -08:00
John McCall
5fddd4a704
Remove the autorelease_return and strong_retain_autoreleased instructions.
...
There's a buggy SIL verifier check that was previously tautological,
and it turns out that it's violated, apparently harmlessly. Since it
was already doing nothing, I've commented it out temporarily while
I figure out the right way to fix SILGen to get the invariant right.
2015-12-09 14:50:20 -08:00
Chris Willmore
c7c7388cf2
Change do-while to repeat-while.
...
Change all uses of "do { ... } while <cond>" to use "repeat" instead.
Rename DoWhileStmt to RepeatWhileStmt. Add diagnostic suggesting change
of 'do' to 'repeat' if a condition is found afterwards.
<rdar://problem/20336424> rename do/while loops to repeat/while & introduce "repeat <count> {}" loops
Swift SVN r27650
2015-04-23 22:48:31 +00:00
Joe Groff
962a87f444
SIL: Rename address-only existential instructions to '{init,deinit,open}_existential_addr'.
...
For better consistency with other address-only instruction variants, and to open the door to new exciting existential representations (such as a refcounted boxed representation for ErrorType).
Swift SVN r25902
2015-03-09 23:55:31 +00:00
Roman Levenstein
c8d180e660
Generalize the switch_int instruction into switch_value instruction, which may switch on arguments of builtin integer types or function types. The later is required for implementing a more efficient speculative devirtualizaiton implementation. Implement lowering of switch_value into LLVM code. In case of integer operands, it reuses LLVM's switch optimizations. Support for switching on function types is not yet bullet-proof and will be refined in the subsequent patches.
...
rdar://18508812
Swift SVN r23042
2014-10-31 22:55:56 +00:00
Joe Groff
3f23b82e6d
SIL: Rename SILGlobalAddr to GlobalAddr.
...
All globals are SIL globals now.
Swift SVN r22827
2014-10-18 17:08:28 +00:00
Joe Groff
ea65d1e60b
SIL: Remove the builtin_function_ref instruction.
...
Swift SVN r22797
2014-10-16 16:18:40 +00:00
Joe Groff
bb46f4bbd9
SIL: Remove the global_addr instruction.
...
It's no longer needed now that we always lower to SIL globals.
Swift SVN r22693
2014-10-12 17:19:06 +00:00
Joe Groff
782833f054
SIL: Remove the project_existential* instructions.
...
Swift SVN r22457
2014-10-02 04:06:10 +00:00
Joe Groff
3a606b9eb8
SIL: Drop the protocol_method instruction.
...
Swift SVN r22446
2014-10-01 23:35:41 +00:00
Joe Groff
be45322668
SIL: Drop the upcast_existential* instructions.
...
Swift SVN r22388
2014-09-30 16:11:54 +00:00
Joe Groff
152aa9e244
Revert "SIL: Drop the upcast_existential* instructions."
...
This reverts commit r22345.
Swift SVN r22353
2014-09-29 13:46:41 +00:00
Joe Groff
1e343fb430
SIL: Drop the upcast_existential* instructions.
...
Swift SVN r22345
2014-09-28 19:24:33 +00:00
Joe Groff
0518f2067f
Revert "SIL: Drop the upcast_existential* instructions."
...
This reverts commit r22333.
Swift SVN r22337
2014-09-28 18:41:05 +00:00
Joe Groff
727c9b5ed7
SIL: Drop the upcast_existential* instructions.
...
Swift SVN r22333
2014-09-28 16:38:13 +00:00
Joe Groff
a3126706da
SIL: Eliminate the dead 'alloc_array' insn.
...
Swift SVN r22292
2014-09-26 02:28:10 +00:00
Doug Gregor
c504086266
Revert r21707 "Remove the SIL is_nonnull instruction. It's no longer useful."
...
We want to be able to work around problems with non-failable
Objective-C initializers actually failing, which can happen when the
API audit data incorrectly marks an initializer as non-failable.
Swift SVN r21711
2014-09-04 17:26:34 +00:00
Doug Gregor
cdf94885ae
Remove the SIL is_nonnull instruction. It's no longer useful.
...
Swift SVN r21707
2014-09-04 15:56:12 +00:00
Arnold Schwaighofer
67d689dbca
Add a vim syntax file for SIL
...
Swift SVN r19343
2014-06-30 15:35:11 +00:00