search for: pfuncobj

Displaying 3 results from an estimated 3 matches for "pfuncobj".

2009 Mar 15
0
[LLVMdev] Strange LLVM Crash
...istering in my execution engine by doing: // Create a function type object for the function llvm::FunctionType* pFuncType = llvm::FunctionType::get(returnType, argTypes, false); // Create a function object with external linkage and the specified function type llvm::Function* pFuncObj = llvm::Function::Create( pFuncType, llvm::Function::ExternalLinkage, name, s_pModule ); // Add a global mapping in the execution engine for the function pointer s_pExecEngine->addGlobalMapping(pFuncObj, pFuncPtr); Where pFuncPtr is a void pointer to the n...
2009 Mar 14
3
[LLVMdev] Strange LLVM Crash
Nyx wrote: > The linkage type is set to external, I have little code snippet I use to > register those native functions in the first post of this topic. The global > DCE pass deletes the unused native functions when run. I commented it out > for now... Can you make this happen by writing a custom .ll to demonstrate the problem? For example: $ cat gdce.ll define i32 @foo() {
2009 Mar 14
5
[LLVMdev] Strange LLVM Crash
...instructions to those native C++ functions. // Create a function type object for the function llvm::FunctionType* pFuncType = llvm::FunctionType::get(returnType, argTypes, false); // Create a function object with external linkage and the specified function type llvm::Function* pFuncObj = llvm::Function::Create( pFuncType, llvm::Function::ExternalLinkage, name, s_pModule ); // Add a global mapping in the execution engine for the function pointer s_pExecEngine->addGlobalMapping(pFuncObj, pFuncPtr); The crash does not occur the first time I...