<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div>Hi,</div><div><br></div><div>I want to compute the bitwise 'and' between two values of type int1:  %x = and %a, %b  . <br></div><div>Which is the LLVM instruction that creates this? I only found the APInt class, whose constructor is:</div><div><br></div><div> APInt(unsigned numBits, uint64_t val, bool isSigned = false)</div><div><br></div><div>and which provides the bitwise AND operation:</div><div><br></div><table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td class="memItemLeft" align="right" valign="top">APInt </td><td class="memItemRight" valign="bottom"><a class="el" href="http://llvm.org/docs/doxygen/html/namespacellvm_1_1APIntOps.html#a684cfe02c582e8d75cd6d457e63e6c25">llvm::APIntOps::And</a> (const APInt &LHS, const APInt &RHS)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Bitwise AND function for <a class="el" href="http://llvm.org/docs/doxygen/html/classllvm_1_1APInt.html" title="Class for arbitrary precision integers.">APInt</a>.  </td></tr></tbody></table><div><br></div><div>Is this the best way to build the 'and' instruction that I need? If so, how can I send the value uint64_t stored in the values %a , %b of type int1 ?</div><div><br></div><div>Thank you.</div><div><br></div><div>Alexandra<br></div><div><br></div><div></div></div></body></html>