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
Arnold Schwaighofer
0971d82f70
SILGen: Remaining fixes for @callee_guaranteed closures and enable it
...
- Fix block to func reabstraction thunks block argument handling
- Forward cast ownership
- Fix applyPartiallyAppliedSuperMethod ownership for @callee_guaranteed closures
- Avoid a copy in buildBlockToFuncThunkBody
- Update tests for callee_guaranteed closures
SR-5441
rdar://33255593
2017-11-15 19:46:08 -08:00
Michael Gottesman
862b20426a
[silgen] Update another 32 SILGen tests for running with the ownership verifier enabled.
...
Now ~45% of the SILGen tests run with the ownership verifier enabled.
rdar://33358110
2017-08-21 21:52:17 -07:00
Slava Pestov
94ce4c2ac3
SIL: Only give closures shared linkage if they're going to be serialized
...
Otherwise, we don't want them to be linkonce_odr at the LLVM level
to avoid unnecessary link-time overhead.
2017-03-31 20:26:27 -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
Joe Groff
f81e55c44f
SILGen: Base "currying" of functions on their lowered capture set, instead of their formal capture set.
...
This allows for slightly better codegen for nested functions that refer to other nested functions that don't transitively capture any local state, but more importantly, allows methods of local types to work while still referring to nested functions that don't capture local state, fixing rdar://problem/28015090.
2016-11-01 11:08:37 -07:00
Dmitri Gribenko
d175b3b66d
Migrate FileCheck to %FileCheck in tests
2016-08-10 23:52:02 -07:00
Erik Eckstein
38f6a094fe
SILGen: fix crash when a local function references another local function without captures.
...
Fixes rdar://problem/20648784
Swift SVN r28259
2015-05-07 08:44:33 +00:00