<meta http-equiv="content-type" content="text/html; charset=utf-8"><font class="Apple-style-span" face="arial, sans-serif">Hello,<br></font><div><div><div><div><font class="Apple-style-span" face="arial, sans-serif">I need create a CallInst to this function</font></div>
<div><font class="Apple-style-span" face="arial, sans-serif"><br></font></div><div><font class="Apple-style-span" face="arial, sans-serif">define i32 @function(i32 %n, i8 %m){ ... }</font></div><div><br></div><div>I now how get argument's type but <span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; ">I do not know how to create arguments that meet these types.</span></div>
<div><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; "><meta http-equiv="content-type" content="text/html; charset=utf-8">For example, if the argument is long, accurate pass CallInst an integer argument, however, if a Char, Char must pass an argument.</span></div>
<div><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; "><meta http-equiv="content-type" content="text/html; charset=utf-8">How to get the type of the argument of the function definition and create the same type to pass the Callinst???</span></div>
<div><span class="Apple-style-span" style="color: rgb(34, 34, 34); font-family: arial, sans-serif; font-size: 13px; "><br></span></div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div>-- <br>
<font size="2"><b><i>Rafael Parizi</i></b></font><br><br><br><br>
</div></div></div>