<div dir="ltr">Hello,<div><br></div><div>Can someone point me to some good tutorials for JIT in LLVM.</div><div><br></div><div>My understanding of JIT is it is like llc; it takes optimized bit code (generated via opt) and compiles it at run time instead of static compilation. for example i have a loop which adds 2 user  input numbers. so my cpp file becomes:</div><div><br></div><div>int main()</div><div>{</div><div>num1[1000], num2[1000];</div><div>//take input in these arrays at run time using scanf.</div><div><br></div><div><div>scanf("%d",num1);</div><div>scanf("%d",num2);</div></div><div><br></div><div>for (int i=0;i<1000;i++);</div><div>{</div><div>num1+num2;</div><div>}</div><div><br></div><div>so if i pass this through opt for auto vectorization. i keep vector width=32, i get optimized IR. </div><div>then instead of passing the IR through llc i pass it through jit (lli). now i get run  time compilation. at run time my vectorized IR code <32xi32>emits vector assembly something like avx/ simd instructions.</div><div><br></div><div>Am i right? please guide me.</div><div><br></div><div>Thank You</div><div><br></div><div><br></div></div>