Home
last modified time | relevance | path

Searched refs:ConstantVector (Results 1 – 25 of 61) sorted by relevance

123

/freebsd-13.1/contrib/llvm-project/llvm/lib/IR/
H A DConstants.cpp401 C = ConstantVector::getSplat(VTy->getElementCount(), C); in getIntegerValue()
418 return ConstantVector::getSplat(VTy->getElementCount(), in getAllOnesValue()
520 delete static_cast<ConstantVector *>(C); in deleteConstant()
790 return ConstantVector::get(NewC); in replaceUndefsWith()
824 return ConstantVector::get(NewC); in mergeUndefsWith()
1363 ConstantVector::ConstantVector(VectorType *T, ArrayRef<Constant *> V) in ConstantVector() function in ConstantVector
1370 Constant *ConstantVector::get(ArrayRef<Constant*> V) { in get()
1697 void ConstantVector::destroyConstantImpl() { in destroyConstantImpl()
1707 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in getSplatValue()
2477 Idx = ConstantVector::getSplat(EltCount, Idx); in getGetElementPtr()
[all …]
H A DConstantFold.cpp78 return ConstantVector::get(Result); in BitCastConstantVector()
414 return ConstantVector::getSplat( in ConstantFoldCastInstruction()
427 return ConstantVector::get(res); in ConstantFoldCastInstruction()
536 if (ConstantVector *CondV = dyn_cast<ConstantVector>(Cond)) { in ConstantFoldSelectInstruction()
562 return ConstantVector::get(Result); in ConstantFoldSelectInstruction()
713 return ConstantVector::get(Result); in ConstantFoldInsertElementInstruction()
768 return ConstantVector::get(Result); in ConstantFoldShuffleVectorInstruction()
861 return ConstantVector::get(Result); in ConstantFoldUnaryInstruction()
1217 return ConstantVector::getSplat( in ConstantFoldBinaryInstruction()
1853 return ConstantVector::getSplat( in ConstantFoldCompareInstruction()
[all …]
H A DConstantsContext.h407 template <> struct ConstantInfo<ConstantVector> {
408 using ValType = ConstantAggrKeyType<ConstantVector>;
/freebsd-13.1/contrib/llvm-project/llvm/lib/Bitcode/Reader/
H A DValueList.cpp200 } else if (isa<ConstantVector>(UserC)) { in resolveConstantForwardRefs()
201 NewC = ConstantVector::get(NewOps); in resolveConstantForwardRefs()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/IR/
H A DValue.def87 HANDLE_CONSTANT(ConstantVector)
105 HANDLE_CONSTANT_MARKER(ConstantAggregateLastVal, ConstantVector)
H A DConstants.h493 class ConstantVector final : public ConstantAggregate {
494 friend struct ConstantAggrKeyType<ConstantVector>;
497 ConstantVector(VectorType *T, ArrayRef<Constant *> Val);
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-diff/
H A DDifferenceEngine.cpp444 if (isa<ConstantVector>(L)) { in equivalentAsOperands()
445 const ConstantVector *CVL = cast<ConstantVector>(L); in equivalentAsOperands()
446 const ConstantVector *CVR = cast<ConstantVector>(R); in equivalentAsOperands()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DConstantFolding.cpp250 return ConstantVector::get(Result); in FoldBitCast()
296 return ConstantVector::get(Result); in FoldBitCast()
509 if (isa<ConstantArray>(C) || isa<ConstantVector>(C) || in ReadDataFromGlobal()
1183 assert(isa<ConstantVector>(C)); in ConstantFoldConstantImpl()
1184 return ConstantVector::get(Ops); in ConstantFoldConstantImpl()
2358 if (isa<ConstantVector>(Operands[0]) || in ConstantFoldScalarCall1()
2700 if ((isa<ConstantVector>(Operands[0]) || in ConstantFoldScalarCall2()
3049 return ConstantVector::get(NewElements); in ConstantFoldFixedVectorCall()
3070 return ConstantVector::get(NCs); in ConstantFoldFixedVectorCall()
3089 return ConstantVector::get(NCs); in ConstantFoldFixedVectorCall()
[all …]
H A DVectorUtils.cpp782 return ConstantVector::get(Mask); in createBitMaskForGaps()
944 if (auto *CV = dyn_cast<ConstantVector>(Mask)) in possiblyDemandedEltsInMask()
/freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp252 return ConstantVector::get(VectorValue); in getRandomValue()
429 return PT->push_back(ConstantVector::getAllOnesValue(Ty)); in Act()
432 return PT->push_back(ConstantVector::getNullValue(Ty)); in Act()
519 Constant *Mask = ConstantVector::get(Idxs); in Act()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Analysis/Utils/
H A DLocal.h65 OpC = ConstantVector::getSplat(
/freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/
H A DExpandVectorPredication.cpp87 auto *ConstVec = dyn_cast<ConstantVector>(MaskVal); in isAllTrueMask()
187 return ConstantVector::get(ConstElems); in createStepVector()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DFunctionComparator.cpp336 const ConstantVector *LV = cast<ConstantVector>(L); in cmpConstants()
337 const ConstantVector *RV = cast<ConstantVector>(R); in cmpConstants()
H A DValueMapper.cpp513 if (isa<ConstantVector>(C)) in mapValue()
514 return getVM()[V] = ConstantVector::get(Ops); in mapValue()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombineSimplifyDemanded.cpp1132 Constant *NewCV = ConstantVector::get(Elts); in SimplifyDemandedVectorElts()
1368 if (auto *CV = dyn_cast<ConstantVector>(Shuffle->getOperand(0))) { in SimplifyDemandedVectorElts()
1375 if (auto *CV = dyn_cast<ConstantVector>(Shuffle->getOperand(1))) { in SimplifyDemandedVectorElts()
1419 if (auto *CV = dyn_cast<ConstantVector>(Sel->getCondition())) { in SimplifyDemandedVectorElts()
1520 if (auto *CV = dyn_cast<ConstantVector>(II->getOperand(2))) in SimplifyDemandedVectorElts()
H A DInstructionCombining.cpp931 if (ConstantVector *CV = dyn_cast<ConstantVector>(V)) { in dyn_castNegVal()
1733 Constant *NewC = ConstantVector::get(NewVecC); in foldVectorBinop()
4033 if (!isa<ConstantVector>(U) && !isa<ConstantExpr>(U)) in prepareICWorklistFromFunction()
/freebsd-13.1/contrib/llvm-project/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp918 const ConstantVector *CV = dyn_cast<ConstantVector>(C); in getConstantValue()
1138 if (const ConstantVector *CP = dyn_cast<ConstantVector>(Init)) { in InitializeMemory()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/NVPTX/
H A DNVPTXGenericToNVVM.cpp219 if (isa<ConstantVector>(C)) { in remapConstantVectorOrConstantAggregate()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/X86/
H A DX86InstCombineIntrinsic.cpp412 return ConstantVector::get(ConstantVec); in simplifyX86varShift()
427 auto ShiftVec = ConstantVector::get(ShiftVecAmts); in simplifyX86varShift()
627 return ConstantVector::get(Args); in simplifyX86extrq()
784 return ConstantVector::get(Args); in simplifyX86insertq()
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h354 return ConstantVector::get(Out); in getSafeVectorConstantForBinop()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Instrumentation/
H A DMemProfiler.cpp425 if (auto *Vector = dyn_cast<ConstantVector>(Mask)) { in instrumentMaskedLoadOrStore()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Scalar/
H A DEarlyCSE.cpp867 auto *Vec0 = dyn_cast<ConstantVector>(Mask0); in isNonTargetIntrinsicMatch()
868 auto *Vec1 = dyn_cast<ConstantVector>(Mask1); in isNonTargetIntrinsicMatch()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/Vectorize/
H A DVPlan.cpp1235 VF.isScalar() ? Indices.back() : ConstantVector::get(Indices); in execute()
1330 Iden = ConstantVector::getSplat(State.VF, IdenC); in execute()
/freebsd-13.1/contrib/llvm-project/clang/lib/CodeGen/
H A DCGDecl.cpp890 isa<llvm::ConstantVector>(Init) || isa<llvm::BlockAddress>(Init) || in canEmitInitWithFewStoresAfterBZero()
928 isa<llvm::ConstantVector>(Init) || isa<llvm::BlockAddress>(Init) || in emitStoresForInitAfterBZero()
1310 return llvm::ConstantVector::get(Values); in replaceUndef()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Hexagon/
H A DHexagonVectorCombine.cpp994 return ConstantVector::getSplat(VecTy->getElementCount(), Zero); in getNullValue()
1002 return ConstantVector::getSplat(VecTy->getElementCount(), Minus1); in getFullValue()

123