Displaying 5 results from an estimated 5 matches for "identifierexpr".
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
2010 Feb 17
2
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...tle helper functions for error handling.
ExprAST *Error(const char *Str) { fprintf(stderr, "Error: %s\n", Str);return 0;}
PrototypeAST *ErrorP(const char *Str) { Error(Str); return 0; }
FunctionAST *ErrorF(const char *Str) { Error(Str); return 0; }
static ExprAST *ParseExpression();
/// identifierexpr
/// ::= identifier
/// ::= identifier '(' expression* ')'
static ExprAST *ParseIdentifierExpr() {
std::string IdName = IdentifierStr;
getNextToken(); // eat identifier.
if (CurTok != '(') // Simple variable ref.
return new VariableExprAST(IdName);
// Call...
2010 Feb 17
0
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...g.
> ExprAST *Error(const char *Str) { fprintf(stderr, "Error: %s\n",
> Str);return 0;}
> PrototypeAST *ErrorP(const char *Str) { Error(Str); return 0; }
> FunctionAST *ErrorF(const char *Str) { Error(Str); return 0; }
>
> static ExprAST *ParseExpression();
>
> /// identifierexpr
> /// ::= identifier
> /// ::= identifier '(' expression* ')'
> static ExprAST *ParseIdentifierExpr() {
> std::string IdName = IdentifierStr;
>
> getNextToken(); // eat identifier.
>
> if (CurTok != '(') // Simple variable ref.
> return...
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
2010 Feb 17
1
[LLVMdev] Kaleidoscope toy4 failure seg fault on llvm::ExecutionEngine::getTargetData (this=0x0)
...char *Str) { fprintf(stderr, "Error: %s\n",
>> Str);return 0;}
>> PrototypeAST *ErrorP(const char *Str) { Error(Str); return 0; }
>> FunctionAST *ErrorF(const char *Str) { Error(Str); return 0; }
>>
>> static ExprAST *ParseExpression();
>>
>> /// identifierexpr
>> /// ::= identifier
>> /// ::= identifier '(' expression* ')'
>> static ExprAST *ParseIdentifierExpr() {
>> std::string IdName = IdentifierStr;
>>
>> getNextToken(); // eat identifier.
>>
>> if (CurTok != '(') // Simp...