Displaying 20 results from an estimated 70000 matches similar to: "[LLVMdev] getPointerToGlobal() / MCJIT"
2012 Nov 13
0
[LLVMdev] getPointerToGlobal() / MCJIT
As far as I know, no one is working to fix the test case in question. Patches welcome :)
Cheers,
Dan
On 2012-11-13, at 1:29 AM, "Armin Steinhoff" <armin at steinhoff.de> wrote:
>
> Hi all,
>
> are there any plans to correct/implement the "getPointerToGlobal()" method for accessing global variables that are emitted by MCJIT?
> (see for details the
2012 Nov 12
2
[LLVMdev] getPointerToGlobal() / MCJIT
Hi all,
are there any plans to correct/implement the "getPointerToGlobal()"
method for accessing global variables that are emitted by MCJIT?
(see for details the unit test of MCJIT)
Best Regards
Armin
2012 Oct 13
0
[LLVMdev] Dynamically loading native code generated from LLVM IR
It's definitely there. It was added in r165246 recently so you
probably have an older version.
Amara
On 13 October 2012 23:02, Armin Steinhoff <as at steinhoff-automation.com> wrote:
> Daniel,
>
> I didn't find the MCJIT directory under unitests/ExecutionEngine ... there
> is only a directory called JIT.
> You mean this directory ?
>
> Many thanks
>
>
2012 Oct 13
2
[LLVMdev] Dynamically loading native code generated from LLVM IR
Daniel,
I didn't find the MCJIT directory under unitests/ExecutionEngine ...
there is only a directory called JIT.
You mean this directory ?
Many thanks
--Armin
Malea, Daniel wrote:
> Take a look at the MCJIT unit tests under unittests/ExecutionEngine/MCJIT
>
> The MCJITTestBase class does the majority of the interactions with the LLVM API you're referring to.
>
>
2012 Oct 13
0
[LLVMdev] Dynamically loading native code generated from LLVM IR
Take a look at the MCJIT unit tests under unittests/ExecutionEngine/MCJIT
The MCJITTestBase class does the majority of the interactions with the LLVM API you're referring to.
Good luck,
Dan
On 2012-10-13, at 4:57 AM, "Armin Steinhoff" <as at steinhoff-automation.com> wrote:
>
> Kaylor,
>
> do you have some good documented example code which shows the usage of
2015 Jan 20
2
[LLVMdev] [ LLI / MCJIT] re-initializing of lli ...
Hi Armin,
Argument parsing isn't handled by the JIT. This sounds like you're making
redundant calls to cl::ParseCommandLineOptions ?
Deleting the ExecutionEngine and any RTDyldMemoryManager instances that
you've created should be enough to reset the JIT.
Cheers,
Lang.
On Tue, Jan 20, 2015 at 12:38 PM, Armin Steinhoff <armin at steinhoff.de>
wrote:
>
> Hi,
>
>
2012 Oct 13
2
[LLVMdev] Dynamically loading native code generated from LLVM IR
Kaylor,
do you have some good documented example code which shows the usage of
the MCJIT ?
This would help a lot ... the sematic of lots of API calls are not
intuitively understandable.
Best Regards
--Armin
Kaylor, Andrew wrote:
> I'm not sure I understand your use case, but MCJIT (as opposed to the legacy JIT) does almost exactly what you're asking for. It generates an
2015 Jan 16
5
[LLVMdev] New JIT APIs
Hi Armin,
> The MCJIT API can only be used once to JIT compile external souces to
excuteable code into the address space of a running process.
I'm not sure exactly what you mean by "can only be used once" in this
context. Regardless, the new APIs are definitely designed to make it easier
to lead, unload and replace modules, and I hope they will support a wider
range of use cases
2012 Nov 11
1
[LLVMdev] wrong value with getPointerToGlobal
I'm having some trouble getting access to a global variable with
getPointerToGlobal. The resulting value is not what I am expecting.
My assembly looks something like this:
@gresult = global i32 undef
define i32 @eval_expr() {
entry:
...
store i32 %3, i32* @gresult
ret i32 %3
}
Where "gresult" is created with:
auto global = new llvm::GlobalVariable( *module, int32Type,
2015 Jan 12
2
[LLVMdev] MCJIT handling of linkonce_odr
Hi,
I'm finally moving cling to MCJIT - and MCJIT is wonderful! So far I
only ran into this issue:
$ cat linkonceodr.cxx
extern "C" int printf(const char*,...);
template <class T> struct StaticStuff {
static T s_data;
};
template <class T> T StaticStuff<T>::s_data = 42;
int compareAddr(int* mcjit);
#ifdef BUILD_SHARED
int compareAddr(int* mcjit) {
if (mcjit
2015 Jan 13
2
[LLVMdev] MCJIT handling of linkonce_odr
Hi Keno,
The part that scares me a bit is
> and then adjust the other methods to not
> bail out two quickly when encountering a weak symbol.
I would very much appreciate if you could implement this; I don't have
enough knowledge of the MCJIT nor llvm CodeGen internals... I will
happily try it out and provide you with feedback, though! :-)
Thank you *so* much for your fast reaction!
2013 Feb 06
1
[LLVMdev] MCJIT and Lazy Compilation
Hi Andy and Andrew,
I am very interested in this discussion as our co. have critical components that are dependent on the old JIT. We have implemented support for MCJIT mostly to get AVX support. The difference in module support is forcing us to duplicate a module when we want to JIT the same bitcode with different parameters. We also have code that depends on the JITEventListener API.
2014 Mar 21
3
[LLVMdev] lli crashes when running cpp programs
Hi all,
I need to run c++ prgrams using lli.
However, I find lli cannot handle the alias instruction correctly. Following is
an example:
------------ example.cc
-------------
#include
<iostream>
using namespace std;
class
cls {
public:
cls();
~cls();
};
cls::cls() {
cout << "constructor" <<
endl;
};
cls::~cls() {
cout <<
2015 Jan 18
4
[LLVMdev] New JIT APIs
> From: Armin Steinhoff [mailto:armin at steinhoff.de]
> Subject: Re: [LLVMdev] New JIT APIs
> is
> delete EE; // execution engine
> llvm_shutdown();
> sufficient ?
AFAICT, llvm_shutdown() must not be called unless you reach a point where LLVM will not be used again by the process (e.g., termination), as it destroys statically allocated objects. We delete the
2018 Jul 01
2
I've seen OrcJit is under overhaul, and also the MCJIT, so what's the plan?
I didn't seen any roadmap and plan about OrcJit & MCJIT.
And would OrcJIT be stablize in version 7.0? Or latter version?
Would MCJIT be removed in source tree, when?
--
此致
礼
罗勇刚
Yours
sincerely,
Yonggang Luo
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2014 Jul 29
2
[LLVMdev] Reminder: Please switch to MCJIT, as the old JIT will be removed soon.
Hi Keno,
Could you give a short high-level overview of the way Julia works now with
MCJIT instead the JIT:
What I gather so far...
* Compiled IR functions are emitted to a shadow module.
* Any used function is cloned into its own new module and the module is
added to MCJIT.
* Called functions or globalvars are only declared in that module.
* Modules are never removed meaning "old"
2013 Oct 23
0
[LLVMdev] Size limitations in MCJIT / ELF Dynamic Linker/ ELF codegen?
Glad that helped! As I understand it __chkstk is always required on Windows
regardless of output type, I had meant to file a bug about this but had
apparently forgotten to do so. I think the check needs to be that the
target is Windows and ignore the output type, Linux and OSX don't use this.
Cheers,
Andrew
On Wed, Oct 23, 2013 at 11:32 AM, Yaron Keren <yaron.keren at gmail.com>
2012 Oct 12
1
[LLVMdev] Dynamically loading native code generated from LLVM IR
Tim Northover wrote:
> Hi Baris,
>
>> If I could produce a .so file in step 1, my problem would be solved. llc has a "-relocation-model=pic" option, but the file produced with that did not dynamically load.
> That relocation-model=pic option usually necessary for a linker to be
> able to produce a .so file (it changes how variables are addressed so
> that more things
2013 Mar 09
0
[LLVMdev] MCJIT and Lazy Compilation
Hi Andy/Albert,
Sorry for the slow reply, my day job caught up with me.
Two bits of progress. (a) MCJIT is working nicely for non-trivial
examples in Extempore on x86 and ARM, and (b) the page
permissions are now RO again. For your amusement a *very*
cheesy video of Extempore running on-the-fly with MCJIT on an
ARM Pandaboard. Viewer discretion is advised!
https://vimeo.com/60407237
Here is the
2013 Oct 23
0
[LLVMdev] Size limitations in MCJIT / ELF Dynamic Linker/ ELF codegen?
This is the right fix if Cygwin wants calls to __chkstk. Otherwise you'll
want TargetTriple.isOSMSVCRT().
On Wed, Oct 23, 2013 at 2:50 AM, Yaron Keren <yaron.keren at gmail.com> wrote:
> If it's a Windows-only thing the correct tests would be:
>
> if (NumBytes >= 4096 && STI.isOSWindows()) {
>
> and
>
> if (Subtarget->isTargetWindows())
>