Lines Matching refs:IntTy
2088 Type *IntTy = Type::getIntNTy(AllocaTy->getContext(), SizeInBits); in isIntegerWideningViable() local
2089 if (!canConvertValue(DL, AllocaTy, IntTy) || in isIntegerWideningViable()
2090 !canConvertValue(DL, IntTy, AllocaTy)) in isIntegerWideningViable()
2119 IntegerType *IntTy = cast<IntegerType>(V->getType()); in extractInteger() local
2121 DL.getTypeStoreSize(IntTy).getFixedSize() && in extractInteger()
2125 ShAmt = 8 * (DL.getTypeStoreSize(IntTy).getFixedSize() - in extractInteger()
2131 assert(Ty->getBitWidth() <= IntTy->getBitWidth() && in extractInteger()
2133 if (Ty != IntTy) { in extractInteger()
2142 IntegerType *IntTy = cast<IntegerType>(Old->getType()); in insertInteger() local
2144 assert(Ty->getBitWidth() <= IntTy->getBitWidth() && in insertInteger()
2147 if (Ty != IntTy) { in insertInteger()
2148 V = IRB.CreateZExt(V, IntTy, Name + ".ext"); in insertInteger()
2152 DL.getTypeStoreSize(IntTy).getFixedSize() && in insertInteger()
2156 ShAmt = 8 * (DL.getTypeStoreSize(IntTy).getFixedSize() - in insertInteger()
2163 if (ShAmt || Ty->getBitWidth() < IntTy->getBitWidth()) { in insertInteger()
2164 APInt Mask = ~Ty->getMask().zext(IntTy->getBitWidth()).shl(ShAmt); in insertInteger()
2268 IntegerType *IntTy; member in llvm::sroa::AllocaSliceRewriter
2318 IntTy( in AllocaSliceRewriter()
2335 assert((!IntTy && !VecTy) || (IntTy && !VecTy) || (!IntTy && VecTy)); in AllocaSliceRewriter()
2367 if (VecTy || IntTy) in visit()
2459 assert(IntTy && "We cannot insert an integer to the alloca"); in rewriteIntegerLoad()
2463 V = convertValue(DL, IRB, V, IntTy); in rewriteIntegerLoad()
2499 } else if (IntTy && LI.getType()->isIntegerTy()) { in visitLoadInst()
2624 assert(IntTy && "We cannot extract an integer from the alloca"); in rewriteIntegerStore()
2627 IntTy->getBitWidth()) { in rewriteIntegerStore()
2630 Old = convertValue(DL, IRB, Old, IntTy); in rewriteIntegerStore()
2673 if (IntTy && V->getType()->isIntegerTy()) in visitStoreInst()
2780 if (VecTy || IntTy) in visitMemSetInst()
2837 } else if (IntTy) { in visitMemSetInst()
2845 if (IntTy && (BeginOffset != NewAllocaBeginOffset || in visitMemSetInst()
2849 Old = convertValue(DL, IRB, Old, IntTy); in visitMemSetInst()
2853 assert(V->getType() == IntTy && in visitMemSetInst()
2926 !VecTy && !IntTy && in visitMemTransferInst()
3008 IntTy ? Type::getIntNTy(IntTy->getContext(), Size * 8) : nullptr; in visitMemTransferInst()
3018 } else if (IntTy && !IsWholeAlloca) { in visitMemTransferInst()
3040 } else if (IntTy && !IsWholeAlloca && !IsDest) { in visitMemTransferInst()
3043 Src = convertValue(DL, IRB, Src, IntTy); in visitMemTransferInst()
3060 } else if (IntTy && !IsWholeAlloca && IsDest) { in visitMemTransferInst()
3063 Old = convertValue(DL, IRB, Old, IntTy); in visitMemTransferInst()