Closed afonso360 closed 7 months ago
I'd like to give it a go at implementing this intrinsic but it looks like its complicated enough (pseudocode) that it would probably warrant a libcall equivalent. Do we have a way of defining our own functions that we could inject into the final binary in a similar way to libcall's?
We don't have a way to define libcalls. I've just been producing incredibly bloated code with all loops unrolled in the generated clif ir for simd intrinsics right now :)
I'm currently implementing this.
👋 Hey,
I tried to run simd-json with cranelift as a backend and the testsuite fails with the following error:
It looks like we are missing the
_mm_clmulepi64_si128
intrinsic.I'd like to give it a go at implementing this intrinsic but it looks like its complicated enough (pseudocode) that it would probably warrant a libcall equivalent. Do we have a way of defining our own functions that we could inject into the final binary in a similar way to libcall's?
I think it's possible to implement this entirely in cranelift, but It doesn't look like the best way to go about it.
I should also note that simd-json compiles and passes its testsuite cleanly when disabling runtime feature detection. So that is an option for anyone wanting to use this library.