search for: ctor_llvmvalueref

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

2012 Mar 28
0
[LLVMdev] GSoC 2012 Proposal: Python bindings for LLVM
...obj1, *obj3; LLVMModuleRef arg1; const char *arg2; LLVMTypeRef arg3; if (!PyArg_ParseTuple(args, "OsO", &obj1, &arg2, &obj3)) return NULL; arg1 = ( LLVMModuleRef ) PyCObject_AsVoidPtr(obj1); arg3 = ( LLVMTypeRef) PyCObject_AsVoidPtr(obj3); return ctor_LLVMValueRef( LLVMAddFunction (arg1, arg2, arg3)); } * We get the function* _wLLVMAddFunction* that we are looking for. As is show in the last statement of this function: *return ctor_LLVMValueRef( LLVMAddFunction (arg1, arg2, arg3));* we finally get the C function that my_module.add_function in the example...