Lines Matching refs:CV
45 static Constant *BitCastConstantVector(Constant *CV, VectorType *DstTy) { in BitCastConstantVector() argument
47 if (CV->isAllOnesValue()) return Constant::getAllOnesValue(DstTy); in BitCastConstantVector()
48 if (CV->isNullValue()) return Constant::getNullValue(DstTy); in BitCastConstantVector()
54 if (NumElts != CV->getType()->getVectorNumElements()) in BitCastConstantVector()
60 Type *Ty = IntegerType::get(CV->getContext(), 32); in BitCastConstantVector()
63 ConstantExpr::getExtractElement(CV, ConstantInt::get(Ty, i)); in BitCastConstantVector()
945 const APInt *CV; in ConstantFoldBinaryInstruction() local
947 if (match(C1, m_APInt(CV)) || match(C2, m_APInt(CV))) in ConstantFoldBinaryInstruction()
948 if ((*CV)[0]) in ConstantFoldBinaryInstruction()
2039 auto *CV = cast<ConstantDataVector>(Idxs[0]); in isInBoundsIndices() local
2040 CI = dyn_cast_or_null<ConstantInt>(CV->getSplatValue()); in isInBoundsIndices()
2277 auto *CV = cast<ConstantDataVector>(Idxs[i]); in ConstantFoldGetElementPtr() local
2279 for (unsigned I = 0, E = CV->getNumElements(); I != E; ++I) { in ConstantFoldGetElementPtr()
2280 auto *CI = cast<ConstantInt>(CV->getElementAsConstant(I)); in ConstantFoldGetElementPtr()