Home
last modified time | relevance | path

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

123

/freebsd-12.1/contrib/llvm/lib/IR/
H A DConstants.cpp50 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isNegativeZeroValue()
76 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isZeroValue()
110 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isAllOnesValue()
136 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isOneValue()
162 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isMinSignedValue()
1072 ConstantVector::ConstantVector(VectorType *T, ArrayRef<Constant *> V) in ConstantVector() function in ConstantVector
1079 Constant *ConstantVector::get(ArrayRef<Constant*> V) { in get()
1364 void ConstantVector::destroyConstantImpl() { in destroyConstantImpl()
1374 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in getSplatValue()
1379 Constant *ConstantVector::getSplatValue() const { in getSplatValue()
[all …]
H A DConstantFold.cpp68 return ConstantVector::get(Result); in BitCastConstantVector()
570 if ((isa<ConstantVector>(V) || isa<ConstantDataVector>(V)) && in ConstantFoldCastInstruction()
582 return ConstantVector::get(res); in ConstantFoldCastInstruction()
738 if (ConstantVector *CondV = dyn_cast<ConstantVector>(Cond)) { in ConstantFoldSelectInstruction()
761 return ConstantVector::get(Result); in ConstantFoldSelectInstruction()
832 return ConstantVector::get(Result); in ConstantFoldInsertElementInstruction()
873 return ConstantVector::get(Result); in ConstantFoldShuffleVectorInstruction()
916 return ConstantVector::get(Result); in ConstantFoldInsertValueInstruction()
1236 return ConstantVector::get(Result); in ConstantFoldBinaryInstruction()
1847 return ConstantVector::get(ResElts); in ConstantFoldCompareInstruction()
[all …]
H A DConstantsContext.h368 template <> struct ConstantInfo<ConstantVector> {
369 using ValType = ConstantAggrKeyType<ConstantVector>;
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DValue.def73 HANDLE_CONSTANT(ConstantVector)
90 HANDLE_CONSTANT_MARKER(ConstantAggregateLastVal, ConstantVector)
H A DConstants.h500 class ConstantVector final : public ConstantAggregate {
501 friend struct ConstantAggrKeyType<ConstantVector>;
504 ConstantVector(VectorType *T, ArrayRef<Constant *> Val);
/freebsd-12.1/contrib/llvm/lib/Bitcode/Reader/
H A DValueList.cpp200 } else if (isa<ConstantVector>(UserC)) { in resolveConstantForwardRefs()
201 NewC = ConstantVector::get(NewOps); in resolveConstantForwardRefs()
/freebsd-12.1/contrib/llvm/tools/llvm-diff/
H A DDifferenceEngine.cpp412 if (isa<ConstantVector>(L)) { in equivalentAsOperands()
413 ConstantVector *CVL = cast<ConstantVector>(L); in equivalentAsOperands()
414 ConstantVector *CVR = cast<ConstantVector>(R); in equivalentAsOperands()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DConstantFolding.cpp141 return FoldBitCast(ConstantVector::get(Ops), DestTy, DL); in FoldBitCast()
232 return ConstantVector::get(Result); in FoldBitCast()
278 return ConstantVector::get(Result); in FoldBitCast()
456 if (isa<ConstantArray>(C) || isa<ConstantVector>(C) || in ReadDataFromGlobal()
1056 if (!isa<ConstantVector>(C) && !isa<ConstantExpr>(C)) in ConstantFoldConstantImpl()
1089 assert(isa<ConstantVector>(C)); in ConstantFoldConstantImpl()
1090 return ConstantVector::get(Ops); in ConstantFoldConstantImpl()
1904 if (isa<ConstantVector>(Operands[0]) || in ConstantFoldScalarCall()
2104 if ((isa<ConstantVector>(Operands[0]) || in ConstantFoldScalarCall()
2260 return ConstantVector::get(NewElements); in ConstantFoldVectorCall()
[all …]
H A DVectorUtils.cpp616 return ConstantVector::get(Mask); in createBitMaskForGaps()
626 return ConstantVector::get(MaskVec); in createReplicatedMask()
636 return ConstantVector::get(Mask); in createInterleaveMask()
645 return ConstantVector::get(Mask); in createStrideMask()
658 return ConstantVector::get(Mask); in createSequentialMask()
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombineVectorOps.cpp495 ConstantVector::get(ExtendMask)); in replaceExtractElements()
812 ConstantVector::get(NewShufElts), in foldConstantInsEltIntoShuffle()
813 ConstantVector::get(NewMaskElts)); in foldConstantInsEltIntoShuffle()
852 ConstantVector::get(Values), in foldConstantInsEltIntoShuffle()
853 ConstantVector::get(Mask)); in foldConstantInsEltIntoShuffle()
926 ConstantVector::get(Mask)); in visitInsertElementInst()
1136 ConstantVector::get(MaskValues)); in evaluateInDifferentElementOrder()
1523 return new ShuffleVectorInst(X, Y, ConstantVector::get(NewMask)); in foldIdentityExtractShuffle()
1648 SVI.setOperand(2, ConstantVector::get(Elts)); in visitShuffleVectorInst()
1735 ConstantVector::get(ShuffleMask), in visitShuffleVectorInst()
[all …]
H A DInstCombineSimplifyDemanded.cpp1142 Constant *NewCV = ConstantVector::get(Elts); in SimplifyDemandedVectorElts()
1287 if (auto *CV = dyn_cast<ConstantVector>(Shuffle->getOperand(0))) { in SimplifyDemandedVectorElts()
1294 if (auto *CV = dyn_cast<ConstantVector>(Shuffle->getOperand(1))) { in SimplifyDemandedVectorElts()
1319 I->setOperand(2, ConstantVector::get(Elts)); in SimplifyDemandedVectorElts()
1339 if (auto *CV = dyn_cast<ConstantVector>(Sel->getCondition())) { in SimplifyDemandedVectorElts()
H A DInstCombineCalls.cpp106 return ConstantVector::get(BoolVec); in getNegativeIsTrueBoolVec()
500 return ConstantVector::get(ConstantVec); in simplifyX86varShift()
515 auto ShiftVec = ConstantVector::get(ShiftVecAmts); in simplifyX86varShift()
598 return ConstantVector::get(Vals); in simplifyX86pack()
822 return ConstantVector::get(Args); in simplifyX86extrq()
959 ConstantVector::get(ShuffleMask)); in simplifyX86insertq()
984 return ConstantVector::get(Args); in simplifyX86insertq()
1044 auto ShuffleMask = ConstantVector::get(makeArrayRef(Indexes, NumElts)); in simplifyX86pshufb()
1094 auto ShuffleMask = ConstantVector::get(makeArrayRef(Indexes, NumElts)); in simplifyX86vpermilvar()
1131 auto ShuffleMask = ConstantVector::get(makeArrayRef(Indexes, Size)); in simplifyX86vpermv()
[all …]
H A DInstCombineShifts.cpp449 Mask = ConstantVector::getSplat(VT->getNumElements(), Mask); in FoldShiftByConstant()
484 Mask = ConstantVector::getSplat(VT->getNumElements(), Mask); in FoldShiftByConstant()
H A DInstCombineMulDivRem.cpp125 return ConstantVector::get(Elts); in getLogBase2()
1318 if (isa<ConstantVector>(Op1) || isa<ConstantDataVector>(Op1)) { in visitSRem()
1346 Constant *NewRHSV = ConstantVector::get(Elts); in visitSRem()
H A DInstructionCombining.cpp769 if (ConstantVector *CV = dyn_cast<ConstantVector>(V)) { in dyn_castNegVal()
1480 Constant *NewC = ConstantVector::get(NewVecC); in foldVectorBinop()
3322 if (!isa<ConstantVector>(U) && !isa<ConstantExpr>(U)) in AddReachableCodeToWorklist()
/freebsd-12.1/contrib/llvm/tools/llvm-stress/
H A Dllvm-stress.cpp250 return ConstantVector::get(VectorValue); in getRandomValue()
426 return PT->push_back(ConstantVector::getAllOnesValue(Ty)); in Act()
429 return PT->push_back(ConstantVector::getNullValue(Ty)); in Act()
513 Constant *Mask = ConstantVector::get(Idxs); in Act()
/freebsd-12.1/contrib/llvm/include/llvm/Analysis/
H A DConstantFolding.h29 class ConstantVector; variable
H A DTargetTransformInfoImpl.h590 if (isa<ConstantDataVector>(Val) || isa<ConstantVector>(Val)) { in minRequiredElementSize()
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A DFunctionComparator.cpp317 const ConstantVector *LV = cast<ConstantVector>(L); in cmpConstants()
318 const ConstantVector *RV = cast<ConstantVector>(R); in cmpConstants()
H A DValueMapper.cpp480 if (isa<ConstantVector>(C)) in mapValue()
481 return getVM()[V] = ConstantVector::get(Ops); in mapValue()
/freebsd-12.1/contrib/llvm/lib/ExecutionEngine/
H A DExecutionEngine.cpp922 const ConstantVector *CV = dyn_cast<ConstantVector>(C); in getConstantValue()
1192 if (const ConstantVector *CP = dyn_cast<ConstantVector>(Init)) { in InitializeMemory()
/freebsd-12.1/contrib/llvm/lib/Target/NVPTX/
H A DNVPTXGenericToNVVM.cpp220 if (isa<ConstantVector>(C)) { in remapConstantVectorOrConstantAggregate()
/freebsd-12.1/contrib/llvm/lib/CodeGen/
H A DScalarizeMaskedMemIntrin.cpp496 if (cast<ConstantVector>(Mask)->getAggregateElement(Idx)->isNullValue()) in scalarizeMaskedScatter()
/freebsd-12.1/contrib/llvm/tools/clang/lib/CodeGen/
H A DCGDecl.cpp867 isa<llvm::ConstantVector>(Init) || isa<llvm::BlockAddress>(Init) || in canEmitInitWithFewStoresAfterBZero()
904 isa<llvm::ConstantVector>(Init) || isa<llvm::BlockAddress>(Init) || in emitStoresForInitAfterBZero()
1194 return llvm::ConstantVector::get(Values); in replaceUndef()
H A DCGExpr.cpp1718 llvm::Value *MaskV = llvm::ConstantVector::get(Mask); in EmitStoreOfScalar()
1860 llvm::Value *MaskV = llvm::ConstantVector::get(Mask); in EmitLoadOfExtVectorElementLValue()
2099 llvm::Value *MaskV = llvm::ConstantVector::get(Mask); in EmitStoreThroughExtVectorComponentLValue()
2112 llvm::Value *ExtMaskV = llvm::ConstantVector::get(ExtMask); in EmitStoreThroughExtVectorComponentLValue()
2131 llvm::Value *MaskV = llvm::ConstantVector::get(Mask); in EmitStoreThroughExtVectorComponentLValue()
3756 llvm::Constant *CV = llvm::ConstantVector::get(CElts); in EmitExtVectorElementExpr()

123