mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SUA][Runtime] Define swift_coroFrameAlloc function that allocates typed memory (#79200)
[SUA][Runtime] Define `swift_coroFrameAlloc` function that allocates typed memory Define `swift_coroFrameAlloc` that allocates typed memory if SWIFT_STDLIB_HAS_MALLOC_TYPE is defined. This function will be used by IRGen to emit typed memory allocations for property accessors. rdar://141235539
This commit is contained in:
@@ -2099,6 +2099,12 @@ FUNCTION(Free, c, free, C_CC, AlwaysAvailable,
|
||||
NO_ATTRS,
|
||||
EFFECT(Deallocating),
|
||||
UNKNOWN_MEMEFFECTS)
|
||||
FUNCTION(CoroFrameAlloc, c, swift_coroFrameAlloc, C_CC, AlwaysAvailable,
|
||||
RETURNS(Int8PtrTy),
|
||||
ARGS(SizeTy, Int64Ty),
|
||||
NO_ATTRS,
|
||||
EFFECT(Allocating),
|
||||
UNKNOWN_MEMEFFECTS)
|
||||
|
||||
// void *_Block_copy(void *block);
|
||||
FUNCTION(BlockCopy, BlocksRuntime, _Block_copy, C_CC, AlwaysAvailable,
|
||||
|
||||
Reference in New Issue
Block a user