Lines Matching refs:Then
72 if (IdentifierStr == "then") return tok_then;
175 /// IfExprAST - Expression class for if/then/else.
177 IfExprAST(std::unique_ptr<ExprAST> Cond, std::unique_ptr<ExprAST> Then,
179 : Cond(std::move(Cond)), Then(std::move(Then)), Else(std::move(Else)) {}
182 std::unique_ptr<ExprAST> Cond, Then, Else;
345 /// ifexpr ::= 'if' expression 'then' expression 'else' expression
355 return ErrorU<ExprAST>("expected then");
356 getNextToken(); // eat the then
358 auto Then = ParseExpression();
359 if (!Then)
371 return llvm::make_unique<IfExprAST>(std::move(Cond), std::move(Then),
855 // Create blocks for the then and else cases. Insert the 'then' block at the
857 BasicBlock *ThenBB = BasicBlock::Create(C.getLLVMContext(), "then", TheFunction);
863 // Emit then value.
866 Value *ThenV = Then->IRGen(C);
870 // Codegen of 'Then' can change the current block, update ThenBB for the PHI.