Lines Matching refs:Indices

2546                                        SmallVector<int, 16> Indices,  in lowerVECTOR_SHUFFLE_SHF()  argument
2550 if (Indices.size() < 4) in lowerVECTOR_SHUFFLE_SHF()
2554 for (unsigned j = i; j < Indices.size(); j += 4) { in lowerVECTOR_SHUFFLE_SHF()
2555 int Idx = Indices[j]; in lowerVECTOR_SHUFFLE_SHF()
2627 SmallVector<int, 16> Indices, in isVECTOR_SHUFFLE_SPLATI() argument
2629 assert((Indices.size() % 2) == 0); in isVECTOR_SHUFFLE_SPLATI()
2632 for (const auto &V : Indices) { in isVECTOR_SHUFFLE_SPLATI()
2639 return fitsRegularPattern<int>(Indices.begin(), 1, Indices.end(), SplatIndex, in isVECTOR_SHUFFLE_SPLATI()
2659 SmallVector<int, 16> Indices, in lowerVECTOR_SHUFFLE_ILVEV() argument
2661 assert((Indices.size() % 2) == 0); in lowerVECTOR_SHUFFLE_ILVEV()
2665 const auto &Begin = Indices.begin(); in lowerVECTOR_SHUFFLE_ILVEV()
2666 const auto &End = Indices.end(); in lowerVECTOR_SHUFFLE_ILVEV()
2672 else if (fitsRegularPattern<int>(Begin, 2, End, Indices.size(), 2)) in lowerVECTOR_SHUFFLE_ILVEV()
2681 else if (fitsRegularPattern<int>(Begin + 1, 2, End, Indices.size(), 2)) in lowerVECTOR_SHUFFLE_ILVEV()
2705 SmallVector<int, 16> Indices, in lowerVECTOR_SHUFFLE_ILVOD() argument
2707 assert((Indices.size() % 2) == 0); in lowerVECTOR_SHUFFLE_ILVOD()
2711 const auto &Begin = Indices.begin(); in lowerVECTOR_SHUFFLE_ILVOD()
2712 const auto &End = Indices.end(); in lowerVECTOR_SHUFFLE_ILVOD()
2718 else if (fitsRegularPattern<int>(Begin, 2, End, Indices.size() + 1, 2)) in lowerVECTOR_SHUFFLE_ILVOD()
2727 else if (fitsRegularPattern<int>(Begin + 1, 2, End, Indices.size() + 1, 2)) in lowerVECTOR_SHUFFLE_ILVOD()
2752 SmallVector<int, 16> Indices, in lowerVECTOR_SHUFFLE_ILVR() argument
2754 assert((Indices.size() % 2) == 0); in lowerVECTOR_SHUFFLE_ILVR()
2758 const auto &Begin = Indices.begin(); in lowerVECTOR_SHUFFLE_ILVR()
2759 const auto &End = Indices.end(); in lowerVECTOR_SHUFFLE_ILVR()
2765 else if (fitsRegularPattern<int>(Begin, 2, End, Indices.size(), 1)) in lowerVECTOR_SHUFFLE_ILVR()
2774 else if (fitsRegularPattern<int>(Begin + 1, 2, End, Indices.size(), 1)) in lowerVECTOR_SHUFFLE_ILVR()
2799 SmallVector<int, 16> Indices, in lowerVECTOR_SHUFFLE_ILVL() argument
2801 assert((Indices.size() % 2) == 0); in lowerVECTOR_SHUFFLE_ILVL()
2803 unsigned HalfSize = Indices.size() / 2; in lowerVECTOR_SHUFFLE_ILVL()
2806 const auto &Begin = Indices.begin(); in lowerVECTOR_SHUFFLE_ILVL()
2807 const auto &End = Indices.end(); in lowerVECTOR_SHUFFLE_ILVL()
2813 else if (fitsRegularPattern<int>(Begin, 2, End, Indices.size() + HalfSize, 1)) in lowerVECTOR_SHUFFLE_ILVL()
2822 else if (fitsRegularPattern<int>(Begin + 1, 2, End, Indices.size() + HalfSize, in lowerVECTOR_SHUFFLE_ILVL()
2847 SmallVector<int, 16> Indices, in lowerVECTOR_SHUFFLE_PCKEV() argument
2849 assert((Indices.size() % 2) == 0); in lowerVECTOR_SHUFFLE_PCKEV()
2853 const auto &Begin = Indices.begin(); in lowerVECTOR_SHUFFLE_PCKEV()
2854 const auto &Mid = Indices.begin() + Indices.size() / 2; in lowerVECTOR_SHUFFLE_PCKEV()
2855 const auto &End = Indices.end(); in lowerVECTOR_SHUFFLE_PCKEV()
2859 else if (fitsRegularPattern<int>(Begin, 1, Mid, Indices.size(), 2)) in lowerVECTOR_SHUFFLE_PCKEV()
2866 else if (fitsRegularPattern<int>(Mid, 1, End, Indices.size(), 2)) in lowerVECTOR_SHUFFLE_PCKEV()
2890 SmallVector<int, 16> Indices, in lowerVECTOR_SHUFFLE_PCKOD() argument
2892 assert((Indices.size() % 2) == 0); in lowerVECTOR_SHUFFLE_PCKOD()
2896 const auto &Begin = Indices.begin(); in lowerVECTOR_SHUFFLE_PCKOD()
2897 const auto &Mid = Indices.begin() + Indices.size() / 2; in lowerVECTOR_SHUFFLE_PCKOD()
2898 const auto &End = Indices.end(); in lowerVECTOR_SHUFFLE_PCKOD()
2902 else if (fitsRegularPattern<int>(Begin, 1, Mid, Indices.size() + 1, 2)) in lowerVECTOR_SHUFFLE_PCKOD()
2909 else if (fitsRegularPattern<int>(Mid, 1, End, Indices.size() + 1, 2)) in lowerVECTOR_SHUFFLE_PCKOD()
2926 const SmallVector<int, 16> &Indices, in lowerVECTOR_SHUFFLE_VSHF() argument
2940 int Idx = Indices[i]; in lowerVECTOR_SHUFFLE_VSHF()
2948 for (int Idx : Indices) in lowerVECTOR_SHUFFLE_VSHF()
2984 SmallVector<int, 16> Indices; in lowerVECTOR_SHUFFLE() local
2987 Indices.push_back(Node->getMaskElt(i)); in lowerVECTOR_SHUFFLE()
2991 if (isVECTOR_SHUFFLE_SPLATI(Op, ResTy, Indices, DAG)) in lowerVECTOR_SHUFFLE()
2992 return lowerVECTOR_SHUFFLE_VSHF(Op, ResTy, Indices, DAG); in lowerVECTOR_SHUFFLE()
2994 if ((Result = lowerVECTOR_SHUFFLE_ILVEV(Op, ResTy, Indices, DAG))) in lowerVECTOR_SHUFFLE()
2996 if ((Result = lowerVECTOR_SHUFFLE_ILVOD(Op, ResTy, Indices, DAG))) in lowerVECTOR_SHUFFLE()
2998 if ((Result = lowerVECTOR_SHUFFLE_ILVL(Op, ResTy, Indices, DAG))) in lowerVECTOR_SHUFFLE()
3000 if ((Result = lowerVECTOR_SHUFFLE_ILVR(Op, ResTy, Indices, DAG))) in lowerVECTOR_SHUFFLE()
3002 if ((Result = lowerVECTOR_SHUFFLE_PCKEV(Op, ResTy, Indices, DAG))) in lowerVECTOR_SHUFFLE()
3004 if ((Result = lowerVECTOR_SHUFFLE_PCKOD(Op, ResTy, Indices, DAG))) in lowerVECTOR_SHUFFLE()
3006 if ((Result = lowerVECTOR_SHUFFLE_SHF(Op, ResTy, Indices, DAG))) in lowerVECTOR_SHUFFLE()
3008 return lowerVECTOR_SHUFFLE_VSHF(Op, ResTy, Indices, DAG); in lowerVECTOR_SHUFFLE()