Lines Matching refs:Shuf
164 static bool getShuffleDemandedElts(const ShuffleVectorInst *Shuf, in getShuffleDemandedElts() argument
169 if (isa<ScalableVectorType>(Shuf->getType())) in getShuffleDemandedElts()
173 cast<FixedVectorType>(Shuf->getOperand(0)->getType())->getNumElements(); in getShuffleDemandedElts()
174 int NumMaskElts = cast<FixedVectorType>(Shuf->getType())->getNumElements(); in getShuffleDemandedElts()
179 if (all_of(Shuf->getShuffleMask(), [](int Elt) { return Elt == 0; })) { in getShuffleDemandedElts()
186 int M = Shuf->getMaskValue(i); in getShuffleDemandedElts()
1646 auto *Shuf = dyn_cast<ShuffleVectorInst>(I); in computeKnownBitsFromOperator() local
1648 if (!Shuf) { in computeKnownBitsFromOperator()
1655 if (!getShuffleDemandedElts(Shuf, DemandedElts, DemandedLHS, DemandedRHS)) { in computeKnownBitsFromOperator()
1662 const Value *LHS = Shuf->getOperand(0); in computeKnownBitsFromOperator()
1669 const Value *RHS = Shuf->getOperand(1); in computeKnownBitsFromOperator()
2927 auto *Shuf = dyn_cast<ShuffleVectorInst>(U); in ComputeNumSignBitsImpl() local
2928 if (!Shuf) { in ComputeNumSignBitsImpl()
2935 if (!getShuffleDemandedElts(Shuf, DemandedElts, DemandedLHS, DemandedRHS)) in ComputeNumSignBitsImpl()
2939 const Value *LHS = Shuf->getOperand(0); in ComputeNumSignBitsImpl()
2947 const Value *RHS = Shuf->getOperand(1); in ComputeNumSignBitsImpl()