Lines Matching refs:CStr
201 static void ParseConstraint(const std::string &CStr, CGIOperandList &Ops) { in ParseConstraint() argument
203 std::string::size_type wpos = CStr.find_first_of(" \t"); in ParseConstraint()
204 std::string::size_type start = CStr.find_first_not_of(" \t"); in ParseConstraint()
205 std::string Tok = CStr.substr(start, wpos - start); in ParseConstraint()
207 std::string Name = CStr.substr(wpos+1); in ParseConstraint()
210 PrintFatalError("Illegal format for @earlyclobber constraint: '" + CStr + "'"); in ParseConstraint()
223 std::string::size_type pos = CStr.find_first_of('='); in ParseConstraint()
225 start = CStr.find_first_not_of(" \t"); in ParseConstraint()
226 std::string Name = CStr.substr(start, pos - start); in ParseConstraint()
231 PrintFatalError("Illegal format for tied-to constraint: '" + CStr + "'"); in ParseConstraint()
235 Name = CStr.substr(pos+1); in ParseConstraint()
238 PrintFatalError("Illegal format for tied-to constraint: '" + CStr + "'"); in ParseConstraint()
256 static void ParseConstraints(const std::string &CStr, CGIOperandList &Ops) { in ParseConstraints() argument
257 if (CStr.empty()) return; in ParseConstraints()
262 bidx = CStr.find_first_not_of(delims); in ParseConstraints()
264 eidx = CStr.find_first_of(delims, bidx); in ParseConstraints()
266 eidx = CStr.length(); in ParseConstraints()
268 ParseConstraint(CStr.substr(bidx, eidx - bidx), Ops); in ParseConstraints()
269 bidx = CStr.find_first_not_of(delims, eidx); in ParseConstraints()