Home
last modified time | relevance | path

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

123456

/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/MachO/
H A DMachOObjcopy.cpp33 using LoadCommandPred = std::function<bool(const LoadCommand &LC)>;
36 static bool isLoadCommandWithPayloadString(const LoadCommand &LC) { in isLoadCommandWithPayloadString() argument
39 return LC.MachOLoadCommand.load_command_data.cmd == MachO::LC_RPATH || in isLoadCommandWithPayloadString()
40 LC.MachOLoadCommand.load_command_data.cmd == MachO::LC_ID_DYLIB || in isLoadCommandWithPayloadString()
41 LC.MachOLoadCommand.load_command_data.cmd == MachO::LC_LOAD_DYLIB || in isLoadCommandWithPayloadString()
42 LC.MachOLoadCommand.load_command_data.cmd == MachO::LC_LOAD_WEAK_DYLIB; in isLoadCommandWithPayloadString()
46 static StringRef getPayloadString(const LoadCommand &LC) { in getPayloadString() argument
47 assert(isLoadCommandWithPayloadString(LC) && in getPayloadString()
50 return StringRef(reinterpret_cast<const char *>(LC.Payload.data()), in getPayloadString()
51 LC.Payload.size()) in getPayloadString()
[all …]
H A DMachOObject.cpp58 LoadCommand &LC = LoadCommands[Index]; in updateLoadCommandIndexes() local
59 switch (LC.MachOLoadCommand.load_command_data.cmd) { in updateLoadCommandIndexes()
64 if (StringRef(LC.MachOLoadCommand.segment_command_data.segname) == in updateLoadCommandIndexes()
69 if (StringRef(LC.MachOLoadCommand.segment_command_64_data.segname) == in updateLoadCommandIndexes()
109 [&](const LoadCommand &LC) { return !ToRemove(LC); }); in removeLoadCommands() argument
120 for (LoadCommand &LC : LoadCommands) { in removeSections()
122 std::begin(LC.Sections), std::end(LC.Sections), in removeSections()
124 for (auto I = LC.Sections.begin(), End = It; I != End; ++I) { in removeSections()
128 LC.Sections.erase(It, LC.Sections.end()); in removeSections()
141 for (const LoadCommand &LC : LoadCommands) in removeSections() local
[all …]
H A DMachOReader.cpp122 LoadCommand LC; in readLoadCommands() local
139 LC.Sections = std::move(*Sections); in readLoadCommands()
155 LC.Sections = std::move(*Sections); in readLoadCommands()
190 memcpy((void *)&(LC.MachOLoadCommand.LCStruct##_data), LoadCmd.Ptr, \ in readLoadCommands()
193 MachO::swapStruct(LC.MachOLoadCommand.LCStruct##_data); \ in readLoadCommands()
195 LC.Payload = ArrayRef<uint8_t>( \ in readLoadCommands()
203 memcpy((void *)&(LC.MachOLoadCommand.load_command_data), LoadCmd.Ptr, in readLoadCommands()
206 MachO::swapStruct(LC.MachOLoadCommand.load_command_data); in readLoadCommands()
208 LC.Payload = ArrayRef<uint8_t>( in readLoadCommands()
215 O.LoadCommands.push_back(std::move(LC)); in readLoadCommands()
[all …]
H A DMachOLayoutBuilder.cpp28 for (const LoadCommand &LC : O.LoadCommands) { in computeSizeOfCmds() local
29 const MachO::macho_load_command &MLC = LC.MachOLoadCommand; in computeSizeOfCmds()
34 sizeof(MachO::section) * LC.Sections.size(); in computeSizeOfCmds()
38 sizeof(MachO::section_64) * LC.Sections.size(); in computeSizeOfCmds()
45 Size += sizeof(MachO::LCStruct) + LC.Payload.size(); \ in computeSizeOfCmds()
119 for (LoadCommand &LC : O.LoadCommands) { in layoutSegments()
120 auto &MLC = LC.MachOLoadCommand; in layoutSegments()
145 assert(LC.Sections.empty() && "__LINKEDIT segment has sections"); in layoutSegments()
154 for (std::unique_ptr<Section> &Sec : LC.Sections) { in layoutSegments()
194 sizeof(MachO::section) * LC.Sections.size(); in layoutSegments()
[all …]
H A DMachOWriter.cpp111 for (const LoadCommand &LC : O.LoadCommands) in totalSize() local
112 for (const std::unique_ptr<Section> &S : LC.Sections) { in totalSize()
157 for (const LoadCommand &LC : O.LoadCommands) { in writeLoadCommands() local
159 MachO::macho_load_command MLC = LC.MachOLoadCommand; in writeLoadCommands()
167 for (const std::unique_ptr<Section> &Sec : LC.Sections) in writeLoadCommands()
177 for (const std::unique_ptr<Section> &Sec : LC.Sections) in writeLoadCommands()
184 assert(sizeof(MachO::LCStruct) + LC.Payload.size() == \ in writeLoadCommands()
190 if (!LC.Payload.empty()) \ in writeLoadCommands()
191 memcpy(Begin, LC.Payload.data(), LC.Payload.size()); \ in writeLoadCommands()
192 Begin += LC.Payload.size(); \ in writeLoadCommands()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DMachOEmitter.cpp124 size_t writeLoadCommandData(MachOYAML::LoadCommand &LC, raw_ostream &OS, in writeLoadCommandData() argument
130 size_t writeLoadCommandData<MachO::segment_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData() argument
134 for (const auto &Sec : LC.Sections) { in writeLoadCommandData()
147 MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) { in writeLoadCommandData() argument
149 for (const auto &Sec : LC.Sections) { in writeLoadCommandData()
161 size_t writePayloadString(MachOYAML::LoadCommand &LC, raw_ostream &OS) { in writePayloadString() argument
163 if (!LC.Content.empty()) { in writePayloadString()
164 OS.write(LC.Content.c_str(), LC.Content.length()); in writePayloadString()
165 BytesWritten = LC.Content.length(); in writePayloadString()
171 size_t writeLoadCommandData<MachO::dylib_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData() argument
[all …]
/freebsd/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)
51 #define CK_RWCOHORT_WP_WRITE_UNLOCK(N, RW, C, GC, LC) \ argument
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)
151 #define CK_RWCOHORT_RP_READ_UNLOCK(N, RW, C, GC, LC) \ argument
[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/contrib/llvm-project/llvm/include/llvm/IR/
H A DConstantFolder.h46 auto *LC = dyn_cast<Constant>(LHS); in FoldBinOp() local
48 if (LC && RC) { in FoldBinOp()
50 return ConstantExpr::get(Opc, LC, RC); in FoldBinOp()
51 return ConstantFoldBinaryInstruction(Opc, LC, RC); in FoldBinOp()
58 auto *LC = dyn_cast<Constant>(LHS); in FoldExactBinOp() local
60 if (LC && RC) { in FoldExactBinOp()
62 return ConstantExpr::get(Opc, LC, RC, in FoldExactBinOp()
64 return ConstantFoldBinaryInstruction(Opc, LC, RC); in FoldExactBinOp()
71 auto *LC = dyn_cast<Constant>(LHS); in FoldNoWrapBinOp() local
73 if (LC && RC) { in FoldNoWrapBinOp()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/
H A DTraversalChecker.cpp70 for (const LocationContext *LC = C.getLocationContext()->getParent(); in checkPreCall() local
71 LC != nullptr; LC = LC->getParent()) in checkPreCall()
87 for (const LocationContext *LC = C.getLocationContext()->getParent(); in checkPostCall() local
88 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.cpp47 const LocationContext *LC = Eng.getRootLocationContext(); in checkEndAnalysis() local
49 const Decl *D = LC->getDecl(); in checkEndAnalysis()
66 C = LC->getCFG(); in checkEndAnalysis()
127 PathDiagnosticLocation::createBegin(CS->getStmt(), SM, LC)); in checkEndAnalysis()
H A DMIGChecker.cpp152 const LocationContext *LC = C.getLocationContext(); in isInMIGCall() local
153 assert(LC && "Unknown location context"); in isInMIGCall()
157 while (LC) { in isInMIGCall()
158 SFC = LC->getStackFrame(); in isInMIGCall()
159 LC = SFC->getParent(); in isInMIGCall()
/freebsd/contrib/llvm-project/llvm/include/llvm/Analysis/
H A DTargetFolder.h57 auto *LC = dyn_cast<Constant>(LHS); in FoldBinOp() local
59 if (LC && RC) { in FoldBinOp()
61 return Fold(ConstantExpr::get(Opc, LC, RC)); in FoldBinOp()
62 return ConstantFoldBinaryOpOperands(Opc, LC, RC, DL); in FoldBinOp()
69 auto *LC = dyn_cast<Constant>(LHS); in FoldExactBinOp() local
71 if (LC && RC) { in FoldExactBinOp()
74 Opc, LC, RC, IsExact ? PossiblyExactOperator::IsExact : 0)); in FoldExactBinOp()
75 return ConstantFoldBinaryOpOperands(Opc, LC, RC, DL); in FoldExactBinOp()
82 auto *LC = dyn_cast<Constant>(LHS); in FoldNoWrapBinOp() local
84 if (LC && RC) { in FoldNoWrapBinOp()
[all …]
/freebsd/contrib/llvm-project/clang/lib/Analysis/
H A DProgramPoint.cpp24 const LocationContext *LC, in getProgramPoint() argument
30 return PreStmt(S, LC, tag); in getProgramPoint()
32 return PostStmt(S, LC, tag); in getProgramPoint()
34 return PreLoad(S, LC, tag); in getProgramPoint()
36 return PostLoad(S, LC, tag); in getProgramPoint()
38 return PreStore(S, LC, tag); in getProgramPoint()
40 return PostLValue(S, LC, tag); in getProgramPoint()
42 return PostStmtPurgeDeadSymbols(S, LC, tag); in getProgramPoint()
44 return PreStmtPurgeDeadSymbols(S, LC, tag); in getProgramPoint()
H A DAnalysisDeclContext.cpp166 for (const auto &LC : parent->captures()) { in getSelfDecl() local
167 if (!LC.capturesVariable()) in getSelfDecl()
170 ValueDecl *VD = LC.getCapturedVar(); in getSelfDecl()
461 const LocationContext *LC = this; in getStackFrame() local
462 while (LC) { in getStackFrame()
463 if (const auto *SFC = dyn_cast<StackFrameContext>(LC)) in getStackFrame()
465 LC = LC->getParent(); in getStackFrame()
474 bool LocationContext::isParentOf(const LocationContext *LC) const { in isParentOf()
476 const LocationContext *Parent = LC->getParent(); in isParentOf()
480 LC = Parent; in isParentOf()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DExprEngine.cpp130 const LocationContext *LC) in ConstructedObjectKey() argument
131 : Impl(Item, LC) {} in ConstructedObjectKey()
323 ProgramStateRef State, const LocationContext *LC, in createTemporaryRegionIfNeeded() argument
331 SVal InitValWithAdjustments = State->getSVal(InitWithAdjustments, LC); in createTemporaryRegionIfNeeded()
387 if (std::optional<SVal> V = getObjectUnderConstruction(State, MT, LC)) { in createTemporaryRegionIfNeeded()
388 State = finishObjectConstruction(State, MT, LC); in createTemporaryRegionIfNeeded()
389 State = State->BindExpr(Result, LC, *V); in createTemporaryRegionIfNeeded()
399 TR = MRMgr.getCXXLifetimeExtendedObjectRegion(Init, VD, LC); in createTemporaryRegionIfNeeded()
403 TR = MRMgr.getCXXTempObjectRegion(Init, LC); in createTemporaryRegionIfNeeded()
406 TR = MRMgr.getCXXTempObjectRegion(Init, LC); in createTemporaryRegionIfNeeded()
[all …]
H A DMemRegion.cpp389 const LocationContext *LC, in ProfileRegion() argument
394 ID.AddPointer(LC); in ProfileRegion()
400 BlockDataRegion::ProfileRegion(ID, BC, LC, BlockCount, getSuperRegion()); in Profile()
1000 getStackOrCaptureRegionForDeclContext(const LocationContext *LC, in getStackOrCaptureRegionForDeclContext() argument
1003 while (LC) { in getStackOrCaptureRegionForDeclContext()
1004 if (const auto *SFC = dyn_cast<StackFrameContext>(LC)) { in getStackOrCaptureRegionForDeclContext()
1008 if (const auto *BC = dyn_cast<BlockInvocationContext>(LC)) { in getStackOrCaptureRegionForDeclContext()
1020 LC = LC->getParent(); in getStackOrCaptureRegionForDeclContext()
1042 const LocationContext *LC) { in getVarRegion() argument
1046 const StackFrameContext *SFC = LC->getStackFrame(); in getVarRegion()
[all …]
H A DEnvironment.cpp230 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 DExplodedGraph.cpp305 findTopAutosynthesizedParentContext(const LocationContext *LC) { in findTopAutosynthesizedParentContext() argument
306 assert(LC->getAnalysisDeclContext()->isBodyAutosynthesized()); in findTopAutosynthesizedParentContext()
307 const LocationContext *ParentLC = LC->getParent(); in findTopAutosynthesizedParentContext()
310 LC = ParentLC; in findTopAutosynthesizedParentContext()
311 ParentLC = LC->getParent(); in findTopAutosynthesizedParentContext()
314 return LC; in findTopAutosynthesizedParentContext()
321 const LocationContext *LC = getLocationContext(); in getStmtForDiagnostics() local
322 if (LC->getAnalysisDeclContext()->isBodyAutosynthesized()) { in getStmtForDiagnostics()
324 return cast<StackFrameContext>(findTopAutosynthesizedParentContext(LC)) in getStmtForDiagnostics()
H A DPrettyStackTraceLocationContext.h31 PrettyStackTraceLocationContext(const LocationContext *LC) : LCtx(LC) { in PrettyStackTraceLocationContext() argument
H A DBugReporter.cpp180 void updateLocCtxMap(const PathPieces *Path, const LocationContext *LC) { in updateLocCtxMap() argument
181 assert(Path && LC); in updateLocCtxMap()
182 LCM[Path] = LC; in updateLocCtxMap()
673 getEnclosingStmtLocation(const Stmt *S, const LocationContext *LC, in getEnclosingStmtLocation() argument
678 const SourceManager &SMgr = LC->getDecl()->getASTContext().getSourceManager(); in getEnclosingStmtLocation()
680 while (const Stmt *Parent = getEnclosingParent(S, LC->getParentMap())) { in getEnclosingStmtLocation()
685 return PathDiagnosticLocation(allowNestedContexts ? B : S, SMgr, LC); in getEnclosingStmtLocation()
690 return PathDiagnosticLocation(S, SMgr, LC); in getEnclosingStmtLocation()
695 return PathDiagnosticLocation(Parent, SMgr, LC); in getEnclosingStmtLocation()
697 return PathDiagnosticLocation(S, SMgr, LC); in getEnclosingStmtLocation()
[all …]
/freebsd/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/contrib/llvm-project/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DExprEngine.h285 const Stmt *ReferenceStmt, const LocationContext *LC,
640 const LocationContext *LC);
888 ProgramStateRef State, const LocationContext *LC,
915 const LocationContext *LC, bool HasMoreIteraton);
919 const LocationContext *LC);
923 const LocationContext *LC);
972 const LocationContext *LC, SVal V);
979 const LocationContext *LC);
986 const LocationContext *LC);
992 const LocationContext *LC);
[all …]
/freebsd/contrib/llvm-project/clang/include/clang/Analysis/
H A DAnalysisDeclContext.h249 bool isParentOf(const LocationContext *LC) const;
347 static bool classof(const LocationContext *LC) { in classof() argument
348 return LC->getKind() == StackFrame; in classof()
382 static bool classof(const LocationContext *LC) { in classof() argument
383 return LC->getKind() == Block; in classof()

123456