mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Symtab has a new hash map type. New, small, sourcespan, external symbols simplified. Updated docs.
This commit is contained in:
committed by
Christoffer Lerno
parent
e45853c0cb
commit
4f4bc80953
@@ -19,7 +19,7 @@ define void @test.test() #0 {
|
||||
entry:
|
||||
%x = alloca [3 x i32], align 4
|
||||
%g = alloca i32, align 4
|
||||
%"__idx$" = alloca i64, align 8
|
||||
%anon = alloca i64, align 8
|
||||
%z = alloca i32, align 4
|
||||
%0 = getelementptr inbounds [3 x i32], [3 x i32]* %x, i64 0, i64 0
|
||||
store i32 0, i32* %0, align 4
|
||||
@@ -28,16 +28,16 @@ entry:
|
||||
%2 = getelementptr inbounds [3 x i32], [3 x i32]* %x, i64 0, i64 2
|
||||
store i32 0, i32* %2, align 4
|
||||
store i32 0, i32* %g, align 4
|
||||
store i64 0, i64* %"__idx$", align 8
|
||||
store i64 0, i64* %anon, align 8
|
||||
br label %loop.cond
|
||||
|
||||
loop.cond: ; preds = %loop.inc, %entry
|
||||
%3 = load i64, i64* %"__idx$", align 8
|
||||
%3 = load i64, i64* %anon, align 8
|
||||
%gt = icmp ugt i64 3, %3
|
||||
br i1 %gt, label %loop.body, label %loop.exit
|
||||
|
||||
loop.body: ; preds = %loop.cond
|
||||
%4 = load i64, i64* %"__idx$", align 8
|
||||
%4 = load i64, i64* %anon, align 8
|
||||
%5 = getelementptr inbounds [3 x i32], [3 x i32]* %x, i64 0, i64 %4
|
||||
%6 = load i32, i32* %5, align 4
|
||||
store i32 %6, i32* %z, align 4
|
||||
@@ -64,9 +64,9 @@ if.exit3: ; preds = %if.exit
|
||||
br label %loop.inc
|
||||
|
||||
loop.inc: ; preds = %if.exit3, %if.then2
|
||||
%11 = load i64, i64* %"__idx$", align 8
|
||||
%11 = load i64, i64* %anon, align 8
|
||||
%add4 = add i64 %11, 1
|
||||
store i64 %add4, i64* %"__idx$", align 8
|
||||
store i64 %add4, i64* %anon, align 8
|
||||
br label %loop.cond
|
||||
|
||||
loop.exit: ; preds = %if.then, %loop.cond
|
||||
|
||||
Reference in New Issue
Block a user