File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 1
- // RUN: %target-swift-frontend -emit-ir %s -enable-experimental-feature Embedded -enable-builtin-module
1
+ // RUN: %target-swift-frontend -emit-irgen %s -enable-experimental-feature Embedded -enable-builtin-module | %FileCheck %s
2
2
3
3
// REQUIRES: swift_in_compiler
4
4
// REQUIRES: optimized_stdlib
@@ -12,3 +12,18 @@ public func test() async {
12
12
return 42
13
13
}
14
14
}
15
+
16
+ // CHECK: define {{.*}}@"$s4main4testyyYaF"(ptr swiftasync %0)
17
+ // CHECK: entry:
18
+ // CHECK: %result_type_info = alloca %swift.result_type_info_task_option
19
+ // CHECK: call {{.*}}@llvm.coro.id.async
20
+ // CHECK: call {{.*}}@llvm.coro.begin
21
+ // CHECK: call {{.*}}@llvm.coro.async.resume
22
+ // CHECK: call {{.*}}@llvm.coro.suspend.async.sl_p0s
23
+ // CHECK: call {{.*}}@__swift_async_resume_get_context
24
+ // CHECK: call {{.*}}@swift_allocObject
25
+ // CHECK: call {{.*}}%swift.async_task_and_context @swift_task_create
26
+ // CHECK: call {{.*}}@swift_release
27
+ // CHECK: call {{.*}}@llvm.coro.end.async
28
+ // CHECK: unreachable
29
+ // CHECK: }
You can’t perform that action at this time.
0 commit comments