Lines Matching defs:IRB

257   Value *CreateFunctionLocalGateCmp(IRBuilder<> &IRB);
348 IRBuilder<> IRB(M.getContext());
355 IRB.CreatePtrAdd(SecStart, ConstantInt::get(IntptrTy, sizeof(uint64_t)));
412 IRBuilder<> IRB(*C);
413 Int64Ty = IRB.getInt64Ty();
414 Int32Ty = IRB.getInt32Ty();
415 Int16Ty = IRB.getInt16Ty();
416 Int8Ty = IRB.getInt8Ty();
417 Int1Ty = IRB.getInt1Ty();
431 IRB.getInt8Ty(), IRB.getInt8Ty());
434 IRB.getInt16Ty(), IRB.getInt16Ty());
437 IRB.getInt32Ty(), IRB.getInt32Ty());
476 M.getOrInsertFunction(SanCovTraceDiv4, AL, VoidTy, IRB.getInt32Ty());
777 IRBuilder<> IRB(&*F.getEntryBlock().getFirstInsertionPt());
780 PCs.push_back((Constant *)IRB.CreatePointerCast(&F, PtrTy));
781 PCs.push_back((Constant *)IRB.CreateIntToPtr(
784 PCs.push_back((Constant *)IRB.CreatePointerCast(
815 Value *ModuleSanitizerCoverage::CreateFunctionLocalGateCmp(IRBuilder<> &IRB) {
816 auto Load = IRB.CreateLoad(Int64Ty, SanCovCallbackGate);
818 auto Cmp = IRB.CreateIsNotNull(Load);
866 InstrumentationIRBuilder IRB(I);
871 IRB.CreateCall(SanCovTracePCIndir, IRB.CreatePointerCast(Callee, IntptrTy));
884 InstrumentationIRBuilder IRB(I);
895 Cond = IRB.CreateIntCast(Cond, Int64Ty, false);
917 IRB.CreateCall(SanCovTraceSwitchFunction, {Cond, GV});
926 InstrumentationIRBuilder IRB(BO);
936 IRB.CreateCall(SanCovTraceDivFunction[CallbackIdx],
937 {IRB.CreateIntCast(A1, Ty, true)});
944 InstrumentationIRBuilder IRB(GEP);
947 IRB.CreateCall(SanCovTraceGepFunction,
948 {IRB.CreateIntCast(Idx, IntptrTy, true)});
964 InstrumentationIRBuilder IRB(LI);
969 IRB.CreateCall(SanCovLoadFunction[Idx], Ptr);
972 InstrumentationIRBuilder IRB(SI);
977 IRB.CreateCall(SanCovStoreFunction[Idx], Ptr);
986 InstrumentationIRBuilder IRB(ICMP);
1017 IRB.CreateCall(CallbackFunc, {IRB.CreateIntCast(A0, Ty, true),
1018 IRB.CreateIntCast(A1, Ty, true)});
1040 InstrumentationIRBuilder IRB(&*IP);
1042 IRB.SetCurrentDebugLocation(EntryLoc);
1044 IRB.CreateCall(SanCovTracePC)
1048 auto GuardPtr = IRB.CreateConstInBoundsGEP2_64(
1056 IRB.CreateCall(SanCovTracePCGuard, GuardPtr)->setCannotMerge();
1060 auto CounterPtr = IRB.CreateGEP(
1063 auto Load = IRB.CreateLoad(Int8Ty, CounterPtr);
1064 auto Inc = IRB.CreateAdd(Load, ConstantInt::get(Int8Ty, 1));
1065 auto Store = IRB.CreateStore(Inc, CounterPtr);
1070 auto FlagPtr = IRB.CreateGEP(
1073 auto Load = IRB.CreateLoad(Int1Ty, FlagPtr);
1075 IRB.CreateIsNull(Load), &*IP, false,
1076 MDBuilder(IRB.getContext()).createUnlikelyBranchWeights());
1085 auto FrameAddrPtr = IRB.CreateIntrinsic(
1087 IRB.getPtrTy(M->getDataLayout().getAllocaAddrSpace()),
1089 auto FrameAddrInt = IRB.CreatePtrToInt(FrameAddrPtr, IntptrTy);
1090 auto LowestStack = IRB.CreateLoad(IntptrTy, SanCovLowestStack);
1091 auto IsStackLower = IRB.CreateICmpULT(FrameAddrInt, LowestStack);
1094 MDBuilder(IRB.getContext()).createUnlikelyBranchWeights());
1134 IRBuilder<> IRB(&*F.getEntryBlock().getFirstInsertionPt());
1139 CFs.push_back((Constant *)IRB.CreatePointerCast(&F, PtrTy));
1141 CFs.push_back((Constant *)IRB.CreatePointerCast(BlockAddress::get(&BB),
1146 CFs.push_back((Constant *)IRB.CreatePointerCast(BlockAddress::get(SuccBB),
1156 CFs.push_back((Constant *)IRB.CreateIntToPtr(
1162 (Constant *)IRB.CreatePointerCast(CalledF, PtrTy));