Home | History | Annotate | Download | only in Chapter5

Lines Matching refs:Then

67     if (IdentifierStr == "then")
162 /// IfExprAST - Expression class for if/then/else.
164 std::unique_ptr<ExprAST> Cond, Then, Else;
167 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then,
169 : Cond(std::move(Cond)), Then(std::move(Then)), Else(std::move(Else)) {}
309 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
319 return Error("expected then");
320 getNextToken(); // eat the then
322 auto Then = ParseExpression();
323 if (!Then)
335 return llvm::make_unique<IfExprAST>(std::move(Cond), std::move(Then),
606 // Create blocks for the then and else cases. Insert the 'then' block at the
609 BasicBlock::Create(getGlobalContext(), "then", TheFunction);
615 // Emit then value.
618 Value *ThenV = Then->codegen();
623 // Codegen of 'Then' can change the current block, update ThenBB for the PHI.