Home
last modified time | relevance | path

Searched refs:ConstantDataVector (Results 1 – 25 of 32) sorted by relevance

12

/llvm-project-15.0.7/llvm/lib/Target/AMDGPU/
H A DAMDGPULibCalls.cpp700 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 DConstantsTest.cpp456 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 DConstants.cpp517 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 DConstantFold.cpp404 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 DConstants.h753 class ConstantDataVector final : public ConstantDataSequential {
756 explicit ConstantDataVector(Type *ty, const char *Data)
765 ConstantDataVector(const ConstantDataVector &) = delete;
H A DValue.def95 HANDLE_CONSTANT(ConstantDataVector)
/llvm-project-15.0.7/mlir/lib/Target/LLVMIR/
H A DModuleTranslation.cpp219 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 DAsmParserTest.cpp91 ASSERT_TRUE(isa<ConstantDataVector>(V)); in TEST()
/llvm-project-15.0.7/llvm/lib/Analysis/
H A DConstantFolding.cpp154 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 DTargetTransformInfo.cpp734 if (isa<ConstantVector>(V) || isa<ConstantDataVector>(V)) { in getOperandInfo()
H A DValueTracking.cpp1964 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 DX86InstCombineIntrinsic.cpp40 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 DX86TargetTransformInfo.cpp223 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 DExecutionEngine.cpp917 const ConstantDataVector *CDV = dyn_cast<ConstantDataVector>(C); in getConstantValue()
/llvm-project-15.0.7/llvm/lib/Target/SPIRV/
H A DSPIRVPreLegalizer.cpp64 if (auto *ConstVec = dyn_cast<ConstantDataVector>(Const)) { in addConstantsToTrack()
/llvm-project-15.0.7/llvm/lib/Bitcode/Reader/
H A DBitcodeReader.cpp2995 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 DTargetTransformInfoImpl.h828 if (isa<ConstantDataVector>(Val) || isa<ConstantVector>(Val)) { in minRequiredElementSize()
/llvm-project-15.0.7/llvm/bindings/ocaml/llvm/
H A Dllvm_ocaml.c642 ConstantDataVector, enumerator
670 DEFINE_CASE(Val, ConstantDataVector); in llvm_classify_value()
H A Dllvm.ml312 | ConstantDataVector Constructor
/llvm-project-15.0.7/llvm/include/llvm-c/
H A DCore.h1604 macro(ConstantDataVector) \
/llvm-project-15.0.7/llvm/lib/Transforms/InstCombine/
H A DInstructionCombining.cpp946 if (ConstantDataVector *C = dyn_cast<ConstantDataVector>(V)) in dyn_castNegVal()
H A DInstCombineMulDivRem.cpp1584 if (isa<ConstantVector>(Op1) || isa<ConstantDataVector>(Op1)) { in visitSRem()
/llvm-project-15.0.7/llvm/lib/Transforms/Utils/
H A DInlineFunction.cpp1117 isa<ConstantDataVector>(V) || isa<UndefValue>(V); in AddAliasScopeMetadata()
/llvm-project-15.0.7/llvm/lib/Transforms/Instrumentation/
H A DMemorySanitizer.cpp1839 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 DIRTranslator.cpp3050 } else if (auto CV = dyn_cast<ConstantDataVector>(&C)) { in translate()

12