/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | ConstantFold.cpp | 44 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 …]
|
D | Constants.cpp | 75 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/ |
D | InstructionsTest.cpp | 324 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/ |
D | InstCombineVectorOps.cpp | 23 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()
|
D | InstCombineMulDivRem.cpp | 267 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/ |
D | ScalarizeMaskedMemIntrin.cpp | 160 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/ |
D | Constants.h | 459 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/ |
D | Constants.cpp | 50 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 …]
|
D | ConstantFold.cpp | 68 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/ |
D | Constants.cpp | 55 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/ |
D | ConstantFolding.cpp | 63 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/ |
D | PatternMatch.h | 100 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/ |
D | Value.def | 71 HANDLE_CONSTANT(ConstantVector) 95 HANDLE_CONSTANT_MARKER(ConstantAggregateLastVal, ConstantVector)
|
/external/llvm/include/llvm/IR/ |
D | Value.def | 71 HANDLE_CONSTANT(ConstantVector) 95 HANDLE_CONSTANT_MARKER(ConstantAggregateLastVal, ConstantVector)
|
/external/tensorflow/tensorflow/compiler/xla/service/cpu/ |
D | vector_support_library.cc | 270 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/ |
D | Value.def | 73 HANDLE_CONSTANT(ConstantVector) 90 HANDLE_CONSTANT_MARKER(ConstantAggregateLastVal, ConstantVector)
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Bitcode/Reader/ |
D | ValueList.cpp | 200 } else if (isa<ConstantVector>(UserC)) { in resolveConstantForwardRefs() 201 NewC = ConstantVector::get(NewOps); in resolveConstantForwardRefs()
|
/external/swiftshader/third_party/LLVM/ |
D | OnlyX86.patch | 129 - 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/ |
D | builder_misc.cpp | 197 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 …]
|
D | fetch_jit.cpp | 384 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/ |
D | DifferenceEngine.cpp | 412 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/ |
D | InstCombineVectorOps.cpp | 418 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/ |
D | ConstantFolding.cpp | 141 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/ |
D | ValueMapper.cpp | 146 if (isa<ConstantVector>(C)) in MapValue() 147 return VM[V] = ConstantVector::get(Ops); in MapValue()
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | MachineFunction.cpp | 671 if (const ConstantVector *AV = dyn_cast<ConstantVector>(A)) in CanShareConstantPoolEntry() 672 if (const ConstantVector *BV = dyn_cast<ConstantVector>(B)) { in CanShareConstantPoolEntry()
|