search for: langimpl3

Displaying 20 results from an estimated 29 matches for "langimpl3".

Did you mean: langimpl4
2012 Nov 06
3
[LLVMdev] Error while linking LLVM files
Hi! I'm trying to learn LLVM and I want to compile the Kaleidoscope compiler. according to: http://llvm.org/docs/tutorial/LangImpl3.html I'm compiling it with: clang++ -g -O3 test.cpp `llvm-config --cppflags --ldflags --libs core` -o toy and it indeed works. The problem is that when using eclipse it forces me to divide the compilation into two steps: g++ -O0 -g3 -Wall -c -fmessage-length=0 `llvm-config --cppflags --ldfla...
2007 Nov 05
0
[LLVMdev] 'Implementing a language with LLVM' tutorial
...ot;returning the next comment"? http://llvm.org/docs/tutorial/LangImpl2.html I was a bit confused at first because the AST node classes are called ASTs. Instead of saying "ExprAST node" all the time, who not just call the class ExprNode or ExprAstNode? http://llvm.org/docs/tutorial/LangImpl3.html case '<': L = Builder.CreateFCmpULT(L, R, "multmp"); Should this be something like "cmptmp"? Also, you mention zero-argument functions, but it doesn't look like you can parse function calls with zero arguments. http://llvm.org/docs/tutorial/LangImpl5...
2013 Aug 14
2
[LLVMdev] gerate LLVM IR from an AST output from ANTLR
Hi, I am a complete newbie to LLVM. I have an ANTLR parser, that outputs an AST. I want to comvert this AST to a LLVM IR, Can someone point me some relevant documentation/examples/ etc. on how to go about doing this? TIA. -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130814/919cb805/attachment.html>
2013 Aug 14
0
[LLVMdev] gerate LLVM IR from an AST output from ANTLR
...gt;wrote: > Hi, > I am a complete newbie to LLVM. I have an ANTLR parser, that outputs an > AST. I want to comvert this AST to a LLVM IR, Can someone point me some > relevant documentation/examples/ etc. on how to go about doing this? > TIA. > > http://llvm.org/docs/tutorial/LangImpl3.html -Eli -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130814/067e40ab/attachment.html>
2012 Nov 08
2
[LLVMdev] llvm-config --libs failed
Hi! I'm trying to use the LLVMProject toolchain (according to this page: http://llvm.org/docs/Projects.html). I created a project "test" with kaleidoscope example source code from: http://llvm.org/docs/tutorial/LangImpl3.html It compiles successfully with: clang++ -g -O3 toy.cpp `llvm-config --cppflags --ldflags --libs core` -o toy according to the project documentation, my Makefile inside the source of the project contains (it is in llvm/src/projects/test/tools/test/Makefile): LEVEL=../.. TOOLNAME=luna LINK_COMP...
2010 Jan 04
4
[LLVMdev] Getting Kaleidoscope to compile
Hi all, I've started work on a new programming language for which I am considering using LLVM as the backend, and trying to experiment with it using the Kaleidoscope demo compiler. Taking the full source listing from http://llvm.org/docs/tutorial/LangImpl3.html#code and trying to compile it with the provided instructions gives me the following errors: a at a-desktop:~$ g++ -g -O3 toy.cpp `llvm-config --cppflags --ldflags --libs core` -o toy toy.cpp:5:30: error: llvm/LLVMContext.h: No such file or directory toy.cpp:352: error: ‘getGlobalContext’ was...
2012 Nov 06
0
[LLVMdev] Error while linking LLVM files
On Tue, Nov 6, 2012 at 6:38 AM, Wojciech Daniło <wojtek.danilo.ml at gmail.com> wrote: > Hi! > I'm trying to learn LLVM and I want to compile the Kaleidoscope compiler. > according to: > http://llvm.org/docs/tutorial/LangImpl3.html > > I'm compiling it with: > clang++ -g -O3 test.cpp `llvm-config --cppflags --ldflags --libs core` -o > toy > > and it indeed works. > The problem is that when using eclipse it forces me to divide the > compilation into two steps: > > g++ -O0 -g3 -Wall -c -fm...
2015 Jul 09
2
[LLVMdev] llvm jit acting at runtime, like libgccjit ?
...lt;div>Thanks James,</div><div>š</div><div>Kaleidoscope seems to differ in the sense that I cannot really understand how to create, say, a loop. It all looks like very complicated (<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__llvm.org_docs_tutorial_LangImpl3.html&d=AwMD3g&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=E1cWW-PAGPIM-jv-wZPcbUaIGZF76F3khZvXTlblazk&s=J2ZYv617m9mjI0Khgzm9Epv-GE07oIQwzqBnZ-zvTjA&e=">http://llvm.org/docs/tutorial/LangImpl3.html</a>)</div><div>š</di...
2007 Nov 05
5
[LLVMdev] 'Implementing a language with LLVM' tutorial
On Mon, 5 Nov 2007, Aaron Gray wrote: >> Anyone have thoughts or feedback? :) > > Nice job. The only bit that is not immediately clear is the 'Proto' > variable, but is clear when looking through the code at the end of the page. Where in the tutorial? What would you suggest that I say? > Could do with a link to the LLVMBuilder class reference material. I added a link
2010 Jan 04
0
[LLVMdev] Getting Kaleidoscope to compile
...om> > Hi all, > > I've started work on a new programming language for which I am > considering using LLVM as the backend, and trying to experiment with > it using the Kaleidoscope demo compiler. > > Taking the full source listing from > http://llvm.org/docs/tutorial/LangImpl3.html#code and trying to > compile it with the provided instructions gives me the following > errors: > > a at a-desktop:~$ g++ -g -O3 toy.cpp `llvm-config --cppflags --ldflags > --libs core` -o toy > toy.cpp:5:30: error: llvm/LLVMContext.h: No such file or directory > toy.cpp:3...
2012 Nov 08
0
[LLVMdev] llvm-config --libs failed
...ło <wojtek.danilo.ml at gmail.com> writes: > Hi! > I'm trying to use the LLVMProject toolchain (according to this page: > http://llvm.org/docs/Projects.html). > I created a project "test" with kaleidoscope example source code from: > http://llvm.org/docs/tutorial/LangImpl3.html > It compiles successfully with: clang++ -g -O3 toy.cpp `llvm-config > --cppflags --ldflags --libs core` -o toy > > according to the project documentation, my Makefile inside the source of > the project contains (it is in llvm/src/projects/test/tools/test/Makefile): > > LE...
2012 Nov 08
2
[LLVMdev] llvm-config --libs failed
...ail.com> writes: > > > Hi! > > I'm trying to use the LLVMProject toolchain (according to this page: > > http://llvm.org/docs/Projects.html). > > I created a project "test" with kaleidoscope example source code from: > > http://llvm.org/docs/tutorial/LangImpl3.html > > It compiles successfully with: clang++ -g -O3 toy.cpp `llvm-config > > --cppflags --ldflags --libs core` -o toy > > > > according to the project documentation, my Makefile inside the source of > > the project contains (it is in > llvm/src/projects/test/tool...
2014 Jun 11
2
[LLVMdev] include's are not being located
I’m new to llvm so I’m hoping someone can shed some light on this. I am trying to use the Kaleidoscope tutorial and cannot get past the 3rd part. All the llvm includes are not in their expected places. Eg… “llvm/IR/Verifier.h” is actually in “llvm/include/llvm/IR”. I am running mac osx 10.9. Here’s what I’ve tried: 1. checkout the svn of llvm, clang & compiler rt 2. created a “build”
2012 Nov 09
2
[LLVMdev] llvm-config --libs failed
...t; Hi! >>> > I'm trying to use the LLVMProject toolchain (according to this page: >>> > http://llvm.org/docs/Projects.html). >>> > I created a project "test" with kaleidoscope example source code from: >>> > http://llvm.org/docs/tutorial/LangImpl3.html >>> > It compiles successfully with: clang++ -g -O3 toy.cpp `llvm-config >>> > --cppflags --ldflags --libs core` -o toy >>> > >>> > according to the project documentation, my Makefile inside the source >>> of >>> > the projec...
2015 Mar 18
5
[LLVMdev] casting Constant * to value *?
John, you are right. I 'browsed' the doxygen's inheritance diagram. Shouldn't I then be able to cast Constant * to Value*? Plugging the retrieved Constant* (from ConstantExpr::getGetElementPtr) into Instruction->setOperand compiles, but gives me an assertion failure at runtime. I have no access to the code at the moment. I will gather more information possibly tomorrow.
2012 Nov 09
0
[LLVMdev] llvm-config --libs failed
...> >> > Hi! >> > I'm trying to use the LLVMProject toolchain (according to this page: >> > http://llvm.org/docs/Projects.html). >> > I created a project "test" with kaleidoscope example source code from: >> > http://llvm.org/docs/tutorial/LangImpl3.html >> > It compiles successfully with: clang++ -g -O3 toy.cpp `llvm-config >> > --cppflags --ldflags --libs core` -o toy >> > >> > according to the project documentation, my Makefile inside the source of >> > the project contains (it is in >> llv...
2012 Nov 10
0
[LLVMdev] llvm-config --libs failed
...gt;> > I'm trying to use the LLVMProject toolchain (according to this page: >>>> > http://llvm.org/docs/Projects.html). >>>> > I created a project "test" with kaleidoscope example source code from: >>>> > http://llvm.org/docs/tutorial/LangImpl3.html >>>> > It compiles successfully with: clang++ -g -O3 toy.cpp `llvm-config >>>> > --cppflags --ldflags --libs core` -o toy >>>> > >>>> > according to the project documentation, my Makefile inside the source >>>> of >>...
2009 Dec 21
0
[LLVMdev] Kaleidescope lesson #3
I tried to compile and run the code from the Kaleidescope tutorial: http://llvm.org/docs/tutorial/LangImpl3.html While the compilation worked fine, the run did not. I'm using the version of llvm from svn for 12/15/09. In gdb I get this stack trace, and never see the "ready>" prompt. Apparently it's dying inside constructors in the headers somewhere. #0 0x00000036b502e21d in rais...
2013 Apr 18
3
[LLVMdev] inserting a function into a module
I'm looking for an example of how to insert a new function into a module. I have a module pass that needs to create some new functions. Tia. Reed
2013 Aug 15
1
[LLVMdev] gerate LLVM IR from an AST output from ANTLR
...a complete newbie to LLVM. I have an ANTLR parser, that outputs an >> AST. I want to comvert this AST to a LLVM IR, Can someone point me some >> relevant documentation/examples/ etc. on how to go about doing this? >> TIA. >> >> > > http://llvm.org/docs/tutorial/LangImpl3.html > > -Eli > > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20130815/a84a79a2/attachment.html>