Displaying 20 results from an estimated 20000 matches similar to: "[LLVMdev] A non-JIT tutorial?"
2013 Jun 04
0
[LLVMdev] MCJIT and Kaleidoscope Tutorial
Am 04.06.2013 16:05, schrieb David Tweed:
> | I am curious about JMM->invalidInstructionCache(), which I found in
> | lli.cpp implementation. lli.cpp contains also call finalizeObject(), I
> | just overlooked it. lli.cpp calls finalizeObject(), which calls
> | applyPermissions, which in turn calls invalidateInstructionCache. So why
> | lli.cpp does call
2013 Jun 04
1
[LLVMdev] MCJIT and Kaleidoscope Tutorial
Hi Dmitri,
You're right. The lli code should be cleaned up. As David said, there was a time when the call to invalidate the instruction cache was necessary. It isn't necessary anymore.
-Andy
-----Original Message-----
From: Dmitri Rubinstein [mailto:dmitri.rubinstein at googlemail.com]
Sent: Tuesday, June 04, 2013 7:20 AM
To: David Tweed
Cc: Kaylor, Andrew; LLVM Dev
Subject: Re:
2010 Jan 23
2
[LLVMdev] Kaleidoscope-tutorial: Fails to create the JIT
I ask for advice, for TheExecutionEngine === NULL,
>> Which result's in a null-pointer for "TheExecutionEngine"; which
>> explains the bus-errror ..
Reid Kleckner wrote:
> Try changing the above line to:
> std::string str;
> TheExecutionEngine =
> EngineBuilder(OurModuleProvider).setErrorStr(str).create();
> cout << str << '\n';
2010 Jan 22
3
[LLVMdev] Kaleidoscope-tutorial: Fails to create the JIT
Hello All
I 'm studing LLVM/Clang and trying to follow the Kaleidoscope tutorial
(Release 2.6 version).
I found some minir docu-bugs and added them to Bugzilla.
However, Now I found a show-stopper for me, the toy (v4) demo does
build, but does crash, on any input. Even a simpe ';'!
Looking into the (demo-code) found the that the JIT can't be build/
created,/loaded/...
Which
2010 Jan 23
0
[LLVMdev] Kaleidoscope-tutorial: Fails to create the JIT
Look at what is in <llvm source root>/examples/Kaleidoscope/toy.cpp.
This is the final version of the tutorial and worked the last time I played with 2.6.
Garrison
On Jan 23, 2010, at 12:21, ALbert Mietus wrote:
> I ask for advice, for TheExecutionEngine === NULL,
>
>>> Which result's in a null-pointer for "TheExecutionEngine"; which
>>> explains
2010 Jan 23
2
[LLVMdev] Kaleidoscope-tutorial: Fails to create the JIT
--Groetjes, Albert
ALbert Mietus
GSM: +316 16 531 258
Send prive mail to: ALbert at ons-huis dot net
Don't send spam mail!
Mijn missie: http://SoftwareBeterMaken.nl product, proces & imago.
Mijn leven in het kort: http://albert.mietus.nl/Doc/CV_ALbert.html
On 23 Jan 2010., at 22:07, Garrison Venn wrote:
> Look
2013 Jun 03
5
[LLVMdev] MCJIT and Kaleidoscope Tutorial
Hi all,
I tried to modify Kaleidoscope Tutorial (toy.cpp from
llvm/examples/Kaleidoscope/Chapter7, LLVM 3.3 release branch) in order
to use MCJIT instead of JIT. I get segmentation fault when running
toy.cpp with fibonacci example from the tutorial. My modified toy.cpp is
in attachment and still works with JIT (when #define USE_MCJIT line is
commented out).
I read discussions regarding
2013 Jun 04
0
[LLVMdev] MCJIT and Kaleidoscope Tutorial
Hi Dmitri,
You might want to try replacing the call to JMM->invalidInstructionCache() with a call to TheExecutionEngine->finalizeObject(). If you are getting a non-NULL pointer from getPointerToFunction but it crashes when you try to call it, that is most likely because the memory for the generated code has not been marked as executable. That happens inside finalizeObject, which also
2019 Jan 07
2
Kaleidoscope tutorial: extern functions failing
Hi all,
I am new to LLVM and have been working through the Kaleidoscope tutorial.
Everything is working fine so far except for local externs (as opposed to
things like the math functions, which are working). Note that I have seen
this bug with the reference code listing, as well as my own code. link to
code: https://llvm.org/docs/tutorial/LangImpl05.html#full-code-listing
[c34n10 kaleidoscope]
2012 Dec 30
4
[LLVMdev] git repository of the tutorial
Hi,
I'm learning the tutorial.
http://llvm.org/docs/tutorial/
I'm wondering if there is already a git repository of the examples in
the tutorial so that I don't have to copy the code from the webpage.
Thanks!
--
Regards,
Peng
2010 Jun 03
2
[LLVMdev] [PATCH] docs/tutorial/ Kaleidoscope typos
Index: docs/tutorial/LangImpl6.html
===================================================================
--- docs/tutorial/LangImpl6.html (revision 105365)
+++ docs/tutorial/LangImpl6.html (working copy)
@@ -531,7 +531,7 @@
def unary-(v)
0-v;
-# Define > with the same precedence as >.
+# Define > with the same precedence as <.
def binary> 10 (LHS RHS)
2009 Sep 21
3
[LLVMdev] Error when building tutorial example
Hi all,
I'm a new user to LLVM. Not really sure if this is the correct place
to post, since there isn't really any other forums around. Anyway, the
issue I'm encountering is that, I was trying out the first tutorial
(http://llvm.org/docs/tutorial/JITTutorial1.html). I attempted to do
this in another folder that was copied from llvm/projects/sample. I
created a new folder called
2019 Jan 12
2
LLVM header files for Kaleidoscope tutorial
I'm going through the Kaleidoscope tutorial, adding the codegen()
functions: https://llvm.org/docs/tutorial/LangImpl03.html.
I cannot find any discussion of header files to include, (other than the
include of llvm/ADT/STLExtras.h in the lexer/parser code), and the
compilation is failing due to several undefined symbols: LogErrorV, Value,
LLVMContext, APFloat, and others. I've been hunting
2014 Jul 25
2
[LLVMdev] Reminder: Please switch to MCJIT, as the old JIT will be removed soon.
Hi Everyone,
If you're JITing with LLVM and haven't made the switch to MCJIT already,
now is the time. As per discussions on the mailing list and at the last dev
meeting, LLVM 3.5 will be the last release to support the old JIT
infrastructure. Now that LLVM 3.5 has branched, we plan to start removing
the old JIT from the mainline.
If you're looking for help in making the switch, Andy
2010 Jan 22
0
[LLVMdev] Kaleidoscope-tutorial: Fails to create the JIT
On Fri, Jan 22, 2010 at 1:56 PM, ALbert Mietus <albert at ons-huis.net> wrote:
> Hello All
>
> I 'm studing LLVM/Clang and trying to follow the Kaleidoscope tutorial
> (Release 2.6 version).
> I found some minir docu-bugs and added them to Bugzilla.
>
> However, Now I found a show-stopper for me, the toy (v4) demo does
> build, but does crash, on any input. Even a
2010 Jun 21
0
[LLVMdev] [PATCH] docs/tutorial/ Kaleidoscope typos
Applied in r106468, thanks!
-Chris
On Jun 2, 2010, at 5:23 PM, Adam Warner wrote:
> Index: docs/tutorial/LangImpl6.html
> ===================================================================
> --- docs/tutorial/LangImpl6.html (revision 105365)
> +++ docs/tutorial/LangImpl6.html (working copy)
> @@ -531,7 +531,7 @@
> def unary-(v)
> 0-v;
>
> -# Define > with
2009 Oct 03
1
[LLVMdev] LLVM-Kaleidoscope tutorial
Good morning everyone,
It seems the LLVM tutorial is not up to date anymore and doesn't
compile as is...
The function makeLLVMModule() function doesn't compile at all. Here is
a fix:
Module *makeLLVMModule()
{
// Caches the global context to share it with new Module() and
IntegerType::get() calls
LLVMContext &context = getGlobalContext();
// Module Construction
2019 Aug 07
2
Trouble with ORCv2 Tutorial
Hi folks,
I'm working on migrating a JIT compiler from the old ORCv1 JIT APIs to
the newer ORCv2 ones and am having some trouble getting the code from
chapter 1 of the "Building a JIT" [1] tutorial working properly. I
have previously walked through the "My First Langauge" [2] tutorial
and that went smoothly using the provided JIT class, but using the one
from the JIT
2019 Oct 24
7
RFC: Adding IR Transformation examples/tutorial code to llvm-project
Hi,
I’d like to propose adding a new example directory (llvm/examples/IRTransforms) as a new home for example code used by various tutorials. After talking to a few people at the Developers meeting, it became clear to me that it would be valuable to have the code examples for various tutorials in-tree to keep them from bit-rotting and make it very easy to build them.
I’d suggest adding new IR
2015 Jul 09
2
[LLVMdev] llvm jit acting at runtime, like libgccjit ?
Hello,
i mainly code in c/c++ on linux.
I would like to know if I can generate code at runtime using llvm, like libgccjit -> https://gcc.gnu.org/onlinedocs/jit/
My needs are : create functions, conditions, loops at runtime. libgccjit does the job pretty well but I would like to test llvm too (licence issue).
Is it possible ?
Is there a resource that helps in that regard ? Kaleidoscope