Lines Matching defs:CStr
301 static void ParseConstraint(StringRef CStr, CGIOperandList &Ops,
304 StringRef::size_type wpos = CStr.find_first_of(" \t");
305 StringRef::size_type start = CStr.find_first_not_of(" \t");
306 StringRef Tok = CStr.substr(start, wpos - start);
308 StringRef Name = CStr.substr(wpos + 1);
313 Rec->getName() + "': '" + CStr + "'");
328 StringRef::size_type pos = CStr.find_first_of('=');
330 CStr.find_first_of(" \t", pos) != (pos + 1) ||
331 CStr.find_last_of(" \t", pos) != (pos - 1))
332 PrintFatalError(Rec->getLoc(), "Unrecognized constraint '" + CStr +
334 start = CStr.find_first_not_of(" \t");
337 wpos = CStr.find_first_of(" \t", start);
341 Rec->getName() + "': '" + CStr + "'");
342 StringRef LHSOpName = CStr.substr(start, wpos - start);
345 wpos = CStr.find_first_not_of(" \t", pos + 1);
348 "Illegal format for tied-to constraint: '" + CStr + "'");
350 StringRef RHSOpName = CStr.substr(wpos);
395 static void ParseConstraints(StringRef CStr, CGIOperandList &Ops,
397 if (CStr.empty())
403 bidx = CStr.find_first_not_of(delims);
405 eidx = CStr.find_first_of(delims, bidx);
407 eidx = CStr.size();
409 ParseConstraint(CStr.substr(bidx, eidx - bidx), Ops, Rec);
410 bidx = CStr.find_first_not_of(delims, eidx);