Home | History | Annotate | Download | only in cached

Lines Matching defs:Then

82     if (IdentifierStr == "then") return tok_then;
180 /// IfExprAST - Expression class for if/then/else.
182 ExprAST *Cond, *Then, *Else;
184 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else)
185 : Cond(cond), Then(then), Else(_else) {}
337 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
346 return Error("expected then");
347 getNextToken(); // eat the then
349 ExprAST *Then = ParseExpression();
350 if (Then == 0) return 0;
360 return new IfExprAST(Cond, Then, Else);
749 // Create blocks for the then and else cases. Insert the 'then' block at the
751 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction);
757 // Emit then value.
760 Value *ThenV = Then->Codegen();
764 // Codegen of 'Then' can change the current block, update ThenBB for the PHI.