Evan Wilde
6961f55a85
Remove ORIG_SELF from super_init test
...
ORIG_SELF was not defined in the test, so FileCheck is complaining about
that. Removing it.
2021-08-23 08:28:26 -07:00
Slava Pestov
9ec80df97e
SIL: Remove curried SILDeclRefs
2020-03-19 02:20:21 -04:00
Joe Groff
77b012af1d
SIL: Add an [exact_self_class] function attribute.
...
This indicates that the "self" argument to the current function is always dynamically of the exact
static base class type, allowing metadata accesses in IRGen to use the local self metadata to answer
metadata requests for the class type. Set this attribute on allocating entry points of designated
inits, which is one of the most common places where we emit redundant metadata accesses.
2019-08-08 14:03:07 -07: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
Erik Eckstein
cd3d50a5d9
ABI: Change the mangling prefix from _T0 to $S
2018-01-06 13:55:59 -08:00
Pavel Yaskevich
f90d943a29
[Mangling/ABI] NFC: Fix SILOptimizer tests to reflect label mangling changes
2017-12-18 15:45:50 -08:00
Erik Eckstein
c4a11f4c92
tests: remove the now unused option -new-mangling-for-tests
2017-03-22 11:28:43 -07:00
Michael Gottesman
92cb1f3014
[di] Handle escapes from the new upcast+borrow+downcast pattern.
...
As a bonus, now DI properly errors on:
super.init(self)
2017-02-23 08:48:58 -08: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
John McCall
2969c4a7a6
Give static/class methods the SIL method convention instead of
...
just making them thin.
Among other things, this allows us to pass the metatype self
value with the swiftself convention, which has various advantages.
2016-04-07 10:39:18 -07:00
David Farler
bd8d85da0a
Turn on dynamic super method dispatch by default
...
This removes the -use-native-super-method flag and turns on dynamic
dispatch for native method invocations on super by default.
rdar://problem/22749732
2016-01-15 13:37:53 -08:00
Andrew Trick
bd35b4789c
Move test/SILOptimizer files to reflect lib/SILOptimizer.
2015-12-11 15:53:22 -08:00