Home
last modified time | relevance | path

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

123

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
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()
367 C = ConstantVector::getSplat(VTy->getNumElements(), C); in getIntegerValue()
384 return ConstantVector::getSplat(VTy->getNumElements(), in getAllOnesValue()
647 return ConstantVector::get(NewC); in replaceUndefsWith()
678 return ConstantVector::getSplat(VTy->getNumElements(), TrueC); in getTrue()
686 return ConstantVector::getSplat(VTy->getNumElements(), FalseC); in getFalse()
[all …]
DConstantFold.cpp68 return ConstantVector::get(Result); in BitCastConstantVector()
156 return ConstantExpr::getBitCast(ConstantVector::get(V), DestPTy); in FoldBitCast()
572 if ((isa<ConstantVector>(V) || isa<ConstantDataVector>(V)) && in ConstantFoldCastInstruction()
584 return ConstantVector::get(res); in ConstantFoldCastInstruction()
740 if (ConstantVector *CondV = dyn_cast<ConstantVector>(Cond)) { in ConstantFoldSelectInstruction()
763 return ConstantVector::get(Result); in ConstantFoldSelectInstruction()
860 return ConstantVector::get(Result); in ConstantFoldInsertElementInstruction()
907 return ConstantVector::get(Result); in ConstantFoldShuffleVectorInstruction()
950 return ConstantVector::get(Result); in ConstantFoldInsertValueInstruction()
992 return ConstantVector::get(Result); in ConstantFoldUnaryInstruction()
[all …]
DConstantsContext.h367 template <> struct ConstantInfo<ConstantVector> {
368 using ValType = ConstantAggrKeyType<ConstantVector>;
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp573 ConstantVector::get(ExtendMask)); in replaceExtractElements()
811 return new ShuffleVectorInst(FirstIE, UndefVec, ConstantVector::get(Mask)); in foldInsSequenceIntoSplat()
844 Constant *NewMask = ConstantVector::get(NewMaskVec); in foldInsEltIntoSplat()
893 Constant *NewMask = ConstantVector::get(NewMaskVec); in foldInsEltIntoIdentityShuffle()
980 ConstantVector::get(NewShufElts), in foldConstantInsEltIntoShuffle()
981 ConstantVector::get(NewMaskElts)); in foldConstantInsEltIntoShuffle()
1020 ConstantVector::get(Values), in foldConstantInsEltIntoShuffle()
1021 ConstantVector::get(Mask)); in foldConstantInsEltIntoShuffle()
1092 ConstantVector::get(Mask)); in visitInsertElementInst()
1310 ConstantVector::get(MaskValues)); in evaluateInDifferentElementOrder()
[all …]
DInstCombineSimplifyDemanded.cpp1168 Constant *NewCV = ConstantVector::get(Elts); in SimplifyDemandedVectorElts()
1375 if (auto *CV = dyn_cast<ConstantVector>(Shuffle->getOperand(0))) { in SimplifyDemandedVectorElts()
1382 if (auto *CV = dyn_cast<ConstantVector>(Shuffle->getOperand(1))) { in SimplifyDemandedVectorElts()
1407 I->setOperand(2, ConstantVector::get(Elts)); in SimplifyDemandedVectorElts()
1427 if (auto *CV = dyn_cast<ConstantVector>(Sel->getCondition())) { in SimplifyDemandedVectorElts()
1528 if (auto *CV = dyn_cast<ConstantVector>(II->getOperand(2))) in SimplifyDemandedVectorElts()
DInstCombineCalls.cpp113 return ConstantVector::get(BoolVec); in getNegativeIsTrueBoolVec()
524 return ConstantVector::get(ConstantVec); in simplifyX86varShift()
539 auto ShiftVec = ConstantVector::get(ShiftVecAmts); in simplifyX86varShift()
739 return ConstantVector::get(Args); in simplifyX86extrq()
795 ConstantAggregateZero::get(ShufTy), ConstantVector::get(ShuffleMask)); in simplifyX86extrq()
876 ConstantVector::get(ShuffleMask)); in simplifyX86insertq()
901 return ConstantVector::get(Args); in simplifyX86insertq()
961 auto ShuffleMask = ConstantVector::get(makeArrayRef(Indexes, NumElts)); in simplifyX86pshufb()
1011 auto ShuffleMask = ConstantVector::get(makeArrayRef(Indexes, NumElts)); in simplifyX86vpermilvar()
1048 auto ShuffleMask = ConstantVector::get(makeArrayRef(Indexes, Size)); in simplifyX86vpermv()
[all …]
DInstCombineMulDivRem.cpp124 return ConstantVector::get(Elts); in getLogBase2()
1442 if (isa<ConstantVector>(Op1) || isa<ConstantDataVector>(Op1)) { in visitSRem()
1470 Constant *NewRHSV = ConstantVector::get(Elts); in visitSRem()
DInstCombineShifts.cpp784 Mask = ConstantVector::getSplat(VT->getNumElements(), Mask); in FoldShiftByConstant()
819 Mask = ConstantVector::getSplat(VT->getNumElements(), Mask); in FoldShiftByConstant()
DInstructionCombining.cpp841 if (ConstantVector *CV = dyn_cast<ConstantVector>(V)) { in dyn_castNegVal()
1578 Constant *NewC = ConstantVector::get(NewVecC); in foldVectorBinop()
3476 if (!isa<ConstantVector>(U) && !isa<ConstantExpr>(U)) in AddReachableCodeToWorklist()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DValue.def71 HANDLE_CONSTANT(ConstantVector)
95 HANDLE_CONSTANT_MARKER(ConstantAggregateLastVal, ConstantVector)
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/IR/
DValue.def72 HANDLE_CONSTANT(ConstantVector)
89 HANDLE_CONSTANT_MARKER(ConstantAggregateLastVal, ConstantVector)
DConstants.h499 class ConstantVector final : public ConstantAggregate {
500 friend struct ConstantAggrKeyType<ConstantVector>;
503 ConstantVector(VectorType *T, ArrayRef<Constant *> Val);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Bitcode/Reader/
DValueList.cpp209 } else if (isa<ConstantVector>(UserC)) { in resolveConstantForwardRefs()
210 NewC = ConstantVector::get(NewOps); in resolveConstantForwardRefs()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DConstantFolding.cpp146 return FoldBitCast(ConstantVector::get(Ops), DestTy, DL); in FoldBitCast()
150 if (!isa<ConstantDataVector>(C) && !isa<ConstantVector>(C)) in FoldBitCast()
193 if (!isa<ConstantVector>(C) && // FIXME: Remove ConstantVector. in FoldBitCast()
237 return ConstantVector::get(Result); in FoldBitCast()
283 return ConstantVector::get(Result); in FoldBitCast()
461 if (isa<ConstantArray>(C) || isa<ConstantVector>(C) || in ReadDataFromGlobal()
1081 if (!isa<ConstantVector>(C) && !isa<ConstantExpr>(C)) in ConstantFoldConstantImpl()
1089 if (isa<ConstantVector>(NewC) || isa<ConstantExpr>(NewC)) { in ConstantFoldConstantImpl()
1114 assert(isa<ConstantVector>(C)); in ConstantFoldConstantImpl()
1115 return ConstantVector::get(Ops); in ConstantFoldConstantImpl()
[all …]
DVectorUtils.cpp655 return ConstantVector::get(Mask); in createBitMaskForGaps()
665 return ConstantVector::get(MaskVec); in createReplicatedMask()
675 return ConstantVector::get(Mask); in createInterleaveMask()
684 return ConstantVector::get(Mask); in createStrideMask()
697 return ConstantVector::get(Mask); in createSequentialMask()
792 if (auto *CV = dyn_cast<ConstantVector>(Mask)) in possiblyDemandedEltsInMask()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/Utils/
DLocal.h66 OpC = ConstantVector::getSplat(IntIdxTy->getVectorNumElements(), OpC);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DConstantFolding.h28 class ConstantVector; variable
DTargetTransformInfoImpl.h623 if (isa<ConstantDataVector>(Val) || isa<ConstantVector>(Val)) { in minRequiredElementSize()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DFunctionComparator.cpp329 const ConstantVector *LV = cast<ConstantVector>(L); in cmpConstants()
330 const ConstantVector *RV = cast<ConstantVector>(R); in cmpConstants()
DValueMapper.cpp479 if (isa<ConstantVector>(C)) in mapValue()
480 return getVM()[V] = ConstantVector::get(Ops); in mapValue()
/third_party/skia/third_party/externals/spirv-cross/
Dspirv_common.hpp1094 struct ConstantVector struct
1101 ConstantVector() in ConstantVector() function
1109 ConstantVector c[4];
1232 inline const ConstantVector &vector() const in vector()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/
DExecutionEngine.cpp921 const ConstantVector *CV = dyn_cast<ConstantVector>(C); in getConstantValue()
1138 if (const ConstantVector *CP = dyn_cast<ConstantVector>(Init)) { in InitializeMemory()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/NVPTX/
DNVPTXGenericToNVVM.cpp219 if (isa<ConstantVector>(C)) { in remapConstantVectorOrConstantAggregate()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUPrintfRuntimeBinding.cpp491 Constant *Mask = ConstantVector::get(Indices); in lowerPrintfForGpu()
/third_party/skia/third_party/externals/swiftshader/src/Reactor/
DLLVMReactor.cpp186 one = llvm::ConstantVector::getSplat( in lowerRCP()
209 llvm::Value *y = llvm::ConstantVector::getSplat( in lowerVectorShl()
222 llvm::Value *y = llvm::ConstantVector::getSplat( in lowerVectorAShr()
235 llvm::Value *y = llvm::ConstantVector::getSplat( in lowerVectorLShr()
1674 llvm::Value *shuffle = llvm::ConstantVector::get(llvm::ArrayRef<llvm::Constant *>(swizzle, size)); in createShuffleVector()
1820 return V(llvm::ConstantVector::get(llvm::ArrayRef<llvm::Constant *>(constantVector, numElements))); in createConstantVector()
1837 return V(llvm::ConstantVector::get(llvm::ArrayRef<llvm::Constant *>(constantVector, numElements))); in createConstantVector()

123