Lines Matching defs:FromTy
2762 /// Check if a bitcast between a value of type \p FromTy to type \p ToTy would
2764 /// symmetric, i.e swapping \p FromTy and \p ToTy should give the same result.
2769 static bool isBitCastSemanticsPreserving(const DataLayout &DL, Type *FromTy,
2772 if (FromTy == ToTy)
2776 if (FromTy->isIntOrPtrTy() && ToTy->isIntOrPtrTy()) {
2777 bool SameSize = DL.getTypeSizeInBits(FromTy) == DL.getTypeSizeInBits(ToTy);
2778 bool LosslessConversion = !DL.isNonIntegralPointerType(FromTy) &&
2795 Type *FromTy = From.getType();
2808 if (isBitCastSemanticsPreserving(DL, FromTy, ToTy))
2813 if (FromTy->isIntegerTy() && ToTy->isIntegerTy()) {
2814 uint64_t FromBits = FromTy->getPrimitiveSizeInBits();