Lines Matching refs:CStr
204 static void ParseConstraint(const std::string &CStr, CGIOperandList &Ops) { in ParseConstraint() argument
206 std::string::size_type wpos = CStr.find_first_of(" \t"); in ParseConstraint()
207 std::string::size_type start = CStr.find_first_not_of(" \t"); in ParseConstraint()
208 std::string Tok = CStr.substr(start, wpos - start); in ParseConstraint()
210 std::string Name = CStr.substr(wpos+1); in ParseConstraint()
213 PrintFatalError("Illegal format for @earlyclobber constraint: '" + CStr + "'"); in ParseConstraint()
226 std::string::size_type pos = CStr.find_first_of('='); in ParseConstraint()
228 start = CStr.find_first_not_of(" \t"); in ParseConstraint()
229 std::string Name = CStr.substr(start, pos - start); in ParseConstraint()
234 PrintFatalError("Illegal format for tied-to constraint: '" + CStr + "'"); in ParseConstraint()
238 Name = CStr.substr(pos+1); in ParseConstraint()
241 PrintFatalError("Illegal format for tied-to constraint: '" + CStr + "'"); in ParseConstraint()
259 static void ParseConstraints(const std::string &CStr, CGIOperandList &Ops) { in ParseConstraints() argument
260 if (CStr.empty()) return; in ParseConstraints()
265 bidx = CStr.find_first_not_of(delims); in ParseConstraints()
267 eidx = CStr.find_first_of(delims, bidx); in ParseConstraints()
269 eidx = CStr.length(); in ParseConstraints()
271 ParseConstraint(CStr.substr(bidx, eidx - bidx), Ops); in ParseConstraints()
272 bidx = CStr.find_first_not_of(delims, eidx); in ParseConstraints()