search for: functy_7_arg

Displaying 2 results from an estimated 2 matches for "functy_7_arg".

Did you mean: functy_7_args
2012 May 09
0
[LLVMdev] Calling C-language variadic functions
...ernal vararg function that exists in a library that gets > linked to the LLVM module). > > Is there something special I need to do? Declare the function with the right type: FunctionType* FuncTy_7 = FunctionType::get( /*Result=*/IntegerType::get(mod->getContext(), 32), /*Params=*/FuncTy_7_args, /*isVarArg=*/true); Function* func_foo = Function::Create( /*Type=*/FuncTy_7, /*Linkage=*/GlobalValue::ExternalLinkage, /*Name=*/"foo", mod); // (external, no body) func_foo->setCallingConv(CallingConv::C); Note the `` /*isVarArg=*/true " part. These are excerpts tak...
2012 May 09
2
[LLVMdev] Calling C-language variadic functions
Such as printf, etc., from IR created using the API (IRBuilder). Google hasn't provided much help, and I can't find anything relevant in the docs (the docs talk about how to do varargs in LLVM ASM, but not how to call an external vararg function that exists in a library that gets linked to the LLVM module). Is there something special I need to do? Simply calling