search for: p_function

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

Did you mean: __function
2008 Feb 25
0
[LLVMdev] Calling functions
...nt with some corruption, sorry for it. It it happens again I'll use another e-mail. Thanks for your reply, Benjamin. I've tried that approach to the c++ function calls. I ended up with this code: ####### float test( float input ) { return 0.0; } [...] typedef float (*P_FUNCTION) ( float ); P_FUNCTION pt2Function = &test; intptr_t functionInt = (intptr_t)pt2Function; Constant *functionConstant = ConstantInt::get( APInt( sizeof(intptr_t), functionInt) ); const Type *ArgTy = Type::FloatTy; PointerType* arg = PointerType::get( ArgTy, 0 ); functionConstant...