Lines Matching refs:IntPtrTy
766 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); in canonicalizeArrayIndicesToPointerSize() local
772 if ((*I)->getType() != IntPtrTy) { in canonicalizeArrayIndicesToPointerSize()
773 *I = CastInst::CreateIntegerCast(*I, IntPtrTy, true, "idxprom", GEP); in canonicalizeArrayIndicesToPointerSize()
817 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); in lowerToSingleIndexGEPs() local
843 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), in lowerToSingleIndexGEPs()
849 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToSingleIndexGEPs()
851 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize)); in lowerToSingleIndexGEPs()
864 Value *Offset = ConstantInt::get(IntPtrTy, AccumulativeByteOffset); in lowerToSingleIndexGEPs()
889 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); in lowerToArithmetics() local
891 Value *ResultPtr = Builder.CreatePtrToInt(Variadic->getOperand(0), IntPtrTy); in lowerToArithmetics()
904 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), in lowerToArithmetics()
910 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToArithmetics()
912 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize)); in lowerToArithmetics()
923 ResultPtr, ConstantInt::get(IntPtrTy, AccumulativeByteOffset)); in lowerToArithmetics()
1069 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); in splitGEP() local
1075 ConstantInt::get(IntPtrTy, Index, true), in splitGEP()
1100 ConstantInt::get(IntPtrTy, AccumulativeByteOffset, true), "uglygep", in splitGEP()