| /openbsd-src/gnu/llvm/clang/include/clang/Analysis/ |
| H A D | ProgramPoint.h | 243 static bool isKind(const ProgramPoint &Location) { in isKind() argument 244 return Location.getKind() == BlockEntranceKind; in isKind() 264 static bool isKind(const ProgramPoint &Location) { in isKind() argument 265 return Location.getKind() == BlockExitKind; in isKind() 286 static bool isKind(const ProgramPoint &Location) { in isKind() argument 287 unsigned k = Location.getKind(); in isKind() 304 static bool isKind(const ProgramPoint &Location) { in isKind() argument 305 return Location.getKind() == PreStmtKind; in isKind() 327 static bool isKind(const ProgramPoint &Location) { in isKind() argument 328 unsigned k = Location.getKind(); in isKind() [all …]
|
| /openbsd-src/gnu/llvm/clang/tools/libclang/ |
| H A D | CXLoadedDiagnostic.cpp | 90 static CXSourceLocation makeLocation(const CXLoadedDiagnostic::Location *DLoc) { in makeLocation() 170 const Location &Loc = *((Location*)V); in decodeLocation() 205 std::error_code readRange(const serialized_diags::Location &SDStart, 206 const serialized_diags::Location &SDEnd, 209 std::error_code readLocation(const serialized_diags::Location &SDLoc, 210 CXLoadedDiagnostic::Location &LoadedLoc); 221 unsigned Severity, const serialized_diags::Location &Location, 228 std::error_code visitFixitRecord(const serialized_diags::Location &Start, 229 const serialized_diags::Location &End, 233 visitSourceRangeRecord(const serialized_diags::Location &Start, [all …]
|
| H A D | CXLoadedDiagnostic.h | 72 struct Location { struct 78 Location() : line(0), column(0), offset(0) {} in Location() function 81 Location DiagLoc;
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/llvm/include/llvm/Support/ |
| H A D | ModRef.h | 66 enum Location { enum 81 static uint32_t getLocationPos(Location Loc) { in getLocationPos() 87 void setModRef(Location Loc, ModRefInfo MR) { in setModRef() 97 return enum_seq_inclusive(Location::ArgMem, Location::Other, in locations() 103 MemoryEffects(Location Loc, ModRefInfo MR) { setModRef(Loc, MR); } in MemoryEffects() 108 for (Location Loc : locations()) in MemoryEffects() 164 ModRefInfo getModRef(Location Loc) const { in getModRef() 169 MemoryEffects getWithModRef(Location Loc, ModRefInfo MR) const { in getWithModRef() 176 MemoryEffects getWithoutLoc(Location Loc) const { in getWithoutLoc() 185 for (Location Loc : locations()) in getModRef()
|
| /openbsd-src/gnu/llvm/compiler-rt/lib/ubsan/ |
| H A D | ubsan_diag.h | 54 class Location { 66 Location() : Kind(LK_Null) {} in Location() function 67 Location(SourceLocation Loc) : in Location() function 69 Location(MemoryLocation Loc) : in Location() function 72 Location(const SymbolizedStackHolder &Stack) : in Location() function 103 Location Start, End; 110 Location getStart() const { return Start; } in getStart() 111 Location getEnd() const { return End; } in getEnd() 136 Location Loc; 208 Diag(Location Loc, DiagLevel Level, ErrorType ET, const char *Message) in Diag() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/Transforms/Utils/ |
| H A D | AddDiscriminators.cpp | 183 using Location = std::pair<StringRef, unsigned>; in addDiscriminators() typedef 185 using LocationBBMap = DenseMap<Location, BBSet>; in addDiscriminators() 186 using LocationDiscriminatorMap = DenseMap<Location, unsigned>; in addDiscriminators() 187 using LocationSet = DenseSet<Location>; in addDiscriminators() 208 Location L = std::make_pair(DIL->getFilename(), DIL->getLine()); in addDiscriminators() 251 Location L = in addDiscriminators()
|
| /openbsd-src/gnu/llvm/clang/lib/Basic/ |
| H A D | Sarif.cpp | 203 createThreadFlowLocation(json::Object &&Location, in createThreadFlowLocation() argument 205 return json::Object{{"location", std::move(Location)}, in createThreadFlowLocation() 225 const SarifArtifactLocation &Location = in createPhysicalLocation() local 227 const SarifArtifact &Artifact = SarifArtifact::create(Location) in createPhysicalLocation() 238 const SarifArtifactLocation &Location = I->second.Location; in createPhysicalLocation() local 239 json::Object ArtifactLocationObject{{"uri", Location.URI}}; in createPhysicalLocation() 240 if (Location.Index.has_value()) in createPhysicalLocation() 241 ArtifactLocationObject["index"] = *Location.Index; in createPhysicalLocation() 298 json::Object Loc{{"uri", A.Location.URI}}; in endRun() 299 if (A.Location.Index.has_value()) { in endRun() [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/DebugInfo/LogicalView/Core/ |
| H A D | LVSymbol.cpp | 143 LVLocation *Location; in fillLocationGaps() local 148 Location = *Iter; in fillLocationGaps() 149 LowPC = Location->getLowerAddress(); in fillLocationGaps() 157 Marker = Location->getUpperAddress() + 1; in fillLocationGaps() 173 for (LVLocation *Location : *Locations) { in getLocations() 175 if (!(Location->*ValidLocation)() && RecordInvalid) in getLocations() 176 LocationList.push_back(Location); in getLocations() 187 for (LVLocation *Location : *Locations) in getLocations() 188 LocationList.push_back(Location); in getLocations() 389 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() 630 LVLocation *Location = Locations->front(); in print() local 631 LVSymbol *Symbol = Location->getParentSymbol(); in print() 638 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 | 160 void LVScope::addObject(LVLocation *Location) { in addObject() argument 161 assert(Location && "Invalid location."); in addObject() 162 assert(!Location->getParent() && "Location already inserted"); in addObject() 167 Location->setParent(this); in addObject() 168 Location->setOffset(getOffset()); in addObject() 170 Ranges->push_back(Location); in addObject() 258 LVLocation *Location = new LVLocation(); in addObject() local 259 Location->setLowerAddress(LowerAddress); in addObject() 260 Location->setUpperAddress(UpperAddress); in addObject() 261 Location->setIsAddressRange(); in addObject() [all …]
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/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())); 414 const ProgramPoint &LocalLoc = (Tag ? Location.withTag(Tag) : Location);
|
| /openbsd-src/gnu/llvm/llvm/lib/MC/ |
| H A D | MCWin64EH.cpp | 826 } Location = Start; in tryARM64PackedUnwind() local 840 if (Location != Start) in tryARM64PackedUnwind() 842 Location = Start2; in tryARM64PackedUnwind() 845 if (Location != Start2) in tryARM64PackedUnwind() 848 Location = Start3; in tryARM64PackedUnwind() 851 if (Location != Start2 && Location != Start3) in tryARM64PackedUnwind() 855 Location = IntRegs; in tryARM64PackedUnwind() 858 if (Location != Start2 && Location != Start3) in tryARM64PackedUnwind() 868 Location = FloatRegs; in tryARM64PackedUnwind() 884 if (Location != IntRegs || Inst.Offset != 8 * RegI || in tryARM64PackedUnwind() [all …]
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/usr.bin/make/ |
| H A D | lowparse.c | 58 Location origin; /* Name of file and line number */ 73 static Location *post_parse = NULL; 82 static struct input_stream *new_input_string(char *, const Location *); 180 new_input_string(char *str, const Location *origin) in new_input_string() 199 Location origin; in Parse_FromString() 467 Parse_SetLocation(Location *origin) in Parse_SetLocation() 473 Parse_FillLocation(Location *origin) in Parse_FillLocation()
|
| H A D | error.c | 48 static void ParseVErrorInternal(const Location *, int, const char *, va_list) 145 ParseVErrorInternal(const Location *origin, int type, const char *fmt, in ParseVErrorInternal() 174 Location l; in Parse_Error()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/ |
| H A D | StackMaps.cpp | 221 Locs.emplace_back(StackMaps::Location::Direct, Size, in parseOperand() 230 Locs.emplace_back(StackMaps::Location::Indirect, Size, in parseOperand() 238 Locs.emplace_back(Location::Constant, sizeof(int64_t), 0, Imm); in parseOperand() 256 Locs.emplace_back(Location::Constant, sizeof(int64_t), 0, 0xFEFEFEFE); in parseOperand() 272 Locs.emplace_back(Location::Register, TRI->getSpillSize(*RC), in parseOperand() 298 case Location::Unprocessed: in print() 301 case Location::Register: in print() 308 case Location::Direct: in print() 317 case Location::Indirect: in print() 325 case Location::Constant: in print() [all …]
|
| /openbsd-src/gnu/llvm/llvm/tools/llvm-profgen/ |
| H A D | CallContext.h | 23 CallsiteStr += Twine(Callsite.Location.LineOffset).str(); in getCallSite() 24 if (Callsite.Location.Discriminator > 0) { in getCallSite() 26 CallsiteStr += Twine(Callsite.Location.Discriminator).str(); in getCallSite()
|
| /openbsd-src/gnu/llvm/clang/lib/Frontend/ |
| H A D | SerializedDiagnosticPrinter.cpp | 110 unsigned Severity, const serialized_diags::Location &Location, 115 std::error_code visitFixitRecord(const serialized_diags::Location &Start, 116 const serialized_diags::Location &End, 119 visitSourceRangeRecord(const serialized_diags::Location &Start, 120 const serialized_diags::Location &End) override; 832 SDiagsMerger::visitSourceRangeRecord(const serialized_diags::Location &Start, in visitSourceRangeRecord() 833 const serialized_diags::Location &End) { in visitSourceRangeRecord() 843 unsigned Severity, const serialized_diags::Location &Location, in visitDiagnosticRecord() argument 846 RECORD_DIAG, Severity, FileLookup[Location.FileID], Location.Line, in visitDiagnosticRecord() 847 Location.Col, Location.Offset, CategoryLookup[Category], in visitDiagnosticRecord() [all …]
|
| /openbsd-src/gnu/llvm/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()
|
| /openbsd-src/gnu/llvm/clang/lib/AST/Interp/ |
| H A D | ByteCodeEmitter.cpp | 105 unsigned Location = NextLocalOffset; in createLocal() local 107 return {Location, D}; in createLocal() 119 void *Location = Code.data() + Reloc - align(sizeof(int32_t)); in emitLabel() local 120 assert(aligned(Location)); in emitLabel() 122 endian::write<int32_t, endianness::native, 1>(Location, Offset); in emitLabel()
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/LiveDebugValues/ |
| H A D | InstrRefBasedImpl.h | 44 unsigned Location; variable 48 LocIdx() : Location(UINT_MAX) {} in LocIdx() 52 LocIdx(unsigned L) : Location(L) { in LocIdx() 59 --L.Location; in MakeTombstoneLoc() 63 bool isIllegal() const { return Location == UINT_MAX; } in isIllegal() 65 uint64_t asU64() const { return Location; } in asU64() 67 bool operator==(unsigned L) const { return Location == L; } 69 bool operator==(const LocIdx &L) const { return Location == L.Location; } 76 return Location < Other.Location; 783 for (auto Location : locations()) [all …]
|
| /openbsd-src/gnu/llvm/llvm/lib/CodeGen/AsmPrinter/ |
| H A D | DebugHandlerBase.cpp | 35 DbgVariableLocation Location; in extractFromMachineInstruction() local 41 Location.Register = Instruction.getDebugOperand(0).getReg(); in extractFromMachineInstruction() 42 Location.FragmentInfo.reset(); in extractFromMachineInstruction() 79 Location.FragmentInfo = {Op->getArg(1), Op->getArg(0)}; in extractFromMachineInstruction() 82 Location.LoadChain.push_back(Offset); in extractFromMachineInstruction() 95 Location.LoadChain.push_back(Offset); in extractFromMachineInstruction() 97 return Location; in extractFromMachineInstruction()
|