Home | History | Annotate | Download | only in TableGen

Lines Matching refs:typestr

396 static std::string TypeString(const char mod, StringRef typestr) {
410 char type = ClassifyType(typestr, quad, poly, usgn);
483 static std::string BuiltinTypeString(const char mod, StringRef typestr,
498 char type = ClassifyType(typestr, quad, poly, usgn);
578 static std::string MangleName(const std::string &name, StringRef typestr,
586 char type = ClassifyType(typestr, quad, poly, usgn);
681 static std::string GenArgs(const std::string &proto, StringRef typestr) {
696 s += TypeString(proto[i], typestr) + " __";
709 static std::string GenMacroLocals(const std::string &proto, StringRef typestr) {
721 s += TypeString(proto[i], typestr) + " __";
734 static std::string Extend(StringRef typestr, const std::string &a) {
736 s = MangleName("vmovl", typestr, ClassS);
741 static std::string Duplicate(unsigned nElts, StringRef typestr,
745 s = "(" + TypeString('d', typestr) + "){ ";
765 static unsigned GetNumElements(StringRef typestr, bool &quad) {
768 char type = ClassifyType(typestr, quad, dummy, dummy);
786 StringRef typestr) {
788 unsigned nElts = GetNumElements(typestr, quad);
791 std::string ts = TypeString(proto[0], typestr);
802 s += Extend(typestr, "__a") + " + " + Extend(typestr, "__b") + ";";
805 s += "__a + " + Extend(typestr, "__b") + ";";
811 s += Extend(typestr, "__a") + " - " + Extend(typestr, "__b") + ";";
814 s += "__a - " + Extend(typestr, "__b") + ";";
817 s += "__a * " + Duplicate(nElts, typestr, "__b") + ";";
826 s += MangleName("vmull", typestr, ClassS) + "(__a, " +
830 s += "__a + (__b * " + Duplicate(nElts, typestr, "__c") + ");";
839 s += "__a + " + MangleName("vmull", typestr, ClassS) + "(__b, " +
840 Duplicate(nElts, typestr, "__c") + ");";
843 s += "__a + " + MangleName("vmull", typestr, ClassS) + "(__b, " +
847 s += "__a + " + MangleName("vmull", typestr, ClassS) + "(__b, __c);";
850 s += "__a - (__b * " + Duplicate(nElts, typestr, "__c") + ");";
859 s += "__a - " + MangleName("vmull", typestr, ClassS) + "(__b, " +
860 Duplicate(nElts, typestr, "__c") + ");";
863 s += "__a - " + MangleName("vmull", typestr, ClassS) + "(__b, " +
867 s += "__a - " + MangleName("vmull", typestr, ClassS) + "(__b, __c);";
870 s += MangleName("vqdmull", typestr, ClassS) + "(__a, " +
874 s += MangleName("vqdmlal", typestr, ClassS) + "(__a, __b, " +
878 s += MangleName("vqdmlsl", typestr, ClassS) + "(__a, __b, " +
882 s += MangleName("vqdmulh", typestr, ClassS) + "(__a, " +
886 s += MangleName("vqrdmulh", typestr, ClassS) + "(__a, " +
941 s += Duplicate(nElts, typestr, "__a") + ";";
949 ts = TypeString(proto[1], typestr);
979 std::string abd = MangleName("vabd", typestr, ClassS) + "(__a, __b)";
980 if (typestr[0] != 'U') {
982 std::string utype = "U" + typestr.str();
983 s += "(" + TypeString(proto[0], typestr) + ")";
987 s += Extend(typestr, abd) + ";";
992 s += "__a + " + MangleName("vabd", typestr, ClassS) + "(__b, __c);";
996 std::string abd = MangleName("vabd", typestr, ClassS) + "(__b, __c)";
997 if (typestr[0] != 'U') {
999 std::string utype = "U" + typestr.str();
1000 s += "(" + TypeString(proto[0], typestr) + ")";
1004 s += Extend(typestr, abd) + ";";
1014 static unsigned GetNeonEnum(const std::string &proto, StringRef typestr) {
1028 char type = ClassifyType(typestr, quad, poly, usgn);
1062 StringRef typestr, ClassKind ck) {
1078 std::string ts = TypeString(proto[0], typestr);
1098 s += MangleName(vname, typestr, ck);
1100 s += MangleName(name, typestr, ck);
1121 char argType = ClassifyType(typestr, argQuad, argPoly, argUsgn);
1144 args = Duplicate(GetNumElements(typestr, argQuad), typestr, args);
1164 s += ", " + utostr(GetNeonEnum(proto, typestr));
1179 StringRef typestr, ClassKind ck) {
1188 s += MangleName(name, typestr, ck);
1192 s += BuiltinTypeString(proto[i], typestr, ck, i == 0);
1410 static unsigned RangeFromType(const char mod, StringRef typestr) {
1413 char type = ClassifyType(typestr, quad, dummy, dummy);