Skip to content

Commit 4e0e462

Browse files
committed
Rename a few remaining @_inlineable => @inlinable, @_versioned => @usableFromInline
1 parent 00cb08d commit 4e0e462

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

docs/HighLevelSILOptimizations.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,13 +117,13 @@ Cloning code from the standard library
117117
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
118118

119119
The Swift compiler can copy code from the standard library into the
120-
application for functions marked @_inlineable. This allows the optimizer to
120+
application for functions marked @inlinable. This allows the optimizer to
121121
inline calls from the stdlib and improve the performance of code that uses
122122
common operators such as '+=' or basic containers such as Array. However,
123123
importing code from the standard library can increase the binary size.
124124

125125
To prevent copying of functions from the standard library into the user
126-
program, make sure the function in question is not marked @_inlineable.
126+
program, make sure the function in question is not marked @inlinable.
127127

128128
Array
129129
~~~~~

stdlib/public/SwiftShims/Visibility.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
/// Note that @_silgen_name implementations must also be marked SWIFT_CC(swift).
119119
///
120120
/// SWIFT_RUNTIME_STDLIB_API functions are called by compiler-generated code
121-
/// or by @_inlineable Swift code.
121+
/// or by @inlinable Swift code.
122122
/// Such functions must be exported and must be supported forever as API.
123123
/// The function name should be prefixed with `swift_`.
124124
///
@@ -130,7 +130,7 @@
130130
/// SWIFT_RUNTIME_STDLIB_INTERNAL functions are called only by the stdlib.
131131
/// Such functions are internal and are not exported.
132132
/// FIXME(sil-serialize-all): _INTERNAL functions are also exported for now
133-
/// until the tide of @_inlineable is rolled back.
133+
/// until the tide of @inlinable is rolled back.
134134
/// They really should be LLVM_LIBRARY_VISIBILITY, not SWIFT_RUNTIME_EXPORT.
135135
#define SWIFT_RUNTIME_STDLIB_API SWIFT_RUNTIME_EXPORT
136136
#define SWIFT_RUNTIME_STDLIB_SPI SWIFT_RUNTIME_EXPORT

stdlib/public/core/BridgeObjectiveC.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ public func _getObjCTypeEncoding<T>(_ type: T.Type) -> UnsafePointer<Int8> {
649649
/// Convert `x` from its Objective-C representation to its Swift
650650
/// representation.
651651
/// COMPILER_INTRINSIC
652-
@_inlineable // FIXME(sil-serialize-all)
652+
@inlinable // FIXME(sil-serialize-all)
653653
public func _forceBridgeFromObjectiveC_bridgeable<T:_ObjectiveCBridgeable> (
654654
_ x: T._ObjectiveCType,
655655
_: T.Type
@@ -662,7 +662,7 @@ public func _forceBridgeFromObjectiveC_bridgeable<T:_ObjectiveCBridgeable> (
662662
/// Attempt to convert `x` from its Objective-C representation to its Swift
663663
/// representation.
664664
/// COMPILER_INTRINSIC
665-
@_inlineable // FIXME(sil-serialize-all)
665+
@inlinable // FIXME(sil-serialize-all)
666666
public func _conditionallyBridgeFromObjectiveC_bridgeable<T:_ObjectiveCBridgeable>(
667667
_ x: T._ObjectiveCType,
668668
_: T.Type
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import Foundation
22
import ImportAsMember.Class
33

4-
@_versioned
4+
@usableFromInline
55
internal func foo(_ x: IncompleteImportTargetName) -> Any { return x }
66

0 commit comments

Comments
 (0)