/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/ |
D | InstructionsTest.cpp | 756 ShuffleVectorInst::commuteShuffleMask(Indices, 4); in TEST() 775 EXPECT_TRUE(ShuffleVectorInst::isIdentityMask(Identity)); in TEST() 776 EXPECT_FALSE(ShuffleVectorInst::isSelectMask(Identity)); // identity is distinguished from select in TEST() 777 EXPECT_FALSE(ShuffleVectorInst::isReverseMask(Identity)); in TEST() 778 EXPECT_TRUE(ShuffleVectorInst::isSingleSourceMask(Identity)); // identity is always single source in TEST() 779 EXPECT_FALSE(ShuffleVectorInst::isZeroEltSplatMask(Identity)); in TEST() 780 EXPECT_FALSE(ShuffleVectorInst::isTransposeMask(Identity)); in TEST() 783 EXPECT_FALSE(ShuffleVectorInst::isIdentityMask(Select)); in TEST() 784 EXPECT_TRUE(ShuffleVectorInst::isSelectMask(Select)); in TEST() 785 EXPECT_FALSE(ShuffleVectorInst::isReverseMask(Select)); in TEST() [all …]
|
/external/llvm/lib/Analysis/ |
D | CostModel.cpp | 138 static bool matchPairwiseShuffleMask(ShuffleVectorInst *SI, bool IsLeft, in matchPairwiseShuffleMask() 175 ShuffleVectorInst *LS = dyn_cast<ShuffleVectorInst>(L); in matchPairwiseReductionAtLevel() 178 ShuffleVectorInst *RS = dyn_cast<ShuffleVectorInst>(R); in matchPairwiseReductionAtLevel() 288 static std::pair<Value *, ShuffleVectorInst *> 293 ShuffleVectorInst *S = nullptr; in getShuffleAndOtherOprd() 295 if ((S = dyn_cast<ShuffleVectorInst>(L))) in getShuffleAndOtherOprd() 298 S = dyn_cast<ShuffleVectorInst>(R); in getShuffleAndOtherOprd() 349 ShuffleVectorInst *Shuffle; in matchVectorSplittingReduction() 485 const ShuffleVectorInst *Shuffle = cast<ShuffleVectorInst>(I); in getInstructionCost()
|
D | VectorUtils.cpp | 260 if (ShuffleVectorInst *SVI = dyn_cast<ShuffleVectorInst>(V)) { in findScalarElement() 292 auto *ShuffleInst = dyn_cast<ShuffleVectorInst>(V); in getSplatValue()
|
/external/llvm/lib/CodeGen/ |
D | InterleavedAccessPass.cpp | 100 ArrayRef<ShuffleVectorInst *> Shuffles); 201 SmallVector<ShuffleVectorInst *, 4> Shuffles; in lowerInterleavedLoad() 214 ShuffleVectorInst *SVI = dyn_cast<ShuffleVectorInst>(*UI); in lowerInterleavedLoad() 269 ArrayRef<ShuffleVectorInst *> Shuffles) { in tryReplaceExtracts() 339 ShuffleVectorInst *SVI = dyn_cast<ShuffleVectorInst>(SI->getValueOperand()); in lowerInterleavedStore()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/ |
D | InterleavedAccessPass.cpp | 120 ArrayRef<ShuffleVectorInst *> Shuffles); 281 SmallVector<ShuffleVectorInst *, 4> Shuffles; in lowerInterleavedLoad() 294 ShuffleVectorInst *SVI = dyn_cast<ShuffleVectorInst>(*UI); in lowerInterleavedLoad() 350 ArrayRef<ShuffleVectorInst *> Shuffles) { in tryReplaceExtracts() 417 ShuffleVectorInst *SVI = dyn_cast<ShuffleVectorInst>(SI->getValueOperand()); in lowerInterleavedStore()
|
/external/swiftshader/third_party/LLVM/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 58 static std::vector<int> getShuffleMask(const ShuffleVectorInst *SVI) { in getShuffleMask() 108 if (ShuffleVectorInst *SVI = dyn_cast<ShuffleVectorInst>(V)) { in FindScalarElement() 211 } else if (ShuffleVectorInst *SVI = dyn_cast<ShuffleVectorInst>(I)) { in visitExtractElementInst() 429 return new ShuffleVectorInst(LHS, RHS, ConstantVector::get(Mask)); in visitInsertElementInst() 447 Instruction *InstCombiner::visitShuffleVectorInst(ShuffleVectorInst &SVI) { in visitShuffleVectorInst() 531 if (ShuffleVectorInst *LHSSVI = dyn_cast<ShuffleVectorInst>(LHS)) { in visitShuffleVectorInst() 566 return new ShuffleVectorInst(LHSSVI->getOperand(0), in visitShuffleVectorInst()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 251 } else if (ShuffleVectorInst *SVI = dyn_cast<ShuffleVectorInst>(I)) { in visitExtractElementInst() 417 auto *WideVec = new ShuffleVectorInst(ExtVecOp, UndefValue::get(ExtVecType), in replaceExtractElements() 570 static bool isShuffleEquivalentToSelect(ShuffleVectorInst &Shuf) { in isShuffleEquivalentToSelect() 649 return new ShuffleVectorInst(InsertFirst, UndefValue::get(VT), ZeroMask); in foldInsSequenceIntoBroadcast() 690 if (auto *Shuf = dyn_cast<ShuffleVectorInst>(InsElt.getOperand(0))) { in foldConstantInsEltIntoShuffle() 734 return new ShuffleVectorInst(Shuf->getOperand(0), in foldConstantInsEltIntoShuffle() 774 return new ShuffleVectorInst(IEI->getOperand(0), in foldConstantInsEltIntoShuffle() 828 return new ShuffleVectorInst(LR.first, LR.second, in visitInsertElementInst() 1129 static bool isShuffleExtractingFromLHS(ShuffleVectorInst &SVI, in isShuffleExtractingFromLHS() 1185 static Instruction *foldSelectShuffleWith1Binop(ShuffleVectorInst &Shuf) { in foldSelectShuffleWith1Binop() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Analysis/ |
D | TargetTransformInfo.cpp | 676 static bool matchPairwiseShuffleMask(ShuffleVectorInst *SI, bool IsLeft, in matchPairwiseShuffleMask() 762 ShuffleVectorInst *LS = dyn_cast<ShuffleVectorInst>(RD->LHS); in matchPairwiseReductionAtLevel() 765 ShuffleVectorInst *RS = dyn_cast<ShuffleVectorInst>(RD->RHS); in matchPairwiseReductionAtLevel() 880 static std::pair<Value *, ShuffleVectorInst *> 882 ShuffleVectorInst *S = nullptr; in getShuffleAndOtherOprd() 884 if ((S = dyn_cast<ShuffleVectorInst>(L))) in getShuffleAndOtherOprd() 887 S = dyn_cast<ShuffleVectorInst>(R); in getShuffleAndOtherOprd() 941 ShuffleVectorInst *Shuffle; in matchVectorSplittingReduction() 1103 const ShuffleVectorInst *Shuffle = cast<ShuffleVectorInst>(I); in getInstructionThroughput()
|
D | VectorUtils.cpp | 262 if (ShuffleVectorInst *SVI = dyn_cast<ShuffleVectorInst>(V)) { in findScalarElement() 294 auto *ShuffleInst = dyn_cast<ShuffleVectorInst>(V); in getSplatValue()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/X86/ |
D | X86InterleavedAccess.cpp | 56 ArrayRef<ShuffleVectorInst *> Shuffles; 111 ArrayRef<ShuffleVectorInst *> Shuffs, in X86InterleavedAccessGroup() 171 assert((isa<LoadInst>(VecInst) || isa<ShuffleVectorInst>(VecInst)) && in decompose() 181 if (auto *SVI = dyn_cast<ShuffleVectorInst>(VecInst)) { in decompose() 188 cast<ShuffleVectorInst>(Builder.CreateShuffleVector( in decompose() 804 LoadInst *LI, ArrayRef<ShuffleVectorInst *> Shuffles, in lowerInterleavedLoad() 821 ShuffleVectorInst *SVI, in lowerInterleavedStore() 836 ArrayRef<ShuffleVectorInst *> Shuffles = makeArrayRef(SVI); in lowerInterleavedStore()
|
/external/llvm/lib/Transforms/InstCombine/ |
D | InstCombineVectorOps.cpp | 225 } else if (ShuffleVectorInst *SVI = dyn_cast<ShuffleVectorInst>(I)) { in visitExtractElementInst() 416 auto *WideVec = new ShuffleVectorInst(ExtVecOp, UndefValue::get(ExtVecType), in replaceExtractElements() 612 return new ShuffleVectorInst(LR.first, LR.second, in visitInsertElementInst() 904 static bool isShuffleExtractingFromLHS(ShuffleVectorInst &SVI, in isShuffleExtractingFromLHS() 919 Instruction *InstCombiner::visitShuffleVectorInst(ShuffleVectorInst &SVI) { in visitShuffleVectorInst() 1127 ShuffleVectorInst* LHSShuffle = dyn_cast<ShuffleVectorInst>(LHS); in visitShuffleVectorInst() 1128 ShuffleVectorInst* RHSShuffle = dyn_cast<ShuffleVectorInst>(RHS); in visitShuffleVectorInst() 1263 return new ShuffleVectorInst(newLHS, newRHS, ConstantVector::get(Elts)); in visitShuffleVectorInst()
|
D | InstructionCombining.cpp | 1273 if (isa<ShuffleVectorInst>(LHS) && isa<ShuffleVectorInst>(RHS)) { in SimplifyVectorOp() 1274 ShuffleVectorInst *LShuf = cast<ShuffleVectorInst>(LHS); in SimplifyVectorOp() 1275 ShuffleVectorInst *RShuf = cast<ShuffleVectorInst>(RHS); in SimplifyVectorOp() 1289 ShuffleVectorInst *Shuffle = nullptr; in SimplifyVectorOp() 1291 if (isa<ShuffleVectorInst>(LHS)) Shuffle = cast<ShuffleVectorInst>(LHS); in SimplifyVectorOp() 1292 if (isa<ShuffleVectorInst>(RHS)) Shuffle = cast<ShuffleVectorInst>(RHS); in SimplifyVectorOp()
|
/external/llvm/lib/Transforms/Vectorize/ |
D | BBVectorize.cpp | 511 } else if (ShuffleVectorInst *SI = dyn_cast<ShuffleVectorInst>(I)) { in getInstructionTypes() 909 } else if (!(I->isBinaryOp() || isa<ShuffleVectorInst>(I) || in isInstVectorizable() 1918 if (!isa<ShuffleVectorInst>(S->first) && in findBestDAGFor() 2008 if (ShuffleVectorInst *SI = dyn_cast<ShuffleVectorInst>(U)) { in findBestDAGFor() 2039 if (ShuffleVectorInst *SI = dyn_cast<ShuffleVectorInst>(U)) { in findBestDAGFor() 2114 ShuffleVectorInst *SIO1 = dyn_cast<ShuffleVectorInst>(O1), in findBestDAGFor() 2115 *SIO2 = dyn_cast<ShuffleVectorInst>(O2); in findBestDAGFor() 2351 int m = cast<ShuffleVectorInst>(J)->getMaskValue(v); in fillNewShuffleMask() 2481 ShuffleVectorInst *LSV = dyn_cast<ShuffleVectorInst>(LOp); in getReplacementInput() 2482 ShuffleVectorInst *HSV = dyn_cast<ShuffleVectorInst>(HOp); in getReplacementInput() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/IR/ |
D | Instructions.cpp | 1595 ShuffleVectorInst::ShuffleVectorInst(Value *V1, Value *V2, Value *Mask, in ShuffleVectorInst() function in ShuffleVectorInst 1601 OperandTraits<ShuffleVectorInst>::op_begin(this), in ShuffleVectorInst() 1602 OperandTraits<ShuffleVectorInst>::operands(this), in ShuffleVectorInst() 1612 ShuffleVectorInst::ShuffleVectorInst(Value *V1, Value *V2, Value *Mask, in ShuffleVectorInst() function in ShuffleVectorInst 1618 OperandTraits<ShuffleVectorInst>::op_begin(this), in ShuffleVectorInst() 1619 OperandTraits<ShuffleVectorInst>::operands(this), in ShuffleVectorInst() 1630 bool ShuffleVectorInst::isValidOperands(const Value *V1, const Value *V2, in isValidOperands() 1677 int ShuffleVectorInst::getMaskValue(const Constant *Mask, unsigned i) { in getMaskValue() 1687 void ShuffleVectorInst::getShuffleMask(const Constant *Mask, in getShuffleMask() 1703 bool ShuffleVectorInst::isSingleSourceMask(ArrayRef<int> Mask) { in isSingleSourceMask() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Scalar/ |
D | EarlyCSE.cpp | 65 isa<InsertElementInst>(Inst) || isa<ShuffleVectorInst>(Inst) || in canHandle() 114 isa<InsertElementInst>(Inst) || isa<ShuffleVectorInst>(Inst)) && in getHashValue()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Scalar/ |
D | RewriteStatepointsForGC.cpp | 461 if (isa<ShuffleVectorInst>(I)) in findBaseDefiningValueOfVector() 644 !isa<ShuffleVectorInst>(V)) { in isKnownBaseResult() 797 isa<ShuffleVectorInst>(BDV); in findBasePointer() 840 } else if (auto *SV = dyn_cast<ShuffleVectorInst>(Current)) { in findBasePointer() 909 auto *SV = cast<ShuffleVectorInst>(BDV); in findBasePointer() 990 auto *SV = cast<ShuffleVectorInst>(I); in findBasePointer() 993 return new ShuffleVectorInst(VecUndef, VecUndef, SV->getOperand(2), in findBasePointer() 1106 auto *BaseSV = cast<ShuffleVectorInst>(State.getBaseValue()); in findBasePointer() 1107 auto *BdvSV = cast<ShuffleVectorInst>(BDV); in findBasePointer()
|
/external/swiftshader/third_party/LLVM/lib/VMCore/ |
D | Instructions.cpp | 1524 ShuffleVectorInst::ShuffleVectorInst(Value *V1, Value *V2, Value *Mask, in ShuffleVectorInst() function in ShuffleVectorInst 1530 OperandTraits<ShuffleVectorInst>::op_begin(this), in ShuffleVectorInst() 1531 OperandTraits<ShuffleVectorInst>::operands(this), in ShuffleVectorInst() 1541 ShuffleVectorInst::ShuffleVectorInst(Value *V1, Value *V2, Value *Mask, in ShuffleVectorInst() function in ShuffleVectorInst 1547 OperandTraits<ShuffleVectorInst>::op_begin(this), in ShuffleVectorInst() 1548 OperandTraits<ShuffleVectorInst>::operands(this), in ShuffleVectorInst() 1559 bool ShuffleVectorInst::isValidOperands(const Value *V1, const Value *V2, in isValidOperands() 1589 int ShuffleVectorInst::getMaskValue(unsigned i) const { in getMaskValue() 3446 ShuffleVectorInst *ShuffleVectorInst::clone_impl() const { in clone_impl() 3447 return new ShuffleVectorInst(getOperand(0), in clone_impl()
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/FuzzMutate/ |
D | Operations.cpp | 299 return ShuffleVectorInst::isValidOperands(Cur[0], Cur[1], V); in validShuffleVectorIndex() 314 return new ShuffleVectorInst(Srcs[0], Srcs[1], Srcs[2], "S", Inst); in shuffleVectorDescriptor()
|
/external/llvm/lib/IR/ |
D | Instructions.cpp | 1836 ShuffleVectorInst::ShuffleVectorInst(Value *V1, Value *V2, Value *Mask, in ShuffleVectorInst() function in ShuffleVectorInst 1842 OperandTraits<ShuffleVectorInst>::op_begin(this), in ShuffleVectorInst() 1843 OperandTraits<ShuffleVectorInst>::operands(this), in ShuffleVectorInst() 1853 ShuffleVectorInst::ShuffleVectorInst(Value *V1, Value *V2, Value *Mask, in ShuffleVectorInst() function in ShuffleVectorInst 1859 OperandTraits<ShuffleVectorInst>::op_begin(this), in ShuffleVectorInst() 1860 OperandTraits<ShuffleVectorInst>::operands(this), in ShuffleVectorInst() 1871 bool ShuffleVectorInst::isValidOperands(const Value *V1, const Value *V2, in isValidOperands() 1922 int ShuffleVectorInst::getMaskValue(Constant *Mask, unsigned i) { in getMaskValue() 1934 void ShuffleVectorInst::getShuffleMask(Constant *Mask, in getShuffleMask() 4031 ShuffleVectorInst *ShuffleVectorInst::cloneImpl() const { in cloneImpl() [all …]
|
/external/swiftshader/third_party/LLVM/include/llvm/Support/ |
D | InstVisitor.h | 195 RetTy visitShuffleVectorInst(ShuffleVectorInst &I) { DELEGATE(Instruction); } in visitShuffleVectorInst()
|
/external/llvm/lib/Target/AArch64/ |
D | AArch64ISelLowering.h | 305 ArrayRef<ShuffleVectorInst *> Shuffles, 308 bool lowerInterleavedStore(StoreInst *SI, ShuffleVectorInst *SVI,
|
/external/swiftshader/third_party/LLVM/include/llvm/ |
D | Instructions.h | 1631 class ShuffleVectorInst : public Instruction { 1633 virtual ShuffleVectorInst *clone_impl() const; 1640 ShuffleVectorInst(Value *V1, Value *V2, Value *Mask, 1643 ShuffleVectorInst(Value *V1, Value *V2, Value *Mask, 1666 static inline bool classof(const ShuffleVectorInst *) { return true; } 1676 struct OperandTraits<ShuffleVectorInst> : 1677 public FixedNumOperandTraits<ShuffleVectorInst, 3> { 1680 DEFINE_TRANSPARENT_OPERAND_ACCESSORS(ShuffleVectorInst, Value)
|
/external/swiftshader/third_party/llvm-7.0/llvm/lib/ExecutionEngine/Interpreter/ |
D | Interpreter.h | 165 void visitShuffleVectorInst(ShuffleVectorInst &I);
|
/external/llvm/lib/Target/ARM/ |
D | ARMISelLowering.h | 455 ArrayRef<ShuffleVectorInst *> Shuffles, 458 bool lowerInterleavedStore(StoreInst *SI, ShuffleVectorInst *SVI,
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
D | Interpreter.h | 184 void visitShuffleVectorInst(ShuffleVectorInst &I);
|