/freebsd/contrib/llvm-project/llvm/include/llvm/Support/ |
H A D | ModRef.h | 74 using Location = LocationEnum; 82 static uint32_t getLocationPos(Location Loc) { in getLocationPos() 88 void setModRef(Location Loc, ModRefInfo MR) { in setModRef() 96 return enum_seq_inclusive(Location::First, Location::Last, in locations() 102 MemoryEffectsBase(Location Loc, ModRefInfo MR) { setModRef(Loc, MR); } in MemoryEffectsBase() 107 for (Location Loc : locations()) in MemoryEffectsBase() 133 return MemoryEffectsBase(Location::ArgMem, MR); 139 return MemoryEffectsBase(Location::InaccessibleMem, MR); 147 FRMB.setModRef(Location::ArgMem, MR); 148 FRMB.setModRef(Location::InaccessibleMem, MR); [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/ |
H A D | ProgramPoint.h | 239 static bool isKind(const ProgramPoint &Location) { in isKind() argument 240 return Location.getKind() == BlockEntranceKind; in isKind() 260 static bool isKind(const ProgramPoint &Location) { in isKind() argument 261 return Location.getKind() == BlockExitKind; in isKind() 283 static bool isKind(const ProgramPoint &Location) { in isKind() argument 284 unsigned k = Location.getKind(); in isKind() 301 static bool isKind(const ProgramPoint &Location) { in isKind() argument 302 return Location.getKind() == PreStmtKind; in isKind() 324 static bool isKind(const ProgramPoint &Location) { in isKind() argument 325 unsigned k = Location.getKind(); in isKind() [all …]
|
/freebsd/contrib/llvm-project/clang/include/clang/Frontend/ |
H A D | SerializedDiagnosticReader.h | 46 struct Location { struct 52 Location(unsigned FileID, unsigned Line, unsigned Col, unsigned Offset) in Location() argument 100 visitDiagnosticRecord(unsigned Severity, const Location &Location, in visitDiagnosticRecord() argument 114 visitFixitRecord(const Location &Start, const Location &End, StringRef Text) { in visitFixitRecord() 119 virtual std::error_code visitSourceRangeRecord(const Location &Start, in visitSourceRangeRecord() 120 const Location &End) { in visitSourceRangeRecord()
|
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan/ |
H A D | ubsan_diag.h | 32 /// \brief Location at which a diagnostic can be emitted. Either a in ~SymbolizedStackHolder() 34 class Location { in reset() 46 Location() : Kind(LK_Null) {} in getCallerLocation() 47 Location(SourceLocation Loc) : in getCallerLocation() 49 Location(MemoryLocation Loc) : 51 // SymbolizedStackHolder must outlive Location object. 52 Location(const SymbolizedStackHolder &Stack) : 83 Location Start, End; in getSourceLocation() 90 Location getStart() const { return Start; } in getSymbolizedStack() 91 Location getEn in getSymbolizedStack() 66 Location() : Kind(LK_Null) {} Location() function 67 Location(SourceLocation Loc) : Location() function 69 Location(MemoryLocation Loc) : Location() function 72 Location(const SymbolizedStackHolder &Stack) : Location() function [all...] |
H A D | ubsan_monitor.h | 23 Location &Loc; 26 UndefinedBehaviorReport(const char *IssueKind, Location &Loc,
|
H A D | ubsan_diag.cpp | 78 static void MaybeReportErrorSummary(Location Loc, ErrorType Type) { in MaybeReportErrorSummary() 145 static void RenderLocation(InternalScopedString *Buffer, Location Loc) { in RenderLocation() 147 case Location::LK_Source: { in RenderLocation() 158 case Location::LK_Memory: in RenderLocation() 161 case Location::LK_Symbolized: { in RenderLocation() 176 case Location::LK_Null: in RenderLocation() 390 ScopedReport::ScopedReport(ReportOptions Opts, Location SummaryLoc, in ScopedReport()
|
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | AddDiscriminators.cpp | 153 using Location = std::pair<StringRef, unsigned>; in addDiscriminators() 155 using LocationBBMap = DenseMap<Location, BBSet>; in addDiscriminators() 156 using LocationDiscriminatorMap = DenseMap<Location, unsigned>; in addDiscriminators() typedef 157 using LocationSet = DenseSet<Location>; in addDiscriminators() 178 Location L = std::make_pair(DIL->getFilename(), DIL->getLine()); in addDiscriminators() 221 Location L = in addDiscriminators()
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
H A D | BugSuppression.cpp | 130 PathDiagnosticLocation Location = R.getLocation(); in isSuppressed() local 134 return isSuppressed(Location, DeclWithIssue, {}) || in isSuppressed() 138 bool BugSuppression::isSuppressed(const PathDiagnosticLocation &Location, in isSuppressed() argument 141 if (!Location.isValid()) in isSuppressed() 184 SourceRange BugRange = Location.asRange(); in isSuppressed() 185 const SourceManager &SM = Location.getManager(); in isSuppressed()
|
/freebsd/contrib/llvm-project/llvm/lib/DebugInfo/LogicalView/Core/ |
H A D | LVSymbol.cpp | 141 LVLocation *Location; in fillLocationGaps() local 146 Location = *Iter; in fillLocationGaps() 147 LowPC = Location->getLowerAddress(); in fillLocationGaps() 155 Marker = Location->getUpperAddress() + 1; in fillLocationGaps() 171 for (LVLocation *Location : *Locations) { in getLocations() 173 if (!(Location->*ValidLocation)() && RecordInvalid) in getLocations() 174 LocationList.push_back(Location); in getLocations() 185 for (LVLocation *Location : *Locations) in getLocations() 186 LocationList.push_back(Location); in getLocations() 387 for (const LVLocation *Location : *Locations) in printLocations() [all …]
|
H A D | LVLocation.cpp | 505 LVLocation *Location = Locations->front(); in calculateCoverage() local 508 Location->updateKind(); in calculateCoverage() 509 if (Location->getIsLocationSimple()) { in calculateCoverage() 519 for (const LVLocation *Location : *Locations) in calculateCoverage() 521 if (!Location->getIsGapEntry()) { in calculateCoverage() 522 LowerAddress = Location->getLowerAddress(); in calculateCoverage() 523 UpperAddress = Location->getUpperAddress(); in calculateCoverage() 629 LVLocation *Location = Locations->front(); in print() local 630 LVSymbol *Symbol = Location->getParentSymbol(); in print() 637 if (!Location->getIsLocationSimple()) in print() [all …]
|
H A D | LVReader.cpp | 117 Location = std::string(Where); in createSplitFolder() 120 size_t Pos = Location.find_last_of('/'); in createSplitFolder() 121 if (Location.length() != Pos + 1) in createSplitFolder() 122 Location.append("/"); in createSplitFolder() 125 if (std::error_code EC = llvm::sys::fs::create_directories(Location)) in createSplitFolder() 127 Location.c_str()); in createSplitFolder() 140 if (!Location.empty()) in open() 141 Name.insert(0, Location); in open()
|
H A D | LVScope.cpp | 151 void LVScope::addObject(LVLocation *Location) { in addObject() argument 152 assert(Location && "Invalid location."); in addObject() 153 assert(!Location->getParent() && "Location already inserted"); in addObject() 158 Location->setParent(this); in addObject() 159 Location->setOffset(getOffset()); in addObject() 161 Ranges->push_back(Location); in addObject() 248 // Pack the ranges into a Location object. in addObject() 249 LVLocation *Location = getReader().createLocation(); in addObject() local 250 Location in addObject() 1371 addInvalidLocation(LVLocation * Location) addInvalidLocation() argument 1377 addInvalidRange(LVLocation * Location) addInvalidRange() argument 1477 for (const LVLocation *Location : Entry.second) printWarnings() local [all...] |
/freebsd/contrib/llvm-project/clang/lib/Basic/ |
H A D | Sarif.cpp | 202 createThreadFlowLocation(json::Object &&Location, in createThreadFlowLocation() argument 204 return json::Object{{"location", std::move(Location)}, in createThreadFlowLocation() 224 const SarifArtifactLocation &Location = in createPhysicalLocation() local 226 const SarifArtifact &Artifact = SarifArtifact::create(Location) in createPhysicalLocation() 237 const SarifArtifactLocation &Location = I->second.Location; in createPhysicalLocation() local 238 json::Object ArtifactLocationObject{{"uri", Location.URI}}; in createPhysicalLocation() 239 if (Location.Index.has_value()) in createPhysicalLocation() 240 ArtifactLocationObject["index"] = *Location.Index; in createPhysicalLocation() 300 json::Object Loc{{"uri", A.Location.URI}}; in endRun() 301 if (A.Location.Index.has_value()) { in endRun() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/X86/ |
H A D | X86DiscriminateMemOps.cpp | 49 using Location = std::pair<StringRef, unsigned>; typedef 51 Location diToLocation(const DILocation *Loc) { in diToLocation() 104 DenseMap<Location, unsigned> MemOpDiscriminators; in runOnMachineFunction() 118 Location Loc = diToLocation(DI); in runOnMachineFunction() 127 DenseMap<Location, DenseSet<unsigned>> Seen; in runOnMachineFunction() 141 Location L = diToLocation(DI); in runOnMachineFunction()
|
/freebsd/contrib/llvm-project/llvm/lib/MC/ |
H A D | MCWin64EH.cpp | 834 } Location = Start; in tryARM64PackedUnwind() 848 if (Location != Start) in tryARM64PackedUnwind() 850 Location = Start2; in tryARM64PackedUnwind() 853 if (Location != Start2) in tryARM64PackedUnwind() 856 Location = Start3; in tryARM64PackedUnwind() 859 if (Location != Start2 && Location != Start3) in tryARM64PackedUnwind() 863 Location = IntRegs; in tryARM64PackedUnwind() 866 if (Location != Start2 && Location ! in tryARM64PackedUnwind() 826 } Location = Start; tryARM64PackedUnwind() local [all...] |
/freebsd/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
H A D | CheckerContext.h | 33 const ProgramPoint Location; variable 49 Location(loc), in Eng() 212 (Tag ? Tag : Location.getTag())); 228 (Tag ? Tag : Location.getTag())); 241 return addTransition(State, (Tag ? Tag : Location.getTag())); 257 return addTransition(State, Pred, (Tag ? Tag : Location.getTag())); 426 const ProgramPoint &LocalLoc = (Tag ? Location.withTag(Tag) : Location);
|
/freebsd/contrib/llvm-project/clang/lib/Format/ |
H A D | IntegerLiteralSeparatorFixer.cpp | 93 auto Location = Tok.getLocation(); in process() local 94 auto Text = StringRef(SourceMgr.getCharacterData(Location), Length); in process() 104 CharSourceRange::getCharRange(Location, Tok.getEndLoc()))) { in process() 159 Location = Location.getLocWithOffset(Start); in process() 161 tooling::Replacement(SourceMgr, Location, Length, Formatted))); in process()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
H A D | StackMaps.cpp | 224 Locs.emplace_back(StackMaps::Location::Direct, Size, in parseOperand() 233 Locs.emplace_back(StackMaps::Location::Indirect, Size, in parseOperand() 242 Locs.emplace_back(Location::Constant, sizeof(int64_t), 0, Imm); in parseOperand() 254 Locs.emplace_back(Location::ConstantIndex, sizeof(int64_t), 0, in parseOperand() 274 Locs.emplace_back(Location::Constant, sizeof(int64_t), 0, 0xFEFEFEFE); in parseOperand() 290 Locs.emplace_back(Location::Register, TRI->getSpillSize(*RC), in print() 316 case Location::Unprocessed: in print() 319 case Location::Register: in print() 326 case Location::Direct: in print() 335 case Location in print() [all...] |
/freebsd/contrib/llvm-project/clang/lib/Frontend/ |
H A D | SerializedDiagnosticPrinter.cpp | 108 unsigned Severity, const serialized_diags::Location &Location, 113 std::error_code visitFixitRecord(const serialized_diags::Location &Start, 114 const serialized_diags::Location &End, 117 visitSourceRangeRecord(const serialized_diags::Location &Start, 118 const serialized_diags::Location &End) override; 830 SDiagsMerger::visitSourceRangeRecord(const serialized_diags::Location &Start, in visitSourceRangeRecord() 831 const serialized_diags::Location &End) { in visitSourceRangeRecord() 841 unsigned Severity, const serialized_diags::Location &Location, in visitDiagnosticRecord() argument 844 RECORD_DIAG, Severity, FileLookup[Location.FileID], Location.Line, in visitDiagnosticRecord() 845 Location.Col, Location.Offset, CategoryLookup[Category], in visitDiagnosticRecord() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/ |
H A D | RetainCountDiagnostics.h | 74 PathDiagnosticLocation Location; variable 90 assert(Location.isValid()); in getLocation() 91 return Location; in getLocation()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/AsmPrinter/ |
H A D | DebugHandlerBase.cpp | 36 DbgVariableLocation Location; in extractFromMachineInstruction() local 42 Location.Register = Instruction.getDebugOperand(0).getReg(); in extractFromMachineInstruction() 43 Location.FragmentInfo.reset(); in extractFromMachineInstruction() 80 Location.FragmentInfo = {Op->getArg(1), Op->getArg(0)}; in extractFromMachineInstruction() 83 Location.LoadChain.push_back(Offset); in extractFromMachineInstruction() 96 Location.LoadChain.push_back(Offset); in extractFromMachineInstruction() 98 return Location; in extractFromMachineInstruction()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/DebugInfo/LogicalView/Core/ |
H A D | LVReader.h | 35 std::string Location; variable 53 std::string getLocation() const { return Location; } in getLocation() 90 LV_OBJECT_ALLOCATOR(Location) 199 LV_CREATE_OBJECT(Location) in LV_CREATE_OBJECT() 309 bool doPrintLocation(const LVLocation *Location) const { in doPrintLocation() argument 310 return patterns().printObject(Location); in doPrintLocation()
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/LiveDebugValues/ |
H A D | InstrRefBasedImpl.h | 82 unsigned Location; variable 86 LocIdx() : Location(UINT_MAX) {} in LocIdx() 90 LocIdx(unsigned L) : Location(L) { in LocIdx() 97 --L.Location; in MakeTombstoneLoc() 101 bool isIllegal() const { return Location == UINT_MAX; } in isIllegal() 103 uint64_t asU64() const { return Location; } in asU64() 105 bool operator==(unsigned L) const { return Location == L; } 107 bool operator==(const LocIdx &L) const { return Location == L.Location; } 114 return Location < Other.Location; 860 for (auto Location : locations()) [all …]
|
/freebsd/contrib/llvm-project/llvm/utils/TableGen/ |
H A D | CTagsEmitter.cpp | 35 Tag(StringRef Name, const SMLoc Location) : Id(Name) { in Tag() argument 37 SrcMgr.getMemoryBuffer(SrcMgr.FindBufferContainingLoc(Location)); in Tag() 39 auto LineAndColumn = SrcMgr.getLineAndColumn(Location); in Tag()
|
/freebsd/contrib/llvm-project/llvm/include/llvm/ProfileData/ |
H A D | SampleProf.h | 467 LineLocation Location; 469 SampleContextFrame() : Location(0, 0) {} 471 SampleContextFrame(FunctionId Func, LineLocation Location) 472 : Func(Func), Location(Location) {} 475 return Location == That.Location && Func == That.Func; 486 OContextStr << ":" << Location.LineOffset; 487 if (Location.Discriminator) 488 OContextStr << "." << Location.Discriminator; 495 uint64_t LocId = Location.getHashCode(); 682 if (Context1.Location != Context2.Location) [all …]
|