Merge pull request #79781 from nate-chandler/general-coro/20250227/1

[CoroutineAccessors] Dispatch and PtrAuth.
This commit is contained in:
nate-chandler
2025-03-07 20:08:42 -08:00
committed by GitHub
45 changed files with 742 additions and 173 deletions

View File

@@ -1225,6 +1225,14 @@ llvm::Constant *IRGenModule::getDeletedAsyncMethodErrorAsyncFunctionPointer() {
LinkEntity::forKnownAsyncFunctionPointer("swift_deletedAsyncMethodError")).getValue();
}
llvm::Constant *IRGenModule::
getDeletedCalleeAllocatedCoroutineMethodErrorAsyncFunctionPointer() {
return getAddrOfLLVMVariableOrGOTEquivalent(
LinkEntity::forKnownAsyncFunctionPointer(
"swift_deletedCalleeAllocatedCoroutineMethodError"))
.getValue();
}
static bool isReturnAttribute(llvm::Attribute::AttrKind Attr);
static bool isReturnedAttribute(llvm::Attribute::AttrKind Attr);