Add macro arguments &foo $foo #foo.

C ABI compatibility aarch64, win64, x86, x64
Added debug info
This commit is contained in:
Christoffer Lerno
2020-10-19 20:58:40 +02:00
committed by Christoffer Lerno
parent 4222f2731e
commit 3c15e495dd
52 changed files with 7936 additions and 2113 deletions

View File

@@ -6,12 +6,12 @@ func void test()
// #expect: slice_offset_neg_start.ll
%x = alloca [3 x i32]
%y = alloca %"int[]"
%0 = load [3 x i32], [3 x i32]* @0
store [3 x i32] %0, [3 x i32]* %x
%x = alloca [3 x i32], align 4
%y = alloca %"int[]", align 8
%0 = bitcast [3 x i32]* %x to i8*
call void @llvm.memcpy.p0i8.p0i8.i32(i8* align 4 %0, i8* align 4 bitcast ([3 x i32]* @0 to i8*), i32 12, i1 false)
%1 = bitcast [3 x i32]* %x to i32*
%offset = getelementptr inbounds i32, i32* %1, i64 1
%2 = insertvalue %"int[]" undef, i32* %offset, 0
%3 = insertvalue %"int[]" %2, i64 1, 1
store %"int[]" %3, %"int[]"* %y
store %"int[]" %3, %"int[]"* %y, align 8