title: Multithreading in LLVM
body: <p>I need to generate LLVM code that will serve a lot of threads/tasks (hundreds of thousands). These threads should be lightweight like Intel TBB's tasks, golang gorutines or other. Of course they can be implemented with external C++ libraries like mentioned Intel TBB (if it is compatible with LLVM).</p>
  
  <p>I was searching for long time for any information about threading in LLVM and I haven't found much. In <a href="http://llvm.org/docs/ProgrammersManual.html#threading" rel="noreferrer">the documentation of LLVM</a> there are described some API calls but I think it's not what I'm looking for.</p>
  
  <p>So there are few questions:</p>
  
  <ol>
  <li>Is it possible to use technologies like Intel's TBB or Cilk together with LLVM?</li>
  <li>What threading library should I use in this situation?</li>
  </ol>