Home
last modified time | relevance | path

Searched refs:LC (Results 1 – 25 of 154) sorted by relevance

1234567

/freebsd-14.2/contrib/llvm-project/llvm/lib/ObjCopy/MachO/
H A DMachOObjcopy.cpp47 assert(isLoadCommandWithPayloadString(LC) && in getPayloadString()
51 LC.Payload.size()) in getPayloadString()
149 LoadCommand LC; in buildRPathLoadCommand() local
157 return LC; in buildRPathLoadCommand()
197 for (LoadCommand &LC : Obj.LoadCommands) { in processLoadCommands()
199 RPaths.insert(getPayloadString(LC)); in processLoadCommands()
216 for (LoadCommand &LC : Obj.LoadCommands) { in processLoadCommands()
221 LC, *MachOConfig.SharedLibId); in processLoadCommands()
277 return LC.Sections.empty() && in processLoadCommands()
291 for (LoadCommand &LC : Obj.LoadCommands) in dumpSectionToFile()
[all …]
H A DMachOObject.cpp45 LoadCommand &LC = LoadCommands[Index]; in updateLoadCommandIndexes() local
46 switch (LC.MachOLoadCommand.load_command_data.cmd) { in updateLoadCommandIndexes()
96 [&](const LoadCommand &LC) { return !ToRemove(LC); }); in removeLoadCommands() argument
107 for (LoadCommand &LC : LoadCommands) { in removeSections()
109 std::begin(LC.Sections), std::end(LC.Sections), in removeSections()
115 LC.Sections.erase(It, LC.Sections.end()); in removeSections()
128 for (const LoadCommand &LC : LoadCommands) in removeSections() local
129 for (const std::unique_ptr<Section> &Sec : LC.Sections) in removeSections()
150 for (const LoadCommand &LC : LoadCommands) { in nextAvailableSegmentAddress() local
186 LoadCommand LC; in addSegment() local
[all …]
H A DMachOReader.cpp123 LoadCommand LC; in readLoadCommands() local
140 LC.Sections = std::move(*Sections); in readLoadCommands()
156 LC.Sections = std::move(*Sections); in readLoadCommands()
209 LC.Payload = ArrayRef<uint8_t>( in readLoadCommands()
216 O.LoadCommands.push_back(std::move(LC)); in readLoadCommands()
250 for (auto &LC : O.LoadCommands) in setSymbolInRelocationInfo() local
251 for (std::unique_ptr<Section> &Sec : LC.Sections) in setSymbolInRelocationInfo()
254 for (LoadCommand &LC : O.LoadCommands) in setSymbolInRelocationInfo()
300 const MachO::linkedit_data_command &LC = in readLinkData() local
303 arrayRefFromStringRef(MachOObj.getData().substr(LC.dataoff, LC.datasize)); in readLinkData()
[all …]
H A DMachOLayoutBuilder.cpp28 for (const LoadCommand &LC : O.LoadCommands) { in computeSizeOfCmds() local
34 sizeof(MachO::section) * LC.Sections.size(); in computeSizeOfCmds()
119 for (LoadCommand &LC : O.LoadCommands) { in layoutSegments()
120 auto &MLC = LC.MachOLoadCommand; in layoutSegments()
154 for (std::unique_ptr<Section> &Sec : LC.Sections) { in layoutSegments()
194 sizeof(MachO::section) * LC.Sections.size(); in layoutSegments()
216 for (LoadCommand &LC : O.LoadCommands) in layoutRelocations()
217 for (std::unique_ptr<Section> &Sec : LC.Sections) { in layoutRelocations()
243 for (const auto &LC : O.LoadCommands) { in layoutTail() local
337 for (LoadCommand &LC : O.LoadCommands) { in layoutTail()
[all …]
H A DMachOWriter.cpp112 for (const LoadCommand &LC : O.LoadCommands) in totalSize() local
113 for (const std::unique_ptr<Section> &S : LC.Sections) { in totalSize()
158 for (const LoadCommand &LC : O.LoadCommands) { in writeLoadCommands() local
160 MachO::macho_load_command MLC = LC.MachOLoadCommand; in writeLoadCommands()
168 for (const std::unique_ptr<Section> &Sec : LC.Sections) in writeLoadCommands()
178 for (const std::unique_ptr<Section> &Sec : LC.Sections) in writeLoadCommands()
192 memcpy(Begin, LC.Payload.data(), LC.Payload.size()); \ in writeLoadCommands()
205 if (!LC.Payload.empty()) in writeLoadCommands()
206 memcpy(Begin, LC.Payload.data(), LC.Payload.size()); in writeLoadCommands()
207 Begin += LC.Payload.size(); in writeLoadCommands()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DMachOEmitter.cpp165 if (!LC.Content.empty()) { in writePayloadString()
166 OS.write(LC.Content.c_str(), LC.Content.length()); in writePayloadString()
176 return writePayloadString(LC, OS); in writeLoadCommandData()
183 return writePayloadString(LC, OS); in writeLoadCommandData()
190 return writePayloadString(LC, OS); in writeLoadCommandData()
196 return writePayloadString(LC, OS); in writeLoadCommandData()
202 return writePayloadString(LC, OS); in writeLoadCommandData()
208 return writePayloadString(LC, OS); in writeLoadCommandData()
214 return writePayloadString(LC, OS); in writeLoadCommandData()
221 for (const auto &T : LC.Tools) { in writeLoadCommandData()
[all …]
/freebsd-14.2/sys/contrib/ck/include/
H A Dck_rwcohort.h45 #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 Dck_cohort.h51 #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-14.2/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantFolder.h45 auto *LC = dyn_cast<Constant>(LHS); in FoldBinOp() local
47 if (LC && RC) { in FoldBinOp()
49 return ConstantExpr::get(Opc, LC, RC); in FoldBinOp()
57 auto *LC = dyn_cast<Constant>(LHS); in FoldExactBinOp() local
59 if (LC && RC) { in FoldExactBinOp()
61 return ConstantExpr::get(Opc, LC, RC, in FoldExactBinOp()
70 auto *LC = dyn_cast<Constant>(LHS); in FoldNoWrapBinOp() local
72 if (LC && RC) { in FoldNoWrapBinOp()
99 auto *LC = dyn_cast<Constant>(LHS); in FoldICmp() local
101 if (LC && RC) in FoldICmp()
[all …]
/freebsd-14.2/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetFolder.h56 auto *LC = dyn_cast<Constant>(LHS); in FoldBinOp() local
58 if (LC && RC) { in FoldBinOp()
60 return Fold(ConstantExpr::get(Opc, LC, RC)); in FoldBinOp()
61 return ConstantFoldBinaryOpOperands(Opc, LC, RC, DL); in FoldBinOp()
68 auto *LC = dyn_cast<Constant>(LHS); in FoldExactBinOp() local
70 if (LC && RC) { in FoldExactBinOp()
81 auto *LC = dyn_cast<Constant>(LHS); in FoldNoWrapBinOp() local
83 if (LC && RC) { in FoldNoWrapBinOp()
103 auto *LC = dyn_cast<Constant>(LHS); in FoldICmp() local
105 if (LC && RC) in FoldICmp()
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DTraversalChecker.cpp84 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 DUnreachableCodeChecker.cpp60 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()
158 DL = PathDiagnosticLocation::createBegin(S, B.getSourceManager(), LC); in checkEndAnalysis()
H A DAnalyzerStatsChecker.cpp51 const LocationContext *LC = GraphRoot->getLocation().getLocationContext(); in checkEndAnalysis() local
53 const Decl *D = LC->getDecl(); in checkEndAnalysis()
70 C = LC->getCFG(); in checkEndAnalysis()
131 PathDiagnosticLocation::createBegin(CS->getStmt(), SM, LC)); in checkEndAnalysis()
H A DMIGChecker.cpp149 const LocationContext *LC = C.getLocationContext(); in isInMIGCall() local
150 assert(LC && "Unknown location context"); in isInMIGCall()
154 while (LC) { in isInMIGCall()
155 SFC = LC->getStackFrame(); in isInMIGCall()
156 LC = SFC->getParent(); in isInMIGCall()
/freebsd-14.2/contrib/llvm-project/clang/lib/Analysis/
H A DProgramPoint.cpp23 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 DAnalysisDeclContext.cpp168 for (const auto &LC : parent->captures()) { in getSelfDecl() local
169 if (!LC.capturesVariable()) in getSelfDecl()
172 ValueDecl *VD = LC.getCapturedVar(); in getSelfDecl()
463 const LocationContext *LC = this; in getStackFrame() local
464 while (LC) { in getStackFrame()
467 LC = LC->getParent(); in getStackFrame()
478 const LocationContext *Parent = LC->getParent(); in isParentOf()
482 LC = Parent; in isParentOf()
483 } while (LC); in isParentOf()
700 LocationContext *LC = &*I; in clear() local
[all …]
/freebsd-14.2/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DMemRegion.cpp385 ID.AddPointer(LC); in ProfileRegion()
961 while (LC) { in getStackOrCaptureRegionForDeclContext()
978 LC = LC->getParent(); in getStackOrCaptureRegionForDeclContext()
1096 const StackFrameContext *SFC = LC->getStackFrame(); in getParamVarRegion()
1118 if (!IsArcManagedBlock && LC) { in getBlockDataRegion()
1293 LC = LC->getParent(); in getCXXThisRegion()
1294 D = dyn_cast<CXXMethodDecl>(LC->getDecl()); in getCXXThisRegion()
1661 OriginalVR = MemMgr.getVarRegion(VD, LC); in getCaptureRegions()
1664 if (LC) { in getCaptureRegions()
1665 VR = MemMgr.getVarRegion(VD, LC); in getCaptureRegions()
[all …]
H A DExprEngine.cpp130 : Impl(Item, LC) {} in ConstructedObjectKey()
437 SVal InitVal = State->getSVal(Init, LC); in createTemporaryRegionIfNeeded()
648 const LocationContext *LC = FromLC; in areAllObjectsFullyConstructed() local
649 while (LC != ToLC) { in areAllObjectsFullyConstructed()
655 LC = LC->getParent(); in areAllObjectsFullyConstructed()
1053 LC = LC->getParent(); in removeDead()
1056 const StackFrameContext *SFC = LC ? LC->getStackFrame() : nullptr; in removeDead()
2917 const LocationContext *LC = FromLC; in processEndOfFunction() local
2918 while (LC != ToLC) { in processEndOfFunction()
2931 LC = LC->getParent(); in processEndOfFunction()
[all …]
H A DEnvironment.cpp232 const LocationContext *LC = I.first.getLocationContext(); in printJson() local
233 if (FoundContexts.count(LC) == 0) { in printJson()
235 LCtx = LC; in printJson()
236 for (const LocationContext *LCI = LC; LCI; LCI = LCI->getParent()) in printJson()
248 LCtx->printJson(Out, NL, Space, IsDot, [&](const LocationContext *LC) { in printJson() argument
257 if (I->first.getLocationContext() != LC) in printJson()
274 if (I->first.getLocationContext() != LC) in printJson()
H A DExplodedGraph.cpp307 findTopAutosynthesizedParentContext(const LocationContext *LC) { in findTopAutosynthesizedParentContext() argument
308 assert(LC->getAnalysisDeclContext()->isBodyAutosynthesized()); in findTopAutosynthesizedParentContext()
309 const LocationContext *ParentLC = LC->getParent(); in findTopAutosynthesizedParentContext()
312 LC = ParentLC; in findTopAutosynthesizedParentContext()
313 ParentLC = LC->getParent(); in findTopAutosynthesizedParentContext()
316 return LC; in findTopAutosynthesizedParentContext()
323 const LocationContext *LC = getLocationContext(); in getStmtForDiagnostics() local
324 if (LC->getAnalysisDeclContext()->isBodyAutosynthesized()) { in getStmtForDiagnostics()
326 return cast<StackFrameContext>(findTopAutosynthesizedParentContext(LC)) in getStmtForDiagnostics()
H A DBugReporter.cpp177 assert(Path && LC); in updateLocCtxMap()
178 LCM[Path] = LC; in updateLocCtxMap()
707 return PathDiagnosticLocation(S, SMgr, LC); in getEnclosingStmtLocation()
1423 const ParentMap &PM = LC->getParentMap(); in addContextEdges()
1768 assert(LC); in optimizeEdges()
1769 const ParentMap &PM = LC->getParentMap(); in optimizeEdges()
1925 addContextEdges(path, LC); in optimizeEdges()
2181 return LC->getStackFrame()->getDecl(); in getDeclWithIssue()
2306 if (!LC) in markInteresting()
2308 InterestingLocationContexts.insert(LC); in markInteresting()
[all …]
H A DPrettyStackTraceLocationContext.h31 PrettyStackTraceLocationContext(const LocationContext *LC) : LCtx(LC) { in PrettyStackTraceLocationContext() argument
/freebsd-14.2/contrib/llvm-project/llvm/lib/Object/
H A DMachOUniversalWriter.cpp42 for (const auto &LC : O.load_commands()) { in calculateFileAlignment() local
43 if (LC.C.cmd != (Is64Bit ? MachO::LC_SEGMENT_64 : MachO::LC_SEGMENT)) in calculateFileAlignment()
47 (Is64Bit ? O.getSegment64LoadCommand(LC).nsects in calculateFileAlignment()
48 : O.getSegmentLoadCommand(LC).nsects); in calculateFileAlignment()
52 (Is64Bit ? O.getSection64(LC, SI).align in calculateFileAlignment()
53 : O.getSection(LC, SI).align)); in calculateFileAlignment()
57 llvm::countr_zero(Is64Bit ? O.getSegment64LoadCommand(LC).vmaddr in calculateFileAlignment()
58 : O.getSegmentLoadCommand(LC).vmaddr); in calculateFileAlignment()
/freebsd-14.2/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DExprEngine.h293 const Stmt *ReferenceStmt, const LocationContext *LC,
635 const LocationContext *LC);
883 ProgramStateRef State, const LocationContext *LC,
910 const LocationContext *LC, bool HasMoreIteraton);
914 const LocationContext *LC);
918 const LocationContext *LC);
967 const LocationContext *LC, SVal V);
974 const LocationContext *LC);
981 const LocationContext *LC);
987 const LocationContext *LC);
[all …]
H A DStore.h135 virtual Loc getLValueVar(const VarDecl *VD, const LocationContext *LC) { in getLValueVar() argument
136 return svalBuilder.makeLoc(MRMgr.getVarRegion(VD, LC)); in getLValueVar()
140 const LocationContext *LC) { in getLValueCompoundLiteral() argument
141 return loc::MemRegionVal(MRMgr.getCompoundLiteralRegion(CL, LC)); in getLValueCompoundLiteral()

1234567