reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
945 bool HasScalarUndef = !C->getType()->isVectorTy() && isa<UndefValue>(C); 945 bool HasScalarUndef = !C->getType()->isVectorTy() && isa<UndefValue>(C); 950 return C; // -undef -> undef 959 assert(!isa<ConstantInt>(C) && "Unexpected Integer UnaryOp"); 961 if (ConstantFP *CFP = dyn_cast<ConstantFP>(C)) { 967 return ConstantFP::get(C->getContext(), neg(CV)); 969 } else if (VectorType *VTy = dyn_cast<VectorType>(C->getType())) { 975 Constant *Elt = ConstantExpr::getExtractElement(C, ExtractIdx);