Displaying 3 results from an estimated 3 matches for "pfunctyp".
Did you mean:
pfunctype
2009 Mar 15
0
[LLVMdev] Strange LLVM Crash
I don't know how to do that. Rather new to LLVM. The functions that get
stripped out are native C++ functions that I'm registering 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
);...
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
...s as LLVM functions through the addGlobalMapping method
of an execution engine object. I then keep a pointer to those LLVM function
objects, which I use later on to create call 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
);...