<div>Hi, all.</div>
<div>I have noticed that LLVM supports some Intrinsic Functions such as <em><strong>"</strong></em><font face="Courier New"><em><strong>llvm.sadd.with.overflow"</strong></em> described in <font face="Arial"><a href="http://llvm.org/docs/LangRef.html#int_sadd_overflow">http://llvm.org/docs/LangRef.html#int_sadd_overflow</a></font></font>. We can use these functions and needn't define the function bodies. </div>

<div> </div>
<div>For example, I can manually insert codes:</div>
<div> </div>
<div>    <em><strong> %res = call {i32, i1} @llvm.sadd.with.overflow.i32(i32 %a, i32 %b)<br>     %sum = extractvalue {i32, i1} %res, 0<br>     %obit = extractvalue {i32, i1} %res, 1<br>     br i1 %obit, label %overflow, label %normal</strong></em></div>

<div> </div>
<div>into an assembly file, and it works OK.</div>
<div> </div>
<div>And now, my question is "How to produce such a call instruction using the LLVM classes?"</div>
<div> </div>
<div>I have also noticed that LLVM provides some classes like "<em><strong>MemCpyInst"</strong></em> to wrap the "<em><strong>llvm.memcpy"</strong></em> Intrinsic. But other intrinsic functions such as <em><strong>"</strong></em><font face="Courier New"><em><strong>llvm.sadd.with.overflow"</strong></em> I've mentioned above don't have the corresponding classes. How to deal with it?</font></div>

<div><font face="Courier New"></font> </div>
<div><font face="Courier New">Anyone could help me? Thank you!</font></div>