search for: runtimefunctyp

Displaying 1 result from an estimated 1 matches for "runtimefunctyp".

Did you mean: runtimefunctype
2010 Aug 19
1
[LLVMdev] Function Arguments
...clare the function as external vector<const Type*> runTimeFuncArgs; runTimeFuncArgs.push_back(Type::getInt32Ty(getGlobalContext())); // int type, first arg runTimeFuncArgs.push_back(ArrayType::get(Type::getInt8Ty(getGlobalContext()), str.length() + 1)); // 2nd arg as an array FunctionType *runTimeFuncType = FunctionType::get(Type::getInt32Ty(getGlobalContext()), runTimeFuncArgs, false); Function *runTimeFunc = Function::Create(runTimeFuncType, Function::ExternalLinkage, "myfunc", F.getParent()); // Call the function vector <Value *> params; int num = 0; params.push_back(Constant...