• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/llvmCore-3425.0.34/lib/VMCore/

Lines Matching refs:DstTy

2055   Type* DstTy = getType();
2056 if (SrcTy == DstTy)
2061 return DstTy->isPointerTy();
2109 /// * %S = secondOpcode MidTy %F to DstTy
2111 /// * %Replacement = resultOpcode %SrcTy %x to DstTy
2115 Type *SrcTy, Type *MidTy, Type *DstTy, Type *IntPtrTy) {
2171 bool chainedBitcast = (SrcTy == DstTy && isFirstBitcast && isSecondBitcast);
2175 (isSecondBitcast && isa<VectorType>(MidTy) != isa<VectorType>(DstTy)))
2195 if (!SrcTy->isVectorTy() && DstTy->isIntegerTy())
2201 if (DstTy->isFloatingPointTy())
2227 // ext, trunc -> bitcast, if the SrcTy and DstTy are same size
2228 // ext, trunc -> ext, if sizeof(SrcTy) < sizeof(DstTy)
2229 // ext, trunc -> trunc, if sizeof(SrcTy) > sizeof(DstTy)
2231 unsigned DstSize = DstTy->getScalarSizeInBits();
2243 if (SrcTy == DstTy)
2254 if (MidTy->isPointerTy() && DstTy->isPointerTy())
2263 unsigned DstSize = DstTy->getScalarSizeInBits();
2617 CastInst::castIsValid(Instruction::CastOps op, Value *S, Type *DstTy) {
2621 if (!SrcTy->isFirstClassType() || !DstTy->isFirstClassType() ||
2622 SrcTy->isAggregateType() || DstTy->isAggregateType())
2627 unsigned DstBitSize = DstTy->getScalarSizeInBits();
2634 unsigned DstLength = DstTy->isVectorTy() ?
2635 cast<VectorType>(DstTy)->getNumElements() : 0;
2641 return SrcTy->isIntOrIntVectorTy() && DstTy->isIntOrIntVectorTy() &&
2644 return SrcTy->isIntOrIntVectorTy() && DstTy->isIntOrIntVectorTy() &&
2647 return SrcTy->isIntOrIntVectorTy() && DstTy->isIntOrIntVectorTy() &&
2650 return SrcTy->isFPOrFPVectorTy() && DstTy->isFPOrFPVectorTy() &&
2653 return SrcTy->isFPOrFPVectorTy() && DstTy->isFPOrFPVectorTy() &&
2657 return SrcTy->isIntOrIntVectorTy() && DstTy->isFPOrFPVectorTy() &&
2661 return SrcTy->isFPOrFPVectorTy() && DstTy->isIntOrIntVectorTy() &&
2664 if (isa<VectorType>(SrcTy) != isa<VectorType>(DstTy))
2667 if (VT->getNumElements() != cast<VectorType>(DstTy)->getNumElements())
2670 DstTy->getScalarType()->isIntegerTy();
2672 if (isa<VectorType>(SrcTy) != isa<VectorType>(DstTy))
2675 if (VT->getNumElements() != cast<VectorType>(DstTy)->getNumElements())
2678 DstTy->getScalarType()->isPointerTy();
2682 if (SrcTy->isPointerTy() != DstTy->isPointerTy())
2688 return SrcTy->getPrimitiveSizeInBits() == DstTy->getPrimitiveSizeInBits();