| /llvm-project-15.0.7/llvm/lib/Target/AMDGPU/ |
| H A D | AMDGPULibCalls.cpp | 700 if (ConstantDataVector *CV = dyn_cast<ConstantDataVector>(opr0)) { in TDOFold() 727 nval = ConstantDataVector::get(context, tmp); in TDOFold() 730 nval = ConstantDataVector::get(context, tmp); in TDOFold() 826 ConstantDataVector *CDV = dyn_cast<ConstantDataVector>(opr1); in fold_pow() 977 ConstantDataVector *CDV = dyn_cast<ConstantDataVector>(opr0); in fold_pow() 1022 if (const ConstantDataVector *CDV = dyn_cast<ConstantDataVector>(opr1)) { in fold_pow() 1595 ConstantDataVector *CDV0 = dyn_cast_or_null<ConstantDataVector>(copr0); in evaluateCall() 1596 ConstantDataVector *CDV1 = dyn_cast_or_null<ConstantDataVector>(copr1); in evaluateCall() 1597 ConstantDataVector *CDV2 = dyn_cast_or_null<ConstantDataVector>(copr2); in evaluateCall() 1621 nval0 = ConstantDataVector::get(context, tmp0); in evaluateCall() [all …]
|
| /llvm-project-15.0.7/llvm/unittests/IR/ |
| H A D | ConstantsTest.cpp | 456 ASSERT_TRUE(isa<ConstantDataVector>(CV)) << " T = " << getNameOfType(T); in TEST() 457 auto *CDV = cast<ConstantDataVector>(CV); in TEST() 458 Constant *CV2 = ConstantDataVector::getRaw( in TEST() 467 ASSERT_TRUE(isa<ConstantDataVector>(CV)) << " T = " << getNameOfType(T); in TEST() 468 auto *CDV = cast<ConstantDataVector>(CV); in TEST() 469 Constant *CV2 = ConstantDataVector::getRaw( in TEST()
|
| /llvm-project-15.0.7/llvm/lib/IR/ |
| H A D | Constants.cpp | 517 delete static_cast<ConstantDataVector *>(C); in deleteConstant() 1384 return getSequenceIfElementsMatch<ConstantDataVector>(C, V); in getImpl() 1397 return ConstantDataVector::getSplat(EC.getKnownMinValue(), V); in getSplat() 1629 if (const ConstantDataVector *CV = dyn_cast<ConstantDataVector>(this)) in getSplatValue() 2935 Entry->reset(new ConstantDataVector(Ty, Slot.first().data())); in getImpl() 3054 Constant *ConstantDataVector::getFP(Type *ElementType, in getFP() 3062 Constant *ConstantDataVector::getFP(Type *ElementType, in getFP() 3069 Constant *ConstantDataVector::getFP(Type *ElementType, in getFP() 3235 bool ConstantDataVector::isSplatData() const { in isSplatData() 3247 bool ConstantDataVector::isSplat() const { in isSplat() [all …]
|
| H A D | ConstantFold.cpp | 404 if ((isa<ConstantVector>(V) || isa<ConstantDataVector>(V)) && in ConstantFoldCastInstruction() 1929 auto *CV = cast<ConstantDataVector>(Idxs[0]); in isInBoundsIndices() 2140 !isa<ConstantInt>(Idxs[0]) && !isa<ConstantDataVector>(Idxs[0]); in ConstantFoldGetElementPtr() 2143 if (!isa<ConstantInt>(Idxs[i]) && !isa<ConstantDataVector>(Idxs[i])) { in ConstantFoldGetElementPtr() 2148 if (!isa<ConstantInt>(Idxs[i - 1]) && !isa<ConstantDataVector>(Idxs[i - 1])) in ConstantFoldGetElementPtr() 2177 auto *CV = cast<ConstantDataVector>(Idxs[i]); in ConstantFoldGetElementPtr() 2214 CurrIdx = ConstantDataVector::getSplat( in ConstantFoldGetElementPtr() 2218 PrevIdx = ConstantDataVector::getSplat( in ConstantFoldGetElementPtr() 2224 Factor = ConstantDataVector::getSplat( in ConstantFoldGetElementPtr()
|
| /llvm-project-15.0.7/llvm/include/llvm/IR/ |
| H A D | Constants.h | 753 class ConstantDataVector final : public ConstantDataSequential { 756 explicit ConstantDataVector(Type *ty, const char *Data) 765 ConstantDataVector(const ConstantDataVector &) = delete;
|
| H A D | Value.def | 95 HANDLE_CONSTANT(ConstantDataVector)
|
| /llvm-project-15.0.7/mlir/lib/Target/LLVMIR/ |
| H A D | ModuleTranslation.cpp | 219 llvm::ConstantDataVector::getSplat(0, splatValue); in convertDenseElementsAttr() 234 return llvm::ConstantDataVector::getRaw( in convertDenseElementsAttr() 245 return llvm::ConstantDataVector::getRaw(data, type.getShape().back(), in convertDenseElementsAttr()
|
| /llvm-project-15.0.7/llvm/unittests/AsmParser/ |
| H A D | AsmParserTest.cpp | 91 ASSERT_TRUE(isa<ConstantDataVector>(V)); in TEST()
|
| /llvm-project-15.0.7/llvm/lib/Analysis/ |
| H A D | ConstantFolding.cpp | 154 if (!isa<ConstantDataVector>(C) && !isa<ConstantVector>(C)) in FoldBitCast() 198 !isa<ConstantDataVector>(C)) in FoldBitCast() 1804 if (!isa<ConstantVector>(Op) && !isa<ConstantDataVector>(Op)) in constantFoldVectorReduce() 2391 isa<ConstantDataVector>(Operands[0])) { in ConstantFoldScalarCall1() 2756 isa<ConstantDataVector>(Operands[0])) && in ConstantFoldScalarCall2()
|
| H A D | TargetTransformInfo.cpp | 734 if (isa<ConstantVector>(V) || isa<ConstantDataVector>(V)) { in getOperandInfo()
|
| H A D | ValueTracking.cpp | 1964 if (const ConstantDataVector *CDV = dyn_cast<ConstantDataVector>(V)) { in computeKnownBits() 5729 if (auto *C = dyn_cast<ConstantDataVector>(V)) { in isKnownNonNaN() 5749 if (auto *C = dyn_cast<ConstantDataVector>(V)) { in isKnownNonZero()
|
| /llvm-project-15.0.7/llvm/lib/Target/X86/ |
| H A D | X86InstCombineIntrinsic.cpp | 40 if (auto *ConstantMask = dyn_cast<ConstantDataVector>(Mask)) in getBoolVecFromMask() 252 auto *CDV = dyn_cast<ConstantDataVector>(Amt); in simplifyX86immShift() 1621 if (auto *ConstantMask = dyn_cast<ConstantDataVector>(Mask)) { in instCombineIntrinsic()
|
| H A D | X86TargetTransformInfo.cpp | 223 isa<ConstantDataVector>(Args[0]) || isa<ConstantVector>(Args[0]); in getArithmeticInstrCost() 225 isa<ConstantDataVector>(Args[1]) || isa<ConstantVector>(Args[1]); in getArithmeticInstrCost()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/ |
| H A D | ExecutionEngine.cpp | 917 const ConstantDataVector *CDV = dyn_cast<ConstantDataVector>(C); in getConstantValue()
|
| /llvm-project-15.0.7/llvm/lib/Target/SPIRV/ |
| H A D | SPIRVPreLegalizer.cpp | 64 if (auto *ConstVec = dyn_cast<ConstantDataVector>(Const)) { in addConstantsToTrack()
|
| /llvm-project-15.0.7/llvm/lib/Bitcode/Reader/ |
| H A D | BitcodeReader.cpp | 2995 V = ConstantDataVector::get(Context, Elts); in parseConstants() 3001 V = ConstantDataVector::get(Context, Elts); in parseConstants() 3007 V = ConstantDataVector::get(Context, Elts); in parseConstants() 3013 V = ConstantDataVector::get(Context, Elts); in parseConstants() 3019 V = ConstantDataVector::getFP(EltTy, Elts); in parseConstants() 3025 V = ConstantDataVector::getFP(EltTy, Elts); in parseConstants() 3031 V = ConstantDataVector::getFP(EltTy, Elts); in parseConstants() 3037 V = ConstantDataVector::getFP(EltTy, Elts); in parseConstants()
|
| /llvm-project-15.0.7/llvm/include/llvm/Analysis/ |
| H A D | TargetTransformInfoImpl.h | 828 if (isa<ConstantDataVector>(Val) || isa<ConstantVector>(Val)) { in minRequiredElementSize()
|
| /llvm-project-15.0.7/llvm/bindings/ocaml/llvm/ |
| H A D | llvm_ocaml.c | 642 ConstantDataVector, enumerator 670 DEFINE_CASE(Val, ConstantDataVector); in llvm_classify_value()
|
| H A D | llvm.ml | 312 | ConstantDataVector Constructor
|
| /llvm-project-15.0.7/llvm/include/llvm-c/ |
| H A D | Core.h | 1604 macro(ConstantDataVector) \
|
| /llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/ |
| H A D | InstructionCombining.cpp | 946 if (ConstantDataVector *C = dyn_cast<ConstantDataVector>(V)) in dyn_castNegVal()
|
| H A D | InstCombineMulDivRem.cpp | 1584 if (isa<ConstantVector>(Op1) || isa<ConstantDataVector>(Op1)) { in visitSRem()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Utils/ |
| H A D | InlineFunction.cpp | 1117 isa<ConstantDataVector>(V) || isa<UndefValue>(V); in AddAliasScopeMetadata()
|
| /llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/ |
| H A D | MemorySanitizer.cpp | 1839 return ConstantDataVector::get(IRB.getContext(), in makeAddReleaseOrderingTable() 1874 return ConstantDataVector::get(IRB.getContext(), in makeAddAcquireOrderingTable()
|
| /llvm-project-15.0.7/llvm/lib/CodeGen/GlobalISel/ |
| H A D | IRTranslator.cpp | 3050 } else if (auto CV = dyn_cast<ConstantDataVector>(&C)) { in translate()
|