Home | History | Annotate | Download | only in Chapter5

Lines Matching refs:Builder

526 static IRBuilder<> Builder(TheContext);
573 return Builder.CreateFAdd(L, R, "addtmp");
575 return Builder.CreateFSub(L, R, "subtmp");
577 return Builder.CreateFMul(L, R, "multmp");
579 L = Builder.CreateFCmpULT(L, R, "cmptmp");
581 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp");
604 return Builder.CreateCall(CalleeF, ArgsV, "calltmp");
613 CondV = Builder.CreateFCmpONE(
616 Function *TheFunction = Builder.GetInsertBlock()->getParent();
624 Builder.CreateCondBr(CondV, ThenBB, ElseBB);
627 Builder.SetInsertPoint(ThenBB);
633 Builder.CreateBr(MergeBB);
635 ThenBB = Builder.GetInsertBlock();
639 Builder.SetInsertPoint(ElseBB);
645 Builder.CreateBr(MergeBB);
647 ElseBB = Builder.GetInsertBlock();
651 Builder.SetInsertPoint(MergeBB);
652 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp");
682 Function *TheFunction = Builder.GetInsertBlock()->getParent();
683 BasicBlock *PreheaderBB = Builder.GetInsertBlock();
687 Builder.CreateBr(LoopBB);
690 Builder.SetInsertPoint(LoopBB);
694 Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, VarName);
719 Value *NextVar = Builder.CreateFAdd(Variable, StepVal, "nextvar");
727 EndCond = Builder.CreateFCmpONE(
731 BasicBlock *LoopEndBB = Builder.GetInsertBlock();
736 Builder.CreateCondBr(EndCond, LoopBB, AfterBB);
739 Builder.SetInsertPoint(AfterBB);
782 Builder.SetInsertPoint(BB);
791 Builder.CreateRet(RetVal);