Currently I’m trying to coax the LLVM MCJIT (via the llvm-c interface) into generating AVX2 code.
My understanding is:
-
There seems to be two ways to do this: by either setting a module attribute or by using LLVMCreateTargetMachine().
-
Which is the preferred way of doing this?
-
Is there a good resource on how to do this?
All help appreciated.
Toshi