Lines Matching refs:compStr

311   const char *compStr = CompName->getNameStart();  in CheckExtVectorComponent()  local
320 bool HexSwizzle = (*compStr == 's' || *compStr == 'S') && compStr[1]; in CheckExtVectorComponent()
329 if (!strcmp(compStr, "hi") || !strcmp(compStr, "lo") || in CheckExtVectorComponent()
330 !strcmp(compStr, "even") || !strcmp(compStr, "odd")) { in CheckExtVectorComponent()
333 (Idx = vecType->getPointAccessorIdx(*compStr)) != -1) { in CheckExtVectorComponent()
334 bool HasRGBA = IsRGBA(*compStr); in CheckExtVectorComponent()
337 if (HasRGBA != IsRGBA(*compStr)) in CheckExtVectorComponent()
341 compStr++; in CheckExtVectorComponent()
342 } while (*compStr && (Idx = vecType->getPointAccessorIdx(*compStr)) != -1); in CheckExtVectorComponent()
345 if (HasRGBA || (*compStr && IsRGBA(*compStr))) { in CheckExtVectorComponent()
347 const char *DiagBegin = HasRGBA ? CompName->getNameStart() : compStr; in CheckExtVectorComponent()
354 if (HexSwizzle) compStr++; in CheckExtVectorComponent()
355 while ((Idx = vecType->getNumericAccessorIdx(*compStr)) != -1) { in CheckExtVectorComponent()
358 compStr++; in CheckExtVectorComponent()
362 if (!HalvingSwizzle && *compStr) { in CheckExtVectorComponent()
366 << StringRef(compStr, 1) << SourceRange(CompLoc); in CheckExtVectorComponent()
373 compStr = CompName->getNameStart(); in CheckExtVectorComponent()
376 compStr++; in CheckExtVectorComponent()
378 while (*compStr) { in CheckExtVectorComponent()
379 if (!vecType->isAccessorWithinNumElements(*compStr++, HexSwizzle)) { in CheckExtVectorComponent()