Searched refs:FromWidth (Results 1 – 4 of 4) sorted by relevance
263 bool InstCombinerImpl::shouldChangeType(unsigned FromWidth, in shouldChangeType() argument265 bool FromLegal = FromWidth == 1 || DL.isLegalInteger(FromWidth); in shouldChangeType()270 if (ToWidth < FromWidth && isDesirableIntType(ToWidth)) in shouldChangeType()275 if ((FromLegal || isDesirableIntType(FromWidth)) && !ToLegal) in shouldChangeType()280 if (!FromLegal && !ToLegal && ToWidth > FromWidth) in shouldChangeType()297 unsigned FromWidth = From->getPrimitiveSizeInBits(); in shouldChangeType() local299 return shouldChangeType(FromWidth, ToWidth); in shouldChangeType()
2644 unsigned FromWidth = VecTy->getScalarSizeInBits(); in splitVectorElements() local2645 assert(isPowerOf2_32(ToWidth) && isPowerOf2_32(FromWidth)); in splitVectorElements()2646 assert(ToWidth <= FromWidth && "Breaking up into wider elements?"); in splitVectorElements()2647 unsigned NumResults = FromWidth / ToWidth; in splitVectorElements()
318 uint64_t FromWidth) { in castAPSInt() argument
501 unsigned FromWidth = Ctx.getIntWidth(FromType); in getNarrowingKind() local505 constexpr auto CanRepresentAll = [](bool FromSigned, unsigned FromWidth, in getNarrowingKind()507 return (FromWidth < ToWidth + (FromSigned == ToSigned)) && in getNarrowingKind()511 if (CanRepresentAll(FromSigned, FromWidth, ToSigned, ToWidth)) in getNarrowingKind()522 BitFieldWidth < FromWidth) { in getNarrowingKind()527 FromWidth = BitFieldWidth; in getNarrowingKind()549 if (FromWidth < ToWidth) { in getNarrowingKind()