Lines Matching refs:IntTy
2059 Type *IntTy = Type::getIntNTy(AllocaTy->getContext(), SizeInBits); in isIntegerWideningViable() local
2060 if (!canConvertValue(DL, AllocaTy, IntTy) || in isIntegerWideningViable()
2061 !canConvertValue(DL, IntTy, AllocaTy)) in isIntegerWideningViable()
2091 IntegerType *IntTy = cast<IntegerType>(V->getType()); in extractInteger() local
2092 assert(DL.getTypeStoreSize(Ty) + Offset <= DL.getTypeStoreSize(IntTy) && in extractInteger()
2096 ShAmt = 8 * (DL.getTypeStoreSize(IntTy) - DL.getTypeStoreSize(Ty) - Offset); in extractInteger()
2101 assert(Ty->getBitWidth() <= IntTy->getBitWidth() && in extractInteger()
2103 if (Ty != IntTy) { in extractInteger()
2112 IntegerType *IntTy = cast<IntegerType>(Old->getType()); in insertInteger() local
2114 assert(Ty->getBitWidth() <= IntTy->getBitWidth() && in insertInteger()
2117 if (Ty != IntTy) { in insertInteger()
2118 V = IRB.CreateZExt(V, IntTy, Name + ".ext"); in insertInteger()
2121 assert(DL.getTypeStoreSize(Ty) + Offset <= DL.getTypeStoreSize(IntTy) && in insertInteger()
2125 ShAmt = 8 * (DL.getTypeStoreSize(IntTy) - DL.getTypeStoreSize(Ty) - Offset); in insertInteger()
2131 if (ShAmt || Ty->getBitWidth() < IntTy->getBitWidth()) { in insertInteger()
2132 APInt Mask = ~Ty->getMask().zext(IntTy->getBitWidth()).shl(ShAmt); in insertInteger()
2238 IntegerType *IntTy; member in llvm::sroa::AllocaSliceRewriter
2288 IntTy(IsIntegerPromotable in AllocaSliceRewriter()
2303 assert((!IntTy && !VecTy) || (IntTy && !VecTy) || (!IntTy && VecTy)); in AllocaSliceRewriter()
2334 if (VecTy || IntTy) in visit()
2426 assert(IntTy && "We cannot insert an integer to the alloca"); in rewriteIntegerLoad()
2429 V = convertValue(DL, IRB, V, IntTy); in rewriteIntegerLoad()
2465 } else if (IntTy && LI.getType()->isIntegerTy()) { in visitLoadInst()
2581 assert(IntTy && "We cannot extract an integer from the alloca"); in rewriteIntegerStore()
2583 if (DL.getTypeSizeInBits(V->getType()) != IntTy->getBitWidth()) { in rewriteIntegerStore()
2586 Old = convertValue(DL, IRB, Old, IntTy); in rewriteIntegerStore()
2632 if (IntTy && V->getType()->isIntegerTy()) in visitStoreInst()
2737 if (!VecTy && !IntTy && in visitMemSetInst()
2780 } else if (IntTy) { in visitMemSetInst()
2788 if (IntTy && (BeginOffset != NewAllocaBeginOffset || in visitMemSetInst()
2792 Old = convertValue(DL, IRB, Old, IntTy); in visitMemSetInst()
2796 assert(V->getType() == IntTy && in visitMemSetInst()
2866 !VecTy && !IntTy && in visitMemTransferInst()
2947 IntTy ? Type::getIntNTy(IntTy->getContext(), Size * 8) : nullptr; in visitMemTransferInst()
2958 } else if (IntTy && !IsWholeAlloca) { in visitMemTransferInst()
2978 } else if (IntTy && !IsWholeAlloca && !IsDest) { in visitMemTransferInst()
2980 Src = convertValue(DL, IRB, Src, IntTy); in visitMemTransferInst()
2995 } else if (IntTy && !IsWholeAlloca && IsDest) { in visitMemTransferInst()
2998 Old = convertValue(DL, IRB, Old, IntTy); in visitMemTransferInst()