mirror of
https://github.com/fluencelabs/wasmer
synced 2024-12-13 06:15:33 +00:00
Reformat.
This commit is contained in:
parent
53907b0ab2
commit
e4123433a1
@ -75,8 +75,7 @@ fn splat_vector(
|
|||||||
// Use insert_element to insert the element into an undef vector, then use
|
// Use insert_element to insert the element into an undef vector, then use
|
||||||
// shuffle vector to copy that lane to all lanes.
|
// shuffle vector to copy that lane to all lanes.
|
||||||
builder.build_shuffle_vector(
|
builder.build_shuffle_vector(
|
||||||
builder
|
builder.build_insert_element(vec_ty.get_undef(), value, intrinsics.i32_zero, ""),
|
||||||
.build_insert_element(vec_ty.get_undef(), value, intrinsics.i32_zero, ""),
|
|
||||||
vec_ty.get_undef(),
|
vec_ty.get_undef(),
|
||||||
intrinsics.i32_ty.vec_type(vec_ty.get_size()).const_zero(),
|
intrinsics.i32_ty.vec_type(vec_ty.get_size()).const_zero(),
|
||||||
name,
|
name,
|
||||||
@ -4182,8 +4181,12 @@ impl FunctionCodeGenerator<CodegenError> for LLVMFunctionCodeGenerator {
|
|||||||
.into_int_value();
|
.into_int_value();
|
||||||
let idx = builder.build_and(idx, intrinsics.i32_ty.const_int(15, false), "");
|
let idx = builder.build_and(idx, intrinsics.i32_ty.const_int(15, false), "");
|
||||||
let elem = builder.build_extract_element(v1, idx, "");
|
let elem = builder.build_extract_element(v1, idx, "");
|
||||||
res = builder
|
res = builder.build_insert_element(
|
||||||
.build_insert_element(res, elem, intrinsics.i32_ty.const_int(i, false), "");
|
res,
|
||||||
|
elem,
|
||||||
|
intrinsics.i32_ty.const_int(i, false),
|
||||||
|
"",
|
||||||
|
);
|
||||||
}
|
}
|
||||||
let res = builder.build_bitcast(res, intrinsics.i128_ty, &state.var_name());
|
let res = builder.build_bitcast(res, intrinsics.i128_ty, &state.var_name());
|
||||||
state.push1(res);
|
state.push1(res);
|
||||||
|
Loading…
Reference in New Issue
Block a user