Lines Matching refs:IntTy
2111 Type *IntTy = Type::getIntNTy(AllocaTy->getContext(), SizeInBits); in isIntegerWideningViable() local
2112 if (!canConvertValue(DL, AllocaTy, IntTy) || in isIntegerWideningViable()
2113 !canConvertValue(DL, IntTy, AllocaTy)) in isIntegerWideningViable()
2142 IntegerType *IntTy = cast<IntegerType>(V->getType()); in extractInteger() local
2144 DL.getTypeStoreSize(IntTy).getFixedSize() && in extractInteger()
2148 ShAmt = 8 * (DL.getTypeStoreSize(IntTy).getFixedSize() - in extractInteger()
2154 assert(Ty->getBitWidth() <= IntTy->getBitWidth() && in extractInteger()
2156 if (Ty != IntTy) { in extractInteger()
2165 IntegerType *IntTy = cast<IntegerType>(Old->getType()); in insertInteger() local
2167 assert(Ty->getBitWidth() <= IntTy->getBitWidth() && in insertInteger()
2170 if (Ty != IntTy) { in insertInteger()
2171 V = IRB.CreateZExt(V, IntTy, Name + ".ext"); in insertInteger()
2175 DL.getTypeStoreSize(IntTy).getFixedSize() && in insertInteger()
2179 ShAmt = 8 * (DL.getTypeStoreSize(IntTy).getFixedSize() - in insertInteger()
2186 if (ShAmt || Ty->getBitWidth() < IntTy->getBitWidth()) { in insertInteger()
2187 APInt Mask = ~Ty->getMask().zext(IntTy->getBitWidth()).shl(ShAmt); in insertInteger()
2294 IntegerType *IntTy; member in llvm::sroa::AllocaSliceRewriter
2344 IntTy( in AllocaSliceRewriter()
2361 assert((!IntTy && !VecTy) || (IntTy && !VecTy) || (!IntTy && VecTy)); in AllocaSliceRewriter()
2393 if (VecTy || IntTy) in visit()
2485 assert(IntTy && "We cannot insert an integer to the alloca"); in rewriteIntegerLoad()
2489 V = convertValue(DL, IRB, V, IntTy); in rewriteIntegerLoad()
2526 } else if (IntTy && LI.getType()->isIntegerTy()) { in visitLoadInst()
2651 assert(IntTy && "We cannot extract an integer from the alloca"); in rewriteIntegerStore()
2654 IntTy->getBitWidth()) { in rewriteIntegerStore()
2657 Old = convertValue(DL, IRB, Old, IntTy); in rewriteIntegerStore()
2702 if (IntTy && V->getType()->isIntegerTy()) in visitStoreInst()
2809 if (VecTy || IntTy) in visitMemSetInst()
2866 } else if (IntTy) { in visitMemSetInst()
2874 if (IntTy && (BeginOffset != NewAllocaBeginOffset || in visitMemSetInst()
2878 Old = convertValue(DL, IRB, Old, IntTy); in visitMemSetInst()
2882 assert(V->getType() == IntTy && in visitMemSetInst()
2956 !VecTy && !IntTy && in visitMemTransferInst()
3038 IntTy ? Type::getIntNTy(IntTy->getContext(), Size * 8) : nullptr; in visitMemTransferInst()
3048 } else if (IntTy && !IsWholeAlloca) { in visitMemTransferInst()
3070 } else if (IntTy && !IsWholeAlloca && !IsDest) { in visitMemTransferInst()
3073 Src = convertValue(DL, IRB, Src, IntTy); in visitMemTransferInst()
3090 } else if (IntTy && !IsWholeAlloca && IsDest) { in visitMemTransferInst()
3093 Old = convertValue(DL, IRB, Old, IntTy); in visitMemTransferInst()