<div dir="ltr">I have resolved the problem.<div style>It must create a ConstantVector, then use the setInitializer() api of the vectortype to set the value.</div><div style>Thanks. </div></div><div class="gmail_extra"><br>
<br><div class="gmail_quote">2013/8/6 Shining <span dir="ltr"><<a href="mailto:shining.llvm@gmail.com" target="_blank">shining.llvm@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">I want to set value for a vectortype.<div>It is a global variable, it contains several basic type, like float.</div><div>If can set value element by element, it is better.<span class="HOEnZb"><font color="#888888"><br clear="all">
<div><br></div>-- <br>
<div dir="ltr">Shining(Ê·Äþ)<div>Changchun, Jilin, China<br><div><br></div></div></div>
</font></span></div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">Shining(Ê·Äþ)<div>Changchun, Jilin, China<br><div><br></div></div></div>
</div>