Commit Graph

4 Commits

Author SHA1 Message Date
Arnold Schwaighofer
91991bfd47 Silence Misc/verify-swift-feature-testing.test-sh failure 2025-11-07 10:46:33 -08:00
Arnold Schwaighofer
9795f65145 Change tests to also test that this feature is available per default 2025-11-07 10:10:47 -08:00
Arnold Schwaighofer
3447bd1b31 Change implementation to infer @inlinable semantics from @inline(always) on public declarations 2025-09-30 08:36:32 -07:00
Arnold Schwaighofer
25a071efc8 Add experimental feature @inline(always)
The intent for `@inline(always)` is to act as an optimization control.
The user can rely on inlining to happen or the compiler will emit an error
message.

Because function values can be dynamic (closures, protocol/class lookup)
this guarantee can only be upheld for direct function references.

In cases where the optimizer can resolve dynamic function values the
attribute shall be respected.

rdar://148608854
2025-09-30 08:36:26 -07:00