Lines Matching refs:compStr
385 const char *compStr = CompName->getNameStart(); in CheckExtVectorComponent() local
394 bool HexSwizzle = (*compStr == 's' || *compStr == 'S') && compStr[1]; in CheckExtVectorComponent()
403 if (!strcmp(compStr, "hi") || !strcmp(compStr, "lo") || in CheckExtVectorComponent()
404 !strcmp(compStr, "even") || !strcmp(compStr, "odd")) { in CheckExtVectorComponent()
407 (Idx = vecType->getPointAccessorIdx(*compStr)) != -1) { in CheckExtVectorComponent()
408 bool HasRGBA = IsRGBA(*compStr); in CheckExtVectorComponent()
411 if (HasRGBA != IsRGBA(*compStr)) in CheckExtVectorComponent()
415 compStr++; in CheckExtVectorComponent()
416 } while (*compStr && (Idx = vecType->getPointAccessorIdx(*compStr)) != -1); in CheckExtVectorComponent()
419 if (HasRGBA || (*compStr && IsRGBA(*compStr))) { in CheckExtVectorComponent()
422 const char *DiagBegin = HasRGBA ? CompName->getNameStart() : compStr; in CheckExtVectorComponent()
428 if (HexSwizzle) compStr++; in CheckExtVectorComponent()
429 while ((Idx = vecType->getNumericAccessorIdx(*compStr)) != -1) { in CheckExtVectorComponent()
432 compStr++; in CheckExtVectorComponent()
436 if (!HalvingSwizzle && *compStr) { in CheckExtVectorComponent()
440 << StringRef(compStr, 1) << SourceRange(CompLoc); in CheckExtVectorComponent()
447 compStr = CompName->getNameStart(); in CheckExtVectorComponent()
450 compStr++; in CheckExtVectorComponent()
452 while (*compStr) { in CheckExtVectorComponent()
453 if (!vecType->isAccessorWithinNumElements(*compStr++, HexSwizzle)) { in CheckExtVectorComponent()