Displaying 20 results from an estimated 80 matches similar to: "LLVMLinkModules2() C-API question"
2015 Jun 11
2
[LLVMdev] Question about usage of LLVMLinkModules()
Hello Duncan,
Thank you for your reply. I did figure it out in the end. It was a linkage
conflict between the modules. There were some global types that I was
declaring in both modules. After removing them, linking worked perfectly.
Still it's a mystery why I got no error string pointing me to the reason
the linking failed in the first place.
Best Regards,
Lefteris(Eleftherios) Karapetsas
2015 Jun 08
3
[LLVMdev] Question about usage of LLVMLinkModules()
Hello all,
I am using llvm as a backend to a hobby language I am making. I have
experimented with the C bindings since the project is written in C. I had
no problems building a single lllvm module so far. I am not using a JIT
compiler but at least at the moment am simply generating executables. The
workflow I am using is to build a module with LLVMModuleCreateWithName()
and populate it with the
2008 Feb 17
1
CommonModules common: move "plugins" to "lib"
I''m installing puppet modules from scratch on a new machine, using the
code at https://hg.koumbit.net/module-puppet/ btw.
The bootstrap script grabs a few base modules (to do dvcs checkouts) from
http://reductivelabs.com/trac/puppet/wiki/CommonModules , uses the new
modules to get the rest.
However, the modules as checked out don''t bootstrap cleanly.
The fix is simple, just
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)
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
2010 Jan 10
2
[LLVMdev] Using a function from another module
On Sun, Jan 10, 2010 at 8:58 AM, Michael Muller <mmuller at enduden.com> wrote:
>
> 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
2018 Mar 22
1
How to extract functions from Module A and put them into Module B, and generate a new IR file?
Hi all,
This is Michael and very happy to share my question here!
My question is, is there a way to "extract" a function from Module A and
write it into another Module B, and generate two new IR files? IRBuilder
seems like a workable way but I have to create instructions one by one. I
am new to LLVM so don't know whether it is doable, here is my experimental
code:
2010 Feb 03
0
[LLVMdev] Interpreter with multiple modules.
Hi James,
> This is interesting. I've just implemented dynamic loading of bitcode modules into lli for my project. I did this by hacking lli using the Linker class. Is ExecutionEngine::addGlobalMapping() preferred for this purpose?
I'm not sure about the preferred way, but at least for the JIT, here is an email from Jeffrey
concerning a previous thread. The issue in that thread was
2010 Jan 10
0
[LLVMdev] Using a function from another module
Won't passing llvm::Function* around vs strings (function names), also work, at code generation time,
without the need for a module A dec to module B impl. mapping?
Garrison
On Jan 10, 2010, at 10:31, Kenneth Uildriks wrote:
> On Sun, Jan 10, 2010 at 8:58 AM, Michael Muller <mmuller at enduden.com> wrote:
>>
>> Michael Muller wrote:
>>>
>>> Hi all,
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
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
2010 Jan 11
0
[LLVMdev] Using a function from another module
The JIT tries to handle this in some cases
(http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/ExecutionEngine.cpp?annotate=92771#l942),
but doesn't handle it for functions. There aren't any tests, so I'm
not surprised it's broken.
The JIT would be simpler if we just dropped multiple-module support
and asked people to link their modules together before trying to
2020 Sep 29
3
ORC JIT - different behaviour of ExecutionSession.lookup?
Hey Lang,
Thank you for your help and your patience – also for your answers in the “ORC JIT - Can modules independently managed with one LLJIT instance? + problems with ExecutionSession.lookup” mail. Both problems have the same origin so I keep writing about it here, to avoid duplication.
My big problem is still handling cross references between modules with “our” name scheme. Since our old
2018 Apr 04
0
weird behaviour of llvm::linker::LinkInModule()
<div>Hello!</div><div>I created a new llvm module (<strong>A</strong>) - to create a 'glue' code.</div><div>I want to call some functions from another module (<strong>B</strong>);</div><div>I load module <strong>B</strong> withing the same LLVMContext, and create a function declaration in module A
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
2007 Dec 05
8
How does one use a module?
Greetings -
Maybe I''m a bit slow, but I''ve been trying to understand how to use a
module for the better part of a day and I''m not getting it. Here''s
what I''ve done:
Using puppet 0.23.2
1. Downloaded the shorewall module from David Schmitt''s git repo
(Thanks David!!!!) and placed it in the directory
/var/lib/puppet/modules (using the rpm
2020 Sep 30
2
ORC JIT - different behaviour of ExecutionSession.lookup?
Hey Lang,
> Do you mean that the object file is produced by another process and is being loaded into your JIT process for execution, or that you want your JIT to produce code for several different processes? These are different problems with different solutions. I'll wait until I understand your use case to answer further.
In the current state we don’t have a JIT only an handcrafted object
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