I can't seem to find reference to intrinsics, beyond the is_intrinsic function.
I am building a backend which needs to perform some target-specific
code-generation (for SSE, AVX, and NEON), and intrinsics are the
standard path in the C++ API.
I can't seem to find reference to intrinsics, beyond the is_intrinsic function.
I am building a backend which needs to perform some target-specific
code-generation (for SSE, AVX, and NEON), and intrinsics are the
standard path in the C++ API.
I can’t seem to find reference to intrinsics, beyond the is_intrinsic function.
I am building a backend which needs to perform some target-specific
code-generation (for SSE, AVX, and NEON), and intrinsics are the
standard path in the C++ API.
What happens if you just build a call to a function with the same name as the intrinsic you want? I believe that should work.
Indeed, it would appear that I am a moron and that this obvious route works just fine. I was confounded by the richer support for using intrinsics in the C++ interface, and some corresponding features in some 3rd party bindings (llvm-py, in particular), but this works exactly as I should have expected from the .ll assembly form.
I documented the results for a simple SSE test with an example on SO:
Does the LLVM OCaml binding include intrinsic support? - Stack Overflow
Thanks.