Lines Matching refs:Builder
612 static IRBuilder<> Builder(TheContext);
636 return Builder.CreateLoad(V, Name.c_str());
650 return Builder.CreateCall(F, OperandV, "unop");
668 Builder.CreateStore(Val, Variable);
677 case '+': return Builder.CreateFAdd(L, R, "addtmp");
678 case '-': return Builder.CreateFSub(L, R, "subtmp");
679 case '*': return Builder.CreateFMul(L, R, "multmp");
680 case '/': return Builder.CreateFDiv(L, R, "divtmp");
682 L = Builder.CreateFCmpULT(L, R, "cmptmp");
684 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp");
694 return Builder.CreateCall(F, Ops, "binop");
716 return Builder.CreateCall(CalleeF, ArgsV, "calltmp");
724 CondV = Builder.CreateFCmpONE(
727 Function *TheFunction = Builder.GetInsertBlock()->getParent();
735 Builder.CreateCondBr(CondV, ThenBB, ElseBB);
738 Builder.SetInsertPoint(ThenBB);
743 Builder.CreateBr(MergeBB);
745 ThenBB = Builder.GetInsertBlock();
749 Builder.SetInsertPoint(ElseBB);
754 Builder.CreateBr(MergeBB);
756 ElseBB = Builder.GetInsertBlock();
760 Builder.SetInsertPoint(MergeBB);
761 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp");
789 Function *TheFunction = Builder.GetInsertBlock()->getParent();
799 Builder.CreateStore(StartVal, Alloca);
806 Builder.CreateBr(LoopBB);
809 Builder.SetInsertPoint(LoopBB);
838 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str());
839 Value *NextVar = Builder.CreateFAdd(CurVar, StepVal, "nextvar");
840 Builder.CreateStore(NextVar, Alloca);
843 EndCond = Builder.CreateFCmpONE(
851 Builder.CreateCondBr(EndCond, LoopBB, AfterBB);
854 Builder.SetInsertPoint(AfterBB);
870 Function *TheFunction = Builder.GetInsertBlock()->getParent();
891 Builder.CreateStore(InitVal, Alloca);
956 Builder.CreateStore(AI, Alloca);
976 Builder.SetInsertPoint(BB);
983 Builder.CreateRet(RetVal);