Home
last modified time | relevance | path

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

1234567

/external/swiftshader/third_party/LLVM/lib/VMCore/
DConstantFold.cpp44 static Constant *BitCastConstantVector(ConstantVector *CV, in BitCastConstantVector()
70 return ConstantVector::get(Result); in BitCastConstantVector()
144 if (ConstantVector *CV = dyn_cast<ConstantVector>(V)) in FoldBitCast()
152 return ConstantExpr::getBitCast(ConstantVector::get(V), DestPTy); in FoldBitCast()
551 if (ConstantVector *CV = dyn_cast<ConstantVector>(V)) in ConstantFoldCastInstruction()
561 return ConstantVector::get(res); in ConstantFoldCastInstruction()
699 if (ConstantVector* CondV = dyn_cast<ConstantVector>(Cond)) { in ConstantFoldSelectInstruction()
704 ConstantVector *CP1 = dyn_cast<ConstantVector>(V1); in ConstantFoldSelectInstruction()
705 ConstantVector *CP2 = dyn_cast<ConstantVector>(V2); in ConstantFoldSelectInstruction()
727 if (Valid) return ConstantVector::get(Res); in ConstantFoldSelectInstruction()
[all …]
DConstants.cpp75 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isAllOnesValue()
125 C = ConstantVector::get(std::vector<Constant *>(VTy->getNumElements(), C)); in getIntegerValue()
145 return cast<ConstantVector>(ConstantVector::get(Elts)); in getAllOnesValue()
281 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) { in getVectorElements()
390 return ConstantVector::get(Splat); in getTrue()
403 return ConstantVector::get(Splat); in getFalse()
427 return ConstantVector::get(SmallVector<Constant*, in get()
453 return ConstantVector::get( in get()
496 return ConstantVector::get( in get()
511 return ConstantVector::get( in get()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/
DInstructionsTest.cpp324 Constant *C2xi32a = ConstantVector::get(ConstVa); in TEST()
325 Constant *C2xi32b = ConstantVector::get(ConstVb); in TEST()
774 Constant *Identity = ConstantVector::get({C0, CU, C2, C3, C4}); in TEST()
782 Constant *Select = ConstantVector::get({CU, C1, C5}); in TEST()
790 Constant *Reverse = ConstantVector::get({C3, C2, C1, CU}); in TEST()
798 Constant *SingleSource = ConstantVector::get({C2, C2, C0, CU}); in TEST()
806 Constant *ZeroEltSplat = ConstantVector::get({C0, C0, CU, C0}); in TEST()
814 Constant *Transpose = ConstantVector::get({C0, C4, C2, C6}); in TEST()
823 EXPECT_TRUE(ShuffleVectorInst::isIdentityMask(ConstantVector::get({CU, C1, CU, C3}))); in TEST()
824 EXPECT_TRUE(ShuffleVectorInst::isIdentityMask(ConstantVector::get({C4, CU, C6, CU}))); in TEST()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp23 if (ConstantVector *C = dyn_cast<ConstantVector>(V)) { in CheapToScalarize()
66 const ConstantVector *CP = cast<ConstantVector>(SVI->getOperand(2)); in getShuffleMask()
89 if (ConstantVector *CP = dyn_cast<ConstantVector>(V)) in FindScalarElement()
132 if (ConstantVector *C = dyn_cast<ConstantVector>(EI.getOperand(0))) { in visitExtractElementInst()
429 return new ShuffleVectorInst(LHS, RHS, ConstantVector::get(Mask)); in visitInsertElementInst()
500 SVI.setOperand(2, ConstantVector::get(Elts)); in visitShuffleVectorInst()
568 ConstantVector::get(Elts)); in visitShuffleVectorInst()
DInstCombineMulDivRem.cpp267 if (ConstantVector *Op1V = dyn_cast<ConstantVector>(Op1C)) { in visitFMul()
687 if (ConstantVector *RHSV = dyn_cast<ConstantVector>(Op1)) { in visitSRem()
707 Constant *NewRHSV = ConstantVector::get(Elts); in visitSRem()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DScalarizeMaskedMemIntrin.cpp160 if (isa<ConstantVector>(Mask)) { in scalarizeMaskedLoad()
162 if (cast<ConstantVector>(Mask)->getOperand(Idx)->isNullValue()) in scalarizeMaskedLoad()
297 if (isa<ConstantVector>(Mask)) { in scalarizeMaskedStore()
299 if (cast<ConstantVector>(Mask)->getOperand(Idx)->isNullValue()) in scalarizeMaskedStore()
407 bool IsConstMask = isa<ConstantVector>(Mask); in scalarizeMaskedGather()
411 if (cast<ConstantVector>(Mask)->getOperand(Idx)->isNullValue()) in scalarizeMaskedGather()
534 bool IsConstMask = isa<ConstantVector>(Mask); in scalarizeMaskedScatter()
538 if (cast<ConstantVector>(Mask)->getOperand(Idx)->isNullValue()) in scalarizeMaskedScatter()
/external/swiftshader/third_party/LLVM/include/llvm/
DConstants.h459 class ConstantVector : public Constant {
460 friend struct ConstantCreator<ConstantVector, VectorType,
462 ConstantVector(const ConstantVector &); // DO NOT IMPLEMENT
464 ConstantVector(VectorType *T, ArrayRef<Constant *> Val);
493 static inline bool classof(const ConstantVector *) { return true; }
500 struct OperandTraits<ConstantVector> :
501 public VariadicOperandTraits<ConstantVector> {
504 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(ConstantVector, Constant)
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/
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()
188 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isNotMinSignedValue()
317 C = ConstantVector::getSplat(VTy->getNumElements(), C); in getIntegerValue()
334 return ConstantVector::getSplat(VTy->getNumElements(), in getAllOnesValue()
595 return ConstantVector::getSplat(VTy->getNumElements(), TrueC); in getTrue()
603 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()
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()
[all …]
/external/llvm/lib/IR/
DConstants.cpp55 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isNegativeZeroValue()
81 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isZeroValue()
115 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isAllOnesValue()
137 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isOneValue()
159 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isMinSignedValue()
181 if (const ConstantVector *CV = dyn_cast<ConstantVector>(this)) in isNotMinSignedValue()
244 C = ConstantVector::getSplat(VTy->getNumElements(), C); in getIntegerValue()
261 return ConstantVector::getSplat(VTy->getNumElements(), in getAllOnesValue()
530 return ConstantVector::getSplat(VTy->getNumElements(), in getTrue()
542 return ConstantVector::getSplat(VTy->getNumElements(), in getFalse()
[all …]
/external/swiftshader/third_party/LLVM/lib/Analysis/
DConstantFolding.cpp63 return FoldBitCast(ConstantVector::get(Ops), DestTy, TD); in FoldBitCast()
67 ConstantVector *CV = dyn_cast<ConstantVector>(C); in FoldBitCast()
111 CV = dyn_cast<ConstantVector>(C); in FoldBitCast()
176 return ConstantVector::get(Result); in FoldBitCast()
331 if (ConstantVector *CV = dyn_cast<ConstantVector>(C)) { in ReadDataFromGlobal()
1020 if (ConstantVector *CP = dyn_cast<ConstantVector>(C)) in ConstantFoldLoadThroughGEPConstantExpr()
1303 if (ConstantVector *Op = dyn_cast<ConstantVector>(Operands[0])) { in ConstantFoldCall()
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DPatternMatch.h100 if (ConstantVector *CV = dyn_cast<ConstantVector>(V)) in match()
146 if (const ConstantVector *CV = dyn_cast<ConstantVector>(V)) in match()
166 if (const ConstantVector *CV = dyn_cast<ConstantVector>(V)) in match()
600 if (ConstantVector *CV = dyn_cast<ConstantVector>(RHS)) in matchIfNot()
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DValue.def71 HANDLE_CONSTANT(ConstantVector)
95 HANDLE_CONSTANT_MARKER(ConstantAggregateLastVal, ConstantVector)
/external/llvm/include/llvm/IR/
DValue.def71 HANDLE_CONSTANT(ConstantVector)
95 HANDLE_CONSTANT_MARKER(ConstantAggregateLastVal, ConstantVector)
/external/tensorflow/tensorflow/compiler/xla/service/cpu/
Dvector_support_library.cc270 llvm::ConstantVector::get(mask), ""); in AddReduce()
311 b()->CreateShuffleVector(lhs, rhs, llvm::ConstantVector::get(mask_a)); in AvxStyleHorizontalAdd()
313 b()->CreateShuffleVector(lhs, rhs, llvm::ConstantVector::get(mask_b)); in AvxStyleHorizontalAdd()
325 llvm::ConstantVector::get(mask)); in ExtractLowHalf()
335 llvm::ConstantVector::get(mask)); in ExtractHighHalf()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DValue.def73 HANDLE_CONSTANT(ConstantVector)
90 HANDLE_CONSTANT_MARKER(ConstantAggregateLastVal, ConstantVector)
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Bitcode/Reader/
DValueList.cpp200 } else if (isa<ConstantVector>(UserC)) { in resolveConstantForwardRefs()
201 NewC = ConstantVector::get(NewOps); in resolveConstantForwardRefs()
/external/swiftshader/third_party/LLVM/
DOnlyX86.patch129 - if (ConstantVector *Mask = dyn_cast<ConstantVector>(II->getArgOperand(2))) {
176 + // if (ConstantVector *Mask = dyn_cast<ConstantVector>(II->getArgOperand(2))) {
/external/mesa3d/src/gallium/drivers/swr/rasterizer/jitter/
Dbuilder_misc.cpp197 return ConstantVector::getSplat(mVWidth, cast<ConstantInt>(C(i))); in VIMMED1()
202 return ConstantVector::getSplat(mVWidth16, cast<ConstantInt>(C(i))); in VIMMED1_16()
207 return ConstantVector::getSplat(mVWidth, cast<ConstantInt>(C(i))); in VIMMED1()
212 return ConstantVector::getSplat(mVWidth16, cast<ConstantInt>(C(i))); in VIMMED1_16()
217 return ConstantVector::getSplat(mVWidth, cast<ConstantFP>(C(i))); in VIMMED1()
222 return ConstantVector::getSplat(mVWidth16, cast<ConstantFP>(C(i))); in VIMMED1_16()
227 return ConstantVector::getSplat(mVWidth, cast<ConstantInt>(C(i))); in VIMMED1()
232 return ConstantVector::getSplat(mVWidth16, cast<ConstantInt>(C(i))); in VIMMED1_16()
1643 return VSHUFFLE(a, VUNDEF_I(), ConstantVector::get(idx)); in VEXTRACTI128()
1653 Value *inter = VSHUFFLE(b, VUNDEF_I(), ConstantVector::get(idx)); in VINSERTI128()
[all …]
Dfetch_jit.cpp384 Constant* promoteMask = ConstantVector::get(pMask); in JitLoadVertices()
521 …vec = FMUL(vec, ConstantVector::get(std::vector<Constant*>(4, ConstantFP::get(mFP32Ty, 1.0 / 255.0… in JitLoadVertices()
525 …vec = FMUL(vec, ConstantVector::get(std::vector<Constant*>(4, ConstantFP::get(mFP32Ty, 1.0 / 65535… in JitLoadVertices()
537 …vec = FMUL(vec, ConstantVector::get(std::vector<Constant*>(4, ConstantFP::get(mFP32Ty, 1.0 / 128.0… in JitLoadVertices()
541 …vec = FMUL(vec, ConstantVector::get(std::vector<Constant*>(4, ConstantFP::get(mFP32Ty, 1.0 / 32768… in JitLoadVertices()
653 Constant* insertMask = ConstantVector::get(iMask); in JitLoadVertices()
660 Value* x0y0x1y1 = VSHUFFLE(elements[0], elements[1], ConstantVector::get(v01Mask)); in JitLoadVertices()
661 Value* x2y2x3y3 = VSHUFFLE(elements[2], elements[3], ConstantVector::get(v01Mask)); in JitLoadVertices()
662 Value* z0w0z1w1 = VSHUFFLE(elements[0], elements[1], ConstantVector::get(v23Mask)); in JitLoadVertices()
663 Value* z2w3z2w3 = VSHUFFLE(elements[2], elements[3], ConstantVector::get(v23Mask)); in JitLoadVertices()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-diff/
DDifferenceEngine.cpp412 if (isa<ConstantVector>(L)) { in equivalentAsOperands()
413 ConstantVector *CVL = cast<ConstantVector>(L); in equivalentAsOperands()
414 ConstantVector *CVR = cast<ConstantVector>(R); in equivalentAsOperands()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp418 ConstantVector::get(ExtendMask)); in replaceExtractElements()
735 ConstantVector::get(NewShufElts), in foldConstantInsEltIntoShuffle()
736 ConstantVector::get(NewMaskElts)); in foldConstantInsEltIntoShuffle()
775 ConstantVector::get(Values), in foldConstantInsEltIntoShuffle()
776 ConstantVector::get(Mask)); in foldConstantInsEltIntoShuffle()
829 ConstantVector::get(Mask)); in visitInsertElementInst()
1033 ConstantVector::get(MaskValues)); in EvaluateInDifferentElementOrder()
1408 SVI.setOperand(2, ConstantVector::get(Elts)); in visitShuffleVectorInst()
1495 ConstantVector::get(ShuffleMask), in visitShuffleVectorInst()
1697 return new ShuffleVectorInst(newLHS, newRHS, ConstantVector::get(Elts)); in visitShuffleVectorInst()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/
DConstantFolding.cpp141 return FoldBitCast(ConstantVector::get(Ops), DestTy, DL); in FoldBitCast()
145 if (!isa<ConstantDataVector>(C) && !isa<ConstantVector>(C)) in FoldBitCast()
188 if (!isa<ConstantVector>(C) && // FIXME: Remove ConstantVector. in FoldBitCast()
232 return ConstantVector::get(Result); in FoldBitCast()
278 return ConstantVector::get(Result); in FoldBitCast()
445 if (isa<ConstantArray>(C) || isa<ConstantVector>(C) || in ReadDataFromGlobal()
1052 if (!isa<ConstantVector>(C) && !isa<ConstantExpr>(C)) in ConstantFoldConstantImpl()
1060 if (isa<ConstantVector>(NewC) || isa<ConstantExpr>(NewC)) { in ConstantFoldConstantImpl()
1085 assert(isa<ConstantVector>(C)); in ConstantFoldConstantImpl()
1086 return ConstantVector::get(Ops); in ConstantFoldConstantImpl()
[all …]
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DValueMapper.cpp146 if (isa<ConstantVector>(C)) in MapValue()
147 return VM[V] = ConstantVector::get(Ops); in MapValue()
/external/swiftshader/third_party/LLVM/lib/CodeGen/
DMachineFunction.cpp671 if (const ConstantVector *AV = dyn_cast<ConstantVector>(A)) in CanShareConstantPoolEntry()
672 if (const ConstantVector *BV = dyn_cast<ConstantVector>(B)) { in CanShareConstantPoolEntry()

1234567