Home | History | Annotate | Download | only in Chapter6

Lines Matching defs:Then

61     if (IdentifierStr == "then") return tok_then;
157 /// IfExprAST - Expression class for if/then/else.
159 ExprAST *Cond, *Then, *Else;
161 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else)
162 : Cond(cond), Then(then), Else(_else) {}
301 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
310 return Error("expected then");
311 getNextToken(); // eat the then
313 ExprAST *Then = ParseExpression();
314 if (Then == 0) return 0;
324 return new IfExprAST(Cond, Then, Else);
625 // Create blocks for the then and else cases. Insert the 'then' block at the
627 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction);
633 // Emit then value.
636 Value *ThenV = Then->Codegen();
640 // Codegen of 'Then' can change the current block, update ThenBB for the PHI.