| /freebsd-13.1/contrib/llvm-project/llvm/tools/llvm-objcopy/MachO/ |
| H A D | MachOObjcopy.cpp | 44 assert(isLoadCommandWithPayloadString(LC) && in getPayloadString() 48 LC.Payload.size()) in getPayloadString() 131 LoadCommand LC; in buildRPathLoadCommand() local 139 return LC; in buildRPathLoadCommand() 155 StringRef RPath = getPayloadString(LC); in processLoadCommands() 179 for (LoadCommand &LC : Obj.LoadCommands) { in processLoadCommands() 181 RPaths.insert(getPayloadString(LC)); in processLoadCommands() 198 for (LoadCommand &LC : Obj.LoadCommands) { in processLoadCommands() 203 LC, *Config.SharedLibId); in processLoadCommands() 259 for (LoadCommand &LC : Obj.LoadCommands) in dumpSectionToFile() [all …]
|
| H A D | Object.cpp | 34 LoadCommand &LC = LoadCommands[Index]; in updateLoadCommandIndexes() local 35 switch (LC.MachOLoadCommand.load_command_data.cmd) { in updateLoadCommandIndexes() 63 [&](const LoadCommand &LC) { return !ToRemove(LC); }); in removeLoadCommands() argument 74 for (LoadCommand &LC : LoadCommands) { in removeSections() 76 std::begin(LC.Sections), std::end(LC.Sections), in removeSections() 82 LC.Sections.erase(It, LC.Sections.end()); in removeSections() 95 for (const LoadCommand &LC : LoadCommands) in removeSections() local 96 for (const std::unique_ptr<Section> &Sec : LC.Sections) in removeSections() 117 for (const LoadCommand &LC : LoadCommands) { in nextAvailableSegmentAddress() local 153 LoadCommand LC; in addSegment() local [all …]
|
| H A D | MachOReader.cpp | 120 LoadCommand LC; in readLoadCommands() local 129 LC.Sections = std::move(*Sections); in readLoadCommands() 137 LC.Sections = std::move(*Sections); in readLoadCommands() 181 LC.Payload = ArrayRef<uint8_t>( in readLoadCommands() 188 O.LoadCommands.push_back(std::move(LC)); in readLoadCommands() 222 for (auto &LC : O.LoadCommands) in setSymbolInRelocationInfo() local 223 for (std::unique_ptr<Section> &Sec : LC.Sections) in setSymbolInRelocationInfo() 226 for (LoadCommand &LC : O.LoadCommands) in setSymbolInRelocationInfo() 268 const MachO::linkedit_data_command &LC = in readLinkData() local 271 arrayRefFromStringRef(MachOObj.getData().substr(LC.dataoff, LC.datasize)); in readLinkData() [all …]
|
| H A D | MachOLayoutBuilder.cpp | 27 for (const LoadCommand &LC : O.LoadCommands) { in computeSizeOfCmds() local 33 sizeof(MachO::section) * LC.Sections.size(); in computeSizeOfCmds() 37 sizeof(MachO::section_64) * LC.Sections.size(); in computeSizeOfCmds() 118 for (LoadCommand &LC : O.LoadCommands) { in layoutSegments() 119 auto &MLC = LC.MachOLoadCommand; in layoutSegments() 153 for (std::unique_ptr<Section> &Sec : LC.Sections) { in layoutSegments() 193 sizeof(MachO::section) * LC.Sections.size(); in layoutSegments() 215 for (LoadCommand &LC : O.LoadCommands) in layoutRelocations() 216 for (std::unique_ptr<Section> &Sec : LC.Sections) { in layoutRelocations() 290 for (LoadCommand &LC : O.LoadCommands) { in layoutTail() [all …]
|
| H A D | MachOWriter.cpp | 131 for (const LoadCommand &LC : O.LoadCommands) in totalSize() local 132 for (const std::unique_ptr<Section> &S : LC.Sections) { in totalSize() 177 for (const LoadCommand &LC : O.LoadCommands) { in writeLoadCommands() local 179 MachO::macho_load_command MLC = LC.MachOLoadCommand; in writeLoadCommands() 187 for (const std::unique_ptr<Section> &Sec : LC.Sections) in writeLoadCommands() 197 for (const std::unique_ptr<Section> &Sec : LC.Sections) in writeLoadCommands() 211 memcpy(Begin, LC.Payload.data(), LC.Payload.size()); \ in writeLoadCommands() 224 if (!LC.Payload.empty()) in writeLoadCommands() 225 memcpy(Begin, LC.Payload.data(), LC.Payload.size()); in writeLoadCommands() 226 Begin += LC.Payload.size(); in writeLoadCommands() [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/ObjectYAML/ |
| H A D | MachOEmitter.cpp | 158 if (!LC.Content.empty()) { in writePayloadString() 159 OS.write(LC.Content.c_str(), LC.Content.length()); in writePayloadString() 169 return writePayloadString(LC, OS); in writeLoadCommandData() 176 return writePayloadString(LC, OS); in writeLoadCommandData() 183 return writePayloadString(LC, OS); in writeLoadCommandData() 190 for (const auto &T : LC.Tools) { in writeLoadCommandData() 218 for (auto &LC : Obj.LoadCommands) { in writeLoadCommands() local 246 if (LC.PayloadBytes.size() > 0) { in writeLoadCommands() 252 if (LC.ZeroPadBytes > 0) { in writeLoadCommands() 267 for (auto &LC : Obj.LoadCommands) { in writeSectionData() local [all …]
|
| /freebsd-13.1/sys/contrib/ck/include/ |
| H A D | ck_rwcohort.h | 45 #define CK_RWCOHORT_WP_READ_LOCK(N, RW, C, GC, LC) \ argument 46 ck_rwcohort_wp_##N##_read_lock(RW, C, GC, LC) 47 #define CK_RWCOHORT_WP_READ_UNLOCK(N, RW, C, GC, LC) \ argument 49 #define CK_RWCOHORT_WP_WRITE_LOCK(N, RW, C, GC, LC) \ argument 50 ck_rwcohort_wp_##N##_write_lock(RW, C, GC, LC) 52 ck_rwcohort_wp_##N##_write_unlock(RW, C, GC, LC) 149 #define CK_RWCOHORT_RP_READ_LOCK(N, RW, C, GC, LC) \ argument 150 ck_rwcohort_rp_##N##_read_lock(RW, C, GC, LC) 154 ck_rwcohort_rp_##N##_write_lock(RW, C, GC, LC) 156 ck_rwcohort_rp_##N##_write_unlock(RW, C, GC, LC) [all …]
|
| H A D | ck_cohort.h | 51 #define CK_COHORT_LOCK(N, C, GC, LC) ck_cohort_##N##_lock(C, GC, LC) argument 52 #define CK_COHORT_UNLOCK(N, C, GC, LC) ck_cohort_##N##_unlock(C, GC, LC) argument 54 #define CK_COHORT_LOCKED(N, C, GC, LC) ck_cohort_##N##_locked(C, GC, LC) argument
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | TraversalChecker.cpp | 84 for (const LocationContext *LC = C.getLocationContext()->getParent(); in checkPreCall() local 85 LC != nullptr; LC = LC->getParent()) in checkPreCall() 101 for (const LocationContext *LC = C.getLocationContext()->getParent(); in checkPostCall() local 102 LC != nullptr; LC = LC->getParent()) in checkPostCall()
|
| H A D | UnreachableCodeChecker.cpp | 59 const LocationContext *LC = nullptr; in checkEndAnalysis() local 64 LC = P.getLocationContext(); in checkEndAnalysis() 65 if (!LC->inTopFrame()) in checkEndAnalysis() 69 D = LC->getAnalysisDeclContext()->getDecl(); in checkEndAnalysis() 73 C = LC->getAnalysisDeclContext()->getUnoptimizedCFG(); in checkEndAnalysis() 75 PM = &LC->getParentMap(); in checkEndAnalysis() 159 DL = PathDiagnosticLocation::createBegin(S, B.getSourceManager(), LC); in checkEndAnalysis()
|
| H A D | MIGChecker.cpp | 147 const LocationContext *LC = C.getLocationContext(); in isInMIGCall() local 148 assert(LC && "Unknown location context"); in isInMIGCall() 152 while (LC) { in isInMIGCall() 153 SFC = LC->getStackFrame(); in isInMIGCall() 154 LC = SFC->getParent(); in isInMIGCall()
|
| H A D | AnalyzerStatsChecker.cpp | 49 const LocationContext *LC = GraphRoot->getLocation().getLocationContext(); in checkEndAnalysis() local 51 const Decl *D = LC->getDecl(); in checkEndAnalysis() 69 C = LC->getCFG(); in checkEndAnalysis() 134 PathDiagnosticLocation::createBegin(CS->getStmt(), SM, LC)); in checkEndAnalysis()
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/Analysis/ |
| H A D | ProgramPoint.cpp | 23 const LocationContext *LC, in getProgramPoint() argument 29 return PreStmt(S, LC, tag); in getProgramPoint() 31 return PostStmt(S, LC, tag); in getProgramPoint() 33 return PreLoad(S, LC, tag); in getProgramPoint() 35 return PostLoad(S, LC, tag); in getProgramPoint() 37 return PreStore(S, LC, tag); in getProgramPoint() 39 return PostLValue(S, LC, tag); in getProgramPoint() 41 return PostStmtPurgeDeadSymbols(S, LC, tag); in getProgramPoint() 43 return PreStmtPurgeDeadSymbols(S, LC, tag); in getProgramPoint()
|
| H A D | AnalysisDeclContext.cpp | 168 for (const auto &LC : parent->captures()) { in getSelfDecl() local 169 if (!LC.capturesVariable()) in getSelfDecl() 172 VarDecl *VD = LC.getCapturedVar(); in getSelfDecl() 464 const LocationContext *LC = this; in getStackFrame() local 465 while (LC) { in getStackFrame() 468 LC = LC->getParent(); in getStackFrame() 479 const LocationContext *Parent = LC->getParent(); in isParentOf() 483 LC = Parent; in isParentOf() 484 } while (LC); in isParentOf() 701 LocationContext *LC = &*I; in clear() local [all …]
|
| /freebsd-13.1/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/ |
| H A D | ExprEngine.cpp | 136 : Impl(Item, LC) {} in ConstructedObjectKey() 422 SVal InitVal = State->getSVal(Init, LC); in createTemporaryRegionIfNeeded() 518 const LocationContext *LC = FromLC; in areAllObjectsFullyConstructed() local 519 while (LC != ToLC) { in areAllObjectsFullyConstructed() 525 LC = LC->getParent(); in areAllObjectsFullyConstructed() 713 LC = LC->getParent(); in removeDead() 716 const StackFrameContext *SFC = LC ? LC->getStackFrame() : nullptr; in removeDead() 2391 const LocationContext *LC = FromLC; in processEndOfFunction() local 2392 while (LC != ToLC) { in processEndOfFunction() 2405 LC = LC->getParent(); in processEndOfFunction() [all …]
|
| H A D | MemRegion.cpp | 372 ID.AddPointer(LC); in ProfileRegion() 896 while (LC) { in getStackOrCaptureRegionForDeclContext() 915 LC = LC->getParent(); in getStackOrCaptureRegionForDeclContext() 1039 const StackFrameContext *SFC = LC->getStackFrame(); in getParamVarRegion() 1056 if (LC) { in getBlockDataRegion() 1219 LC = LC->getParent(); in getCXXThisRegion() 1220 D = dyn_cast<CXXMethodDecl>(LC->getDecl()); in getCXXThisRegion() 1593 OriginalVR = MemMgr.getVarRegion(VD, LC); in getCaptureRegions() 1596 if (LC) { in getCaptureRegions() 1597 VR = MemMgr.getVarRegion(VD, LC); in getCaptureRegions() [all …]
|
| H A D | Environment.cpp | 230 const LocationContext *LC = I.first.getLocationContext(); in printJson() local 231 if (FoundContexts.count(LC) == 0) { in printJson() 233 LCtx = LC; in printJson() 234 for (const LocationContext *LCI = LC; LCI; LCI = LCI->getParent()) in printJson() 246 LCtx->printJson(Out, NL, Space, IsDot, [&](const LocationContext *LC) { in printJson() argument 255 if (I->first.getLocationContext() != LC) in printJson() 272 if (I->first.getLocationContext() != LC) in printJson()
|
| H A D | ExplodedGraph.cpp | 309 findTopAutosynthesizedParentContext(const LocationContext *LC) { in findTopAutosynthesizedParentContext() argument 310 assert(LC->getAnalysisDeclContext()->isBodyAutosynthesized()); in findTopAutosynthesizedParentContext() 311 const LocationContext *ParentLC = LC->getParent(); in findTopAutosynthesizedParentContext() 314 LC = ParentLC; in findTopAutosynthesizedParentContext() 315 ParentLC = LC->getParent(); in findTopAutosynthesizedParentContext() 318 return LC; in findTopAutosynthesizedParentContext() 325 const LocationContext *LC = getLocationContext(); in getStmtForDiagnostics() local 326 if (LC->getAnalysisDeclContext()->isBodyAutosynthesized()) { in getStmtForDiagnostics() 328 return cast<StackFrameContext>(findTopAutosynthesizedParentContext(LC)) in getStmtForDiagnostics()
|
| H A D | BugReporter.cpp | 175 assert(Path && LC); in updateLocCtxMap() 176 LCM[Path] = LC; in updateLocCtxMap() 704 return PathDiagnosticLocation(S, SMgr, LC); in getEnclosingStmtLocation() 1414 const ParentMap &PM = LC->getParentMap(); in addContextEdges() 1759 assert(LC); in optimizeEdges() 1760 const ParentMap &PM = LC->getParentMap(); in optimizeEdges() 1916 addContextEdges(path, LC); in optimizeEdges() 2175 return LC->getStackFrame()->getDecl(); in getDeclWithIssue() 2300 if (!LC) in markInteresting() 2302 InterestingLocationContexts.insert(LC); in markInteresting() [all …]
|
| H A D | PrettyStackTraceLocationContext.h | 31 PrettyStackTraceLocationContext(const LocationContext *LC) : LCtx(LC) { in PrettyStackTraceLocationContext() argument
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/Object/ |
| H A D | MachOUniversalWriter.cpp | 35 for (const auto &LC : O.load_commands()) { in calculateFileAlignment() local 36 if (LC.C.cmd != (Is64Bit ? MachO::LC_SEGMENT_64 : MachO::LC_SEGMENT)) in calculateFileAlignment() 40 (Is64Bit ? O.getSegment64LoadCommand(LC).nsects in calculateFileAlignment() 41 : O.getSegmentLoadCommand(LC).nsects); in calculateFileAlignment() 45 (Is64Bit ? O.getSection64(LC, SI).align in calculateFileAlignment() 46 : O.getSection(LC, SI).align)); in calculateFileAlignment() 50 countTrailingZeros(Is64Bit ? O.getSegment64LoadCommand(LC).vmaddr in calculateFileAlignment() 51 : O.getSegmentLoadCommand(LC).vmaddr); in calculateFileAlignment()
|
| /freebsd-13.1/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/ |
| H A D | ExprEngine.h | 290 const Stmt *ReferenceStmt, const LocationContext *LC, 639 const LocationContext *LC); 844 ProgramStateRef State, const LocationContext *LC, 878 const LocationContext *LC, bool HasMoreIteraton); 882 const LocationContext *LC); 886 const LocationContext *LC); 898 const LocationContext *LC, SVal V); 905 const LocationContext *LC); 912 const LocationContext *LC); 918 const LocationContext *LC); [all …]
|
| H A D | Store.h | 134 virtual Loc getLValueVar(const VarDecl *VD, const LocationContext *LC) { in getLValueVar() argument 135 return svalBuilder.makeLoc(MRMgr.getVarRegion(VD, LC)); in getLValueVar() 139 const LocationContext *LC) { in getLValueCompoundLiteral() argument 140 return loc::MemRegionVal(MRMgr.getCompoundLiteralRegion(CL, LC)); in getLValueCompoundLiteral()
|
| H A D | ProgramState.h | 229 const VarRegion* getRegion(const VarDecl *D, const LocationContext *LC) const; 302 SVal getSelfSVal(const LocationContext *LC) const; 313 const LocationContext *LC) const; 316 Loc getLValue(const VarDecl *D, const LocationContext *LC) const; 319 const LocationContext *LC) const; 661 const LocationContext *LC) const in getRegion() argument 663 return getStateManager().getRegionManager().getVarRegion(D, LC); in getRegion() 732 const LocationContext *LC) const { in getLValue() argument 733 return getStateManager().StoreMgr->getLValueVar(VD, LC); in getLValue() 737 const LocationContext *LC) const { in getLValue() argument [all …]
|
| /freebsd-13.1/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
| H A D | LegalizeIntegerTypes.cpp | 3346 LC = RTLIB::MUL_I16; in ExpandIntRes_MUL() 3348 LC = RTLIB::MUL_I32; in ExpandIntRes_MUL() 3350 LC = RTLIB::MUL_I64; in ExpandIntRes_MUL() 3352 LC = RTLIB::MUL_I128; in ExpandIntRes_MUL() 3354 if (LC == RTLIB::UNKNOWN_LIBCALL || !TLI.getLibcallName(LC)) { in ExpandIntRes_MUL() 3754 LC = RTLIB::SDIV_I16; in ExpandIntRes_SDIV() 3756 LC = RTLIB::SDIV_I32; in ExpandIntRes_SDIV() 3758 LC = RTLIB::SDIV_I64; in ExpandIntRes_SDIV() 3862 if (LC != RTLIB::UNKNOWN_LIBCALL && TLI.getLibcallName(LC)) { in ExpandIntRes_Shift() 3945 LC = RTLIB::SREM_I16; in ExpandIntRes_SREM() [all …]
|