Lines Matching refs:CStr
301 static void ParseConstraint(StringRef CStr, CGIOperandList &Ops, Record *Rec) { in ParseConstraint() argument
303 StringRef::size_type wpos = CStr.find_first_of(" \t"); in ParseConstraint()
304 StringRef::size_type start = CStr.find_first_not_of(" \t"); in ParseConstraint()
305 StringRef Tok = CStr.substr(start, wpos - start); in ParseConstraint()
307 StringRef Name = CStr.substr(wpos + 1); in ParseConstraint()
312 Rec->getName() + "': '" + CStr + "'"); in ParseConstraint()
327 StringRef::size_type pos = CStr.find_first_of('='); in ParseConstraint()
329 CStr.find_first_of(" \t", pos) != (pos + 1) || in ParseConstraint()
330 CStr.find_last_of(" \t", pos) != (pos - 1)) in ParseConstraint()
331 PrintFatalError(Rec->getLoc(), "Unrecognized constraint '" + CStr + in ParseConstraint()
333 start = CStr.find_first_not_of(" \t"); in ParseConstraint()
336 wpos = CStr.find_first_of(" \t", start); in ParseConstraint()
340 Rec->getName() + "': '" + CStr + "'"); in ParseConstraint()
341 StringRef LHSOpName = CStr.substr(start, wpos - start); in ParseConstraint()
344 wpos = CStr.find_first_not_of(" \t", pos + 1); in ParseConstraint()
347 "Illegal format for tied-to constraint: '" + CStr + "'"); in ParseConstraint()
349 StringRef RHSOpName = CStr.substr(wpos); in ParseConstraint()
394 static void ParseConstraints(StringRef CStr, CGIOperandList &Ops, Record *Rec) { in ParseConstraints() argument
395 if (CStr.empty()) in ParseConstraints()
401 bidx = CStr.find_first_not_of(delims); in ParseConstraints()
403 eidx = CStr.find_first_of(delims, bidx); in ParseConstraints()
405 eidx = CStr.size(); in ParseConstraints()
407 ParseConstraint(CStr.substr(bidx, eidx - bidx), Ops, Rec); in ParseConstraints()
408 bidx = CStr.find_first_not_of(delims, eidx); in ParseConstraints()