mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[Concurrency] Implement a builtin createAsyncTask() to create a new task.
`Builtin.createAsyncTask` takes flags, an optional parent task, and an async/throwing function to execute, and passes it along to the `swift_task_create_f` entry point to create a new (potentially child) task, returning the new task and its initial context.
This commit is contained in:
@@ -1800,6 +1800,7 @@ static void visitBuiltinAddress(BuiltinInst *builtin,
|
||||
case BuiltinValueKind::IntInstrprofIncrement:
|
||||
case BuiltinValueKind::TSanInoutAccess:
|
||||
case BuiltinValueKind::CancelAsyncTask:
|
||||
case BuiltinValueKind::CreateAsyncTask:
|
||||
return;
|
||||
|
||||
// General memory access to a pointer in first operand position.
|
||||
|
||||
Reference in New Issue
Block a user