1 ; Tests that CoroEarly pass correctly lowers coro.noop
2 ; RUN: opt < %s -S -passes=coro-early | FileCheck %s
4 ; CHECK: %NoopCoro.Frame = type { ptr, ptr }
5 ; CHECK: @NoopCoro.Frame.Const = private constant %NoopCoro.Frame { ptr @__NoopCoro_ResumeDestroy, ptr @__NoopCoro_ResumeDestroy }
12 ; CHECK-NEXT: ret ptr @NoopCoro.Frame.Const
13 %n = call ptr @llvm.coro.noop()
17 declare ptr @llvm.coro.noop()
20 !llvm.module.flags = !{!3, !4}
22 !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "hand-written", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)
23 !1 = !DIFile(filename: "<stdin>", directory: "")
25 !3 = !{i32 2, !"Dwarf Version", i32 4}
26 !4 = !{i32 2, !"Debug Info Version", i32 3}
29 ; CHECK: define private fastcc void @__NoopCoro_ResumeDestroy(ptr %0) !dbg ![[RESUME:[0-9]+]] {
31 ; CHECK-NEXT: ret void
33 ; CHECK: ![[RESUME]] = distinct !DISubprogram(name: "__NoopCoro_ResumeDestroy", linkageName: "__NoopCoro_ResumeDestroy", {{.*}} flags: DIFlagArtificial,