Home
last modified time | relevance | path

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

/llvm-project-15.0.7/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp917 const ConstantDataVector *CDV = dyn_cast<ConstantDataVector>(C); in getConstantValue() local
921 if (CDV) { in getConstantValue()
922 elemNum = CDV->getNumElements(); in getConstantValue()
923 ElemTy = CDV->getElementType(); in getConstantValue()
949 if(CDV) in getConstantValue()
951 Result.AggregateVal[i].FloatVal = CDV->getElementAsFloat(i); in getConstantValue()
971 if(CDV) in getConstantValue()
973 Result.AggregateVal[i].DoubleVal = CDV->getElementAsDouble(i); in getConstantValue()
997 if(CDV) in getConstantValue()
1000 CDV->getElementType()->getPrimitiveSizeInBits(), in getConstantValue()
[all …]
/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPULibCalls.cpp826 ConstantDataVector *CDV = dyn_cast<ConstantDataVector>(opr1); in fold_pow() local
829 CF = CDV ? dyn_cast_or_null<ConstantFP>(CDV->getSplatValue()) : nullptr; in fold_pow()
830 CINT = CDV ? dyn_cast_or_null<ConstantInt>(CDV->getSplatValue()) : nullptr; in fold_pow()
977 ConstantDataVector *CDV = dyn_cast<ConstantDataVector>(opr0); in fold_pow() local
979 if (!CDV) { in fold_pow()
983 assert ((int)CDV->getNumElements() == getVecSize(FInfo) && in fold_pow()
989 ? (double)CDV->getElementAsFloat(i) in fold_pow()
990 : CDV->getElementAsDouble(i); in fold_pow()
1022 if (const ConstantDataVector *CDV = dyn_cast<ConstantDataVector>(opr1)) { in fold_pow() local
1025 ? (double)CDV->getElementAsFloat(i) in fold_pow()
[all …]
/llvm-project-15.0.7/llvm/unittests/IR/
H A DConstantsTest.cpp457 auto *CDV = cast<ConstantDataVector>(CV); in TEST() local
459 CDV->getRawDataValues(), CDV->getNumElements(), CDV->getElementType()); in TEST()
468 auto *CDV = cast<ConstantDataVector>(CV); in TEST() local
470 CDV->getRawDataValues(), CDV->getNumElements(), CDV->getElementType()); in TEST()
/llvm-project-15.0.7/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp252 auto *CDV = dyn_cast<ConstantDataVector>(Amt); in simplifyX86immShift() local
253 if (!CDV) in simplifyX86immShift()
266 auto *SubElt = cast<ConstantInt>(CDV->getElementAsConstant(SubEltIdx)); in simplifyX86immShift()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DValueTracking.cpp1964 if (const ConstantDataVector *CDV = dyn_cast<ConstantDataVector>(V)) { in computeKnownBits() local
1968 for (unsigned i = 0, e = CDV->getNumElements(); i != e; ++i) { in computeKnownBits()
1971 APInt Elt = CDV->getElementAsAPInt(i); in computeKnownBits()