@@ -1194,7 +1194,7 @@ Calling Convention
1194
1194
This section describes how Swift functions are emitted in SIL.
1195
1195
1196
1196
Swift Calling Convention @convention(swift)
1197
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1197
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1198
1198
1199
1199
The Swift calling convention is the one used by default for native Swift
1200
1200
functions.
@@ -1395,7 +1395,7 @@ gets lowered to SIL as::
1395
1395
}
1396
1396
1397
1397
Swift Method Calling Convention @convention(method)
1398
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1398
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1399
1399
1400
1400
The method calling convention is currently identical to the freestanding
1401
1401
function convention. Methods are considered to be curried functions, taking
@@ -1410,7 +1410,7 @@ passed last::
1410
1410
sil @Foo_method_1 : $((x : Int), @inout Foo) -> Int { ... }
1411
1411
1412
1412
Witness Method Calling Convention @convention(witness_method)
1413
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1413
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1414
1414
1415
1415
The witness method calling convention is used by protocol witness methods in
1416
1416
`witness tables `_. It is identical to the ``method `` calling convention
@@ -1422,7 +1422,7 @@ the ``Self``-related metadata for a witness must be passed in a maximally
1422
1422
abstracted manner.
1423
1423
1424
1424
C Calling Convention @convention(c)
1425
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1425
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1426
1426
1427
1427
In Swift's C module importer, C types are always mapped to Swift types
1428
1428
considered trivial by SIL. SIL does not concern itself with platform
@@ -1433,7 +1433,7 @@ platform calling convention.
1433
1433
SIL (and therefore Swift) cannot currently invoke variadic C functions.
1434
1434
1435
1435
Objective-C Calling Convention @convention(objc_method)
1436
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1436
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1437
1437
1438
1438
Reference Counts
1439
1439
````````````````
0 commit comments