Home | History | Annotate | Download | only in Analysis

Lines Matching refs:DestTy

53 static Constant *FoldBitCast(Constant *C, Type *DestTy,
56 if (C->isNullValue() && !DestTy->isX86_MMXTy())
57 return Constant::getNullValue(DestTy);
58 if (C->isAllOnesValue() && !DestTy->isX86_MMXTy())
59 return Constant::getAllOnesValue(DestTy);
62 if (IntegerType *IT = dyn_cast<IntegerType>(DestTy)) {
65 return ConstantExpr::getBitCast(C, DestTy);
82 return ConstantExpr::getBitCast(C, DestTy);
100 VectorType *DestVTy = dyn_cast<VectorType>(DestTy);
102 return ConstantExpr::getBitCast(C, DestTy);
108 return FoldBitCast(ConstantVector::get(Ops), DestTy, TD);
113 return ConstantExpr::getBitCast(C, DestTy);
119 return ConstantExpr::getBitCast(C, DestTy);
143 return ConstantExpr::getBitCast(C, DestTy);
180 return ConstantExpr::getBitCast(C, DestTy);
206 return ConstantExpr::getBitCast(C, DestTy);
481 Type *DestTy = DestPtrTy->getElementType();
492 if (DL->getTypeSizeInBits(DestTy) == DL->getTypeSizeInBits(SrcTy)) {
496 if (SrcTy->isIntegerTy() && DestTy->isPointerTy())
498 else if (SrcTy->isPointerTy() && DestTy->isIntegerTy())
501 if (CastInst::castIsValid(Cast, C, DestTy))
502 return ConstantExpr::getCast(Cast, C, DestTy);
1009 Constant *llvm::ConstantFoldInstOperands(unsigned Opcode, Type *DestTy,
1047 return ConstantExpr::getIntegerCast(Input, DestTy, false);
1050 return ConstantExpr::getCast(Opcode, Ops[0], DestTy);
1064 if (SrcAS == DestTy->getPointerAddressSpace())
1065 return FoldBitCast(CE->getOperand(0), DestTy, *TD);
1070 return ConstantExpr::getCast(Opcode, Ops[0], DestTy);
1081 return ConstantExpr::getCast(Opcode, Ops[0], DestTy);
1084 return FoldBitCast(Ops[0], DestTy, *TD);
1085 return ConstantExpr::getBitCast(Ops[0], DestTy);
1095 if (Constant *C = CastGEPIndices(Ops, DestTy, TD, TLI))
1097 if (Constant *C = SymbolicallyEvaluateGEP(Ops, DestTy, TD, TLI))