Home | History | Annotate | Download | only in Chapter5

Lines Matching defs:Then

79     if (IdentifierStr == "then")
174 /// IfExprAST - Expression class for if/then/else.
176 std::unique_ptr<ExprAST> Cond, Then, Else;
179 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then,
181 : Cond(std::move(Cond)), Then(std::move(Then)), Else(std::move(Else)) {}
321 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
331 return LogError("expected then");
332 getNextToken(); // eat the then
334 auto Then = ParseExpression();
335 if (!Then)
347 return llvm::make_unique<IfExprAST>(std::move(Cond), std::move(Then),
618 // Create blocks for the then and else cases. Insert the 'then' block at the
620 BasicBlock *ThenBB = BasicBlock::Create(TheContext, "then", TheFunction);
626 // Emit then value.
629 Value *ThenV = Then->codegen();
634 // Codegen of 'Then' can change the current block, update ThenBB for the PHI.