Lines Matching refs:compStr

309   const char *compStr = CompName->getNameStart();  in CheckExtVectorComponent()  local
318 bool HexSwizzle = (*compStr == 's' || *compStr == 'S') && compStr[1]; in CheckExtVectorComponent()
327 if (!strcmp(compStr, "hi") || !strcmp(compStr, "lo") || in CheckExtVectorComponent()
328 !strcmp(compStr, "even") || !strcmp(compStr, "odd")) { in CheckExtVectorComponent()
331 (Idx = vecType->getPointAccessorIdx(*compStr)) != -1) { in CheckExtVectorComponent()
332 bool HasRGBA = IsRGBA(*compStr); in CheckExtVectorComponent()
335 if (HasRGBA != IsRGBA(*compStr)) in CheckExtVectorComponent()
339 compStr++; in CheckExtVectorComponent()
340 } while (*compStr && (Idx = vecType->getPointAccessorIdx(*compStr)) != -1); in CheckExtVectorComponent()
343 if (HasRGBA || (*compStr && IsRGBA(*compStr))) { in CheckExtVectorComponent()
346 const char *DiagBegin = HasRGBA ? CompName->getNameStart() : compStr; in CheckExtVectorComponent()
352 if (HexSwizzle) compStr++; in CheckExtVectorComponent()
353 while ((Idx = vecType->getNumericAccessorIdx(*compStr)) != -1) { in CheckExtVectorComponent()
356 compStr++; in CheckExtVectorComponent()
360 if (!HalvingSwizzle && *compStr) { in CheckExtVectorComponent()
364 << StringRef(compStr, 1) << SourceRange(CompLoc); in CheckExtVectorComponent()
371 compStr = CompName->getNameStart(); in CheckExtVectorComponent()
374 compStr++; in CheckExtVectorComponent()
376 while (*compStr) { in CheckExtVectorComponent()
377 if (!vecType->isAccessorWithinNumElements(*compStr++, HexSwizzle)) { in CheckExtVectorComponent()