Lines Matching defs:nElts

1566 static std::string Duplicate(unsigned nElts, StringRef typestr,
1571 for (unsigned i = 0; i != nElts; ++i) {
1573 if ((i + 1) < nElts)
1581 static std::string SplatLane(unsigned nElts, const std::string &vec,
1584 for (unsigned i = 0; i < nElts; ++i)
1603 unsigned nElts = 0;
1605 case 'c': nElts = 8; break;
1606 case 's': nElts = 4; break;
1607 case 'i': nElts = 2; break;
1608 case 'l': nElts = 1; break;
1609 case 'h': nElts = 4; break;
1610 case 'f': nElts = 2; break;
1612 nElts = 1;
1617 if (quad) nElts <<= 1;
1618 return nElts;
1625 unsigned nElts = GetNumElements(typestr, quad);
1666 s += "__a * " + Duplicate(nElts, typestr, "__b") + ";";
1669 s += "__a * " + SplatLane(nElts, "__b", "__c") + ";";
1673 SplatLane(nElts, "__b", "__c") + ");";
1680 s += "(__a, __b, " + Duplicate(nElts,typestr, "__c") + ");";
1684 s += "(__a, __b, " + Duplicate(nElts,typestr, "__c") + ");";
1688 SplatLane(nElts, "__b", "__c") + ");";
1692 GetHigh("__a", typestr) + ", " + SplatLane(nElts, "__b", "__c") + ");";
1695 s += "__a + (__b * " + Duplicate(nElts, typestr, "__c") + ");";
1698 s += "__a + (__b * " + SplatLane(nElts, "__c", "__d") + ");";
1705 Duplicate(nElts, typestr, "__c") + ");";
1709 SplatLane(nElts, "__c", "__d") + ");";
1713 GetHigh("__b", typestr) + ", " + SplatLane(nElts, "__c", "__d") + ");";
1733 s += "__a - (__b * " + Duplicate(nElts, typestr, "__c") + ");";
1736 s += "__a - (__b * " + SplatLane(nElts, "__c", "__d") + ");";
1755 Duplicate(nElts, typestr, "__c") + ");";
1759 SplatLane(nElts, "__c", "__d") + ");";
1763 GetHigh("__b", typestr) + ", " + SplatLane(nElts, "__c", "__d") + ");";
1777 SplatLane(nElts, "__b", "__c") + ");";
1781 GetHigh("__a", typestr) + ", " + SplatLane(nElts, "__b", "__c") + ");";
1785 SplatLane(nElts, "__c", "__d") + ");";
1789 GetHigh("__b", typestr) + ", " + SplatLane(nElts, "__c", "__d") + ");";
1793 SplatLane(nElts, "__c", "__d") + ");";
1797 GetHigh("__b", typestr) + ", " + SplatLane(nElts, "__c", "__d") + ");";
1801 SplatLane(nElts, "__b", "__c") + ");";
1805 SplatLane(nElts, "__b", "__c") + ");";
1851 // nElts is for the result vector, so the source is twice that number.
1853 for (unsigned i = nElts; i < nElts * 2; ++i)
1859 for (unsigned i = 0; i < nElts; ++i)
1864 s += Duplicate(nElts, typestr, "__a") + ";";
1867 s += SplatLane(nElts, "__a", "__b") + ";";
1878 for (unsigned i = 2; i <= nElts; i += 2)
1884 unsigned WordElts = nElts >> (1 + (int)quad);
1886 for (unsigned i = WordElts; i <= nElts; i += WordElts)
1893 unsigned DblWordElts = nElts >> (int)quad;
1895 for (unsigned i = DblWordElts; i <= nElts; i += DblWordElts)
1905 for (unsigned i = 0; i < nElts * 4; ++i)
1914 for (unsigned i = 0; i < nElts * 4; ++i)
1923 for (unsigned i = 0; i < nElts * 4; ++i)
1929 std::string FName = (nElts == 1) ? "vcvt_f32" : "vcvt_f16";
1933 for (unsigned i = 0; i < nElts * 4; ++i)
1939 std::string FName = (nElts == 2) ? "vcvt_f64" : "vcvt_f32";
1948 for (unsigned i = 0; i < nElts * 4; ++i)
1955 for (unsigned i = 0; i < nElts; i++)
1961 for (unsigned i = 0; i < nElts; i++)
1967 for (unsigned i = 0; i < (nElts/2); i++)
1968 s += ", " + utostr(i) + ", " + utostr(i+nElts);
1973 for (unsigned i = nElts/2; i < nElts; i++)
1974 s += ", " + utostr(i) + ", " + utostr(i+nElts);
1979 for (unsigned i = 0; i < (nElts/2); i++)
1980 s += ", " + utostr(2*i) + ", " + utostr(2*i+nElts);
1985 for (unsigned i = 0; i < (nElts/2); i++)
1986 s += ", " + utostr(2*i+1) + ", " + utostr(2*i+1+nElts);
2611 unsigned nElts = GetNumElements(TDTypeVec[i], quad);
2612 OS << utostr(nElts) << "))) ";
2613 if (nElts < 10)