Lines Matching defs:IRB
331 IRBuilder<> IRB(M.getContext());
338 IRB.CreatePtrAdd(SecStart, ConstantInt::get(IntptrTy, sizeof(uint64_t)));
395 IRBuilder<> IRB(*C);
396 Int64Ty = IRB.getInt64Ty();
397 Int32Ty = IRB.getInt32Ty();
398 Int16Ty = IRB.getInt16Ty();
399 Int8Ty = IRB.getInt8Ty();
400 Int1Ty = IRB.getInt1Ty();
414 IRB.getInt8Ty(), IRB.getInt8Ty());
417 IRB.getInt16Ty(), IRB.getInt16Ty());
420 IRB.getInt32Ty(), IRB.getInt32Ty());
459 M.getOrInsertFunction(SanCovTraceDiv4, AL, VoidTy, IRB.getInt32Ty());
739 IRBuilder<> IRB(&*F.getEntryBlock().getFirstInsertionPt());
742 PCs.push_back((Constant *)IRB.CreatePointerCast(&F, PtrTy));
743 PCs.push_back((Constant *)IRB.CreateIntToPtr(
746 PCs.push_back((Constant *)IRB.CreatePointerCast(
801 InstrumentationIRBuilder IRB(I);
806 IRB.CreateCall(SanCovTracePCIndir, IRB.CreatePointerCast(Callee, IntptrTy));
818 InstrumentationIRBuilder IRB(I);
829 Cond = IRB.CreateIntCast(Cond, Int64Ty, false);
846 IRB.CreateCall(SanCovTraceSwitchFunction, {Cond, GV});
854 InstrumentationIRBuilder IRB(BO);
864 IRB.CreateCall(SanCovTraceDivFunction[CallbackIdx],
865 {IRB.CreateIntCast(A1, Ty, true)});
872 InstrumentationIRBuilder IRB(GEP);
875 IRB.CreateCall(SanCovTraceGepFunction,
876 {IRB.CreateIntCast(Idx, IntptrTy, true)});
892 InstrumentationIRBuilder IRB(LI);
897 IRB.CreateCall(SanCovLoadFunction[Idx], Ptr);
900 InstrumentationIRBuilder IRB(SI);
905 IRB.CreateCall(SanCovStoreFunction[Idx], Ptr);
913 InstrumentationIRBuilder IRB(ICMP);
938 IRB.CreateCall(CallbackFunc, {IRB.CreateIntCast(A0, Ty, true),
939 IRB.CreateIntCast(A1, Ty, true)});
959 InstrumentationIRBuilder IRB(&*IP);
961 IRB.SetCurrentDebugLocation(EntryLoc);
963 IRB.CreateCall(SanCovTracePC)
967 auto GuardPtr = IRB.CreateIntToPtr(
968 IRB.CreateAdd(IRB.CreatePointerCast(FunctionGuardArray, IntptrTy),
971 IRB.CreateCall(SanCovTracePCGuard, GuardPtr)->setCannotMerge();
974 auto CounterPtr = IRB.CreateGEP(
977 auto Load = IRB.CreateLoad(Int8Ty, CounterPtr);
978 auto Inc = IRB.CreateAdd(Load, ConstantInt::get(Int8Ty, 1));
979 auto Store = IRB.CreateStore(Inc, CounterPtr);
984 auto FlagPtr = IRB.CreateGEP(
987 auto Load = IRB.CreateLoad(Int1Ty, FlagPtr);
989 IRB.CreateIsNull(Load), &*IP, false,
990 MDBuilder(IRB.getContext()).createUnlikelyBranchWeights());
1001 IRB.getPtrTy(M->getDataLayout().getAllocaAddrSpace()));
1003 IRB.CreateCall(GetFrameAddr, {Constant::getNullValue(Int32Ty)});
1004 auto FrameAddrInt = IRB.CreatePtrToInt(FrameAddrPtr, IntptrTy);
1005 auto LowestStack = IRB.CreateLoad(IntptrTy, SanCovLowestStack);
1006 auto IsStackLower = IRB.CreateICmpULT(FrameAddrInt, LowestStack);
1009 MDBuilder(IRB.getContext()).createUnlikelyBranchWeights());
1049 IRBuilder<> IRB(&*F.getEntryBlock().getFirstInsertionPt());
1054 CFs.push_back((Constant *)IRB.CreatePointerCast(&F, PtrTy));
1056 CFs.push_back((Constant *)IRB.CreatePointerCast(BlockAddress::get(&BB),
1061 CFs.push_back((Constant *)IRB.CreatePointerCast(BlockAddress::get(SuccBB),
1071 CFs.push_back((Constant *)IRB.CreateIntToPtr(
1077 (Constant *)IRB.CreatePointerCast(CalledF, PtrTy));