Home | History | Annotate | Download | only in TableGen

Lines Matching refs:CStr

198 static void ParseConstraint(const std::string &CStr, CGIOperandList &Ops) {
200 std::string::size_type wpos = CStr.find_first_of(" \t");
201 std::string::size_type start = CStr.find_first_not_of(" \t");
202 std::string Tok = CStr.substr(start, wpos - start);
204 std::string Name = CStr.substr(wpos+1);
207 PrintFatalError("Illegal format for @earlyclobber constraint: '" + CStr + "'");
220 std::string::size_type pos = CStr.find_first_of('=');
222 start = CStr.find_first_not_of(" \t");
223 std::string Name = CStr.substr(start, pos - start);
228 PrintFatalError("Illegal format for tied-to constraint: '" + CStr + "'");
232 Name = CStr.substr(pos+1);
235 PrintFatalError("Illegal format for tied-to constraint: '" + CStr + "'");
253 static void ParseConstraints(const std::string &CStr, CGIOperandList &Ops) {
254 if (CStr.empty()) return;
259 bidx = CStr.find_first_not_of(delims);
261 eidx = CStr.find_first_of(delims, bidx);
263 eidx = CStr.length();
265 ParseConstraint(CStr.substr(bidx, eidx - bidx), Ops);
266 bidx = CStr.find_first_not_of(delims, eidx);