Skip to content

feat!: Upgrade to Binaryen v119 #205

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: oscar/118
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions src/op.c
Original file line number Diff line number Diff line change
Expand Up @@ -1477,30 +1477,30 @@ caml_binaryen_bitselect_vec128(value unit) {
}

CAMLprim value
caml_binaryen_relaxed_fma_vec_f32x4(value unit) {
caml_binaryen_relaxed_madd_vec_f32x4(value unit) {
CAMLparam1(unit);
BinaryenOp op = BinaryenRelaxedFmaVecF32x4();
BinaryenOp op = BinaryenRelaxedMaddVecF32x4();
CAMLreturn(alloc_BinaryenOp(op));
}

CAMLprim value
caml_binaryen_relaxed_fms_vec_f32x4(value unit) {
caml_binaryen_relaxed_nmadd_vec_f32x4(value unit) {
CAMLparam1(unit);
BinaryenOp op = BinaryenRelaxedFmsVecF32x4();
BinaryenOp op = BinaryenRelaxedNmaddVecF32x4();
CAMLreturn(alloc_BinaryenOp(op));
}

CAMLprim value
caml_binaryen_relaxed_fma_vec_f64x4(value unit) {
caml_binaryen_relaxed_madd_vec_f64x4(value unit) {
CAMLparam1(unit);
BinaryenOp op = BinaryenRelaxedFmaVecF64x2();
BinaryenOp op = BinaryenRelaxedMaddVecF64x2();
CAMLreturn(alloc_BinaryenOp(op));
}

CAMLprim value
caml_binaryen_relaxed_fms_vec_f64x4(value unit) {
caml_binaryen_relaxed_nmadd_vec_f64x4(value unit) {
CAMLparam1(unit);
BinaryenOp op = BinaryenRelaxedFmsVecF64x2();
BinaryenOp op = BinaryenRelaxedNmaddVecF64x2();
CAMLreturn(alloc_BinaryenOp(op));
}

Expand Down
24 changes: 12 additions & 12 deletions src/op.js
Original file line number Diff line number Diff line change
Expand Up @@ -1258,28 +1258,28 @@ function caml_binaryen_bitselect_vec128() {
return Binaryen.Operations.BitselectVec128;
}

//Provides: caml_binaryen_relaxed_fma_vec_f32x4
//Provides: caml_binaryen_relaxed_madd_vec_f32x4
//Requires: Binaryen
function caml_binaryen_relaxed_fma_vec_f32x4() {
return Binaryen.Operations.RelaxedFmaVecF32x4;
function caml_binaryen_relaxed_madd_vec_f32x4() {
return Binaryen.Operations.RelaxedMaddVecF32x4;
}

//Provides: caml_binaryen_relaxed_fms_vec_f32x4
//Provides: caml_binaryen_relaxed_nmadd_vec_f32x4
//Requires: Binaryen
function caml_binaryen_relaxed_fms_vec_f32x4() {
return Binaryen.Operations.RelaxedFmsVecF32x4;
function caml_binaryen_relaxed_nmadd_vec_f32x4() {
return Binaryen.Operations.RelaxedNmaddVecF32x4;
}

//Provides: caml_binaryen_relaxed_fma_vec_f64x4
//Provides: caml_binaryen_relaxed_madd_vec_f64x4
//Requires: Binaryen
function caml_binaryen_relaxed_fma_vec_f64x4() {
return Binaryen.Operations.RelaxedFmaVecF64x2;
function caml_binaryen_relaxed_madd_vec_f64x4() {
return Binaryen.Operations.RelaxedMaddVecF64x2;
}

//Provides: caml_binaryen_relaxed_fms_vec_f64x4
//Provides: caml_binaryen_relaxed_nmadd_vec_f64x4
//Requires: Binaryen
function caml_binaryen_relaxed_fms_vec_f64x4() {
return Binaryen.Operations.RelaxedFmsVecF64x2;
function caml_binaryen_relaxed_nmadd_vec_f64x4() {
return Binaryen.Operations.RelaxedNmaddVecF64x2;
}

//Provides: caml_binaryen_laneselect_i8x16
Expand Down
24 changes: 12 additions & 12 deletions src/op.ml
Original file line number Diff line number Diff line change
Expand Up @@ -878,25 +878,25 @@ external bitselect_vec128 : unit -> t = "caml_binaryen_bitselect_vec128"

let bitselect_vec128 = bitselect_vec128 ()

external relaxed_fma_vec_f32x4 : unit -> t
= "caml_binaryen_relaxed_fma_vec_f32x4"
external relaxed_madd_vec_f32x4 : unit -> t
= "caml_binaryen_relaxed_madd_vec_f32x4"

let relaxed_fma_vec_f32x4 = relaxed_fma_vec_f32x4 ()
let relaxed_madd_vec_f32x4 = relaxed_madd_vec_f32x4 ()

external relaxed_fms_vec_f32x4 : unit -> t
= "caml_binaryen_relaxed_fms_vec_f32x4"
external relaxed_nmadd_vec_f32x4 : unit -> t
= "caml_binaryen_relaxed_nmadd_vec_f32x4"

let relaxed_fms_vec_f32x4 = relaxed_fms_vec_f32x4 ()
let relaxed_nmadd_vec_f32x4 = relaxed_nmadd_vec_f32x4 ()

external relaxed_fma_vec_f64x4 : unit -> t
= "caml_binaryen_relaxed_fma_vec_f64x4"
external relaxed_madd_vec_f64x4 : unit -> t
= "caml_binaryen_relaxed_madd_vec_f64x4"

let relaxed_fma_vec_f64x4 = relaxed_fma_vec_f64x4 ()
let relaxed_madd_vec_f64x4 = relaxed_madd_vec_f64x4 ()

external relaxed_fms_vec_f64x4 : unit -> t
= "caml_binaryen_relaxed_fms_vec_f64x4"
external relaxed_nmadd_vec_f64x4 : unit -> t
= "caml_binaryen_relaxed_nmadd_vec_f64x4"

let relaxed_fms_vec_f64x4 = relaxed_fms_vec_f64x4 ()
let relaxed_nmadd_vec_f64x4 = relaxed_nmadd_vec_f64x4 ()

external laneselect_i8x16 : unit -> t = "caml_binaryen_laneselect_i8x16"

Expand Down
8 changes: 4 additions & 4 deletions src/op.mli
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,10 @@ val or_vec128 : t
val xor_vec128 : t
val and_not_vec128 : t
val bitselect_vec128 : t
val relaxed_fma_vec_f32x4 : t
val relaxed_fms_vec_f32x4 : t
val relaxed_fma_vec_f64x4 : t
val relaxed_fms_vec_f64x4 : t
val relaxed_madd_vec_f32x4 : t
val relaxed_nmadd_vec_f32x4 : t
val relaxed_madd_vec_f64x4 : t
val relaxed_nmadd_vec_f64x4 : t
val laneselect_i8x16 : t
val laneselect_i16x8 : t
val laneselect_i32x4 : t
Expand Down
Loading