Displaying 20 results from an estimated 3000 matches similar to: "Questions about moving from MCJIT to Orc JIT"
2019 Jun 27
2
Questions about moving from MCJIT to Orc JIT
Nice!
Let me try to answer some questions,
Before that I have to mention this is ORC version 2 APIs and this is where
the project is moving forward.
JITDylib is the symbol table, basically for a JIT Symbol it have an
associated materializers, (you can think of it like an entity that generate
the address for that symbol),
Example: compiler are materializers.
So to add symbols to your own JIT you
2019 Jun 27
2
Questions about moving from MCJIT to Orc JIT
Hi Bjoern,
CC'ing Lang hames
For questions,
1. In short yes, you can replace the memory manager, default one provided
is section memory manager.
2. If you mean by " address of already compiled code", yes you can do that.
Like this
JITDylib.define(absoluteSymbols, ( Your_own_symbol ,
JITTargetAddress(Address of function))), now ORC can resolve all the
references to Your_own_symbol
2020 Mar 18
4
[ORC JIT] -Resolving cross references in a multi-process scenario
Hi Bjoern,
Thanks for your patience. The good news is that there is a neater way to do
this: ExecutionSession's lookup methods take a orc::SymbolState parameter
which describes the state that symbols must reach before a query can return
(See
https://github.com/llvm/llvm-project/blob/d1a7bfca74365c6523e647fcedd84f8fa1972dd3/llvm/include/llvm/ExecutionEngine/Orc/Core.h#L1273).In
your case you
2019 Sep 12
2
Questions after completed Kaleidoscope Chapter 1
Hi Bjoren,
For question 1:
As you mentioned, it is used to mangle to the symbol name and interning
them, So ORC can find them at runtime in one of the JITDylibs. It would be
helpful to know what you tried? (please attach code lines).
For question 2:
I guess you might be missing to link libraries that your program depend on,
you can do that via setting up your dynamiclibrary search generator or
2019 Sep 12
2
Questions after completed Kaleidoscope Chapter 1
Hello there,
I finished Chapter 1 of the Kaleidoscope tutorial for using the Orc JIT API. I played around with some things and ended with some questions.
1. What is the use of "MangleAndInterner"?
I read it is used to mangle the name for the lookup search, but I seem to be not able to use it correctly. In my first attempt I used the mangled name of my function
2020 Mar 06
2
[ORC JIT] -Resolving cross references in a multi-process scenario
Hello LLVM-Mailing-List and Lang,
I have a very weird (or strict?) scenario and was curious if the ORC JIT can help me with it. Soo here it comes:
I have currently a windows process ("Runtime") which does nothing but creating a shared memory with read, write and execute rights - and also writing some function addresses like from printf to it.
Then I have two or more processes which
2019 May 08
2
Reuse llvm::ExecutionEngine
Heyho,
I can only provide you with a screenshot for the first problem I noticed:
[https://media.discordapp.net/attachments/534012750045642783/575369402195640321/unknown.png]
This code will crash when calling "eeBuilder.create".
But I also looked at what happens if I do reuse the llvm::ExecutionEngine. After the call to "finalizeObject" I use "removeModule" for the
2020 Sep 24
2
ORC JIT - Can modules independently managed with one LLJIT instance? + problems with ExecutionSession.lookup
Hey Lang,
I would be really happy to only have one LLJIT instance and using multiple JITDylibs. However… it seems like that I don’t know enough to use them. So I wonder…
1. When I add Module A to JITDylib A and Module B to JITDylib B – where will those look for undefined symbols? Will Module A for example: will it only search itself and the MainDylib? Or would it also search in JITDylib B?
2020 Sep 23
2
ORC JIT - Can modules independently managed with one LLJIT instance? + problems with ExecutionSession.lookup
Hi Lang,
Thank you for your answer! This helped me again a lot!! Also that ResourceTracker is a really neat feature! Looking forward to it! :3
I changed the title cause… there is another issue I have (sorry about that…)
I’m finally allowed to investigate the ORC JIT for integration into our system, which meant I got a few days to actually play around with it. However, another problem arise
2018 Dec 13
2
Setting a function in a module to extern
But in my module this function already exist… I first want to delete it but without also deleting the calls to it…
From: Boldizsar.Palotas at esa.int <Boldizsar.Palotas at esa.int>
Sent: Donnerstag, 13. Dezember 2018 10:53
To: Gaier, Bjoern <Bjoern.Gaier at horiba.com>
Cc: LLVM Developers Mailing List <llvm-dev at lists.llvm.org>
Subject: Re: [llvm-dev] Setting a function in a
2019 Jun 28
2
JIT crashing when compiling source code with Clang and -mretpoline flag
Heyho both Mailinglists,
I'm not sure if I encountered a bug or if I'm doing something wrong. I compiled a "Hello World"-function with Clang to LLVM-IR code, while passing the "-mretpoline" flag.
I tried jitting and calling that function with the KaleidoscopeJIT code, but when calling "lookup" for that function the application crashed.
I also tried that file
2020 Jul 03
3
Get all symbols stored(?)in llvm::orc::ExecutionSession
Hey everyone,
is there a way to get the name of all symbols that are stored ("stored" is not the right term - is it?) in my current ExecutionSession?
I know by now that you can use "lookup" to get symbols, but this requires knowing those names.
Mhh... I guess that is my shortest so far question xD Thank you in advance for any help!
Kind greetings
Björn
Als GmbH eingetragen
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
2019 Jan 15
2
Function - replaceAllUsesWith
On Mon, Jan 14, 2019 at 3:21 AM Gaier, Bjoern via llvm-dev <llvm-dev at lists.llvm.org<mailto:llvm-dev at lists.llvm.org>> wrote:
Hello LLVM-World,
currently I play around with a „llvm::Module” and an external function defined there “puts”. Normally this function gets resolved in the JIT-Process but I wonder about two things:
1. Can I resolve the function already in this step? I
2020 Aug 17
2
Get all symbols stored(?)in llvm::orc::ExecutionSession
Hi Bjoern,
Did you see my previous reply?
There's no way to do this currently. ORC assumes you know all the symbols,
> since you added the modules defining them.
> For testing / debugging you can dump the modules to stderr using
> ExecutionSession::dump, but that's about it.
> Do you want the symbols for diagnostic purposes, or some other reason?
Regards,
Lang.
On Mon, Aug
2019 Dec 01
2
Attempting EuroLLVM2020 as a beginner
I received this request off-list:
> I would really love seeing presentations or workshops about the JIT. Kinda like the KaldeiscopeJIT tutorials but in a guided way to ask questions and improve understanding about it. Especially for use under windows since this seems to be rather rare.
-Hal
On 11/26/19 10:49 AM, Hal Finkel wrote:
If you have suggestions for content, sending that here is
2019 Nov 25
2
Attempting EuroLLVM2020 as a beginner
Hi Hal,
Who would I send those suggestions to which I would like to see - or feedback in general?
Kind greetings
Björn
From: Finkel, Hal J. <hfinkel at anl.gov>
Sent: 22 November 2019 17:10
To: Gaier, Bjoern <Bjoern.Gaier at horiba.com>; llvm-dev at lists.llvm.org
Subject: Re: [llvm-dev] Attempting EuroLLVM2020 as a beginner
Hi, Björn,
It is a specific goal of the LLVM Foundation
2019 Dec 19
2
Moving to ORCv2 - Where are my global constructors and destructors?
Heyho,
Recently I tried out the ORCv2 JIT, especially the LLJIT. I gotta say, that I really like the new interface and the way you use it! However there is one thing I'm missing. I wrote a small bit code file, which should force having a global constructor.
int wuff();
__declspec(noinline) int miau()
{
printf("Huhuhu");
return wuff();
}
const int x = miau();
When I
2020 Aug 18
2
Get all symbols stored(?)in llvm::orc::ExecutionSession
Hi Bjoern,
I’m a bit worried about taking symbols from modules, because some of the
> symbols might change later when the code was compiled with the JIT
Symbol names shouldn't change from the moment they're added to the JIT
(i.e. after being fully mangled). Consistency of symbol names is a
requirement for ORC to work.
You could try hooking into the orc::Platform API for this:
2018 Dec 13
2
Setting a function in a module to extern
Hello again,
as mentioned in a different mail, I'm a beginner with the LLVM and writing a JIT-Client under Windows.
In my llvm::Module I have a certain function - now I want to delete this function, but keep all the calls and references to it. I kind of want to set the function to an external function.
Is this possible?
Kind greetings
Björn
Als GmbH eingetragen im Handelsregister Bad