Slava Pestov
c7aede6ffe
SIL: Serialize @convention(c) thunks when referenced from an inlinable function
...
I got annoyed at the spaghetti code here and rewrote SILDeclRef::isSerialized(),
hopefully the logic is clearer now.
Fixes <rdar://47719569>.
2019-02-04 21:08:40 -05:00
Michael Gottesman
40a09c9c21
Fixup tests for -assume-parsing-unqualified-ownership-sil => [ossa] transition.
2018-12-18 00:49:32 -08:00
Michael Gottesman
9e13779702
[ownership] Remove most -enable-sil-ownership from SILGen now that %target-swift-emit-silgen does it automatically.
...
I did this using a sed pattern and verified by hand that I was only touching
target-swift-emit-silgen lines.
2018-12-13 11:54:54 -08:00
Erik Eckstein
39bb14b094
change mangling prefix from $S to $s
...
This is the final ABI mangling prefix
rdar://problem/38471478
2018-09-19 13:55:11 -07:00
Alex Hoppen
560c22b18e
[tests] Verify the libSyntax tree on SILGen tests
...
The SILGen testsuite consists of valid Swift code covering most language
features. We use these tests to verify that no unknown nodes are in the
file's libSyntax tree. That way we will (hopefully) catch any future
changes or additions to the language which are not implemented in
libSyntax.
2018-04-27 09:33:03 -07:00
Erik Eckstein
cd3d50a5d9
ABI: Change the mangling prefix from _T0 to $S
2018-01-06 13:55:59 -08:00
Michael Gottesman
20c3e1e92f
[semantic-sil] Update 45 SILGen tests for ownership.
...
Very roughly this increases the total coverage of SILGen tests with ownership
enabled to ~20%.
rdar://33358110
2017-08-20 19:11:55 -07:00
Erik Eckstein
c4a11f4c92
tests: remove the now unused option -new-mangling-for-tests
2017-03-22 11:28:43 -07:00
Erik Eckstein
1d3724666f
tests: convert about 400 tests to the new mangling by using the -new-mangling-for-tests option
...
When the new mangling is enabled permanently, the option can be removed from the RUN command lines again.
2017-01-24 15:27:45 -08:00
Dmitri Gribenko
d175b3b66d
Migrate FileCheck to %FileCheck in tests
2016-08-10 23:52:02 -07:00
Chris Lattner
c990fc1595
Add some parens to function types in sil tests. NFC.
2016-05-06 21:07:08 -07:00
Manav Gabhawala
7928140f79
[SE-0046] Implements consistent function parameter labels by discarding extraneous parameter names and adding _ where necessary
2016-04-06 20:21:58 -04:00
Slava Pestov
7124072859
SILGen: More thunks now get the [thunk] attribute
...
For now this attribute doesn't mean much, but it will matter with an
upcoming SIL serialization change.
Part of https://bugs.swift.org/browse/SR-267 .
2016-03-24 00:50:39 -07:00
Joe Groff
013aad13d4
Initial implementation of a @_cdecl attribute to export top-level functions to C.
...
There's an immediate need for this in the core libs, and we have most of the necessary pieces on hand to make it easy to implement. This is an unpolished initial implementation, with the following limitations, among others:
- It doesn't support bridging error conventions,
- It relies on ObjC interop,
- It doesn't check for symbol name collisions,
- It has an underscored name with required symbol name `@cdecl("symbol_name")`, awaiting official bikeshed painting.
2016-03-10 13:27:39 -08:00