search for: langimpl2

Displaying 6 results from an estimated 6 matches for "langimpl2".

Did you mean: langimpl4
2007 Nov 05
0
[LLVMdev] 'Implementing a language with LLVM' tutorial
.... Here's a couple comments on the first 6 chapters: http://llvm.org/docs/tutorial/LangImpl1.html "We handle comments by skipping to the end of the line and then returning the next comment." Shouldn't this say "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, &qu...
2008 Feb 22
1
[LLVMdev] tutorial typos
There were some typos in the tutorial. This patch should fix them: index b7f968b..50619e0 100644 --- a/docs/tutorial/LangImpl2.html +++ b/docs/tutorial/LangImpl2.html @@ -933,7 +933,7 @@ public: /// of arguments the function takes). class PrototypeAST { std::string Name; - std::vector&lt; Args; + std::vector&lt;std::string&gt; Args; public: PrototypeAST(const std::string &amp;name, const std::vec...
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
2007 Nov 05
0
[LLVMdev] 'Implementing a language with LLVM' tutorial
On 11/5/07, Chris Lattner <clattner at apple.com> wrote: > Hi All, Hi, > > http://llvm.org/docs/tutorial/ Very interesting tutorial, reading it now :) > Anyone have thoughts or feedback? :) There's a typo in http://llvm.org/docs/tutorial/LangImpl5.html "the Phi node expects to have an extry" s/extry/entry/ Best regards, Edwin
2007 Nov 05
1
[LLVMdev] 'Implementing a language with LLVM' tutorial
On Mon, 5 Nov 2007, Kelly Wilson wrote: > I edited "The basic language, with its lexer" somewhat and I am > attaching a .html file. This is simply spelling/grammar editing and not > content. Thanks, I merged them in! > A simple diff should show the changes. Please let me know if this format > (ie. html file) is acceptable for your use. I don't think I changed >
2007 Nov 05
13
[LLVMdev] 'Implementing a language with LLVM' tutorial
Hi All, LLVM has long needed a tutorial for people who are interested in using it to implement their favorite language and to demonstrate how to use the JIT. To help solve this, I've put together a little tutorial that runs through the implementation and extension of a toy language here: http://llvm.org/docs/tutorial/ At this point, the tutorial is feature complete, but might