Home | History | Annotate | Download | only in Analysis

Lines Matching refs:DestTy

48 static Constant *FoldBitCast(Constant *C, Type *DestTy,
51 if (C->isNullValue() && !DestTy->isX86_MMXTy())
52 return Constant::getNullValue(DestTy);
53 if (C->isAllOnesValue() && !DestTy->isX86_MMXTy())
54 return Constant::getAllOnesValue(DestTy);
57 if (IntegerType *IT = dyn_cast<IntegerType>(DestTy)) {
60 return ConstantExpr::getBitCast(C, DestTy);
77 return ConstantExpr::getBitCast(C, DestTy);
95 VectorType *DestVTy = dyn_cast<VectorType>(DestTy);
97 return ConstantExpr::getBitCast(C, DestTy);
103 return FoldBitCast(ConstantVector::get(Ops), DestTy, TD);
108 return ConstantExpr::getBitCast(C, DestTy);
114 return ConstantExpr::getBitCast(C, DestTy);
138 return ConstantExpr::getBitCast(C, DestTy);
175 return ConstantExpr::getBitCast(C, DestTy);
201 return ConstantExpr::getBitCast(C, DestTy);
927 Constant *llvm::ConstantFoldInstOperands(unsigned Opcode, Type *DestTy,
963 return ConstantExpr::getIntegerCast(Input, DestTy, false);
966 return ConstantExpr::getCast(Opcode, Ops[0], DestTy);
975 return FoldBitCast(CE->getOperand(0), DestTy, *TD);
977 return ConstantExpr::getCast(Opcode, Ops[0], DestTy);
987 return ConstantExpr::getCast(Opcode, Ops[0], DestTy);
990 return FoldBitCast(Ops[0], DestTy, *TD);
991 return ConstantExpr::getBitCast(Ops[0], DestTy);
1001 if (Constant *C = CastGEPIndices(Ops, DestTy, TD, TLI))
1003 if (Constant *C = SymbolicallyEvaluateGEP(Ops, DestTy, TD, TLI))