Home | History | Annotate | Download | only in Chapter2

Lines Matching defs:Then

87     if (IdentifierStr == "then")
200 /// IfExprAST - Expression class for if/then/else.
202 std::unique_ptr<ExprAST> Cond, Then, Else;
205 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then,
207 : Cond(std::move(Cond)), Then(std::move(Then)), Else(std::move(Else)) {}
374 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
384 return LogError("expected then");
385 getNextToken(); // eat the then
387 auto Then = ParseExpression();
388 if (!Then)
400 return llvm::make_unique<IfExprAST>(std::move(Cond), std::move(Then),
833 // Create blocks for the then and else cases. Insert the 'then' block at the
835 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction);
841 // Emit then value.
844 Value *ThenV = Then->codegen();
849 // Codegen of 'Then' can change the current block, update ThenBB for the PHI.