Displaying 11 results from an estimated 11 matches for "releasemodul".
Did you mean:
releasemodule
2010 Oct 08
1
[LLVMdev] linking into module of execution engine
Hi!
at first i create an execution engine on a module
(llvm::ExecutionEngine::create(module)).
1) is it allowed to modify the module, e.g. add a function?
2) is it allowed to construct a linker on this module, link something
in, call linker.releaseModule()
and destruct the linker again?
-Jochen
2011 Nov 11
2
[LLVMdev] Argument's types mismatch when creating CallInst.
...Finally, i do
CallInst::Create(fooFunction, args_vector, "", currentBB);
Everything seems to be fine so far.
Now i link two modules together and run Verifier:
llvm::Linker linker("myModule", runtimeModule);
linker.LinkInModule(myModule, &err);
llvm::verifyModule(*linker.releaseModule());
This gives me error:
Call parameter type does not match function signature!
%"arg1" = alloca %type
%"type 0x801e9b550"* %0 = call i32 @foo(%type* %"~3", %type* %"arg2",
%type* %"arg3")
What's interesting - if i dump myModule before ve...
2009 Jul 27
2
[LLVMdev] Pass Scheduling Information without using opt
...ule(mod) {
for some Functions f in mod {
(do some stuff)
ExistingModuleProvider mp(mod);
FunctionPassManager* fpm =
new FunctionPassManager(&mp);
fpm->add(createLowerSwitchesPass());
fpm->add(createBreakCriticalEdgesPass());
fpm->add(createLoopSimplifyPass());
fpm2->run(*f);
mp.releaseModule();
(do more stuff)
}
}
}
Now what I want to have is some runtime-output of the pass manager that
tells me what passes were run in what order, give me timing information
if possible etc.
I hope my explanation is better this time :).
Cheers,
Ralf
2009 Jul 26
0
[LLVMdev] Pass Scheduling Information without using opt
On Sun, Jul 26, 2009 at 1:48 PM, Ralf Karrenberg<Chareos at gmx.de> wrote:
> Hey Daniel,
>
> thanks for the response.
>
>> I believe all you need to do is call llvm::llvm_shutdown().
>>
> I am not sure that this is what I need. When and how should I call
> llvm_shutdown()?
At the end of the program, this just arranges for LLVM's "managed
statics"
2009 Jul 27
0
[LLVMdev] Pass Scheduling Information without using opt
...PassManager(&mp);
I think creating a new Function Pass Manager inside a module pass is
not ideal, however...
>
> fpm->add(createLowerSwitchesPass());
> fpm->add(createBreakCriticalEdgesPass());
> fpm->add(createLoopSimplifyPass());
>
> fpm2->run(*f);
>
> mp.releaseModule();
>
> (do more stuff)
> }
>
> }
>
> }
>
>
> Now what I want to have is some runtime-output of the pass manager that
> tells me what passes were run in what order, give me timing information
> if possible etc.
You can set global PassDebugging enum. The pass man...
2011 Nov 11
0
[LLVMdev] Argument's types mismatch when creating CallInst.
...(fooFunction, args_vector, "", currentBB);
>
> Everything seems to be fine so far.
> Now i link two modules together and run Verifier:
>
> llvm::Linker linker("myModule", runtimeModule);
> linker.LinkInModule(myModule, &err);
> llvm::verifyModule(*linker.releaseModule());
>
> This gives me error:
> Call parameter type does not match function signature!
> %"arg1" = alloca %type
> %"type 0x801e9b550"* %0 = call i32 @foo(%type* %"~3", %type* %"arg2",
> %type* %"arg3")
>
> What's inte...
2012 Dec 13
0
[LLVMdev] Memory leaks after llvm_shutdown
...ir(string(argv[next_module_idx]), false));
next_module_idx++;
}
Linker::ItemList natives;
if(llvm_linker.LinkInItems(linkItems, natives)){
cout << "Linking error! " << llvm_linker.getLastError()<< "\n";
return 3;
}
}
Module *m = llvm_linker.releaseModule();
string err;
ExecutionEngine *ee = EngineBuilder(m).setEngineKind(EngineKind::JIT).setErrorStr(&err).create();
ee->DisableGVCompilation(false);
ee->DisableLazyCompilation(true);
Function* func = ee->FindFunctionNamed(argv[1]);
if(!func){
cout<<"cannot find entr...
2009 Jul 26
2
[LLVMdev] Pass Scheduling Information without using opt
Hey Daniel,
thanks for the response.
> I believe all you need to do is call llvm::llvm_shutdown().
>
I am not sure that this is what I need. When and how should I call
llvm_shutdown()?
After the FunctionPassManager is done, the calling ModulePass still
performs quite a few actions on the transformed code and also calls the
FunctionPassManager on different functions. However, I need
2006 May 09
1
[LLVMdev] Memory leaks in LLVM
...vm::BytecodeReader::ParseFunctionBody(llvm::Function*) (Reader.cpp:1828)
==10132== by 0x83E53D0: llvm::BytecodeReader::ParseAllFunctionBodies() (
Reader.cpp:1981)
==10132== by 0x8406354: llvm::BytecodeReader::materializeModule() (
Reader.h:167)
==10132== by 0x84074C9: llvm::ModuleProvider::releaseModule() (
ModuleProvider.h:53)
==10132== by 0x8406370: llvm::BytecodeReader::releaseModule() (Reader.h
:177)
==10132== by 0x83EA353: llvm::ParseBytecodeFile(std::string const&,
std::string*) ( ReaderWrappers.cpp:298)
==10132== by 0x83D0920: main (opt.cpp:87)
==10132==
==10132==
==10132== 8,...
2007 Jul 27
0
Wine release 0.9.42
...ed by IBindStatusCallback.
urlmon: Wrap IHttpNegotiate2 interface exposed by IBindStatusCallback as done by native.
urlmon: If we are using an internal protocol ClassFactory, call its AddRef as the caller must Release the object.
urlmon: LockModule in create_binding_protocol as we ReleaseModule when the object is released.
urlmon: Release IInternetProtocolInfo returned from get_protocol_info when finished with it.
urlmon/tests: Release two objects that should be released but are not.
urlmon: Don't free structures that are used by asynchronous HttpSendRequest until w...
2007 Jul 05
2
[LLVMdev] PATCH (rest of code changes) "bytecode" --> "bitcode"
Here is the bulk of the sanitizing.
My residual doubts center around the question
whether we still do/want to support (un)compressed *byte*code
in 2.0/2.1.
I need a definitive word on this to proceed.
My understanding is that bytecode is already gone, but there are
still some functions/enums that really deal with *byte*code
(instead of *bit*code).
I did not touch those areas, so the attached