mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Use backtrace on windows. Updated backtrace API
This commit is contained in:
committed by
Christoffer Lerno
parent
81c93e3488
commit
ffb0021d04
@@ -81,7 +81,6 @@ entry:
|
||||
%type = load ptr, ptr %.cachedtype, align 8
|
||||
%4 = icmp eq ptr %3, %type
|
||||
br i1 %4, label %cache_hit, label %cache_miss
|
||||
|
||||
cache_miss: ; preds = %entry
|
||||
%5 = getelementptr inbounds %.introspect, ptr %3, i32 0, i32 2
|
||||
%6 = load ptr, ptr %5, align 8
|
||||
@@ -89,36 +88,29 @@ cache_miss: ; preds = %entry
|
||||
store ptr %7, ptr %.inlinecache, align 8
|
||||
store ptr %3, ptr %.cachedtype, align 8
|
||||
br label %8
|
||||
|
||||
cache_hit: ; preds = %entry
|
||||
%cache_hit_fn = load ptr, ptr %.inlinecache, align 8
|
||||
br label %8
|
||||
|
||||
8: ; preds = %cache_hit, %cache_miss
|
||||
%fn_phi = phi ptr [ %cache_hit_fn, %cache_hit ], [ %7, %cache_miss ]
|
||||
%9 = icmp eq ptr %fn_phi, null
|
||||
br i1 %9, label %missing_function, label %match
|
||||
|
||||
missing_function: ; preds = %8
|
||||
%10 = load ptr, ptr @std.core.builtin.panic, align 8
|
||||
call void %10(ptr @.panic_msg, i64 44, ptr @.file, i64 16
|
||||
unreachable
|
||||
|
||||
match: ; preds = %8
|
||||
%11 = load ptr, ptr %2, align 8
|
||||
%12 = call i64 %fn_phi(ptr %retparam, ptr %11, i64 8, i8 zeroext 0, i64 0, i64 0, ptr null)
|
||||
%12 = call i64 %fn_phi(ptr %retparam, ptr %11, i64 8, i8 zeroext 0, i64 0, i64 0)
|
||||
%not_err = icmp eq i64 %12, 0
|
||||
%13 = call i1 @llvm.expect.i1(i1 %not_err, i1 true)
|
||||
br i1 %13, label %after_check, label %assign_optional
|
||||
|
||||
assign_optional: ; preds = %match
|
||||
store i64 %12, ptr %error_var, align 8
|
||||
br label %panic_block
|
||||
|
||||
after_check: ; preds = %match
|
||||
%14 = load ptr, ptr %retparam, align 8
|
||||
br label %noerr_block
|
||||
|
||||
panic_block: ; preds = %assign_optional
|
||||
%15 = insertvalue %"any*" undef, ptr %error_var, 0
|
||||
%16 = insertvalue %"any*" %15, i64 ptrtoint (ptr @"$ct.anyfault" to i64), 1
|
||||
@@ -129,7 +121,6 @@ panic_block: ; preds = %assign_optional
|
||||
store %"any*[]" %"$$temp", ptr %indirectarg, align 8
|
||||
call void @std.core.builtin.panicf(ptr @.panic_msg.1, i64 36, ptr @.file
|
||||
unreachable
|
||||
|
||||
noerr_block: ; preds = %after_check
|
||||
%19 = insertvalue %"any*" undef, ptr %14, 0
|
||||
%20 = insertvalue %"any*" %19, i64 ptrtoint (ptr @"$ct.inherit.Test" to i64), 1
|
||||
@@ -141,7 +132,6 @@ noerr_block: ; preds = %after_check
|
||||
%type4 = load ptr, ptr %.cachedtype3, align 8
|
||||
%25 = icmp eq ptr %24, %type4
|
||||
br i1 %25, label %cache_hit6, label %cache_miss5
|
||||
|
||||
cache_miss5: ; preds = %noerr_block
|
||||
%26 = getelementptr inbounds %.introspect, ptr %24, i32 0, i32 2
|
||||
%27 = load ptr, ptr %26, align 8
|
||||
@@ -149,21 +139,17 @@ cache_miss5: ; preds = %noerr_block
|
||||
store ptr %28, ptr %.inlinecache2, align 8
|
||||
store ptr %24, ptr %.cachedtype3, align 8
|
||||
br label %29
|
||||
|
||||
cache_hit6: ; preds = %noerr_block
|
||||
%cache_hit_fn7 = load ptr, ptr %.inlinecache2, align 8
|
||||
br label %29
|
||||
|
||||
29: ; preds = %cache_hit6, %cache_miss5
|
||||
%fn_phi8 = phi ptr [ %cache_hit_fn7, %cache_hit6 ], [ %28, %cache_miss5 ]
|
||||
%30 = icmp eq ptr %fn_phi8, null
|
||||
br i1 %30, label %missing_function9, label %match10
|
||||
|
||||
missing_function9: ; preds = %29
|
||||
%31 = load ptr, ptr @std.core.builtin.panic, align 8
|
||||
call void %31(ptr @.panic_msg.2, i64 41
|
||||
unreachable
|
||||
|
||||
match10: ; preds = %29
|
||||
%32 = load ptr, ptr %23, align 8
|
||||
call void %fn_phi8(ptr %32)
|
||||
@@ -176,7 +162,6 @@ match10: ; preds = %29
|
||||
%type13 = load ptr, ptr %.cachedtype12, align 8
|
||||
%38 = icmp eq ptr %37, %type13
|
||||
br i1 %38, label %cache_hit15, label %cache_miss14
|
||||
|
||||
cache_miss14: ; preds = %match10
|
||||
%39 = getelementptr inbounds %.introspect, ptr %37, i32 0, i32 2
|
||||
%40 = load ptr, ptr %39, align 8
|
||||
@@ -184,21 +169,17 @@ cache_miss14: ; preds = %match10
|
||||
store ptr %41, ptr %.inlinecache11, align 8
|
||||
store ptr %37, ptr %.cachedtype12, align 8
|
||||
br label %42
|
||||
|
||||
cache_hit15: ; preds = %match10
|
||||
%cache_hit_fn16 = load ptr, ptr %.inlinecache11, align 8
|
||||
br label %42
|
||||
|
||||
42: ; preds = %cache_hit15, %cache_miss14
|
||||
%fn_phi17 = phi ptr [ %cache_hit_fn16, %cache_hit15 ], [ %41, %cache_miss14 ]
|
||||
%43 = icmp eq ptr %fn_phi17, null
|
||||
br i1 %43, label %missing_function18, label %match19
|
||||
|
||||
missing_function18: ; preds = %42
|
||||
%44 = load ptr, ptr @std.core.builtin.panic, align 8
|
||||
call void %44(ptr @.panic_msg.2, i64 41, ptr @.file.3, i64 10, ptr @.func, i64 4, i32 36)
|
||||
unreachable
|
||||
|
||||
match19: ; preds = %42
|
||||
%45 = load ptr, ptr %36, align 8
|
||||
call void %fn_phi17(ptr %45)
|
||||
@@ -209,25 +190,20 @@ match19: ; preds = %42
|
||||
define weak_odr ptr @.dyn_search(ptr %0, ptr %1) unnamed_addr {
|
||||
entry:
|
||||
br label %check
|
||||
|
||||
check: ; preds = %no_match, %entry
|
||||
%2 = phi ptr [ %0, %entry ], [ %9, %no_match ]
|
||||
%3 = icmp eq ptr %2, null
|
||||
br i1 %3, label %missing_function, label %compare
|
||||
|
||||
missing_function: ; preds = %check
|
||||
ret ptr null
|
||||
|
||||
compare: ; preds = %check
|
||||
%4 = getelementptr inbounds { ptr, ptr, ptr }, ptr %2, i32 0, i32 1
|
||||
%5 = load ptr, ptr %4, align 8
|
||||
%6 = icmp eq ptr %5, %1
|
||||
br i1 %6, label %match, label %no_match
|
||||
|
||||
match: ; preds = %compare
|
||||
%7 = load ptr, ptr %2, align 8
|
||||
ret ptr %7
|
||||
|
||||
no_match: ; preds = %compare
|
||||
%8 = getelementptr inbounds { ptr, ptr, ptr }, ptr %2, i32 0, i32 2
|
||||
%9 = load ptr, ptr %8, align 8
|
||||
@@ -237,31 +213,25 @@ no_match: ; preds = %compare
|
||||
define internal void @.static_initialize.0() {
|
||||
entry:
|
||||
br label %dtable_check
|
||||
|
||||
dtable_check: ; preds = %dtable_next, %entry
|
||||
%dtable_ref = phi ptr [ getelementptr inbounds (%.introspect, ptr @"$ct.inherit.Test", i32 0, i32 2), %entry ], [ %next_dtable_ref, %dtable_next ]
|
||||
%dtable_ptr = load ptr, ptr %dtable_ref, align 8
|
||||
%0 = icmp eq ptr %dtable_ptr, null
|
||||
br i1 %0, label %dtable_found, label %dtable_next
|
||||
|
||||
dtable_next: ; preds = %dtable_check
|
||||
%next_dtable_ref = getelementptr inbounds { ptr, ptr, ptr }, ptr %dtable_ptr, i32 0, i32 2
|
||||
br label %dtable_check
|
||||
|
||||
dtable_found: ; preds = %dtable_check
|
||||
store ptr @"$ct.dyn.inherit.Test.tesT", ptr %dtable_ref, align 8
|
||||
br label %dtable_check1
|
||||
|
||||
dtable_check1: ; preds = %dtable_next4, %dtable_found
|
||||
%dtable_ref2 = phi ptr [ getelementptr inbounds (%.introspect, ptr @"$ct.inherit.Test", i32 0, i32 2), %dtable_found ], [ %next_dtable_ref5, %dtable_next4 ]
|
||||
%dtable_ptr3 = load ptr, ptr %dtable_ref2, align 8
|
||||
%1 = icmp eq ptr %dtable_ptr3, null
|
||||
br i1 %1, label %dtable_found6, label %dtable_next4
|
||||
|
||||
dtable_next4: ; preds = %dtable_check1
|
||||
%next_dtable_ref5 = getelementptr inbounds { ptr, ptr, ptr }, ptr %dtable_ptr3, i32 0, i32 2
|
||||
br label %dtable_check1
|
||||
|
||||
dtable_found6: ; preds = %dtable_check1
|
||||
store ptr @"$ct.dyn.inherit.Test.hello", ptr %dtable_ref2, align 8
|
||||
ret void
|
||||
|
||||
@@ -68,7 +68,6 @@ entry:
|
||||
%type = load ptr, ptr %.cachedtype, align 8
|
||||
%4 = icmp eq ptr %3, %type
|
||||
br i1 %4, label %cache_hit, label %cache_miss
|
||||
|
||||
cache_miss: ; preds = %entry
|
||||
%5 = getelementptr inbounds %.introspect, ptr %3, i32 0, i32 2
|
||||
%6 = load ptr, ptr %5, align 8
|
||||
@@ -76,36 +75,29 @@ cache_miss: ; preds = %entry
|
||||
store ptr %7, ptr %.inlinecache, align 8
|
||||
store ptr %3, ptr %.cachedtype, align 8
|
||||
br label %8
|
||||
|
||||
cache_hit: ; preds = %entry
|
||||
%cache_hit_fn = load ptr, ptr %.inlinecache, align 8
|
||||
br label %8
|
||||
|
||||
8: ; preds = %cache_hit, %cache_miss
|
||||
%fn_phi = phi ptr [ %cache_hit_fn, %cache_hit ], [ %7, %cache_miss ]
|
||||
%9 = icmp eq ptr %fn_phi, null
|
||||
br i1 %9, label %missing_function, label %match
|
||||
|
||||
missing_function: ; preds = %8
|
||||
%10 = load ptr, ptr @std.core.builtin.panic, align 8
|
||||
call void %10(ptr @.panic_msg, i64 44, ptr @.file, i64 16, ptr @.func, i64 4
|
||||
unreachable
|
||||
|
||||
match: ; preds = %8
|
||||
%11 = load ptr, ptr %2, align 8
|
||||
%12 = call i64 %fn_phi(ptr %retparam, ptr %11, i64 8, i8 zeroext 0, i64 0, i64 0, ptr null)
|
||||
%12 = call i64 %fn_phi(ptr %retparam, ptr %11, i64 8, i8 zeroext 0, i64 0, i64 0)
|
||||
%not_err = icmp eq i64 %12, 0
|
||||
%13 = call i1 @llvm.expect.i1(i1 %not_err, i1 true)
|
||||
br i1 %13, label %after_check, label %assign_optional
|
||||
|
||||
assign_optional: ; preds = %match
|
||||
store i64 %12, ptr %error_var, align 8
|
||||
br label %panic_block
|
||||
|
||||
after_check: ; preds = %match
|
||||
%14 = load ptr, ptr %retparam, align 8
|
||||
br label %noerr_block
|
||||
|
||||
panic_block: ; preds = %assign_optional
|
||||
%15 = insertvalue %"any*" undef, ptr %error_var, 0
|
||||
%16 = insertvalue %"any*" %15, i64 ptrtoint (ptr @"$ct.anyfault" to i64), 1
|
||||
@@ -116,7 +108,6 @@ panic_block: ; preds = %assign_optional
|
||||
store %"any*[]" %"$$temp", ptr %indirectarg, align 8
|
||||
call void @std.core.builtin.panicf(ptr @.panic_msg.1
|
||||
unreachable
|
||||
|
||||
noerr_block: ; preds = %after_check
|
||||
%19 = insertvalue %"any*" undef, ptr %14, 0
|
||||
%20 = insertvalue %"any*" %19, i64 ptrtoint (ptr @"$ct.overlap.Test" to i64), 1
|
||||
@@ -128,7 +119,6 @@ noerr_block: ; preds = %after_check
|
||||
%type4 = load ptr, ptr %.cachedtype3, align 8
|
||||
%25 = icmp eq ptr %24, %type4
|
||||
br i1 %25, label %cache_hit6, label %cache_miss5
|
||||
|
||||
cache_miss5: ; preds = %noerr_block
|
||||
%26 = getelementptr inbounds %.introspect, ptr %24, i32 0, i32 2
|
||||
%27 = load ptr, ptr %26, align 8
|
||||
@@ -136,21 +126,17 @@ cache_miss5: ; preds = %noerr_block
|
||||
store ptr %28, ptr %.inlinecache2, align 8
|
||||
store ptr %24, ptr %.cachedtype3, align 8
|
||||
br label %29
|
||||
|
||||
cache_hit6: ; preds = %noerr_block
|
||||
%cache_hit_fn7 = load ptr, ptr %.inlinecache2, align 8
|
||||
br label %29
|
||||
|
||||
29: ; preds = %cache_hit6, %cache_miss5
|
||||
%fn_phi8 = phi ptr [ %cache_hit_fn7, %cache_hit6 ], [ %28, %cache_miss5 ]
|
||||
%30 = icmp eq ptr %fn_phi8, null
|
||||
br i1 %30, label %missing_function9, label %match10
|
||||
|
||||
missing_function9: ; preds = %29
|
||||
%31 = load ptr, ptr @std.core.builtin.panic, align 8
|
||||
call void %31(ptr @.panic_msg.2, i64 41, ptr @.file
|
||||
unreachable
|
||||
|
||||
match10: ; preds = %29
|
||||
%32 = load ptr, ptr %23, align 8
|
||||
call void %fn_phi8(ptr %32)
|
||||
@@ -163,7 +149,6 @@ match10: ; preds = %29
|
||||
%type13 = load ptr, ptr %.cachedtype12, align 8
|
||||
%38 = icmp eq ptr %37, %type13
|
||||
br i1 %38, label %cache_hit15, label %cache_miss14
|
||||
|
||||
cache_miss14: ; preds = %match10
|
||||
%39 = getelementptr inbounds %.introspect, ptr %37, i32 0, i32 2
|
||||
%40 = load ptr, ptr %39, align 8
|
||||
@@ -171,21 +156,17 @@ cache_miss14: ; preds = %match10
|
||||
store ptr %41, ptr %.inlinecache11, align 8
|
||||
store ptr %37, ptr %.cachedtype12, align 8
|
||||
br label %42
|
||||
|
||||
cache_hit15: ; preds = %match10
|
||||
%cache_hit_fn16 = load ptr, ptr %.inlinecache11, align 8
|
||||
br label %42
|
||||
|
||||
42: ; preds = %cache_hit15, %cache_miss14
|
||||
%fn_phi17 = phi ptr [ %cache_hit_fn16, %cache_hit15 ], [ %41, %cache_miss14 ]
|
||||
%43 = icmp eq ptr %fn_phi17, null
|
||||
br i1 %43, label %missing_function18, label %match19
|
||||
|
||||
missing_function18: ; preds = %42
|
||||
%44 = load ptr, ptr @std.core.builtin.panic, align 8
|
||||
call void %44(ptr @.panic_msg.2, i64 41, ptr @.file.3, i64 23, ptr @.func, i64 4, i32 30)
|
||||
unreachable
|
||||
|
||||
match19: ; preds = %42
|
||||
%45 = load ptr, ptr %36, align 8
|
||||
call void %fn_phi17(ptr %45)
|
||||
@@ -194,31 +175,25 @@ match19: ; preds = %42
|
||||
define internal void @.static_initialize.0() {
|
||||
entry:
|
||||
br label %dtable_check
|
||||
|
||||
dtable_check: ; preds = %dtable_next, %entry
|
||||
%dtable_ref = phi ptr [ getelementptr inbounds (%.introspect, ptr @"$ct.overlap.Test", i32 0, i32 2), %entry ], [ %next_dtable_ref, %dtable_next ]
|
||||
%dtable_ptr = load ptr, ptr %dtable_ref, align 8
|
||||
%0 = icmp eq ptr %dtable_ptr, null
|
||||
br i1 %0, label %dtable_found, label %dtable_next
|
||||
|
||||
dtable_next: ; preds = %dtable_check
|
||||
%next_dtable_ref = getelementptr inbounds { ptr, ptr, ptr }, ptr %dtable_ptr, i32 0, i32 2
|
||||
br label %dtable_check
|
||||
|
||||
dtable_found: ; preds = %dtable_check
|
||||
store ptr @"$ct.dyn.overlap.Test.tesT", ptr %dtable_ref, align 8
|
||||
br label %dtable_check1
|
||||
|
||||
dtable_check1: ; preds = %dtable_next4, %dtable_found
|
||||
%dtable_ref2 = phi ptr [ getelementptr inbounds (%.introspect, ptr @"$ct.overlap.Test", i32 0, i32 2), %dtable_found ], [ %next_dtable_ref5, %dtable_next4 ]
|
||||
%dtable_ptr3 = load ptr, ptr %dtable_ref2, align 8
|
||||
%1 = icmp eq ptr %dtable_ptr3, null
|
||||
br i1 %1, label %dtable_found6, label %dtable_next4
|
||||
|
||||
dtable_next4: ; preds = %dtable_check1
|
||||
%next_dtable_ref5 = getelementptr inbounds { ptr, ptr, ptr }, ptr %dtable_ptr3, i32 0, i32 2
|
||||
br label %dtable_check1
|
||||
|
||||
dtable_found6: ; preds = %dtable_check1
|
||||
store ptr @"$ct.dyn.overlap.Test.foo", ptr %dtable_ref2, align 8
|
||||
ret void
|
||||
|
||||
@@ -332,7 +332,7 @@ if.then7: ; preds = %if.exit4
|
||||
%15 = getelementptr inbounds %Doc, ptr %literal9, i32 0, i32 0
|
||||
call void @llvm.memcpy.p0.p0.i32(ptr align 8 %literal10, ptr align 8 @.__const.5, i32 8, i1 false)
|
||||
call void @llvm.memcpy.p0.p0.i32(ptr align 8 %value, ptr align 8 %literal10, i32 8, i1 false)
|
||||
%16 = call ptr @std.core.mem.malloc(i64 8, ptr null) #3
|
||||
%16 = call ptr @std.core.mem.malloc(i64 8) #3
|
||||
store ptr %16, ptr %temp, align 8
|
||||
%17 = load ptr, ptr %temp, align 8
|
||||
%not = icmp eq ptr %17, null
|
||||
@@ -371,7 +371,7 @@ if.then16: ; preds = %if.exit13
|
||||
store ptr null, ptr %literal20, align 8
|
||||
%26 = getelementptr inbounds %Head, ptr %literal20, i32 0, i32 0
|
||||
store %"char[]" zeroinitializer, ptr %value22, align 8
|
||||
%27 = call ptr @std.core.mem.malloc(i64 16, ptr null) #3
|
||||
%27 = call ptr @std.core.mem.malloc(i64 16) #3
|
||||
store ptr %27, ptr %temp23, align 8
|
||||
%28 = load ptr, ptr %temp23, align 8
|
||||
%not24 = icmp eq ptr %28, null
|
||||
@@ -394,7 +394,7 @@ noerr_block28: ; preds = %if.exit26
|
||||
%31 = load ptr, ptr %temp23, align 8
|
||||
store ptr %31, ptr %26, align 8
|
||||
call void @llvm.memcpy.p0.p0.i32(ptr align 8 %value29, ptr align 8 %literal20, i32 8, i1 false)
|
||||
%32 = call ptr @std.core.mem.malloc(i64 8, ptr null) #3
|
||||
%32 = call ptr @std.core.mem.malloc(i64 8) #3
|
||||
store ptr %32, ptr %temp30, align 8
|
||||
%33 = load ptr, ptr %temp30, align 8
|
||||
%not31 = icmp eq ptr %33, null
|
||||
@@ -430,7 +430,7 @@ if.exit36: ; preds = %if.exit13
|
||||
store i64 %sext, ptr %len, align 8
|
||||
%42 = load i64, ptr %len, align 8
|
||||
%add = add i64 %42, 1
|
||||
%43 = call ptr @std.core.mem.malloc(i64 %add, ptr null) #3
|
||||
%43 = call ptr @std.core.mem.malloc(i64 %add) #3
|
||||
store ptr %43, ptr %str, align 8
|
||||
%44 = load ptr, ptr %str, align 8
|
||||
%not37 = icmp eq ptr %44, null
|
||||
@@ -461,7 +461,7 @@ if.exit39: ; preds = %if.exit36
|
||||
%57 = insertvalue %"char[]" undef, ptr %ptroffset47, 0
|
||||
%58 = insertvalue %"char[]" %57, i64 %size, 1
|
||||
store %"char[]" %58, ptr %value48, align 8
|
||||
%59 = call ptr @std.core.mem.malloc(i64 16, ptr null) #3
|
||||
%59 = call ptr @std.core.mem.malloc(i64 16) #3
|
||||
store ptr %59, ptr %temp49, align 8
|
||||
%60 = load ptr, ptr %temp49, align 8
|
||||
%not50 = icmp eq ptr %60, null
|
||||
@@ -484,7 +484,7 @@ noerr_block54: ; preds = %if.exit52
|
||||
%63 = load ptr, ptr %temp49, align 8
|
||||
store ptr %63, ptr %53, align 8
|
||||
call void @llvm.memcpy.p0.p0.i32(ptr align 8 %value55, ptr align 8 %literal45, i32 8, i1 false)
|
||||
%64 = call ptr @std.core.mem.malloc(i64 8, ptr null) #3
|
||||
%64 = call ptr @std.core.mem.malloc(i64 8) #3
|
||||
store ptr %64, ptr %temp56, align 8
|
||||
%65 = load ptr, ptr %temp56, align 8
|
||||
%not57 = icmp eq ptr %65, null
|
||||
|
||||
@@ -66,7 +66,7 @@ entry:
|
||||
%lo = load i64, ptr %3, align 8
|
||||
%4 = getelementptr inbounds { i64, ptr }, ptr %allocator, i32 0, i32 1
|
||||
%hi = load ptr, ptr %4, align 8
|
||||
%5 = call ptr @std.core.dstring.new_with_capacity(i64 128, i64 %lo, ptr %hi, ptr null)
|
||||
%5 = call ptr @std.core.dstring.new_with_capacity(i64 128, i64 %lo, ptr %hi)
|
||||
store ptr %5, ptr %s, align 8
|
||||
%6 = getelementptr inbounds %Foo, ptr %0, i32 0, i32 0
|
||||
%7 = insertvalue %"any*" undef, ptr %6, 0
|
||||
@@ -133,7 +133,7 @@ entry:
|
||||
call void @llvm.memset.p0.i64(ptr align 8 %map, i8 0, i64 48, i1 false)
|
||||
%lo = load i64, ptr @std.core.mem.thread_allocator, align 8
|
||||
%hi = load ptr, ptr getelementptr inbounds ({ i64, ptr }, ptr @std.core.mem.thread_allocator, i32 0, i32 1), align 8
|
||||
%0 = call ptr @"std.collections.map$int$test.Foo$.HashMap.init_new"(ptr %map, i32 16, float 7.500000e-01, i64 %lo, ptr %hi, ptr null)
|
||||
%0 = call ptr @"std.collections.map$int$test.Foo$.HashMap.init_new"(ptr %map, i32 16, float 7.500000e-01, i64 %lo, ptr %hi)
|
||||
%1 = getelementptr inbounds %HashMap, ptr %map, i32 0, i32 2
|
||||
%2 = insertvalue %"any*" undef, ptr %1, 0
|
||||
%3 = insertvalue %"any*" %2, i64 ptrtoint (ptr @"$ct.uint" to i64), 1
|
||||
@@ -213,7 +213,7 @@ after_check14: ; preds = %entry, %after_check
|
||||
call void @llvm.memset.p0.i64(ptr align 8 %map2, i8 0, i64 48, i1 false)
|
||||
%lo33 = load i64, ptr @std.core.mem.thread_allocator, align 8
|
||||
%hi34 = load ptr, ptr getelementptr inbounds ({ i64, ptr }, ptr @std.core.mem.thread_allocator, i32 0, i32 1), align 8
|
||||
%48 = call ptr @"std.collections.map$int$double$.HashMap.init_new"(ptr %map2, i32 16, float 7.500000e-01, i64 %lo33, ptr %hi34, ptr null)
|
||||
%48 = call ptr @"std.collections.map$int$double$.HashMap.init_new"(ptr %map2, i32 16, float 7.500000e-01, i64 %lo33, ptr %hi34)
|
||||
%49 = call i8 @"std.collections.map$int$double$.HashMap.set"(ptr %map2, i32 4, double 1.300000e+00)
|
||||
%50 = call i8 @"std.collections.map$int$double$.HashMap.has_value"(ptr %map2, double 1.300000e+00)
|
||||
store i8 %50, ptr %taddr36, align 1
|
||||
@@ -266,7 +266,7 @@ if.exit: ; preds = %if.then, %after_che
|
||||
call void @llvm.memset.p0.i64(ptr align 8 %map3, i8 0, i64 48, i1 false)
|
||||
%lo59 = load i64, ptr @std.core.mem.thread_allocator, align 8
|
||||
%hi60 = load ptr, ptr getelementptr inbounds ({ i64, ptr }, ptr @std.core.mem.thread_allocator, i32 0, i32 1), align 8
|
||||
%76 = call ptr @"std.collections.map$int$double$.HashMap.init_new"(ptr %map3, i32 16, float 7.500000e-01, i64 %lo59, ptr %hi60, ptr null)
|
||||
%76 = call ptr @"std.collections.map$int$double$.HashMap.init_new"(ptr %map3, i32 16, float 7.500000e-01, i64 %lo59, ptr %hi60)
|
||||
%77 = call i8 @"std.collections.map$int$double$.HashMap.set"(ptr %map3, i32 5, double 3.200000e+00)
|
||||
%78 = call i8 @"std.collections.map$int$double$.HashMap.set"(ptr %map3, i32 7, double 5.200000e+00)
|
||||
%lo62 = load i64, ptr @std.core.mem.thread_allocator, align 8
|
||||
|
||||
Reference in New Issue
Block a user