Home | History | Annotate | Download | only in Analysis

Lines Matching refs:DestTy

47 static Constant *FoldBitCast(Constant *C, Type *DestTy,
50 if (C->isNullValue() && !DestTy->isX86_MMXTy())
51 return Constant::getNullValue(DestTy);
52 if (C->isAllOnesValue() && !DestTy->isX86_MMXTy())
53 return Constant::getAllOnesValue(DestTy);
56 if (IntegerType *IT = dyn_cast<IntegerType>(DestTy)) {
59 return ConstantExpr::getBitCast(C, DestTy);
76 return ConstantExpr::getBitCast(C, DestTy);
94 VectorType *DestVTy = dyn_cast<VectorType>(DestTy);
96 return ConstantExpr::getBitCast(C, DestTy);
102 return FoldBitCast(ConstantVector::get(Ops), DestTy, TD);
107 return ConstantExpr::getBitCast(C, DestTy);
113 return ConstantExpr::getBitCast(C, DestTy);
137 return ConstantExpr::getBitCast(C, DestTy);
174 return ConstantExpr::getBitCast(C, DestTy);
200 return ConstantExpr::getBitCast(C, DestTy);
915 Constant *llvm::ConstantFoldInstOperands(unsigned Opcode, Type *DestTy,
951 return ConstantExpr::getIntegerCast(Input, DestTy, false);
954 return ConstantExpr::getCast(Opcode, Ops[0], DestTy);
963 return FoldBitCast(CE->getOperand(0), DestTy, *TD);
965 return ConstantExpr::getCast(Opcode, Ops[0], DestTy);
975 return ConstantExpr::getCast(Opcode, Ops[0], DestTy);
978 return FoldBitCast(Ops[0], DestTy, *TD);
979 return ConstantExpr::getBitCast(Ops[0], DestTy);
989 if (Constant *C = CastGEPIndices(Ops, DestTy, TD, TLI))
991 if (Constant *C = SymbolicallyEvaluateGEP(Ops, DestTy, TD, TLI))