Home
last modified time | relevance | path

Searched refs:Locs (Results 1 – 25 of 63) sorted by relevance

123

/llvm-project-15.0.7/clang/lib/Sema/
H A DDelayedDiagnostic.cpp25 ArrayRef<SourceLocation> Locs, in makeAvailability() argument
32 assert(!Locs.empty()); in makeAvailability()
36 DD.Loc = Locs.front(); in makeAvailability()
49 DD.AvailabilityData.SelectorLocs = new SourceLocation[Locs.size()]; in makeAvailability()
50 memcpy(DD.AvailabilityData.SelectorLocs, Locs.data(), in makeAvailability()
51 sizeof(SourceLocation) * Locs.size()); in makeAvailability()
52 DD.AvailabilityData.NumSelectorLocs = Locs.size(); in makeAvailability()
H A DSemaAvailability.cpp314 ArrayRef<SourceLocation> Locs, in DoEmitAvailabilityWarning() argument
337 SourceLocation Loc = Locs.front(); in DoEmitAvailabilityWarning()
505 assert(SelectorSlotNames.size() == Locs.size()); in DoEmitAvailabilityWarning()
506 for (unsigned I = 0; I < Locs.size(); ++I) { in DoEmitAvailabilityWarning()
509 Locs[I], S.getLocForEndOfToken(Locs[I])); in DoEmitAvailabilityWarning()
514 FixItHint::CreateInsertion(Locs[I], SelectorSlotNames[I])); in DoEmitAvailabilityWarning()
558 ArrayRef<SourceLocation> Locs, in EmitAvailabilityWarning() argument
566 AR, Locs, ReferringDecl, OffendingDecl, UnknownObjCClass, in EmitAvailabilityWarning()
573 Message, Locs, UnknownObjCClass, ObjCProperty, in EmitAvailabilityWarning()
920 ArrayRef<SourceLocation> Locs, in DiagnoseAvailabilityOfDecl() argument
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/AsmPrinter/
H A DDebugLocStream.h157 DebugLocStream &Locs; variable
165 ListBuilder(DebugLocStream &Locs, DwarfCompileUnit &CU, AsmPrinter &Asm, in ListBuilder() argument
167 : Locs(Locs), Asm(Asm), V(V), MI(MI), ListIndex(Locs.startList(&CU)), in ListBuilder()
180 DebugLocStream &getLocs() { return Locs; } in getLocs()
185 DebugLocStream &Locs; variable
189 : Locs(List.getLocs()) { in EntryBuilder()
190 Locs.startEntry(Begin, End); in EntryBuilder()
194 ~EntryBuilder() { Locs.finalizeEntry(); } in ~EntryBuilder()
196 BufferByteStreamer getStreamer() { return Locs.getStreamer(); } in getStreamer()
H A DDebugLocEntry.h117 DbgValueLoc(const DIExpression *Expr, ArrayRef<DbgValueLocEntry> Locs) in DbgValueLoc() argument
118 : Expression(Expr), ValueLocEntries(Locs.begin(), Locs.end()), in DbgValueLoc()
123 is_contained(Locs, dwarf::DW_OP_stack_value)); in DbgValueLoc()
127 DbgValueLoc(const DIExpression *Expr, ArrayRef<DbgValueLocEntry> Locs, in DbgValueLoc() argument
129 : Expression(Expr), ValueLocEntries(Locs.begin(), Locs.end()), in DbgValueLoc()
133 !any_of(Locs, [](auto LE) { return LE.isLocation(); })); in DbgValueLoc()
H A DDIEHash.cpp240 const DebugLocStream &Locs = DD.getDebugLocs(); in hashLocList() local
241 const DebugLocStream::List &List = Locs.getList(LocList.getValue()); in hashLocList()
242 for (const DebugLocStream::Entry &Entry : Locs.getEntries(List)) in hashLocList()
H A DDebugLocStream.cpp41 if (!Locs.finalizeList(Asm)) in ~ListBuilder()
/llvm-project-15.0.7/clang-tools-extra/clang-query/
H A DQuery.cpp94 auto Locs = clang::tooling::NodeIntrospection::GetLocations(Node); in dumpLocations() local
118 for (auto Iter = Locs.LocationAccessors.begin(); in dumpLocations()
119 Iter != Locs.LocationAccessors.end(); ++Iter) { in dumpLocations()
126 Iter = PrintLocations(OS, Iter, Locs.LocationAccessors.end()); in dumpLocations()
130 for (auto Iter = Locs.RangeAccessors.begin(); in dumpLocations()
131 Iter != Locs.RangeAccessors.end(); ++Iter) { in dumpLocations()
145 Iter = PrintLocations(OS, Iter, Locs.RangeAccessors.end()); in dumpLocations()
147 for (auto Iter = Locs.RangeAccessors.begin(); in dumpLocations()
148 Iter != Locs.RangeAccessors.end(); ++Iter) { in dumpLocations()
171 Iter = PrintLocations(OS, Iter, Locs.RangeAccessors.end()); in dumpLocations()
/llvm-project-15.0.7/llvm/unittests/DebugInfo/DWARF/
H A DDWARFDebugFrameTest.cpp385 OS << Locs; in expectDumpResult()
393 dwarf::RegisterLocations Locs; in TEST() local
394 expectDumpResult(Locs, ""); in TEST()
399 EXPECT_TRUE(Locs.hasLocations()); in TEST()
405 EXPECT_TRUE(Locs.hasLocations()); in TEST()
410 Locs.removeRegisterLocation(12); in TEST()
412 expectDumpResult(Locs, ""); in TEST()
442 Locs.removeRegisterLocation(13); in TEST()
446 Locs.removeRegisterLocation(14); in TEST()
450 Locs.removeRegisterLocation(12); in TEST()
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/LiveDebugValues/
H A DVarLocBasedImpl.cpp382 SmallVector<MachineLoc, 8> Locs; member
398 auto It = find(Locs, ML); in VarLoc()
399 if (It == Locs.end()) { in VarLoc()
400 Locs.push_back(ML); in VarLoc()
442 assert(VL.Locs.size() == 1 && in CreateEntryLoc()
446 VL.Locs[0].Value.RegNo = Reg; in CreateEntryLoc()
458 assert(VL.Locs.size() == 1 && in CreateEntryBackupLoc()
473 assert(VL.Locs.size() == 1 && in CreateEntryCopyBackupLoc()
619 for (const auto &Loc : Locs) in getDescribingRegs()
663 if (Locs.begin() != &MLoc) in dump()
[all …]
/llvm-project-15.0.7/llvm/lib/CodeGen/
H A DCallingConvLower.cpp31 TRI(*MF.getSubtarget().getRegisterInfo()), Locs(locs), Context(C) { in CCState()
73 for (auto const &ValAssign : Locs) in IsShadowAllocatedReg()
202 unsigned NumLocs = Locs.size(); in getRemainingRegParmsForType()
220 HaveRegParm = Locs.back().isRegLoc(); in getRemainingRegParmsForType()
224 assert(NumLocs < Locs.size() && "CC assignment failed to add location"); in getRemainingRegParmsForType()
225 for (unsigned I = NumLocs, E = Locs.size(); I != E; ++I) in getRemainingRegParmsForType()
226 if (Locs[I].isRegLoc()) in getRemainingRegParmsForType()
227 Regs.push_back(MCPhysReg(Locs[I].getLocReg())); in getRemainingRegParmsForType()
234 Locs.resize(NumLocs); in getRemainingRegParmsForType()
H A DStackMaps.cpp189 MachineInstr::const_mop_iterator MOE, LocationVec &Locs, in parseOperand() argument
204 Locs.emplace_back(StackMaps::Location::Direct, Size, in parseOperand()
213 Locs.emplace_back(StackMaps::Location::Indirect, Size, in parseOperand()
221 Locs.emplace_back(Location::Constant, sizeof(int64_t), 0, Imm); in parseOperand()
239 Locs.emplace_back(Location::Constant, sizeof(int64_t), 0, 0xFEFEFEFE); in parseOperand()
255 Locs.emplace_back(Location::Register, TRI->getSpillSize(*RC), in parseOperand()
/llvm-project-15.0.7/clang/unittests/Serialization/
H A DSourceLocationEncodingTest.cpp35 void roundTrip(std::vector<SourceLocation::UIntTy> Locs, in roundTrip() argument
40 for (auto L : Locs)
45 << "Encoding " << testing::PrintToString(Locs);
54 ASSERT_EQ(DecodedEncoded, Locs)
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/bugprone/
H A DMultipleStatementMacroCheck.cpp47 ExpansionRanges Locs; in getExpansionRanges() local
49 Locs.push_back( in getExpansionRanges()
51 Loc = Locs.back().getBegin(); in getExpansionRanges()
53 return Locs; in getExpansionRanges()
/llvm-project-15.0.7/llvm/utils/TableGen/
H A DCTagsEmitter.cpp64 ArrayRef<SMLoc> Locs = R->getLoc(); in locate() local
65 return !Locs.empty() ? Locs.front() : SMLoc(); in locate()
/llvm-project-15.0.7/clang/lib/Basic/
H A DSarif.cpp299 json::Array Locs; in createThreadFlows() local
303 Locs.emplace_back( in createThreadFlows()
306 Ret["locations"] = std::move(Locs); in createThreadFlows()
365 json::Array Locs; in appendResult() local
367 Locs.emplace_back(createLocation(createPhysicalLocation(Range))); in appendResult()
369 Ret["locations"] = std::move(Locs); in appendResult()
/llvm-project-15.0.7/llvm/lib/MC/
H A DMCCodeView.cpp342 std::vector<MCCVLoc> Locs = getFunctionLineEntries(FuncId); in emitLineTableForFunction() local
343 bool HaveColumns = any_of(Locs, [](const MCCVLoc &LineEntry) { in emitLineTableForFunction()
349 for (auto I = Locs.begin(), E = Locs.end(); I != E;) { in emitLineTableForFunction()
479 ArrayRef<MCCVLoc> Locs = getLinesForExtent(LocBegin, LocEnd); in encodeInlineLineTable() local
480 if (Locs.empty()) in encodeInlineLineTable()
485 const MCSection *FirstSec = &Locs.front().getLabel()->getSection(); in encodeInlineLineTable()
486 for (const MCCVLoc &Loc : Locs) { in encodeInlineLineTable()
499 MCCVLoc StartLoc = Locs.front(); in encodeInlineLineTable()
512 for (const MCCVLoc &Loc : Locs) { in encodeInlineLineTable()
/llvm-project-15.0.7/llvm/lib/Target/M68k/
H A DM68kCallingConv.h31 MachineFunction &MF, SmallVectorImpl<CCValAssign> &Locs, in M68kCCState()
33 : CCState(CC, IsVarArg, MF, Locs, C), ArgTypeList(ArgTypes) {} in M68kCCState()
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DIncludeCleaner.h77 const ReferencedLocations &Locs, const SourceManager &SM,
80 ReferencedFiles findReferencedFiles(const ReferencedLocations &Locs,
H A DIncludeCleaner.cpp345 const ReferencedLocations &Locs, const SourceManager &SM, in findReferencedFiles() argument
348 std::vector<SourceLocation> Sorted{Locs.User.begin(), Locs.User.end()}; in findReferencedFiles()
375 for (const auto &Symbol : Locs.Stdlib) in findReferencedFiles()
383 ReferencedFiles findReferencedFiles(const ReferencedLocations &Locs, in findReferencedFiles() argument
388 Locs, SM, in findReferencedFiles()
H A DSemanticHighlighting.cpp654 void highlightObjCSelector(const ArrayRef<SourceLocation> &Locs, bool Decl, in highlightObjCSelector() argument
658 for (SourceLocation Part : Locs) { in highlightObjCSelector()
671 llvm::SmallVector<SourceLocation> Locs; in VisitObjCMethodDecl() local
672 OMD->getSelectorLocs(Locs); in VisitObjCMethodDecl()
673 highlightObjCSelector(Locs, /*Decl=*/true, OMD->isClassMethod(), in VisitObjCMethodDecl()
679 llvm::SmallVector<SourceLocation> Locs; in VisitObjCMessageExpr() local
680 OME->getSelectorLocs(Locs); in VisitObjCMessageExpr()
684 highlightObjCSelector(Locs, /*Decl=*/false, OME->isClassMessage(), in VisitObjCMessageExpr()
/llvm-project-15.0.7/llvm/lib/Target/PowerPC/
H A DPPCCCState.h47 SmallVectorImpl<CCValAssign> &Locs, LLVMContext &C) in AIXCCState() argument
48 : CCState(CC, IsVarArg, MF, Locs, C) {} in AIXCCState()
/llvm-project-15.0.7/llvm/include/llvm/CodeGen/
H A DCallingConvLower.h196 SmallVectorImpl<CCValAssign> &Locs; variable
252 Locs.push_back(V); in addLoc()
532 unsigned NumFirstPassLocs = Locs.size(); in AnalyzeArgumentsSecondPass()
548 TmpArgLocs.swap(Locs); in AnalyzeArgumentsSecondPass()
551 std::back_inserter(Locs), in AnalyzeArgumentsSecondPass()
/llvm-project-15.0.7/clang/include/clang/Analysis/FlowSensitive/
H A DDataflowAnalysisContext.h76 Locs.push_back(std::move(Loc)); in takeOwnership()
77 return *cast<T>(Locs.back().get()); in takeOwnership()
311 std::vector<std::unique_ptr<StorageLocation>> Locs; variable
/llvm-project-15.0.7/llvm/tools/sancov/
H A Dsancov.cpp168 SmallVector<DILineInfo, 1> Locs; member
321 for (const DILineInfo &Loc : Point.Locs) { in operator <<()
330 for (const DILineInfo &Loc : PointPtr->Locs) { in operator <<()
343 for (const auto &Loc : Point->Locs) { in operator <<()
452 CoveragePoint->Locs.push_back(LineInfo); in read()
592 Point.Locs.push_back(*LineInfo); in getCoveragePoints()
607 Point.Locs.push_back(FrameInfo); in getCoveragePoints()
944 for (const auto &Loc : Point.Locs) { in computeFunctions()
959 for (const auto &Loc : Point.Locs) { in computeNotCoveredFunctions()
976 for (const auto &Loc : Point.Locs) { in computeCoveredFunctions()
[all …]
/llvm-project-15.0.7/llvm/tools/llvm-objdump/
H A DSourcePrinter.cpp54 Expected<DWARFLocationExpressionsVector> Locs = in addVariable() local
56 if (!Locs) { in addVariable()
60 consumeError(Locs.takeError()); in addVariable()
64 for (const DWARFLocationExpression &LocExpr : *Locs) { in addVariable()

123