Lines Matching refs:Indices

2549                                        SmallVector<int, 16> Indices,  in lowerVECTOR_SHUFFLE_SHF()  argument
2553 if (Indices.size() < 4) in lowerVECTOR_SHUFFLE_SHF()
2557 for (unsigned j = i; j < Indices.size(); j += 4) { in lowerVECTOR_SHUFFLE_SHF()
2558 int Idx = Indices[j]; in lowerVECTOR_SHUFFLE_SHF()
2630 SmallVector<int, 16> Indices, in isVECTOR_SHUFFLE_SPLATI() argument
2632 assert((Indices.size() % 2) == 0); in isVECTOR_SHUFFLE_SPLATI()
2635 for (const auto &V : Indices) { in isVECTOR_SHUFFLE_SPLATI()
2642 return fitsRegularPattern<int>(Indices.begin(), 1, Indices.end(), SplatIndex, in isVECTOR_SHUFFLE_SPLATI()
2662 SmallVector<int, 16> Indices, in lowerVECTOR_SHUFFLE_ILVEV() argument
2664 assert((Indices.size() % 2) == 0); in lowerVECTOR_SHUFFLE_ILVEV()
2668 const auto &Begin = Indices.begin(); in lowerVECTOR_SHUFFLE_ILVEV()
2669 const auto &End = Indices.end(); in lowerVECTOR_SHUFFLE_ILVEV()
2675 else if (fitsRegularPattern<int>(Begin, 2, End, Indices.size(), 2)) in lowerVECTOR_SHUFFLE_ILVEV()
2684 else if (fitsRegularPattern<int>(Begin + 1, 2, End, Indices.size(), 2)) in lowerVECTOR_SHUFFLE_ILVEV()
2708 SmallVector<int, 16> Indices, in lowerVECTOR_SHUFFLE_ILVOD() argument
2710 assert((Indices.size() % 2) == 0); in lowerVECTOR_SHUFFLE_ILVOD()
2714 const auto &Begin = Indices.begin(); in lowerVECTOR_SHUFFLE_ILVOD()
2715 const auto &End = Indices.end(); in lowerVECTOR_SHUFFLE_ILVOD()
2721 else if (fitsRegularPattern<int>(Begin, 2, End, Indices.size() + 1, 2)) in lowerVECTOR_SHUFFLE_ILVOD()
2730 else if (fitsRegularPattern<int>(Begin + 1, 2, End, Indices.size() + 1, 2)) in lowerVECTOR_SHUFFLE_ILVOD()
2755 SmallVector<int, 16> Indices, in lowerVECTOR_SHUFFLE_ILVR() argument
2757 assert((Indices.size() % 2) == 0); in lowerVECTOR_SHUFFLE_ILVR()
2761 const auto &Begin = Indices.begin(); in lowerVECTOR_SHUFFLE_ILVR()
2762 const auto &End = Indices.end(); in lowerVECTOR_SHUFFLE_ILVR()
2768 else if (fitsRegularPattern<int>(Begin, 2, End, Indices.size(), 1)) in lowerVECTOR_SHUFFLE_ILVR()
2777 else if (fitsRegularPattern<int>(Begin + 1, 2, End, Indices.size(), 1)) in lowerVECTOR_SHUFFLE_ILVR()
2802 SmallVector<int, 16> Indices, in lowerVECTOR_SHUFFLE_ILVL() argument
2804 assert((Indices.size() % 2) == 0); in lowerVECTOR_SHUFFLE_ILVL()
2806 unsigned HalfSize = Indices.size() / 2; in lowerVECTOR_SHUFFLE_ILVL()
2809 const auto &Begin = Indices.begin(); in lowerVECTOR_SHUFFLE_ILVL()
2810 const auto &End = Indices.end(); in lowerVECTOR_SHUFFLE_ILVL()
2816 else if (fitsRegularPattern<int>(Begin, 2, End, Indices.size() + HalfSize, 1)) in lowerVECTOR_SHUFFLE_ILVL()
2825 else if (fitsRegularPattern<int>(Begin + 1, 2, End, Indices.size() + HalfSize, in lowerVECTOR_SHUFFLE_ILVL()
2850 SmallVector<int, 16> Indices, in lowerVECTOR_SHUFFLE_PCKEV() argument
2852 assert((Indices.size() % 2) == 0); in lowerVECTOR_SHUFFLE_PCKEV()
2856 const auto &Begin = Indices.begin(); in lowerVECTOR_SHUFFLE_PCKEV()
2857 const auto &Mid = Indices.begin() + Indices.size() / 2; in lowerVECTOR_SHUFFLE_PCKEV()
2858 const auto &End = Indices.end(); in lowerVECTOR_SHUFFLE_PCKEV()
2862 else if (fitsRegularPattern<int>(Begin, 1, Mid, Indices.size(), 2)) in lowerVECTOR_SHUFFLE_PCKEV()
2869 else if (fitsRegularPattern<int>(Mid, 1, End, Indices.size(), 2)) in lowerVECTOR_SHUFFLE_PCKEV()
2893 SmallVector<int, 16> Indices, in lowerVECTOR_SHUFFLE_PCKOD() argument
2895 assert((Indices.size() % 2) == 0); in lowerVECTOR_SHUFFLE_PCKOD()
2899 const auto &Begin = Indices.begin(); in lowerVECTOR_SHUFFLE_PCKOD()
2900 const auto &Mid = Indices.begin() + Indices.size() / 2; in lowerVECTOR_SHUFFLE_PCKOD()
2901 const auto &End = Indices.end(); in lowerVECTOR_SHUFFLE_PCKOD()
2905 else if (fitsRegularPattern<int>(Begin, 1, Mid, Indices.size() + 1, 2)) in lowerVECTOR_SHUFFLE_PCKOD()
2912 else if (fitsRegularPattern<int>(Mid, 1, End, Indices.size() + 1, 2)) in lowerVECTOR_SHUFFLE_PCKOD()
2929 const SmallVector<int, 16> &Indices, in lowerVECTOR_SHUFFLE_VSHF() argument
2943 int Idx = Indices[i]; in lowerVECTOR_SHUFFLE_VSHF()
2951 for (int Idx : Indices) in lowerVECTOR_SHUFFLE_VSHF()
2987 SmallVector<int, 16> Indices; in lowerVECTOR_SHUFFLE() local
2990 Indices.push_back(Node->getMaskElt(i)); in lowerVECTOR_SHUFFLE()
2994 if (isVECTOR_SHUFFLE_SPLATI(Op, ResTy, Indices, DAG)) in lowerVECTOR_SHUFFLE()
2995 return lowerVECTOR_SHUFFLE_VSHF(Op, ResTy, Indices, DAG); in lowerVECTOR_SHUFFLE()
2997 if ((Result = lowerVECTOR_SHUFFLE_ILVEV(Op, ResTy, Indices, DAG))) in lowerVECTOR_SHUFFLE()
2999 if ((Result = lowerVECTOR_SHUFFLE_ILVOD(Op, ResTy, Indices, DAG))) in lowerVECTOR_SHUFFLE()
3001 if ((Result = lowerVECTOR_SHUFFLE_ILVL(Op, ResTy, Indices, DAG))) in lowerVECTOR_SHUFFLE()
3003 if ((Result = lowerVECTOR_SHUFFLE_ILVR(Op, ResTy, Indices, DAG))) in lowerVECTOR_SHUFFLE()
3005 if ((Result = lowerVECTOR_SHUFFLE_PCKEV(Op, ResTy, Indices, DAG))) in lowerVECTOR_SHUFFLE()
3007 if ((Result = lowerVECTOR_SHUFFLE_PCKOD(Op, ResTy, Indices, DAG))) in lowerVECTOR_SHUFFLE()
3009 if ((Result = lowerVECTOR_SHUFFLE_SHF(Op, ResTy, Indices, DAG))) in lowerVECTOR_SHUFFLE()
3011 return lowerVECTOR_SHUFFLE_VSHF(Op, ResTy, Indices, DAG); in lowerVECTOR_SHUFFLE()