Add procs for wasm32

This commit is contained in:
gingerBill
2021-10-31 19:00:01 +00:00
parent fca7142a3c
commit 5f51337a01
4 changed files with 21 additions and 0 deletions
+5
View File
@@ -1053,6 +1053,11 @@ namespace lbAbiWasm32 {
}
lbArgType non_struct(LLVMContextRef c, LLVMTypeRef type, bool is_return) {
if (!is_return && type == LLVMIntTypeInContext(c, 128)) {
LLVMTypeRef cast_type = LLVMVectorType(LLVMInt64TypeInContext(c), 2);
return lb_arg_type_direct(type, cast_type, nullptr, nullptr);
}
if (!is_return && lb_sizeof(type) > 8) {
return lb_arg_type_indirect(type, nullptr);
}