Home | History | Annotate | Download | only in Chapter7

Lines Matching refs:then

76     if (IdentifierStr == "then")
187 /// IfExprAST - Expression class for if/then/else.
189 ExprAST *Cond, *Then, *Else;
192 IfExprAST(ExprAST *cond, ExprAST *then, ExprAST *_else)
193 : Cond(cond), Then(then), Else(_else) {}
359 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
369 return Error("expected then");
370 getNextToken(); // eat the then
372 ExprAST *Then = ParseExpression();
373 if (Then == 0)
385 return new IfExprAST(Cond, Then, Else);
794 // Create blocks for the then and else cases. Insert the 'then' block at the
797 BasicBlock::Create(getGlobalContext(), "then", TheFunction);
803 // Emit then value.
806 Value *ThenV = Then->Codegen();
811 // Codegen of 'Then' can change the current block, update ThenBB for the PHI.