[LLVMdev] extract thread form sequential program

Duncan Sands baldrick at free.fr
Mon Jan 24 02:18:19 PST 2011


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.



More information about the llvm-dev mailing list