Lines Matching refs:AsmString
47 /// ParseAsmString - Parse the specified Instruction's AsmString into this
63 std::string AsmString = CGI.FlattenAsmStringVariants(CGI.AsmString, Variant);
65 while (LastEmitted != AsmString.size()) {
67 AsmString.find_first_of("$\\", LastEmitted);
68 if (DollarPos == std::string::npos) DollarPos = AsmString.size();
73 switch (AsmString[LastEmitted]) {
100 AddLiteralString(std::string(1, AsmString[LastEmitted]));
103 } else if (AsmString[DollarPos] == '\\') {
104 if (DollarPos+1 != AsmString.size()) {
105 if (AsmString[DollarPos+1] == 'n') {
107 } else if (AsmString[DollarPos+1] == 't') {
122 } else if (std::string("${|}\\").find(AsmString[DollarPos+1])
124 AddLiteralString(std::string(1, AsmString[DollarPos+1]));
132 } else if (DollarPos+1 != AsmString.size() &&
133 AsmString[DollarPos+1] == '$') {
144 if (VarEnd < AsmString.size() && '{' == AsmString[VarEnd]) {
150 while (VarEnd < AsmString.size() && isIdentChar(AsmString[VarEnd]))
152 std::string VarName(AsmString.begin()+DollarPos+1,
153 AsmString.begin()+VarEnd);
164 if (VarEnd >= AsmString.size())
169 if (AsmString[VarEnd] == ':') {
171 if (VarEnd >= AsmString.size())
176 while (VarEnd < AsmString.size() && isIdentChar(AsmString[VarEnd]))
178 Modifier = std::string(AsmString.begin()+ModifierStart,
179 AsmString.begin()+VarEnd);
184 if (AsmString[VarEnd] != '}')