• Home
  • Raw
  • Download

Lines Matching refs:compStr

302   const char *compStr = CompName->getNameStart();  in CheckExtVectorComponent()  local
311 bool HexSwizzle = (*compStr == 's' || *compStr == 'S') && compStr[1]; in CheckExtVectorComponent()
320 if (!strcmp(compStr, "hi") || !strcmp(compStr, "lo") || in CheckExtVectorComponent()
321 !strcmp(compStr, "even") || !strcmp(compStr, "odd")) { in CheckExtVectorComponent()
324 (Idx = vecType->getPointAccessorIdx(*compStr)) != -1) { in CheckExtVectorComponent()
325 bool HasRGBA = IsRGBA(*compStr); in CheckExtVectorComponent()
328 if (HasRGBA != IsRGBA(*compStr)) in CheckExtVectorComponent()
332 compStr++; in CheckExtVectorComponent()
333 } while (*compStr && (Idx = vecType->getPointAccessorIdx(*compStr)) != -1); in CheckExtVectorComponent()
336 if (HasRGBA || (*compStr && IsRGBA(*compStr))) { in CheckExtVectorComponent()
338 const char *DiagBegin = HasRGBA ? CompName->getNameStart() : compStr; in CheckExtVectorComponent()
345 if (HexSwizzle) compStr++; in CheckExtVectorComponent()
346 while ((Idx = vecType->getNumericAccessorIdx(*compStr)) != -1) { in CheckExtVectorComponent()
349 compStr++; in CheckExtVectorComponent()
353 if (!HalvingSwizzle && *compStr) { in CheckExtVectorComponent()
357 << StringRef(compStr, 1) << SourceRange(CompLoc); in CheckExtVectorComponent()
364 compStr = CompName->getNameStart(); in CheckExtVectorComponent()
367 compStr++; in CheckExtVectorComponent()
369 while (*compStr) { in CheckExtVectorComponent()
370 if (!vecType->isAccessorWithinNumElements(*compStr++, HexSwizzle)) { in CheckExtVectorComponent()