[LLVMdev] function creation question
emilythomas007 at gmail.com
Tue Sep 10 13:16:40 PDT 2013
I have an AST, and I walk it to generate llvm-IR. For function definitions,
I need to be able to generate functions :
vector<datatypes> foo (param_list)
i.e. my return value is a vector of different datatype.s, similar to the
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..
VectorType* vt = VectorType::get(..)
FunctionType* ft = FunctionType::get (vt,..)
Function *f = Function::Create (..)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev