Lines Matching defs:IRB

240   Value *memToShadow(Value *Shadow, IRBuilder<> &IRB);
301 Value *MemProfiler::memToShadow(Value *Shadow, IRBuilder<> &IRB) {
303 Shadow = IRB.CreateAnd(Shadow, Mapping.Mask);
304 Shadow = IRB.CreateLShr(Shadow, Mapping.Scale);
307 return IRB.CreateAdd(Shadow, DynamicShadowOffset);
312 IRBuilder<> IRB(MI);
314 IRB.CreateCall(isa<MemMoveInst>(MI) ? MemProfMemmove : MemProfMemcpy,
316 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)});
318 IRB.CreateCall(
321 IRB.CreateIntCast(MI->getOperand(1), IRB.getInt32Ty(), false),
322 IRB.CreateIntCast(MI->getOperand(2), IntptrTy, false)});
441 IRBuilder<> IRB(I);
442 Value *MaskElem = IRB.CreateExtractElement(Mask, Idx);
447 IRBuilder<> IRB(InsertBefore);
449 IRB.CreateGEP(VTy, Addr, {Zero, ConstantInt::get(IntptrTy, Idx)});
484 IRBuilder<> IRB(InsertBefore);
485 Value *AddrLong = IRB.CreatePointerCast(Addr, IntptrTy);
488 IRB.CreateCall(MemProfMemoryAccessCallback[IsWrite], AddrLong);
496 Value *ShadowPtr = memToShadow(AddrLong, IRB);
497 Value *ShadowAddr = IRB.CreateIntToPtr(ShadowPtr, ShadowPtrTy);
498 Value *ShadowValue = IRB.CreateLoad(ShadowTy, ShadowAddr);
500 ShadowValue = IRB.CreateAdd(ShadowValue, Inc);
501 IRB.CreateStore(ShadowValue, ShadowAddr);
563 IRBuilder<> IRB(*C);
572 FunctionType::get(IRB.getVoidTy(), Args1, false));
580 PtrTy, IRB.getInt32Ty(), IntptrTy);
594 IRBuilder<> IRB(&F.front(), F.front().begin());
595 IRB.CreateCall(MemProfInitFunction, {});
602 IRBuilder<> IRB(&F.front().front());
607 DynamicShadowOffset = IRB.CreateLoad(IntptrTy, GlobalDynamicAddress);