Lines Matching refs:IntPtrTy
797 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); in canonicalizeArrayIndicesToPointerSize() local
803 if ((*I)->getType() != IntPtrTy) { in canonicalizeArrayIndicesToPointerSize()
804 *I = CastInst::CreateIntegerCast(*I, IntPtrTy, true, "idxprom", GEP); in canonicalizeArrayIndicesToPointerSize()
848 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); in lowerToSingleIndexGEPs() local
874 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), in lowerToSingleIndexGEPs()
880 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToSingleIndexGEPs()
882 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize)); in lowerToSingleIndexGEPs()
895 Value *Offset = ConstantInt::get(IntPtrTy, AccumulativeByteOffset); in lowerToSingleIndexGEPs()
920 Type *IntPtrTy = DL->getIntPtrType(Variadic->getType()); in lowerToArithmetics() local
922 Value *ResultPtr = Builder.CreatePtrToInt(Variadic->getOperand(0), IntPtrTy); in lowerToArithmetics()
935 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(), in lowerToArithmetics()
941 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2())); in lowerToArithmetics()
943 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize)); in lowerToArithmetics()
954 ResultPtr, ConstantInt::get(IntPtrTy, AccumulativeByteOffset)); in lowerToArithmetics()
1099 Type *IntPtrTy = DL->getIntPtrType(GEP->getType()); in splitGEP() local
1105 ConstantInt::get(IntPtrTy, Index, true), in splitGEP()
1130 ConstantInt::get(IntPtrTy, AccumulativeByteOffset, true), "uglygep", in splitGEP()