Lines Matching refs:Builder
685 static IRBuilder<> Builder(TheContext);
730 return Builder.CreateLoad(V, Name.c_str());
742 return Builder.CreateCall(F, OperandV, "unop");
765 Builder.CreateStore(Val, Variable);
776 return Builder.CreateFAdd(L, R, "addtmp");
778 return Builder.CreateFSub(L, R, "subtmp");
780 return Builder.CreateFMul(L, R, "multmp");
782 L = Builder.CreateFCmpULT(L, R, "cmptmp");
784 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp");
795 return Builder.CreateCall(F, Ops, "binop");
815 return Builder.CreateCall(CalleeF, ArgsV, "calltmp");
824 CondV = Builder.CreateFCmpONE(
827 Function *TheFunction = Builder.GetInsertBlock()->getParent();
835 Builder.CreateCondBr(CondV, ThenBB, ElseBB);
838 Builder.SetInsertPoint(ThenBB);
844 Builder.CreateBr(MergeBB);
846 ThenBB = Builder.GetInsertBlock();
850 Builder.SetInsertPoint(ElseBB);
856 Builder.CreateBr(MergeBB);
858 ElseBB = Builder.GetInsertBlock();
862 Builder.SetInsertPoint(MergeBB);
863 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp");
890 Function *TheFunction = Builder.GetInsertBlock()->getParent();
901 Builder.CreateStore(StartVal, Alloca);
908 Builder.CreateBr(LoopBB);
911 Builder.SetInsertPoint(LoopBB);
942 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str());
943 Value *NextVar = Builder.CreateFAdd(CurVar, StepVal, "nextvar");
944 Builder.CreateStore(NextVar, Alloca);
947 EndCond = Builder.CreateFCmpONE(
955 Builder.CreateCondBr(EndCond, LoopBB, AfterBB);
958 Builder.SetInsertPoint(AfterBB);
973 Function *TheFunction = Builder.GetInsertBlock()->getParent();
995 Builder.CreateStore(InitVal, Alloca);
1050 Builder.SetInsertPoint(BB);
1059 Builder.CreateStore(&Arg, Alloca);
1067 Builder.CreateRet(RetVal);