Home | History | Annotate | Download | only in Chapter1

Lines Matching refs:Builder

688 static IRBuilder<> Builder(TheContext);
734 return Builder.CreateLoad(V, Name.c_str());
746 return Builder.CreateCall(F, OperandV, "unop");
769 Builder.CreateStore(Val, Variable);
780 return Builder.CreateFAdd(L, R, "addtmp");
782 return Builder.CreateFSub(L, R, "subtmp");
784 return Builder.CreateFMul(L, R, "multmp");
786 L = Builder.CreateFCmpULT(L, R, "cmptmp");
788 return Builder.CreateUIToFP(L, Type::getDoubleTy(TheContext), "booltmp");
799 return Builder.CreateCall(F, Ops, "binop");
819 return Builder.CreateCall(CalleeF, ArgsV, "calltmp");
828 CondV = Builder.CreateFCmpONE(
831 Function *TheFunction = Builder.GetInsertBlock()->getParent();
839 Builder.CreateCondBr(CondV, ThenBB, ElseBB);
842 Builder.SetInsertPoint(ThenBB);
848 Builder.CreateBr(MergeBB);
850 ThenBB = Builder.GetInsertBlock();
854 Builder.SetInsertPoint(ElseBB);
860 Builder.CreateBr(MergeBB);
862 ElseBB = Builder.GetInsertBlock();
866 Builder.SetInsertPoint(MergeBB);
867 PHINode *PN = Builder.CreatePHI(Type::getDoubleTy(TheContext), 2, "iftmp");
894 Function *TheFunction = Builder.GetInsertBlock()->getParent();
905 Builder.CreateStore(StartVal, Alloca);
912 Builder.CreateBr(LoopBB);
915 Builder.SetInsertPoint(LoopBB);
946 Value *CurVar = Builder.CreateLoad(Alloca, VarName.c_str());
947 Value *NextVar = Builder.CreateFAdd(CurVar, StepVal, "nextvar");
948 Builder.CreateStore(NextVar, Alloca);
951 EndCond = Builder.CreateFCmpONE(
959 Builder.CreateCondBr(EndCond, LoopBB, AfterBB);
962 Builder.SetInsertPoint(AfterBB);
977 Function *TheFunction = Builder.GetInsertBlock()->getParent();
999 Builder.CreateStore(InitVal, Alloca);
1054 Builder.SetInsertPoint(BB);
1063 Builder.CreateStore(&Arg, Alloca);
1071 Builder.CreateRet(RetVal);