Displaying 19 results from an estimated 19 matches for "modulea".
Did you mean:
module
2010 Jan 09
4
[LLVMdev] Using a function from another module
Hi all,
I'm trying to use a function defined in one LLVM module from another module
(in the JIT) but for some reason it's not working out. My sequence of
activity is roughly like this:
1) Create moduleA
2) Create moduleB with "func()"
3) execEng = ExecutionEngine::create(
new ExistingModuleProvider(moduleB));
4) execute "func()" (this works fine)
4) add "func()" to moduleA as a declaration (no code blocks) with External
linkage.
5) execEng->...
2010 Jan 10
0
[LLVMdev] Using a function from another module
Michael Muller wrote:
>
> Hi all,
>
> I'm trying to use a function defined in one LLVM module from another module
> (in the JIT) but for some reason it's not working out. My sequence of
> activity is roughly like this:
>
> 1) Create moduleA
> 2) Create moduleB with "func()"
> 3) execEng = ExecutionEngine::create(
> new ExistingModuleProvider(moduleB));
> 4) execute "func()" (this works fine)
> 4) add "func()" to moduleA as a declaration (no code blocks) with External
>...
2010 Jan 10
2
[LLVMdev] Using a function from another module
...Michael Muller wrote:
>>
>> Hi all,
>>
>> I'm trying to use a function defined in one LLVM module from another module
>> (in the JIT) but for some reason it's not working out. My sequence of
>> activity is roughly like this:
>>
>> 1) Create moduleA
>> 2) Create moduleB with "func()"
>> 3) execEng = ExecutionEngine::create(
>> new ExistingModuleProvider(moduleB));
>> 4) execute "func()" (this works fine)
>> 4) add "func()" to moduleA as a declaration (no code blocks)...
2016 Jun 04
2
LLVMLinkModules2() C-API question
...CommonModule
|
-----------------
| |
ModuleA Module B
1) Create and verify common module.
2) Create ModuleA, Link CommonModule to ModuleA and verify the new module.
3) Now we have a problem. Even though we wanted to repeat step (2) for
Module B this fails due to CommonModule being "damaged" as the
documentation says. Even thou...
2018 Mar 22
1
How to extract functions from Module A and put them into Module B, and generate a new IR file?
...here is my experimental
code:
runOnModule(Module &M){
...
LLVMContext& context = getGlobalContext();
llvm::raw_fd_ostream osA("A.bc", "", llvm::sys::fs::F_None);
llvm::raw_fd_ostream osB("B.bc", "", llvm::sys::fs::F_None);
llvm::Module *ModuleA = new llvm::Module("A", context);
llvm::Module *ModuleB = new llvm::Module("B", context);
ModuleA->setDataLayout(M.getDataLayout());
ModuleA-->setTargetTriple(M.getTargetTriple());
ModuleA-->setModuleInlineAsm(M.getModuleInlineAsm());
ModuleB-->setDataLay...
2010 Feb 03
0
[LLVMdev] Interpreter with multiple modules.
...uden.com> wrote:
>>
>> Hi all,
>>
>> I'm trying to use a function defined in one LLVM module from another module
>> (in the JIT) but for some reason it's not working out. My sequence of
>> activity is roughly like this:
>>
>> 1) Create moduleA
>> 2) Create moduleB with "func()"
>> 3) execEng = ExecutionEngine::create(
>> new ExistingModuleProvider(moduleB));
>> 4) execute "func()" (this works fine)
>> 4) add "func()" to moduleA as a declaration (no code blocks) with...
2010 Jan 10
0
[LLVMdev] Using a function from another module
...>>> Hi all,
>>>
>>> I'm trying to use a function defined in one LLVM module from another module
>>> (in the JIT) but for some reason it's not working out. My sequence of
>>> activity is roughly like this:
>>>
>>> 1) Create moduleA
>>> 2) Create moduleB with "func()"
>>> 3) execEng = ExecutionEngine::create(
>>> new ExistingModuleProvider(moduleB));
>>> 4) execute "func()" (this works fine)
>>> 4) add "func()" to moduleA as a declarati...
2010 Feb 03
3
[LLVMdev] Interpreter with multiple modules.
On 3 February 2010 14:13, Garrison Venn <gvenn.cfe.dev at gmail.com> wrote:
> I have not used the C api or the interpreter, but via JIT one can use
> ExecutionEngine::addGlobalMapping(...) after the function decl in the
> foreign module. See if there is an equivalent in the C API, which will
> probably work for the interpreter given that this method is declared in
>
2011 Jul 08
0
[LLVMdev] Inter-module calls
Is there a preferred approach for an LLVM-based JIT-compiler to make
calls from run-time generated functions in module A to bitcode-loaded
functions in module B?
A naive CallInst across the boundary fails verification. Calling it as
an external function fails to resolve, even if both ModuleA and ModuleB
are in the same ExecutionEngine. I can think of two ways around this:
1. Create a constant function pointer in ModuleA using the value from
EE.getPointerToFunction(FunctionB). This seems trivial, but I am
concerned it will prevent many optimizations.
2. Copy functions from ModuleB...
2011 Jul 08
0
[LLVMdev] Inter-module calls
Is there a preferred approach for an LLVM-based JIT-compiler to make
calls from run-time generated functions in module A to bitcode-loaded
functions in module B?
A naive CallInst across the boundary fails verification. Calling it as
an external function fails to resolve, even if both ModuleA and ModuleB
are in the same ExecutionEngine. I can think of two ways around this:
1. Create a constant function pointer in ModuleA using the value from
EE.getPointerToFunction(FunctionB). This seems trivial, but I am
concerned it will prevent many optimizations.
2. Copy functions from ModuleB...
2010 Jan 11
0
[LLVMdev] Using a function from another module
..., Michael Muller <mmuller at enduden.com> wrote:
>
> Hi all,
>
> I'm trying to use a function defined in one LLVM module from another module
> (in the JIT) but for some reason it's not working out. My sequence of
> activity is roughly like this:
>
> 1) Create moduleA
> 2) Create moduleB with "func()"
> 3) execEng = ExecutionEngine::create(
> new ExistingModuleProvider(moduleB));
> 4) execute "func()" (this works fine)
> 4) add "func()" to moduleA as a declaration (no code blocks) with External
> li...
2020 Sep 29
3
ORC JIT - different behaviour of ExecutionSession.lookup?
...all addresses right away. With the LLJIT as I finally understand, I will only get the addresses when I have resolved every references, which makes the code way safer.
However, another thing of our system is, that each object file was loaded from a different process, so sometimes not all symbols for ModuleA were present because ModuleB was not loaded/requested yet. That was okay, so we kept resolving the undefined references of ModuleA until ModuleB was loaded and everything was fine.
If I get it right… This would change now to having a single LLJIT representing the entire system. Each process would...
2018 Apr 04
0
weird behaviour of llvm::linker::LinkInModule()
...notherModule = ModuleB.getFunction(callableName);</div><div> auto functionType = functionInAnotherModule->getFunctionType();</div><div> auto localFunction = llvm::Function::Create(functionType, llvm::GlobalValue::LinkageTypes::ExternalWeakLinkage, callableName, &ModuleA);</div><div> </div><div> Function seems to be copied, together with complex types its using:</div><div> ; ModuleID = 'JitModule'</div><div> source_filename = "JitModule" </div><div> %struct._EN12RecordStream...
2013 Mar 22
3
how to call a class from different module than current
Hi dear Users,
I''ve been looking in internet and on the puppet wiki website but i am still
confused about this.
Lets say I have 2 Modules: A and B
What I want to do is call a class on module A directly from module B.
I know it is possible to call different classes within a module by using
inheritance and using different .pp config files. But how I do not know how
to do the
2020 Sep 30
2
ORC JIT - different behaviour of ExecutionSession.lookup?
...all addresses right away. With the LLJIT as I finally understand, I will only get the addresses when I have resolved every references, which makes the code way safer.
However, another thing of our system is, that each object file was loaded from a different process, so sometimes not all symbols for ModuleA were present because ModuleB was not loaded/requested yet. That was okay, so we kept resolving the undefined references of ModuleA until ModuleB was loaded and everything was fine.
If I get it right… This would change now to having a single LLJIT representing the entire system. Each process would...
2020 Sep 28
2
ORC JIT - different behaviour of ExecutionSession.lookup?
Hey everyone,
I felt this question is different from my other question - hope this is okay.
So - I was playing around with the lookup function of the ExecutionSession and there are some things I don't understand.
I have a .BC file with a function "?Sampler@@YAXXZ" referencing a value "?_Plansch_test@@3HA" that is not defined in that module itself. I first planed on not
2006 Nov 14
11
RESTful mixin, mixin repo?
Hi,
I just put together a little mixin to provide pseudo-RESTful services
in camping apps. Basically, it looks for a hidden _verb field in form
posts, and sets the @method to the supplied value (e.g. put or delete
- which browsers don''t support). This lets you define put and delete
methods in your controllers. Groovy.
Code:
http://pastie.caboo.se/22613
Is there any permanent repo of
2020 Oct 01
2
ORC JIT - different behaviour of ExecutionSession.lookup?
...all addresses right away. With the LLJIT as I finally understand, I will only get the addresses when I have resolved every references, which makes the code way safer.
However, another thing of our system is, that each object file was loaded from a different process, so sometimes not all symbols for ModuleA were present because ModuleB was not loaded/requested yet. That was okay, so we kept resolving the undefined references of ModuleA until ModuleB was loaded and everything was fine.
If I get it right… This would change now to having a single LLJIT representing the entire system. Each process would...
2012 Oct 08
8
Invalid resource type anchor.
Hi group, im updating some modules of puppet, and i found this issue or
error, that i cannot get resolved it. My puppetmaster is 2.7.1 and client
2.7.18. I used other modulo to prover apt configurations but i think this
is more completed.
I know that the error is something missing or my class is not present or
something like that, the dependencies of the modulo are installed, stdlib
and i