reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

lib/IR/ConstantFold.cpp
  529       return Constant::getNullValue(DestTy);
  530     return UndefValue::get(DestTy);
  533   if (V->isNullValue() && !DestTy->isX86_MMXTy() &&
  535     return Constant::getNullValue(DestTy);
  542       if (unsigned newOpc = foldConstantCastPair(opc, CE, DestTy))
  543         return ConstantExpr::getCast(newOpc, CE->getOperand(0), DestTy);
  565         return ConstantExpr::getPointerCast(CE->getOperand(0), DestTy);
  573       DestTy->isVectorTy() &&
  574       DestTy->getVectorNumElements() == V->getType()->getVectorNumElements()) {
  576     VectorType *DestVecTy = cast<VectorType>(DestTy);
  597       Val.convert(DestTy->isHalfTy() ? APFloat::IEEEhalf() :
  598                   DestTy->isFloatTy() ? APFloat::IEEEsingle() :
  599                   DestTy->isDoubleTy() ? APFloat::IEEEdouble() :
  600                   DestTy->isX86_FP80Ty() ? APFloat::x87DoubleExtended() :
  601                   DestTy->isFP128Ty() ? APFloat::IEEEquad() :
  602                   DestTy->isPPC_FP128Ty() ? APFloat::PPCDoubleDouble() :
  613       uint32_t DestBitWidth = cast<IntegerType>(DestTy)->getBitWidth();
  619         return UndefValue::get(DestTy);
  626       return ConstantPointerNull::get(cast<PointerType>(DestTy));
  631       return ConstantInt::get(DestTy, 0);
  645         if (DestTy->isVectorTy())
  653           if (Constant *C = getFoldedSizeOf(Ty, DestTy, !isOne)) {
  655                                                                 DestTy, false),
  656                                         Idx, DestTy);
  668                 return getFoldedAlignOf(STy->getElementType(1), DestTy, false);
  674                                                 DestTy, false))
  685       APFloat apf(DestTy->getFltSemantics(),
  686                   APInt::getNullValue(DestTy->getPrimitiveSizeInBits()));
  694       uint32_t BitWidth = cast<IntegerType>(DestTy)->getBitWidth();
  701       uint32_t BitWidth = cast<IntegerType>(DestTy)->getBitWidth();
  710     uint32_t DestBitWidth = cast<IntegerType>(DestTy)->getBitWidth();
  727     return FoldBitCast(V, DestTy);