Lines Matching refs:Builder
698 static IRBuilder<> Builder(TheContext);
745 return Builder.CreateLoad(V, Name.c_str());
757 return Builder.CreateCall(F, OperandV, "unop");
780 Builder.CreateStore(Val, Variable);
791 return Builder.CreateFAdd(L, R, "addtmp");
793 return Builder.CreateFSub(L, R, "subtmp");
795 return Builder.CreateFMul(L, R, "multmp");
797 L = Builder.CreateFCmpULT(L, R, "cmptmp");
799 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp");
810 return Builder.CreateCall(F, Ops, "binop");
830 return Builder.CreateCall(CalleeF, ArgsV, "calltmp");
839 CondV = Builder.CreateFCmpONE(
842 Function *TheFunction = Builder.GetInsertBlock()->getParent();
850 Builder.CreateCondBr(CondV, ThenBB, ElseBB);
853 Builder.SetInsertPoint(ThenBB);
859 Builder.CreateBr(MergeBB);
861 ThenBB = Builder.GetInsertBlock();
865 Builder.SetInsertPoint(ElseBB);
871 Builder.CreateBr(MergeBB);
873 ElseBB = Builder.GetInsertBlock();
877 Builder.SetInsertPoint(MergeBB);
878 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp");
905 Function *TheFunction = Builder.GetInsertBlock()->getParent();
916 Builder.CreateStore(StartVal, Alloca);
923 Builder.CreateBr(LoopBB);
926 Builder.SetInsertPoint(LoopBB);
957 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str());
958 Value *NextVar = Builder.CreateFAdd(CurVar, StepVal, "nextvar");
959 Builder.CreateStore(NextVar, Alloca);
962 EndCond = Builder.CreateFCmpONE(
970 Builder.CreateCondBr(EndCond, LoopBB, AfterBB);
973 Builder.SetInsertPoint(AfterBB);
988 Function *TheFunction = Builder.GetInsertBlock()->getParent();
1010 Builder.CreateStore(InitVal, Alloca);
1072 Builder.SetInsertPoint(BB);
1081 Builder.CreateStore(&Arg, Alloca);
1089 Builder.CreateRet(RetVal);