Searched refs:CDV (Results 1 – 6 of 6) sorted by relevance
935 const ConstantDataVector *CDV = dyn_cast<ConstantDataVector>(C); in getConstantValue() local939 if (CDV) { in getConstantValue()940 elemNum = CDV->getNumElements(); in getConstantValue()941 ElemTy = CDV->getElementType(); in getConstantValue()967 if(CDV) in getConstantValue()969 Result.AggregateVal[i].FloatVal = CDV->getElementAsFloat(i); in getConstantValue()989 if(CDV) in getConstantValue()991 Result.AggregateVal[i].DoubleVal = CDV->getElementAsDouble(i); in getConstantValue()1015 if(CDV) in getConstantValue()1018 CDV->getElementType()->getPrimitiveSizeInBits(), in getConstantValue()[all …]
1066 ConstantDataVector *CDV = dyn_cast<ConstantDataVector>(opr0); in fold_pow() local1068 if (!CDV) { in fold_pow()1072 assert ((int)CDV->getNumElements() == getVecSize(FInfo) && in fold_pow()1077 double V = CDV->getElementAsAPFloat(i).convertToDouble(); in fold_pow()
1848 } else if (auto *CDV = dyn_cast<ConstantDataVector>(C)) { in propagateNonFTStore() local1850 cast<VectorType>(CDV->getType())->getElementCount().getFixedValue(); in propagateNonFTStore()1851 switch (CDV->getType()->getScalarSizeInBits()) { in propagateNonFTStore()
254 auto *CDV = dyn_cast<ConstantDataVector>(Amt); in simplifyX86immShift() local255 if (!CDV) in simplifyX86immShift()268 auto *SubElt = cast<ConstantInt>(CDV->getElementAsConstant(SubEltIdx)); in simplifyX86immShift()
1771 if (auto *CDV = dyn_cast<ConstantDataVector>(this)) { in toConstantRange() local1773 for (unsigned I = 0, E = CDV->getNumElements(); I < E; ++I) in toConstantRange()1774 CR = CR.unionWith(CDV->getElementAsAPInt(I)); in toConstantRange()
2070 if (const ConstantDataVector *CDV = dyn_cast<ConstantDataVector>(V)) { in computeKnownBits() local2075 for (unsigned i = 0, e = CDV->getNumElements(); i != e; ++i) { in computeKnownBits()2078 APInt Elt = CDV->getElementAsAPInt(i); in computeKnownBits()