[LLVMdev] About JIT by LLVM 2.9 or later

Óscar Fuentes
Wed, 02 Nov 2011 02:22:44 -0000

> Could I wrap LLVM with mingw and expose some C api to called by MSVC?
>
> And in mingw, I will override the signature float4 foo( float44 ) to
> float4* foo( float4*, float44* ); ?
>
> Is that OK?

If you pass and return the structs through pointers, you don't need
MinGW in the middle, you can use MSVC directly. Please note that using
MinGW will not fix the LLVM sret problem.