<p dir="ltr">A vector type in LLVM can only have a single element type. You'll have to return a struct type.</p>
<div class="gmail_quote">On 10 Sep 2013 21:19, "emily thomas" <<a href="mailto:emilythomas007@gmail.com">emilythomas007@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div><div><div>I have an AST, and I walk it to generate llvm-IR. For function definitions, I need to be able to generate functions :<br></div>vector<datatypes> foo (param_list)<br></div>i.e. my return value is a vector of different datatype.s, similar to the param list.<br>

</div>My question is, what do i put my elelment type in the vector? It can be a vector of any of the element types.. i.e. the first value can be a float, the second char* etc..<br><br>VectorType* vt = VectorType::get(..)<br>

 FunctionType* ft = FunctionType::get (vt,..)<br>Function *f = Function::Create (..)<br><br><br></div>
<br>_______________________________________________<br>
LLVM Developers mailing list<br>
<a href="mailto:LLVMdev@cs.uiuc.edu">LLVMdev@cs.uiuc.edu</a>         <a href="http://llvm.cs.uiuc.edu" target="_blank">http://llvm.cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev</a><br>
<br></blockquote></div>