Home
last modified time | relevance | path

Searched refs:Shuf (Results 1 – 8 of 8) sorted by relevance

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineVectorOps.cpp725 static bool isShuffleEquivalentToSelect(ShuffleVectorInst &Shuf) { in isShuffleEquivalentToSelect() argument
726 int MaskSize = Shuf.getMask()->getType()->getVectorNumElements(); in isShuffleEquivalentToSelect()
727 int VecSize = Shuf.getOperand(0)->getType()->getVectorNumElements(); in isShuffleEquivalentToSelect()
736 int Elt = Shuf.getMaskValue(i); in isShuffleEquivalentToSelect()
818 auto *Shuf = dyn_cast<ShuffleVectorInst>(InsElt.getOperand(0)); in foldInsEltIntoSplat() local
819 if (!Shuf || !Shuf->isZeroEltSplat()) in foldInsEltIntoSplat()
829 Value *Op0 = Shuf->getOperand(0); in foldInsEltIntoSplat()
837 unsigned NumMaskElts = Shuf->getType()->getVectorNumElements(); in foldInsEltIntoSplat()
839 Type *I32Ty = IntegerType::getInt32Ty(Shuf->getContext()); in foldInsEltIntoSplat()
842 NewMaskVec[i] = i == IdxC ? Zero : Shuf->getMask()->getAggregateElement(i); in foldInsEltIntoSplat()
[all …]
DInstCombineCasts.cpp640 auto *Shuf = dyn_cast<ShuffleVectorInst>(Trunc.getOperand(0)); in shrinkSplatShuffle() local
641 if (Shuf && Shuf->hasOneUse() && isa<UndefValue>(Shuf->getOperand(1)) && in shrinkSplatShuffle()
642 Shuf->getMask()->getSplatValue() && in shrinkSplatShuffle()
643 Shuf->getType() == Shuf->getOperand(0)->getType()) { in shrinkSplatShuffle()
646 Value *NarrowOp = Builder.CreateTrunc(Shuf->getOperand(0), Trunc.getType()); in shrinkSplatShuffle()
647 return new ShuffleVectorInst(NarrowOp, NarrowUndef, Shuf->getMask()); in shrinkSplatShuffle()
2506 if (auto *Shuf = dyn_cast<ShuffleVectorInst>(Src)) { in visitBitCast() local
2509 Value *ShufOp0 = Shuf->getOperand(0); in visitBitCast()
2510 Value *ShufOp1 = Shuf->getOperand(1); in visitBitCast()
2511 unsigned NumShufElts = Shuf->getType()->getVectorNumElements(); in visitBitCast()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPULowerKernelArguments.cpp212 Value *Shuf = Builder.CreateShuffleVector(Load, UndefValue::get(V4Ty), in runOnFunction() local
215 Arg.replaceAllUsesWith(Shuf); in runOnFunction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DLoopUtils.cpp852 Value *Shuf = Builder.CreateShuffleVector( in getShuffleReduction() local
858 TmpVec = Builder.CreateBinOp((Instruction::BinaryOps)Op, TmpVec, Shuf, in getShuffleReduction()
863 TmpVec = createMinMaxOp(Builder, MinMaxKind, TmpVec, Shuf); in getShuffleReduction()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DDAGCombiner.cpp16842 SDValue Shuf = DAG.getVectorShuffle(ShufVT, DL, DestVecBC, PaddedSubV, Mask); in combineInsertEltToShuffle() local
16845 AddToWorklist(Shuf.getNode()); in combineInsertEltToShuffle()
16846 return DAG.getBitcast(VT, Shuf); in combineInsertEltToShuffle()
16882 if (SDValue Shuf = combineInsertEltToShuffle(N, Elt)) in visitINSERT_VECTOR_ELT() local
16883 return Shuf; in visitINSERT_VECTOR_ELT()
17157 auto *Shuf = cast<ShuffleVectorSDNode>(VecOp); in visitEXTRACT_VECTOR_ELT() local
17159 int OrigElt = Shuf->getMaskElt(IndexC->getZExtValue()); in visitEXTRACT_VECTOR_ELT()
17272 if (auto *Shuf = dyn_cast<ShuffleVectorSDNode>(VecOp)) { in visitEXTRACT_VECTOR_ELT() local
17287 int Idx = (Elt > (int)NumElts) ? -1 : Shuf->getMaskElt(Elt); in visitEXTRACT_VECTOR_ELT()
17615 SDValue Shuf = TLI.buildLegalVectorShuffle(VecVT, DL, Extract.getOperand(0), in reduceBuildVecToShuffleWithZero() local
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DValueTracking.cpp2711 auto *Shuf = cast<ShuffleVectorInst>(U); in ComputeNumSignBitsImpl() local
2712 int NumElts = Shuf->getOperand(0)->getType()->getVectorNumElements(); in ComputeNumSignBitsImpl()
2713 int NumMaskElts = Shuf->getMask()->getType()->getVectorNumElements(); in ComputeNumSignBitsImpl()
2716 int M = Shuf->getMaskValue(i); in ComputeNumSignBitsImpl()
2729 Tmp = ComputeNumSignBits(Shuf->getOperand(0), Depth + 1, Q); in ComputeNumSignBitsImpl()
2731 Tmp2 = ComputeNumSignBits(Shuf->getOperand(1), Depth + 1, Q); in ComputeNumSignBitsImpl()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/X86/
DX86ISelLowering.cpp12679 SDValue Shuf = DAG.getVectorShuffle(WideVT, DL, WideVec, DAG.getUNDEF(WideVT), in lowerShuffleOfExtractsAsVperm() local
12682 return DAG.getNode(ISD::EXTRACT_SUBVECTOR, DL, VT, Shuf, in lowerShuffleOfExtractsAsVperm()
19623 if (auto *Shuf = dyn_cast<ShuffleVectorSDNode>(In)) in LowerAVXExtend() local
19624 if (hasIdenticalHalvesShuffleMask(Shuf->getMask())) in LowerAVXExtend()
21726 SDValue Shuf = DAG.getVectorShuffle(MVT::v4i32, dl, Result, Result, Mask); in LowerVSETCC() local
21727 Result = DAG.getNode(ISD::AND, dl, MVT::v4i32, Result, Shuf); in LowerVSETCC()
35200 static SDValue narrowShuffle(ShuffleVectorSDNode *Shuf, SelectionDAG &DAG) { in narrowShuffle() argument
35201 if (!Shuf->getValueType(0).isSimple()) in narrowShuffle()
35203 MVT VT = Shuf->getSimpleValueType(0); in narrowShuffle()
35208 ArrayRef<int> Mask = Shuf->getMask(); in narrowShuffle()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DLoopVectorize.cpp1680 Value *Shuf = Builder.CreateVectorSplat(VF, V, "broadcast"); in getBroadcastInstrs() local
1682 return Shuf; in getBroadcastInstrs()