Slide 10
Slide 10 text
ੜίʔυ
define hidden swiftcc void @"$s1d5main2yyF"() #0 {
entry:
%t = alloca %TSi, align 8
%0 = bitcast %TSi* %t to i8*
call void @llvm.memset.p0i8.i64(i8* align 8 %0, i8 0, i64 8, i1 false)
%a.debug = alloca %swift.function, align 8
%1 = bitcast %swift.function* %a.debug to i8*
call void @llvm.memset.p0i8.i64(i8* align 8 %1, i8 0, i64 16, i1 false)
%2 = bitcast %TSi* %t to i8*
call void @llvm.lifetime.start.p0i8(i64 8, i8* %2)
%t._value = getelementptr inbounds %TSi, %TSi* %t, i32 0, i32 0
store i64 3, i64* %t._value, align 8
%3 = call noalias %swift.refcounted* @swift_allocObject(
%swift.type* getelementptr inbounds (
%swift.full_boxmetadata, %swift.full_boxmetadata* @metadata, i32 0, i32 2),
i64 24, i64 7) #3
%4 = bitcast %swift.refcounted* %3 to <{ %swift.refcounted, %TSi* }>*
%5 = getelementptr inbounds <{ %swift.refcounted, %TSi* }>,
<{ %swift.refcounted, %TSi* }>* %4, i32 0, i32 1
store %TSi* %t, %TSi** %5, align 8
%6 = bitcast %swift.function* %a.debug to i8*
call void @llvm.lifetime.start.p0i8(i64 16, i8* %6)
%a.debug.fn = getelementptr inbounds %swift.function, %swift.function* %a.debug, i32 0, i32 0
store i8* bitcast (i64 (i64, %swift.refcounted*)* @"$s1d5main2yyFS2icfU_Tf0ns_nTA" to i8*),
i8** %a.debug.fn, align 8
%a.debug.data = getelementptr inbounds %swift.function, %swift.function* %a.debug, i32 0, i32 1
store %swift.refcounted* %3, %swift.refcounted** %a.debug.data, align 8
call void @swift_release(%swift.refcounted* %3) #3
%7 = bitcast %TSi* %t to i8*
call void @llvm.lifetime.end.p0i8(i64 8, i8* %7)
ret void
}
10