Home | History | Annotate | Download | only in Chapter5

Lines Matching defs:Then

58     if (IdentifierStr == "then") return tok_then;
142 /// IfExprAST - Expression class for if/then/else.
144 ExprAST *Cond, *Then, *Else;
146 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else)
147 : Cond(cond), Then(then), Else(_else) {}
273 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
282 return Error("expected then");
283 getNextToken(); // eat the then
285 ExprAST *Then = ParseExpression();
286 if (Then == 0) return 0;
296 return new IfExprAST(Cond, Then, Else);
521 // Create blocks for the then and else cases. Insert the 'then' block at the
523 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction);
529 // Emit then value.
532 Value *ThenV = Then->Codegen();
536 // Codegen of 'Then' can change the current block, update ThenBB for the PHI.