Home | History | Annotate | Download | only in Chapter7

Lines Matching defs:Then

64     if (IdentifierStr == "then") return tok_then;
162 /// IfExprAST - Expression class for if/then/else.
164 ExprAST *Cond, *Then, *Else;
166 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else)
167 : Cond(cond), Then(then), Else(_else) {}
319 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
328 return Error("expected then");
329 getNextToken(); // eat the then
331 ExprAST *Then = ParseExpression();
332 if (Then == 0) return 0;
342 return new IfExprAST(Cond, Then, Else);
721 // Create blocks for the then and else cases. Insert the 'then' block at the
723 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction);
729 // Emit then value.
732 Value *ThenV = Then->Codegen();
736 // Codegen of 'Then' can change the current block, update ThenBB for the PHI.