Lines Matching refs:IRB
98 static Value *createByteGEP(IRBuilderBase &IRB, const DataLayout &DL, in createByteGEP() argument
128 Indices.push_back(IRB.getInt(Index)); in createByteGEP()
131 Ptr = IRB.CreateGEP(OrigElemTy, Ptr, Indices); in createByteGEP()
132 return IRB.CreateBitCast(Ptr, ResElemTy->getPointerTo(AddrSpace)); in createByteGEP()
139 Ptr = IRB.CreateBitCast(Ptr, IRB.getInt8PtrTy(AddrSpace)); in createByteGEP()
140 Ptr = IRB.CreateGEP(IRB.getInt8Ty(), Ptr, IRB.getInt(OrigOffset)); in createByteGEP()
142 return IRB.CreateBitCast(Ptr, ResElemTy->getPointerTo(AddrSpace)); in createByteGEP()
227 IRBuilder<NoFolder> IRB(&CB); in doPromotion() local
242 LoadInst *LI = IRB.CreateAlignedLoad( in doPromotion()
244 createByteGEP(IRB, DL, V, Pair.second.Ty, Pair.first), in doPromotion()
338 IRBuilder<NoFolder> IRB(&NF->begin()->front()); in doPromotion() local
349 AllocaInst *NewAlloca = IRB.CreateAlloca( in doPromotion()
352 IRB.CreateAlignedStore(NewArg, NewAlloca, Pair.second.Alignment); in doPromotion()