<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks!<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Tehila.<o:p></o:p></span></p><p class=MsoNormal dir=RTL style='text-align:right;direction:rtl;unicode-bidi:embed'><span dir=LTR style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal dir=RTL style='text-align:right;direction:rtl;unicode-bidi:embed'><b><span dir=LTR style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From</span></b><span dir=RTL></span><span dir=RTL></span><b><span lang=HE style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><span dir=RTL></span><span dir=RTL></span>:</span></b><span lang=HE style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> </span><span dir=LTR style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Eli Bendersky [mailto:eliben@google.com</span><span dir=RTL></span><span dir=RTL></span><span lang=HE style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><span dir=RTL></span><span dir=RTL></span>] <br></span><b><span dir=LTR style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Sent</span></b><span dir=RTL></span><span dir=RTL></span><b><span lang=HE style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><span dir=RTL></span><span dir=RTL></span>:</span></b><span lang=HE style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> </span><span dir=LTR style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Friday, December 27, 2013 1:34 AM</span><span lang=HE style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><br></span><b><span dir=LTR style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>To</span></b><span dir=RTL></span><span dir=RTL></span><b><span lang=HE style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><span dir=RTL></span><span dir=RTL></span>:</span></b><span lang=HE style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> </span><span dir=LTR style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Tehila Mayzels</span><span lang=HE style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><br></span><b><span dir=LTR style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Cc</span></b><span dir=RTL></span><span dir=RTL></span><b><span lang=HE style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><span dir=RTL></span><span dir=RTL></span>:</span></b><span lang=HE style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> </span><span dir=LTR style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>LLVM Developers Mailing List</span><span lang=HE style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><br></span><b><span dir=LTR style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Subject</span></b><span dir=RTL></span><span dir=RTL></span><b><span lang=HE style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'><span dir=RTL></span><span dir=RTL></span>:</span></b><span lang=HE style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> </span><span dir=LTR style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Re: [LLVMdev] Arguments to IRBuilder CreateCall function<o:p></o:p></span></p><p class=MsoNormal dir=RTL style='text-align:right;direction:rtl;unicode-bidi:embed'><span dir=LTR><o:p> </o:p></span></p><div><p class=MsoNormal><o:p> </o:p></p><div><p class=MsoNormal style='margin-bottom:12.0pt'><o:p> </o:p></p><div><p class=MsoNormal>On Thu, Dec 26, 2013 at 2:01 PM, Tehila Mayzels <<a href="mailto:tehila@cs.technion.ac.il" target="_blank">tehila@cs.technion.ac.il</a>> wrote:<o:p></o:p></p><div><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>Hi,<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'> <o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>I need to pass some arguments to CreateCall function (as Value *).<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>For example, I need to pass a 64 bit integer (with a value I calculate).<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'>How can I convert the 64 bit integer to a value * in order to pass it?<o:p></o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><o:p> </o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>If I understand you correctly, you're looking for the getInt64 method (see <a href="http://llvm.org/docs/doxygen/html/classllvm_1_1IRBuilderBase.html#a675da14f55ad277eae001b705c42be8b">http://llvm.org/docs/doxygen/html/classllvm_1_1IRBuilderBase.html#a675da14f55ad277eae001b705c42be8b</a>).<o:p></o:p></p></div><div><p class=MsoNormal><o:p> </o:p></p></div><div><p class=MsoNormal>HTH,<o:p></o:p></p></div><div><p class=MsoNormal>Eli<o:p></o:p></p></div></div></div></div></div></body></html>