mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 15:33:40 +00:00
all: drop support for LLVM 10
This commit is contained in:
committed by
Ron Evans
parent
afd49e7cdd
commit
90076f9401
Vendored
+9
-9
@@ -4,24 +4,24 @@ target triple = "wasm32-unknown-unknown-wasm"
|
||||
declare i64 @"externalCall$i64wrap"(i8*, i32, i64)
|
||||
|
||||
define internal i64 @testCall(i8* %ptr, i32 %len, i64 %foo) {
|
||||
%i64asptr = alloca i64
|
||||
%i64asptr1 = alloca i64
|
||||
store i64 %foo, i64* %i64asptr1
|
||||
%i64asptr = alloca i64, align 8
|
||||
%i64asptr1 = alloca i64, align 8
|
||||
store i64 %foo, i64* %i64asptr1, align 8
|
||||
call void @externalCall(i64* %i64asptr, i8* %ptr, i32 %len, i64* %i64asptr1)
|
||||
%retval = load i64, i64* %i64asptr
|
||||
%retval = load i64, i64* %i64asptr, align 8
|
||||
ret i64 %retval
|
||||
}
|
||||
|
||||
define internal i64 @testCallNonEntry(i8* %ptr, i32 %len) {
|
||||
entry:
|
||||
%i64asptr = alloca i64
|
||||
%i64asptr1 = alloca i64
|
||||
%i64asptr = alloca i64, align 8
|
||||
%i64asptr1 = alloca i64, align 8
|
||||
br label %bb1
|
||||
|
||||
bb1: ; preds = %entry
|
||||
store i64 3, i64* %i64asptr1
|
||||
store i64 3, i64* %i64asptr1, align 8
|
||||
call void @externalCall(i64* %i64asptr, i8* %ptr, i32 %len, i64* %i64asptr1)
|
||||
%retval = load i64, i64* %i64asptr
|
||||
%retval = load i64, i64* %i64asptr, align 8
|
||||
ret i64 %retval
|
||||
}
|
||||
|
||||
@@ -39,7 +39,7 @@ declare void @externalCall(i64*, i8*, i32, i64*)
|
||||
|
||||
define void @exportedFunction(i64* %0) {
|
||||
entry:
|
||||
%i64 = load i64, i64* %0
|
||||
%i64 = load i64, i64* %0, align 8
|
||||
call void @"exportedFunction$i64wrap"(i64 %i64)
|
||||
ret void
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user