Displaying 20 results from an estimated 3000 matches similar to: "[LLVMdev] Kaleidoscope Tutorial is Out of Date"
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 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
2009 Jun 17
3
[LLVMdev] Segmentation fault - Kaleidoscope
Hello,
Following the tutorial "Kaleidoscope: Adding JIT and Optimizer Support", I
found a Segmentation fault when I try to execute it. I am new in the
neighbourhood, so I don't know what is wrong. Could you help me with that?
I am working with the last version of LLVM (2.5). The code in chapter 2 and
3 works good, but the code in the chapter 4 did not work.
Below are the detail of
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 Nov 15
2
[LLVMdev] Optimization of calls to functions without side effects (from Kaleidoscope example)
In http://llvm.org/docs/tutorial/LangImpl4.html#jit there's an example that optimizes calls to functions without side effects. Specifically,
ready> extern sin(x);
ready> extern cos(x);
ready> def foo(x) sin(x)*sin(x) + cos(x)*cos(x);
Read function definition:
define double @foo(double %x) {
entry:
%calltmp = call double @sin(double %x)
%multmp = fmul double %calltmp,
2010 Nov 15
6
[LLVMdev] Optimization of calls to functions without side effects (from Kaleidoscope example)
I'm using the gvn pass, not sure about basic-aa.
I've copied the code as-is from http://llvm.org/docs/tutorial/LangImpl4.html#code and added "F->addFnAttr( Attribute::ReadOnly )" after "Function *F = Function::Create(FT, Function::ExternalLinkage, Name, TheModule)".
The passes it sets up are:
// Set up the optimizer pipeline. Start with registering info about
2018 Jun 01
3
[Kaleidoscope] symbol(s) not found during compiling
Hi,
I am very excited to take the awesome tutorial of implementing
*Kaleidoscope*. But I got stuck here...
I have done the AST parsing, however, when I introduce these 'llvm/IR/*'
headers, I got a compiling error... But if I delete these headers it runs
well ...
"""headers
#include "llvm/IR/BasicBlock.h"
#include "llvm/IR/Constants.h"
#include
2010 Nov 15
0
[LLVMdev] Optimization of calls to functions without side effects (from Kaleidoscope example)
Hi Rob,
You need to set attribute ReadOnly on the sin / cos functions, using Function::addFnAttr(Attribute) for example.
Best regards,
--
Arnaud de Grandmaison
-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Rob Pieke
Sent: Monday, November 15, 2010 11:41 AM
To: llvmdev at cs.uiuc.edu
Subject: [LLVMdev] Optimization of calls
2009 Jun 17
0
[LLVMdev] Segmentation fault - Kaleidoscope
FWIW, I'm also suddenly experiencing segfaults in code that used to work
a few days ago (I'm using svn). This may be unrelated to the problem
described below, but perhaps it's the same thing.
In my case it seems that creating an ExecutionEngine has changed. I used
to do
Module* Mod = makeLLVMModule(); // basically create a gcd function
verifyModule(*Mod,
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 24
0
[LLVMdev] Kaleidoscope-tutorial: Fails to create the JIT
Change your g++ build to:
g++ -g -O0 toy-example26.cpp -o toy-example26 `/Users/albert/NoTimeMachine/LLCM_Clang/llvm-trunk/BUILD/Debug/bin/llvm-config --cppflags --ldflags --libs core jit interpreter native`
After you get this working, try it with the source interpreter include removed, and minus the above interpreter llvm-config addition.
Garrison
On Jan 23, 2010, at 18:55, ALbert Mietus
2010 Feb 17
1
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
On Wed, Feb 17, 2010 at 6:29 AM, Conrado Miranda
<miranda.conrado at gmail.com> wrote:
> First, you have to call llvm-g++ to use the llvm-gcc front end, but it
> doesn't matter here.
I got the compile command from the Kaleidoscope documentation.
> I'd like to suggest that you use pastebin to put your code and the send us
> the link, so that we can download it. The
2010 Nov 15
0
[LLVMdev] Optimization of calls to functions without side effects (from Kaleidoscope example)
Hi Rob,
> Hmm ... I tried setting that right after Function::Create but I still get the same result (though flagged with "readonly")
did you run the gvn pass (preceded by basic-aa)?
Ciao,
Duncan.
2010 Nov 15
2
[LLVMdev] Optimization of calls to functions without side effects (from Kaleidoscope example)
> You need to set attribute ReadOnly on the sin / cos functions, using
> Function::addFnAttr(Attribute) for example.
Hmm ... I tried setting that right after Function::Create but I still get the same result (though flagged with "readonly")
declare double @sin(double) readonly
declare double @cos(double) readonly
define double @foo(double %x) readonly {
entry:
%calltmp = call
2010 Nov 15
0
[LLVMdev] Optimization of calls to functions without side effects (from Kaleidoscope example)
Rob,
I can reproduce the behaviour you observe using llvm top-of-tree.
I will try to look into it.
Best regards,
--
Arnaud de Grandmaison
-----Original Message-----
From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Rob Pieke
Sent: Monday, November 15, 2010 4:27 PM
To: Duncan Sands; llvmdev at cs.uiuc.edu
Subject: Re: [LLVMdev] Optimization of calls to
2010 Nov 15
0
[LLVMdev] Optimization of calls to functions without side effects (from Kaleidoscope example)
Hi Rob,
> I'm using the gvn pass, not sure about basic-aa.
if you are using LLVM from svn then you need to specify the basic-aa analysis,
otherwise gvn won't unify calls to readonly/readnone functions. This is new
behaviour introduced by Dan; probably the tutorial should be updated.
Ciao,
Duncan.
>
> I've copied the code as-is from
2008 Jun 02
3
[LLVMdev] The first two lines of llvm tutorial don't compile.
I took the first two lines of the sample program in the tutorial:
hendrik at lovesong:~/dv/lang/hlvm$ cat broken.cpp
#include "llvm/DerivedTypes.h"
#include "llvm/Module.h"
hendrik at lovesong:~/dv/lang/hlvm$
and tried to compile them using the llvm-dev in Debian testing:
hendrik at lovesong:~/dv/lang/hlvm$ g++ -o broken.o -c broken.cpp
In file included from
2010 Feb 17
0
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
First, you have to call llvm-g++ to use the llvm-gcc front end, but it
doesn't matter here.
I'd like to suggest that you use pastebin to put your code and the send us
the link, so that we can download it. The problem is that TheExecutionEngine
is set to NULL (maybe because of a previous error), but it will be really
better if you use pastebin.
On Wed, Feb 17, 2010 at 6:01 AM, Todd Rovito
2010 Feb 03
2
[LLVMdev] Changes in FunctionPassManager constructor
>> Also note that the documentation is unintentionally misleading. It's very confusing for http://llvm.org/docs/tutorial/LangImpl4.html to show "Last modified: $Date: 2007-10-17 11:05:13 -0700 (Wed, 17 Oct 2007) $" at the bottom, as if nothing had changed since then, when the code it displays is actually less than a week old... I guess the source code snippets are updated