Home | History | Annotate | Download | only in Chapter8

Lines Matching refs:then

73     return "then";
146 if (IdentifierStr == "then")
295 /// IfExprAST - Expression class for if/then/else.
297 ExprAST *Cond, *Then, *Else;
300 IfExprAST(SourceLocation Loc, ExprAST *cond, ExprAST *then, ExprAST *_else)
301 : ExprAST(Loc), Cond(cond), Then(then), Else(_else) {}
305 Then->dump(indent(out, ind) << "Then:", ind + 1);
503 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
515 return Error("expected then");
516 getNextToken(); // eat the then
518 ExprAST *Then = ParseExpression();
519 if (Then == 0)
531 return new IfExprAST(IfLoc, Cond, Then, Else);
993 // Create blocks for the then and else cases. Insert the 'then' block at the
996 BasicBlock::Create(getGlobalContext(), "then", TheFunction);
1002 // Emit then value.
1005 Value *ThenV = Then->Codegen();
1010 // Codegen of 'Then' can change the current block, update ThenBB for the PHI.