Hi, I need to pass some arguments to CreateCall function (as Value *). For example, I need to pass a 64 bit integer (with a value I calculate). How can I convert the 64 bit integer to a value * in order to pass it? Thanks a lot, Tehila. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131227/d03e9eae/attachment.html>
On Thu, Dec 26, 2013 at 2:01 PM, Tehila Mayzels <tehila at cs.technion.ac.il>wrote:> Hi, > > > > I need to pass some arguments to CreateCall function (as Value *). > > For example, I need to pass a 64 bit integer (with a value I calculate). > > How can I convert the 64 bit integer to a value * in order to pass it? > > >If I understand you correctly, you're looking for the getInt64 method (see http://llvm.org/docs/doxygen/html/classllvm_1_1IRBuilderBase.html#a675da14f55ad277eae001b705c42be8b ). HTH, Eli -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131226/eebc46b4/attachment.html>
Thanks! Tehila. From: Eli Bendersky [mailto:eliben at google.com] Sent: Friday, December 27, 2013 1:34 AM To: Tehila Mayzels Cc: LLVM Developers Mailing List Subject: Re: [LLVMdev] Arguments to IRBuilder CreateCall function On Thu, Dec 26, 2013 at 2:01 PM, Tehila Mayzels <tehila at cs.technion.ac.il> wrote: Hi, I need to pass some arguments to CreateCall function (as Value *). For example, I need to pass a 64 bit integer (with a value I calculate). How can I convert the 64 bit integer to a value * in order to pass it? If I understand you correctly, you're looking for the getInt64 method (see http://llvm.org/docs/doxygen/html/classllvm_1_1IRBuilderBase.html#a675da14f55ad277eae001b705c42be8b). HTH, Eli -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131229/88685778/attachment.html>