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