Home
last modified time | relevance | path

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

123

/netbsd/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()
518 delete static_cast<ConstantVector *>(C); in deleteConstant()
788 return ConstantVector::get(NewC); in replaceUndefsWith()
822 return ConstantVector::get(NewC); in mergeUndefsWith()
1361 ConstantVector::ConstantVector(VectorType *T, ArrayRef<Constant *> V) in ConstantVector() function in ConstantVector
1705 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in getSplatValue()
[all …]
H A DConstantFold.cpp78 return ConstantVector::get(Result); in BitCastConstantVector()
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()
1012 return ConstantVector::get(Result); in ConstantFoldShuffleVectorInstruction()
1105 return ConstantVector::get(Result); in ConstantFoldUnaryInstruction()
1468 return ConstantVector::getSplat( in ConstantFoldBinaryInstruction()
2104 return ConstantVector::getSplat( in ConstantFoldCompareInstruction()
[all …]
H A DConstantsContext.h414 template <> struct ConstantInfo<ConstantVector> {
415 using ValType = ConstantAggrKeyType<ConstantVector>;
/netbsd/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/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/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/external/apache2/llvm/dist/llvm/lib/Analysis/
H A DConstantFolding.cpp245 return ConstantVector::get(Result); in FoldBitCast()
291 return ConstantVector::get(Result); in FoldBitCast()
504 if (isa<ConstantArray>(C) || isa<ConstantVector>(C) || in ReadDataFromGlobal()
1145 assert(isa<ConstantVector>(C)); in ConstantFoldConstantImpl()
1146 return ConstantVector::get(Ops); in ConstantFoldConstantImpl()
2263 if (isa<ConstantVector>(Operands[0]) || in ConstantFoldScalarCall1()
2566 if ((isa<ConstantVector>(Operands[0]) || in ConstantFoldScalarCall2()
2896 return ConstantVector::get(NewElements); in ConstantFoldFixedVectorCall()
2917 return ConstantVector::get(NCs); in ConstantFoldFixedVectorCall()
2936 return ConstantVector::get(NCs); in ConstantFoldFixedVectorCall()
[all …]
H A DVectorUtils.cpp772 return ConstantVector::get(Mask); in createBitMaskForGaps()
935 if (auto *CV = dyn_cast<ConstantVector>(Mask)) in possiblyDemandedEltsInMask()
/netbsd/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/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/external/apache2/llvm/dist/llvm/include/llvm/Analysis/Utils/
H A DLocal.h65 OpC = ConstantVector::getSplat(
/netbsd/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/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/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/external/apache2/llvm/dist/llvm/lib/Target/NVPTX/
H A DNVPTXGenericToNVVM.cpp219 if (isa<ConstantVector>(C)) { in remapConstantVectorOrConstantAggregate()
/netbsd/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/external/apache2/llvm/dist/llvm/include/llvm/Transforms/InstCombine/
H A DInstCombiner.h354 return ConstantVector::get(Out); in getSafeVectorConstantForBinop()
/netbsd/external/apache2/llvm/dist/llvm/lib/Transforms/Instrumentation/
H A DMemProfiler.cpp425 if (auto *Vector = dyn_cast<ConstantVector>(Mask)) { in instrumentMaskedLoadOrStore()
/netbsd/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/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/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