Home | History | Annotate | Download | only in TableGen

Lines Matching refs:typestr

394 static std::string TypeString(const char mod, StringRef typestr) {
408 char type = ClassifyType(typestr, quad, poly, usgn);
481 static std::string BuiltinTypeString(const char mod, StringRef typestr,
496 char type = ClassifyType(typestr, quad, poly, usgn);
576 static std::string MangleName(const std::string &name, StringRef typestr,
584 char type = ClassifyType(typestr, quad, poly, usgn);
679 static std::string GenArgs(const std::string &proto, StringRef typestr) {
694 s += TypeString(proto[i], typestr) + " __";
707 static std::string GenMacroLocals(const std::string &proto, StringRef typestr) {
719 s += TypeString(proto[i], typestr) + " __";
732 static std::string Extend(StringRef typestr, const std::string &a) {
734 s = MangleName("vmovl", typestr, ClassS);
739 static std::string Duplicate(unsigned nElts, StringRef typestr,
743 s = "(" + TypeString('d', typestr) + "){ ";
763 static unsigned GetNumElements(StringRef typestr, bool &quad) {
766 char type = ClassifyType(typestr, quad, dummy, dummy);
784 StringRef typestr) {
786 unsigned nElts = GetNumElements(typestr, quad);
789 std::string ts = TypeString(proto[0], typestr);
800 s += Extend(typestr, "__a") + " + " + Extend(typestr, "__b") + ";";
803 s += "__a + " + Extend(typestr, "__b") + ";";
809 s += Extend(typestr, "__a") + " - " + Extend(typestr, "__b") + ";";
812 s += "__a - " + Extend(typestr, "__b") + ";";
815 s += "__a * " + Duplicate(nElts, typestr, "__b") + ";";
824 s += MangleName("vmull", typestr, ClassS) + "(__a, " +
828 s += "__a + (__b * " + Duplicate(nElts, typestr, "__c") + ");";
837 s += "__a + " + MangleName("vmull", typestr, ClassS) + "(__b, " +
838 Duplicate(nElts, typestr, "__c") + ");";
841 s += "__a + " + MangleName("vmull", typestr, ClassS) + "(__b, " +
845 s += "__a + " + MangleName("vmull", typestr, ClassS) + "(__b, __c);";
848 s += "__a - (__b * " + Duplicate(nElts, typestr, "__c") + ");";
857 s += "__a - " + MangleName("vmull", typestr, ClassS) + "(__b, " +
858 Duplicate(nElts, typestr, "__c") + ");";
861 s += "__a - " + MangleName("vmull", typestr, ClassS) + "(__b, " +
865 s += "__a - " + MangleName("vmull", typestr, ClassS) + "(__b, __c);";
868 s += MangleName("vqdmull", typestr, ClassS) + "(__a, " +
872 s += MangleName("vqdmlal", typestr, ClassS) + "(__a, __b, " +
876 s += MangleName("vqdmlsl", typestr, ClassS) + "(__a, __b, " +
880 s += MangleName("vqdmulh", typestr, ClassS) + "(__a, " +
884 s += MangleName("vqrdmulh", typestr, ClassS) + "(__a, " +
939 s += Duplicate(nElts, typestr, "__a") + ";";
947 ts = TypeString(proto[1], typestr);
977 std::string abd = MangleName("vabd", typestr, ClassS) + "(__a, __b)";
978 if (typestr[0] != 'U') {
980 std::string utype = "U" + typestr.str();
981 s += "(" + TypeString(proto[0], typestr) + ")";
985 s += Extend(typestr, abd) + ";";
990 s += "__a + " + MangleName("vabd", typestr, ClassS) + "(__b, __c);";
994 std::string abd = MangleName("vabd", typestr, ClassS) + "(__b, __c)";
995 if (typestr[0] != 'U') {
997 std::string utype = "U" + typestr.str();
998 s += "(" + TypeString(proto[0], typestr) + ")";
1002 s += Extend(typestr, abd) + ";";
1012 static unsigned GetNeonEnum(const std::string &proto, StringRef typestr) {
1026 char type = ClassifyType(typestr, quad, poly, usgn);
1060 StringRef typestr, ClassKind ck) {
1076 std::string ts = TypeString(proto[0], typestr);
1096 s += MangleName(vname, typestr, ck);
1098 s += MangleName(name, typestr, ck);
1119 char argType = ClassifyType(typestr, argQuad, argPoly, argUsgn);
1142 args = Duplicate(GetNumElements(typestr, argQuad), typestr, args);
1162 s += ", " + utostr(GetNeonEnum(proto, typestr));
1177 StringRef typestr, ClassKind ck) {
1186 s += MangleName(name, typestr, ck);
1190 s += BuiltinTypeString(proto[i], typestr, ck, i == 0);
1408 static unsigned RangeFromType(const char mod, StringRef typestr) {
1411 char type = ClassifyType(typestr, quad, dummy, dummy);