Hi neda 8664, > how i can assign instruction of program to a thread? LLVM doesn't have special support for threads, you need to call library functions the same as you would from C. I suggest you write some C code that does what you want, then run it through http://llvm.org/demo/ to see the corresponding LLVM IR. Ciao, Duncan.