Skip to content
This repository
Newer
Older
100644 41 lines (28 sloc) 1.2 kb
ac87c894 »
2010-07-28 Some of my tests on unrolling the runloop. Plus my new tool for build…
1 @.LC0 = internal constant [13 x i8] c"Hello World\0A\00"
2
3 declare i32 @puts(i8*)
4
5 declare i8* @Parrot_new(i8*)
6 declare i8* @Parrot_get_params_pc(i8*, i8*)
7 declare void @Parrot_init_stacktop(i8*, i8**)
8 declare void @Parrot_set_config_hash()
9 declare i8* @Parrot_str_new(i8*, i8*, i64)
10 declare void @Parrot_set_executable_name(i8*, i8*)
11 declare void @Parrot_set_flag(i8*, i64)
12 declare i8* @PackFile_new(i8*, i64)
13
14 define i32 @main(i32 %argc, i8** nocapture %argv) nounwind ssp {
15 %cast210 = getelementptr [13 x i8]* @.LC0, i64 0, i64 0
16
17 %interp = call i8* @Parrot_new(i8* null)
18
19 %interp.addr = alloca i8*, align 4
20 store i8* %interp, i8** %interp.addr
21 call void @Parrot_init_stacktop(i8* %interp, i8** %interp.addr)
22 call void @Parrot_set_config_hash()
23 %exe_name.addr = load i8** %argv
24 %exe_name = call i8* @Parrot_str_new(i8* %interp, i8* %exe_name.addr, i64 0)
25 call void @Parrot_set_executable_name(i8* %interp, i8* %exe_name)
26 call void @Parrot_set_flag(i8* %interp, i64 512)
27
28 %pf = call i8* @PackFile_new(i8* %interp, i64 0)
29
30 do_sub_progmas(interp )
31
32
33 call i32 @puts(i8* %cast210)
34
35
36 ret i32 0
37 }
38
39 !1 = metadata !{i32 41}
40 !foo = !{!1, null}
Something went wrong with that request. Please try again.