swift icon indicating copy to clipboard operation
swift copied to clipboard

[SUA][IRGen] Add stub for swift_coroFrameAlloc that weakly links against the runtime function

Open t-rasmud opened this issue 1 year ago • 13 comments

This PR modifies IRGen to emit a stub function __swift_coroFrameAllocStub instead of the newly introduced swift-rt function swift_coroFrameAlloc. The stub checks whether the runtime has the symbol swift_coroFrameAlloc and dispatches to it if it exists, uses malloc otherwise. This ensures the ability to back deploy the feature to older OS targets.

rdar://145239850

t-rasmud avatar Mar 10 '25 19:03 t-rasmud

@swift-ci test

t-rasmud avatar Mar 11 '25 22:03 t-rasmud

Please test with following pull request: https://github.com/swiftlang/llvm-project/pull/10236

@swift-ci test

t-rasmud avatar Mar 12 '25 04:03 t-rasmud

Please test with following pull request: https://github.com/swiftlang/llvm-project/pull/10239

@swift-ci test

t-rasmud avatar Mar 12 '25 15:03 t-rasmud

@swift-ci test

t-rasmud avatar Mar 18 '25 21:03 t-rasmud

@swift-ci test

t-rasmud avatar Mar 19 '25 18:03 t-rasmud

@swift-ci test

t-rasmud avatar Mar 19 '25 20:03 t-rasmud

@swift-ci test

t-rasmud avatar Mar 21 '25 19:03 t-rasmud

@swift-ci test

t-rasmud avatar Mar 24 '25 20:03 t-rasmud

@swift-ci test

t-rasmud avatar Mar 25 '25 18:03 t-rasmud

@swift-ci test

t-rasmud avatar Mar 26 '25 17:03 t-rasmud

@swift-ci test

t-rasmud avatar Mar 27 '25 17:03 t-rasmud

@swift-ci test

t-rasmud avatar Mar 28 '25 00:03 t-rasmud

You can restrict a test to run only on say macOS and iOS by adding the following line to the test:

// REQUIRES: OS=macosx || OS=iOS
...

aschwaighofer avatar Mar 28 '25 14:03 aschwaighofer

@swift-ci test

t-rasmud avatar Apr 01 '25 18:04 t-rasmud

@swift-ci test

t-rasmud avatar Apr 07 '25 21:04 t-rasmud