Home
last modified time | relevance | path

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

123

/netbsd-src/external/apache2/llvm/dist/llvm/lib/IR/
H A DConstants.cpp51 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isNegativeZeroValue()
77 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isZeroValue()
111 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isAllOnesValue()
137 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isOneValue()
187 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isMinSignedValue()
400 C = ConstantVector::getSplat(VTy->getElementCount(), C); in getIntegerValue()
417 return ConstantVector::getSplat(VTy->getElementCount(), in getAllOnesValue()
518 delete static_cast<ConstantVector *>(C); in deleteConstant()
788 return ConstantVector::get(NewC); in replaceUndefsWith()
822 return ConstantVector::get(NewC); in mergeUndefsWith()
[all …]
H A DConstantFold.cpp65 return ConstantVector::getSplat(DstTy->getElementCount(), in BitCastConstantVector()
78 return ConstantVector::get(Result); in BitCastConstantVector()
158 return ConstantExpr::getBitCast(ConstantVector::get(V), DestPTy); in FoldBitCast()
599 if ((isa<ConstantVector>(V) || isa<ConstantDataVector>(V)) && in ConstantFoldCastInstruction()
607 return ConstantVector::getSplat( in ConstantFoldCastInstruction()
620 return ConstantVector::get(res); in ConstantFoldCastInstruction()
776 if (ConstantVector *CondV = dyn_cast<ConstantVector>(Cond)) { in ConstantFoldSelectInstruction()
802 return ConstantVector::get(Result); in ConstantFoldSelectInstruction()
957 return ConstantVector::get(Result); in ConstantFoldInsertElementInstruction()
980 return ConstantVector::getSplat(MaskEltCount, Elt); in ConstantFoldShuffleVectorInstruction()
[all …]
H A DConstantsContext.h414 template <> struct ConstantInfo<ConstantVector> {
415 using ValType = ConstantAggrKeyType<ConstantVector>;
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Bitcode/Reader/
H A DValueList.cpp206 } else if (isa<ConstantVector>(UserC)) { in resolveConstantForwardRefs()
207 NewC = ConstantVector::get(NewOps); in resolveConstantForwardRefs()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-diff/
H A DDifferenceEngine.cpp411 if (isa<ConstantVector>(L)) { in equivalentAsOperands()
412 ConstantVector *CVL = cast<ConstantVector>(L); in equivalentAsOperands()
413 ConstantVector *CVR = cast<ConstantVector>(R); in equivalentAsOperands()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/IR/
H A DValue.def87 HANDLE_CONSTANT(ConstantVector)
105 HANDLE_CONSTANT_MARKER(ConstantAggregateLastVal, ConstantVector)
H A DConstants.h492 class ConstantVector final : public ConstantAggregate {
493 friend struct ConstantAggrKeyType<ConstantVector>;
496 ConstantVector(VectorType *T, ArrayRef<Constant *> Val);
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DConstantFolding.cpp153 return FoldBitCast(ConstantVector::get(Ops), DestTy, DL); in FoldBitCast()
157 if (!isa<ConstantDataVector>(C) && !isa<ConstantVector>(C)) in FoldBitCast()
200 if (!isa<ConstantVector>(C) && // FIXME: Remove ConstantVector. in FoldBitCast()
245 return ConstantVector::get(Result); in FoldBitCast()
291 return ConstantVector::get(Result); in FoldBitCast()
504 if (isa<ConstantArray>(C) || isa<ConstantVector>(C) || in ReadDataFromGlobal()
1116 if (!isa<ConstantVector>(C) && !isa<ConstantExpr>(C)) in ConstantFoldConstantImpl()
1125 if (isa<ConstantVector>(OldC) || isa<ConstantExpr>(OldC)) { in ConstantFoldConstantImpl()
1145 assert(isa<ConstantVector>(C)); in ConstantFoldConstantImpl()
1146 return ConstantVector::get(Ops); in ConstantFoldConstantImpl()
[all …]
H A DVectorUtils.cpp772 return ConstantVector::get(Mask); in createBitMaskForGaps()
935 if (auto *CV = dyn_cast<ConstantVector>(Mask)) in possiblyDemandedEltsInMask()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp248 return ConstantVector::get(VectorValue); in getRandomValue()
425 return PT->push_back(ConstantVector::getAllOnesValue(Ty)); in Act()
428 return PT->push_back(ConstantVector::getNullValue(Ty)); in Act()
515 Constant *Mask = ConstantVector::get(Idxs); in Act()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/
H A DExpandVectorPredication.cpp87 auto *ConstVec = dyn_cast<ConstantVector>(MaskVal); in isAllTrueMask()
187 return ConstantVector::get(ConstElems); in createStepVector()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Analysis/Utils/
H A DLocal.h65 OpC = ConstantVector::getSplat(
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/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.cpp912 if (ConstantVector *CV = dyn_cast<ConstantVector>(V)) { in dyn_castNegVal()
1692 Constant *NewC = ConstantVector::get(NewVecC); in foldVectorBinop()
3870 if (!isa<ConstantVector>(U) && !isa<ConstantExpr>(U)) in prepareICWorklistFromFunction()
H A DInstCombineMulDivRem.cpp1552 if (isa<ConstantVector>(Op1) || isa<ConstantDataVector>(Op1)) { in visitSRem()
1580 Constant *NewRHSV = ConstantVector::get(Elts); in visitSRem()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/NVPTX/
H A DNVPTXGenericToNVVM.cpp219 if (isa<ConstantVector>(C)) { in remapConstantVectorOrConstantAggregate()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h354 return ConstantVector::get(Out); in getSafeVectorConstantForBinop()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DMemProfiler.cpp425 if (auto *Vector = dyn_cast<ConstantVector>(Mask)) { in instrumentMaskedLoadOrStore()
/netbsd-src/external/apache2/llvm/dist/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()
/netbsd-src/external/apache2/llvm/dist/clang/lib/CodeGen/
H A DCGDecl.cpp885 isa<llvm::ConstantVector>(Init) || isa<llvm::BlockAddress>(Init) || in canEmitInitWithFewStoresAfterBZero()
923 isa<llvm::ConstantVector>(Init) || isa<llvm::BlockAddress>(Init) || in emitStoresForInitAfterBZero()
1305 return llvm::ConstantVector::get(Values); in replaceUndef()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Target/Hexagon/
H A DHexagonVectorCombine.cpp989 return ConstantVector::getSplat(VecTy->getElementCount(), Zero); in getNullValue()
997 return ConstantVector::getSplat(VecTy->getElementCount(), Minus1); in getFullValue()

123