[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:
Rashmi Mudduluru
2025-02-11 09:57:08 -08:00
committed by GitHub
parent a86743e77e
commit f60394db46
7 changed files with 27 additions and 0 deletions

View File

@@ -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,