Home | History | Annotate | Download | only in initial

Lines Matching refs:Then

66     if (IdentifierStr == "then") return tok_then;
164 /// IfExprAST - Expression class for if/then/else.
166 ExprAST *Cond, *Then, *Else;
168 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else)
169 : Cond(cond), Then(then), Else(_else) {}
321 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
330 return Error("expected then");
331 getNextToken(); // eat the then
333 ExprAST *Then = ParseExpression();
334 if (Then == 0) return 0;
344 return new IfExprAST(Cond, Then, Else);
971 // Create blocks for the then and else cases. Insert the 'then' block at the
973 BasicBlock *ThenBB = BasicBlock::Create(getGlobalContext(), "then", TheFunction);
979 // Emit then value.
982 Value *ThenV = Then->Codegen();
986 // Codegen of 'Then' can change the current block, update ThenBB for the PHI.