[LLVMdev] How to create arguments CallInst

Rafael Baldiati Parizi parizi.computacao at gmail.com
Thu Oct 6 09:48:00 PDT 2011

I need create a CallInst to this function

define i32 @function(i32 %n, i8 %m){ ... }

I now how get argument's type but I do not know how to create arguments that
meet these types.
For example, if the argument is long, accurate pass CallInst an integer
argument, however, if a Char, Char must pass an argument.
How to get the type of the argument of the function definition and create
the same type to pass the Callinst???

*Rafael Parizi*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111006/bc77edaa/attachment.html>

More information about the llvm-dev mailing list