Lines Matching refs:ElementSize
797 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(),
800 if (ElementSize != 1) {
801 if (ElementSize.isPowerOf2()) {
803 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2()));
805 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize));
858 APInt ElementSize = APInt(IntPtrTy->getIntegerBitWidth(),
861 if (ElementSize != 1) {
862 if (ElementSize.isPowerOf2()) {
864 Idx, ConstantInt::get(IntPtrTy, ElementSize.logBase2()));
866 Idx = Builder.CreateMul(Idx, ConstantInt::get(IntPtrTy, ElementSize));