Home
last modified time | relevance | path

Searched refs:CDV (Results 1 – 7 of 7) sorted by relevance

/freebsd/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp934 const ConstantDataVector *CDV = dyn_cast<ConstantDataVector>(C); in getConstantValue() local
938 if (CDV) { in getConstantValue()
939 elemNum = CDV->getNumElements(); in getConstantValue()
940 ElemTy = CDV->getElementType(); in getConstantValue()
965 if(CDV) in getConstantValue()
967 Result.AggregateVal[i].FloatVal = CDV->getElementAsFloat(i); in getConstantValue()
986 if(CDV) in getConstantValue()
988 Result.AggregateVal[i].DoubleVal = CDV->getElementAsDouble(i); in getConstantValue()
1011 if(CDV) in getConstantValue()
1014 CDV->getElementType()->getPrimitiveSizeInBits(), in getConstantValue()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DAMDGPULibCalls.cpp1064 ConstantDataVector *CDV = dyn_cast<ConstantDataVector>(opr0); in fold_pow() local
1066 if (!CDV) { in fold_pow()
1070 assert ((int)CDV->getNumElements() == getVecSize(FInfo) && in fold_pow()
1075 double V = CDV->getElementAsAPFloat(i).convertToDouble(); in fold_pow()
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DNumericalStabilitySanitizer.cpp1905 } else if (auto *CDV = dyn_cast<ConstantDataVector>(C)) { in propagateNonFTStore() local
1907 cast<VectorType>(CDV->getType())->getElementCount().getFixedValue(); in propagateNonFTStore()
1908 switch (CDV->getType()->getScalarSizeInBits()) { in propagateNonFTStore()
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp248 auto *CDV = dyn_cast<ConstantDataVector>(Amt); in simplifyX86immShift() local
249 if (!CDV) in simplifyX86immShift()
262 auto *SubElt = cast<ConstantInt>(CDV->getElementAsConstant(SubEltIdx)); in simplifyX86immShift()
/freebsd/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp1803 if (auto *CDV = dyn_cast<ConstantDataVector>(this)) { in toConstantRange() local
1805 for (unsigned I = 0, E = CDV->getNumElements(); I < E; ++I) in toConstantRange()
1806 CR = CR.unionWith(CDV->getElementAsAPInt(I)); in toConstantRange()
/freebsd/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp1415 if (const auto *CDV = dyn_cast<ConstantDataVector>(Operand)) { in FlushFPConstant() local
1417 for (unsigned I = 0, E = CDV->getNumElements(); I < E; ++I) { in FlushFPConstant()
1418 const APFloat &Elt = CDV->getElementAsAPFloat(I); in FlushFPConstant()
H A DValueTracking.cpp2243 if (const ConstantDataVector *CDV = dyn_cast<ConstantDataVector>(V)) { in computeKnownBits() local
2248 for (unsigned i = 0, e = CDV->getNumElements(); i != e; ++i) { in computeKnownBits()
2251 APInt Elt = CDV->getElementAsAPInt(i); in computeKnownBits()