Home | History | Annotate | Download | only in Instrumentation

Lines Matching refs:Builder

625             IRBuilder<> Builder(&*BB.getFirstInsertionPt());
626 Value *Counter = Builder.CreateConstInBoundsGEP2_64(Counters, 0,
628 Value *Count = Builder.CreateLoad(Counter);
629 Count = Builder.CreateAdd(Count, Builder.getInt64(1));
630 Builder.CreateStore(Count, Counter);
632 IRBuilder<> Builder(BI);
633 Value *Sel = Builder.CreateSelect(BI->getCondition(),
634 Builder.getInt64(Edge),
635 Builder.getInt64(Edge + 1));
636 Value *Counter = Builder.CreateInBoundsGEP(
637 Counters->getValueType(), Counters, {Builder.getInt64(0), Sel});
638 Value *Count = Builder.CreateLoad(Counter);
639 Count = Builder.CreateAdd(Count, Builder.getInt64(1));
640 Builder.CreateStore(Count, Counter);
658 IRBuilder<> Builder(&*ComplexEdgePreds[i + 1]->getFirstInsertionPt());
659 Builder.CreateStore(Builder.getInt32(i), EdgeState);
664 IRBuilder<> Builder(&*ComplexEdgeSuccs[i + 1]->getFirstInsertionPt());
666 Builder.CreateConstInBoundsGEP2_64(EdgeTable, 0,
671 Builder.CreateCall(getIncrementIndirectCounterFunc(),
693 IRBuilder<> Builder(BB);
700 FTy = FunctionType::get(Builder.getVoidTy(), Params, false);
705 Builder.CreateCall(GCOVInit, {WriteoutF, FlushF});
706 Builder.CreateRetVoid();
745 IRBuilder<> Builder(Succ);
746 Value *Counter = Builder.CreateConstInBoundsGEP2_64(Counters, 0,
843 IRBuilder<> Builder(BB);
862 Builder.CreateCall(StartFile,
863 {Builder.CreateGlobalStringPtr(FilenameGcda),
864 Builder.CreateGlobalStringPtr(ReversedVersion),
865 Builder.getInt32(CfgChecksum)});
869 Builder.CreateCall(
871 {Builder.getInt32(j),
873 ? Builder.CreateGlobalStringPtr(getFunctionName(SP))
874 : Constant::getNullValue(Builder.getInt8PtrTy()),
875 Builder.getInt32(FuncChecksum),
876 Builder.getInt8(Options.UseCfgChecksum),
877 Builder.getInt32(CfgChecksum)});
882 Builder.CreateCall(EmitArcs, {Builder.getInt32(Arcs),
883 Builder.CreateConstGEP2_64(GV, 0, 0)});
885 Builder.CreateCall(SummaryInfo, {});
886 Builder.CreateCall(EndFile, {});
890 Builder.CreateRetVoid();
905 IRBuilder<> Builder(BB);
915 Value *Pred = Builder.CreateLoad(Arg, "pred");
916 Value *Cond = Builder.CreateICmpEQ(Pred, Builder.getInt32(0xffffffff));
919 Builder.SetInsertPoint(PredNotNegOne);
923 Value *ZExtPred = Builder.CreateZExt(Pred, Builder.getInt64Ty());
926 Value *GEP = Builder.CreateGEP(Type::getInt64PtrTy(*Ctx), Arg, ZExtPred);
927 Value *Counter = Builder.CreateLoad(GEP, "counter");
928 Cond = Builder.CreateICmpEQ(Counter,
930 Builder.getInt64Ty()->getPointerTo()));
931 Builder.CreateCondBr(Cond, Exit, CounterEnd);
934 Builder.SetInsertPoint(CounterEnd);
935 Value *Add = Builder.CreateAdd(Builder.CreateLoad(Counter),
936 Builder
937 Builder.CreateStore(Add, Counter);
938 Builder.CreateBr(Exit);
941 Builder.SetInsertPoint(Exit);
942 Builder.CreateRetVoid();
965 IRBuilder<> Builder(Entry);
966 Builder.CreateCall(WriteoutF, {});
972 Builder.CreateStore(Null, GV);
977 Builder.CreateRetVoid();
980 Builder.CreateRet(ConstantInt::get(RetTy, 0));