Home | History | Annotate | Download | only in initial

Lines Matching defs:Then

65     if (IdentifierStr == "then") return tok_then;
163 /// IfExprAST - Expression class for if/then/else.
165 ExprAST *Cond, *Then, *Else;
167 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else)
168 : Cond(cond), Then(then), Else(_else) {}
320 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
329 return Error("expected then");
330 getNextToken(); // eat the then
332 ExprAST *Then = ParseExpression();
333 if (Then == 0) return 0;
343 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.