Lines Matching refs:IntTy
1984 Type *IntTy = Type::getIntNTy(AllocaTy->getContext(), SizeInBits); in isIntegerWideningViable() local
1985 if (!canConvertValue(DL, AllocaTy, IntTy) || in isIntegerWideningViable()
1986 !canConvertValue(DL, IntTy, AllocaTy)) in isIntegerWideningViable()
2016 IntegerType *IntTy = cast<IntegerType>(V->getType()); in extractInteger() local
2017 assert(DL.getTypeStoreSize(Ty) + Offset <= DL.getTypeStoreSize(IntTy) && in extractInteger()
2021 ShAmt = 8 * (DL.getTypeStoreSize(IntTy) - DL.getTypeStoreSize(Ty) - Offset); in extractInteger()
2026 assert(Ty->getBitWidth() <= IntTy->getBitWidth() && in extractInteger()
2028 if (Ty != IntTy) { in extractInteger()
2037 IntegerType *IntTy = cast<IntegerType>(Old->getType()); in insertInteger() local
2039 assert(Ty->getBitWidth() <= IntTy->getBitWidth() && in insertInteger()
2042 if (Ty != IntTy) { in insertInteger()
2043 V = IRB.CreateZExt(V, IntTy, Name + ".ext"); in insertInteger()
2046 assert(DL.getTypeStoreSize(Ty) + Offset <= DL.getTypeStoreSize(IntTy) && in insertInteger()
2050 ShAmt = 8 * (DL.getTypeStoreSize(IntTy) - DL.getTypeStoreSize(Ty) - Offset); in insertInteger()
2056 if (ShAmt || Ty->getBitWidth() < IntTy->getBitWidth()) { in insertInteger()
2057 APInt Mask = ~Ty->getMask().zext(IntTy->getBitWidth()).shl(ShAmt); in insertInteger()
2162 IntegerType *IntTy; member in llvm::sroa::AllocaSliceRewriter
2210 IntTy(IsIntegerPromotable in AllocaSliceRewriter()
2226 assert((!IntTy && !VecTy) || (IntTy && !VecTy) || (!IntTy && VecTy)); in AllocaSliceRewriter()
2257 if (VecTy || IntTy) in visit()
2348 assert(IntTy && "We cannot insert an integer to the alloca"); in rewriteIntegerLoad()
2351 V = convertValue(DL, IRB, V, IntTy); in rewriteIntegerLoad()
2382 } else if (IntTy && LI.getType()->isIntegerTy()) { in visitLoadInst()
2477 assert(IntTy && "We cannot extract an integer from the alloca"); in rewriteIntegerStore()
2479 if (DL.getTypeSizeInBits(V->getType()) != IntTy->getBitWidth()) { in rewriteIntegerStore()
2482 Old = convertValue(DL, IRB, Old, IntTy); in rewriteIntegerStore()
2522 if (IntTy && V->getType()->isIntegerTy()) in visitStoreInst()
2620 if (!VecTy && !IntTy && in visitMemSetInst()
2662 } else if (IntTy) { in visitMemSetInst()
2670 if (IntTy && (BeginOffset != NewAllocaBeginOffset || in visitMemSetInst()
2674 Old = convertValue(DL, IRB, Old, IntTy); in visitMemSetInst()
2678 assert(V->getType() == IntTy && in visitMemSetInst()
2746 !VecTy && !IntTy && in visitMemTransferInst()
2811 IntTy ? Type::getIntNTy(IntTy->getContext(), Size * 8) : nullptr; in visitMemTransferInst()
2822 } else if (IntTy && !IsWholeAlloca) { in visitMemTransferInst()
2842 } else if (IntTy && !IsWholeAlloca && !IsDest) { in visitMemTransferInst()
2844 Src = convertValue(DL, IRB, Src, IntTy); in visitMemTransferInst()
2856 } else if (IntTy && !IsWholeAlloca && IsDest) { in visitMemTransferInst()
2859 Old = convertValue(DL, IRB, Old, IntTy); in visitMemTransferInst()