Interesting, I didn’t know llvm is that flexible.
Still, LLVM is a huge dependency to redistribute. And probably has many points of failure. For instance, I expect you gonna need to watch for INCLUDE and PATH environment variables when using that thing.
In .NET everything is in the standard library. The generated code is even platform-independent, for no additional overhead. Here’s couple non-trivial examples:
https://github.com/Const-me/ComLightInterop/blob/master/ComL...
https://github.com/Const-me/ComLightInterop/blob/master/ComL...