• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/clang/lib/CodeGen/

Lines Matching defs:StartLoc

488   size_t pushRegion(Counter Count, Optional<SourceLocation> StartLoc = None,
490 if (StartLoc) {
491 MostRecentLocation = *StartLoc;
494 RegionStack.emplace_back(Count, StartLoc, EndLoc);
580 SourceLocation StartLoc = Region.getBeginLoc();
584 size_t StartDepth = locationDepth(StartLoc);
586 while (!SM.isWrittenInSameFile(StartLoc, EndLoc)) {
606 SourceLocation NestedLoc = getEndOfFileOrMacro(StartLoc);
607 assert(SM.isWrittenInSameFile(StartLoc, NestedLoc));
609 if (!isRegionAlreadyAdded(StartLoc, NestedLoc))
610 SourceRegions.emplace_back(Region.getCounter(), StartLoc, NestedLoc);
612 StartLoc = getIncludeOrExpansionLoc(StartLoc);
613 if (StartLoc.isInvalid())
618 Region.setStartLoc(StartLoc);
624 if (StartLoc == getStartOfFileOrMacro(StartLoc) &&
669 SourceLocation StartLoc = getStart(S);
671 size_t Index = pushRegion(TopCount, StartLoc, EndLoc);
679 if (SM.isBeforeInTranslationUnit(StartLoc, S->getBeginLoc()))
685 /// Check whether a region with bounds \c StartLoc and \c EndLoc
687 bool isRegionAlreadyAdded(SourceLocation StartLoc, SourceLocation EndLoc) {
691 return Region.getBeginLoc() == StartLoc &&
783 SourceLocation StartLoc = getStart(S);
785 handleFileExit(StartLoc);
787 Region.setStartLoc(StartLoc);
789 completeDeferred(Region.getCounter(), StartLoc);
824 /// Emit a gap region between \p StartLoc and \p EndLoc with the given count.
825 void fillGapAreaWithCount(SourceLocation StartLoc, SourceLocation EndLoc,
827 if (StartLoc == EndLoc)
829 assert(SpellingRegion(SM, StartLoc, EndLoc).isInSourceOrder());
830 handleFileExit(StartLoc);
831 size_t Index = pushRegion(Count, StartLoc, EndLoc);