<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On Jul 25, 2009, at 5:44 AM, Maurice Gittens wrote:</div><blockquote type="cite"><div class="gmail_quote"><div>Assuming that I have a threaded JIT server which has an llvmContext object <br>on the stack of every JITting thread in the server. <br> <br><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-indent: 0px; ">When using the 2.5. API like:<br></div><p style="margin: 0px; text-indent: 0px;"></p><p style="margin: 0px; text-indent: 0px;"></p><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; text-indent: 0px; ">   C = llvm::ConstantInt::get(llvm::Type::Int32Ty, 0);</div><br>I need to assume that there exists some global llvmContext object which holds<br>the predefined llvm types.<br><br>Does this entail that in my threaded server I need to create new  types for<br> llvm::Type::Int32Ty and the like,  which are associated with the llvm::Context on the stack?<br></div></div></blockquote><div><br></div></div>Yes, you'll have to write something like:<div><br></div><div>C = llvm::ConstantInt::get(llvm::Type::getInt32Ty(Context), 0);<div><div><font class="Apple-style-span" color="#144FAE"><br></font></div><div><font class="Apple-style-span" color="#144FAE">-Chris</font></div></div></div></body></html>