Displaying 8 results from an estimated 8 matches for "s_pmodule".
Did you mean:
_module
2009 Mar 14
0
[LLVMdev] Strange LLVM Crash
...functions I'm registering in my module (the
functions that haven't been called/used yet). I'd like to find a way to
disable this so that all the native functions I register will stay in the
module.
Here are the optimization passes I'm running:
passManager.add(new llvm::TargetData(s_pModule));
passManager.add(llvm::createLowerSetJmpPass());
passManager.add(llvm::createRaiseAllocationsPass());
passManager.add(llvm::createCFGSimplificationPass());
passManager.add(llvm::createPromoteMemoryToRegisterPass());
passManager.add(llvm::createGlobalOptimizerPass());
passManager.add(llvm::c...
2009 Mar 14
3
[LLVMdev] Strange LLVM Crash
...e
>> linkage type on your functions? internal? Don't mark things internal
>> unless you don't mind if they go away. :)
>>
>> Nick
>>
>>> Here are the optimization passes I'm running:
>>>
>>> passManager.add(new llvm::TargetData(s_pModule));
>>> passManager.add(llvm::createLowerSetJmpPass());
>>> passManager.add(llvm::createRaiseAllocationsPass());
>>> passManager.add(llvm::createCFGSimplificationPass());
>>> passManager.add(llvm::createPromoteMemoryToRegisterPass());
>>> passManager...
2009 Mar 14
5
[LLVMdev] Strange LLVM Crash
...vm::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 JIT compile a function, but the
second or third time I compile some other function, I will get a crash whe...
2009 Mar 15
0
[LLVMdev] Strange LLVM Crash
...vm::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 native C++ function. I register
several of these native functions which are meant to be runtime support for...
2009 Mar 14
2
[LLVMdev] Strange LLVM Crash
...lly visible" functions should never be deleted. What's the
linkage type on your functions? internal? Don't mark things internal
unless you don't mind if they go away. :)
Nick
> Here are the optimization passes I'm running:
>
> passManager.add(new llvm::TargetData(s_pModule));
> passManager.add(llvm::createLowerSetJmpPass());
> passManager.add(llvm::createRaiseAllocationsPass());
> passManager.add(llvm::createCFGSimplificationPass());
> passManager.add(llvm::createPromoteMemoryToRegisterPass());
> passManager.add(llvm::createGlobalOptimizerPass());...
2009 Mar 16
0
[LLVMdev] Strange LLVM Crash
This is what I have so far:
// Add optimization passes to the function passes
s_pFunctionPasses->add(new llvm::TargetData(s_pModule));
s_pFunctionPasses->add(llvm::createCFGSimplificationPass());
s_pFunctionPasses->add(llvm::createPromoteMemoryToRegisterPass());
s_pFunctionPasses->add(llvm::createConstantPropagationPass());
s_pFunctionPasses->add(llvm::createDeadCodeEliminationPass());
s_pFunctionPasses->add...
2009 Mar 16
2
[LLVMdev] Strange LLVM Crash
On Mar 15, 2009, at 7:55 AM, Nyx wrote:
>
> Is there a webpage documenting these function passes?
Here's some:
http://llvm.org/docs/WritingAnLLVMPass.html#FunctionPass
You can also look in llvm/lib/Transforms/Scalar for runOnFunction ()
> Which ones should I run
> to maximize performance?
There's no right way to determine this. It depends on what you need/
want from your
2009 Mar 14
0
[LLVMdev] Strange LLVM Crash
...ver be deleted. What's the
> linkage type on your functions? internal? Don't mark things internal
> unless you don't mind if they go away. :)
>
> Nick
>
>> Here are the optimization passes I'm running:
>>
>> passManager.add(new llvm::TargetData(s_pModule));
>> passManager.add(llvm::createLowerSetJmpPass());
>> passManager.add(llvm::createRaiseAllocationsPass());
>> passManager.add(llvm::createCFGSimplificationPass());
>> passManager.add(llvm::createPromoteMemoryToRegisterPass());
>> passManager.add(llvm::createGlo...