Lines Matching full:builder
522 IRBuilder<> Builder(TI);
525 Value *Counter = Builder.CreateConstInBoundsGEP2_64(Counters, 0,
527 Value *Count = Builder.CreateLoad(Counter);
528 Count = Builder.CreateAdd(Count, Builder.getInt64(1));
529 Builder.CreateStore(Count, Counter);
531 Value *Sel = Builder.CreateSelect(BI->getCondition(),
532 Builder.getInt64(Edge),
533 Builder.getInt64(Edge + 1));
535 Idx.push_back(Builder.getInt64(0));
537 Value *Counter = Builder.CreateInBoundsGEP(Counters, Idx);
538 Value *Count = Builder.CreateLoad(Counter);
539 Count = Builder.CreateAdd(Count, Builder.getInt64(1));
540 Builder.CreateStore(Count, Counter);
557 IRBuilder<> Builder(ComplexEdgePreds[i+1]->getTerminator());
558 Builder.CreateStore(Builder.getInt32(i), EdgeState);
564 IRBuilder<> Builder(InsertPt);
566 Builder.CreateConstInBoundsGEP2_64(EdgeTable, 0,
571 Builder.CreateCall2(getIncrementIndirectCounterFunc(),
593 IRBuilder<> Builder(BB);
600 FTy = FunctionType::get(Builder.getVoidTy(), Params, false);
605 Builder.CreateCall2(GCOVInit, WriteoutF, FlushF);
606 Builder.CreateRetVoid();
645 IRBuilder<> Builder(Succ);
646 Value *Counter = Builder.CreateConstInBoundsGEP2_64(Counters, 0,
745 IRBuilder<> Builder(BB);
757 Builder.CreateCall2(StartFile,
758 Builder.CreateGlobalStringPtr(FilenameGcda),
759 Builder.CreateGlobalStringPtr(ReversedVersion));
762 Builder.CreateCall3(
763 EmitFunction, Builder.getInt32(j),
765 Builder.CreateGlobalStringPtr(getFunctionName(SP)) :
766 Constant::getNullValue(Builder.getInt8PtrTy()),
767 Builder.getInt8(Options.UseCfgChecksum));
772 Builder.CreateCall2(EmitArcs,
773 Builder.getInt32(Arcs),
774 Builder.CreateConstGEP2_64(GV, 0, 0));
776 Builder.CreateCall(EndFile);
780 Builder.CreateRetVoid();
795 IRBuilder<> Builder(BB);
805 Value *Pred = Builder.CreateLoad(Arg, "pred");
806 Value *Cond = Builder.CreateICmpEQ(Pred, Builder.getInt32(0xffffffff));
809 Builder.SetInsertPoint(PredNotNegOne);
813 Value *ZExtPred = Builder.CreateZExt(Pred, Builder.getInt64Ty());
816 Value *GEP = Builder.CreateGEP(Arg, ZExtPred);
817 Value *Counter = Builder.CreateLoad(GEP, "counter");
818 Cond = Builder.CreateICmpEQ(Counter,
820 Builder.getInt64Ty()->getPointerTo()));
821 Builder.CreateCondBr(Cond, Exit, CounterEnd);
824 Builder.SetInsertPoint(CounterEnd);
825 Value *Add = Builder.CreateAdd(Builder.CreateLoad(Counter),
826 Builder.getInt64(1));
827 Builder.CreateStore(Add, Counter);
828 Builder.CreateBr(Exit);
831 Builder.SetInsertPoint(Exit);
832 Builder.CreateRetVoid();
855 IRBuilder<> Builder(Entry);
856 Builder.CreateCall(WriteoutF);
864 Builder.CreateStore(Null, GV);
869 Builder.CreateRetVoid();
872 Builder.CreateRet(ConstantInt::get(RetTy, 0));