<br><br><div class="gmail_quote">On Sat, Jul 25, 2009 at 7:47 PM, Chris Lattner <span dir="ltr"><<a href="mailto:clattner@apple.com">clattner@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="word-wrap: break-word;"><div class="im"><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: 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: 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>
</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 color="#144fae"></font></div></div></div></div></blockquote><div><br><br>

Ok, Thanks.<br>
<br>
Kind regards,<br>
Maurice<br>
<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div style="word-wrap: break-word;"><div><div><div><font color="#144fae"><br></font></div>
<font color="#888888"><div><font color="#144fae">-Chris</font></div></font></div></div></div><br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div><br>