Lines Matching defs:FromTy
2696 /// Check if a bitcast between a value of type \p FromTy to type \p ToTy would
2698 /// symmetric, i.e swapping \p FromTy and \p ToTy should give the same result.
2703 static bool isBitCastSemanticsPreserving(const DataLayout &DL, Type *FromTy,
2706 if (FromTy == ToTy)
2710 if (FromTy->isIntOrPtrTy() && ToTy->isIntOrPtrTy()) {
2711 bool SameSize = DL.getTypeSizeInBits(FromTy) == DL.getTypeSizeInBits(ToTy);
2712 bool LosslessConversion = !DL.isNonIntegralPointerType(FromTy) &&
2729 Type *FromTy = From.getType();
2742 if (isBitCastSemanticsPreserving(DL, FromTy, ToTy))
2747 if (FromTy->isIntegerTy() && ToTy->isIntegerTy()) {
2748 uint64_t FromBits = FromTy->getPrimitiveSizeInBits();