Home | History | Annotate | Download | only in cached

Lines Matching refs:Then

88     if (IdentifierStr == "then") return tok_then;
186 /// IfExprAST - Expression class for if/then/else.
188 ExprAST *Cond, *Then, *Else;
190 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else)
191 : Cond(cond), Then(then), Else(_else) {}
343 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
352 return Error("expected then");
353 getNextToken(); // eat the then
355 ExprAST *Then = ParseExpression();
356 if (Then == 0) return 0;
366 return new IfExprAST(Cond, Then, Else);
1113 // Create blocks for the then and else cases. Insert the 'then' block at the
1115 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction);
1121 // Emit then value.
1124 Value *ThenV = Then->Codegen();
1128 // Codegen of 'Then' can change the current block, update ThenBB for the PHI.