Home
last modified time | relevance | path

Searched refs:LC (Results 1 – 25 of 129) 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 in getPayloadString()
129 updateLoadCommandPayloadString(LoadCommand & LC,StringRef S) updateLoadCommandPayloadString() argument
141 LoadCommand LC; buildRPathLoadCommand() local
158 __anonb641b5aa0602(const LoadCommand &LC) processLoadCommands() argument
266 __anonb641b5aa0702(const LoadCommand &LC) processLoadCommands() argument
337 __anonb641b5aa0802(const LoadCommand &LC) findSection() argument
[all...]
H A DMachOObject.cpp45 LoadCommand &LC = LoadCommands[Index]; in updateLoadCommandIndexes()
46 switch (LC.MachOLoadCommand.load_command_data.cmd) { in updateLoadCommandIndexes()
51 if (StringRef(LC.MachOLoadCommand.segment_command_data.segname) == in updateLoadCommandIndexes()
56 if (StringRef(LC.MachOLoadCommand.segment_command_64_data.segname) == in updateLoadCommandIndexes()
96 [&](const LoadCommand &LC) { return !ToRemove(LC); }); in removeLoadCommands()
107 for (LoadCommand &LC : LoadCommands) { in removeSections()
109 std::begin(LC.Sections), std::end(LC.Sections), in removeSections()
111 for (auto I = LC in removeSections()
44 LoadCommand &LC = LoadCommands[Index]; updateLoadCommandIndexes() local
95 __anonf7f9acab0102(const LoadCommand &LC) removeLoadCommands() argument
127 for (const LoadCommand &LC : LoadCommands) removeSections() local
149 for (const LoadCommand &LC : LoadCommands) { nextAvailableSegmentAddress() local
185 LoadCommand LC; addSegment() local
[all...]
H A DMachOReader.cpp123 LoadCommand LC; in readLoadCommands()
140 LC.Sections = std::move(*Sections); in readLoadCommands()
156 LC.Sections = std::move(*Sections); in readLoadCommands()
191 memcpy((void *)&(LC.MachOLoadCommand.LCStruct##_data), LoadCmd.Ptr, \ in readLoadCommands()
194 MachO::swapStruct(LC.MachOLoadCommand.LCStruct##_data); \ in readLoadCommands()
196 LC.Payload = ArrayRef<uint8_t>( \ in readLoadCommands()
204 memcpy((void *)&(LC.MachOLoadCommand.load_command_data), LoadCmd.Ptr, in readLoadCommands()
207 MachO::swapStruct(LC.MachOLoadCommand.load_command_data); in readLoadCommands()
209 LC.Payload = ArrayRef<uint8_t>( in readLoadCommands()
216 O.LoadCommands.push_back(std::move(LC)); in readLoadCommands()
121 LoadCommand LC; readLoadCommands() local
248 for (auto &LC : O.LoadCommands) setSymbolInRelocationInfo() local
298 const MachO::linkedit_data_command &LC = readLinkData() local
349 for (const LoadCommand &LC : O.LoadCommands) readSwiftVersion() local
[all...]
H A DMachOLayoutBuilder.cpp28 for (const LoadCommand &LC : O.LoadCommands) { in computeSizeOfCmds()
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 in layoutSegments()
27 for (const LoadCommand &LC : O.LoadCommands) { computeSizeOfCmds() local
242 for (const auto &LC : O.LoadCommands) { layoutTail() local
[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()
185 assert(sizeof(MachO::LCStruct) + LC.Payload.size() == \ in writeLoadCommands()
191 if (!LC.Payload.empty()) \ in writeLoadCommands()
192 memcpy(Begin, LC.Payload.data(), LC.Payload.size()); \ in writeLoadCommands()
193 Begin += LC.Payload.size(); \ in writeLoadCommands()
[all …]
/freebsd/contrib/llvm-project/llvm/lib/ObjectYAML/
H A DMachOEmitter.cpp126 size_t writeLoadCommandData(MachOYAML::LoadCommand &LC, raw_ostream &OS, in writeLoadCommandData()
132 size_t writeLoadCommandData<MachO::segment_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData()
136 for (const auto &Sec : LC.Sections) { in writeLoadCommandData()
149 MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) { in writeLoadCommandData()
151 for (const auto &Sec : LC.Sections) { in writeLoadCommandData()
163 size_t writePayloadString(MachOYAML::LoadCommand &LC, raw_ostream &OS) { in writePayloadString()
165 if (!LC.Content.empty()) { in writePayloadString()
166 OS.write(LC.Content.c_str(), LC.Content.length()); in writePayloadString()
167 BytesWritten = LC in writePayloadString()
125 writeLoadCommandData(MachOYAML::LoadCommand & LC,raw_ostream & OS,bool IsLittleEndian) writeLoadCommandData() argument
131 writeLoadCommandData(MachOYAML::LoadCommand & LC,raw_ostream & OS,bool IsLittleEndian) writeLoadCommandData() argument
148 writeLoadCommandData(MachOYAML::LoadCommand & LC,raw_ostream & OS,bool IsLittleEndian) writeLoadCommandData() argument
162 writePayloadString(MachOYAML::LoadCommand & LC,raw_ostream & OS) writePayloadString() argument
172 writeLoadCommandData(MachOYAML::LoadCommand & LC,raw_ostream & OS,bool IsLittleEndian) writeLoadCommandData() argument
179 writeLoadCommandData(MachOYAML::LoadCommand & LC,raw_ostream & OS,bool IsLittleEndian) writeLoadCommandData() argument
186 writeLoadCommandData(MachOYAML::LoadCommand & LC,raw_ostream & OS,bool IsLittleEndian) writeLoadCommandData() argument
194 writeLoadCommandData(MachOYAML::LoadCommand & LC,raw_ostream & OS,bool IsLittleEndian) writeLoadCommandData() argument
200 writeLoadCommandData(MachOYAML::LoadCommand & LC,raw_ostream & OS,bool IsLittleEndian) writeLoadCommandData() argument
206 writeLoadCommandData(MachOYAML::LoadCommand & LC,raw_ostream & OS,bool IsLittleEndian) writeLoadCommandData() argument
212 writeLoadCommandData(MachOYAML::LoadCommand & LC,raw_ostream & OS,bool IsLittleEndian) writeLoadCommandData() argument
218 writeLoadCommandData(MachOYAML::LoadCommand & LC,raw_ostream & OS,bool IsLittleEndian) writeLoadCommandData() argument
248 for (auto &LC : Obj.LoadCommands) { writeLoadCommands() local
298 for (auto &LC : Obj.LoadCommands) { writeSectionData() local
404 for (const MachOYAML::LoadCommand &LC : Obj.LoadCommands) { writeRelocations() local
501 for (auto &LC : Obj.LoadCommands) { writeLinkEditData() local
703 writeFatArch(MachOYAML::FatArch & LC,raw_ostream & OS) writeFatArch() 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.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()
50 return ConstantFoldBinaryInstruction(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()
63 return ConstantFoldBinaryInstruction(Opc, LC, RC); in FoldExactBinOp()
70 auto *LC = dyn_cast<Constant>(LHS); in FoldNoWrapBinOp() local
72 if (LC && RC) { in FoldNoWrapBinOp()
[all …]
/freebsd/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()
73 Opc, LC, RC, IsExact ? PossiblyExactOperator::IsExact : 0)); in FoldExactBinOp()
74 return ConstantFoldBinaryOpOperands(Opc, LC, RC, DL); in FoldExactBinOp()
81 auto *LC = dyn_cast<Constant>(LHS); in FoldNoWrapBinOp() local
83 if (LC && RC) { in FoldNoWrapBinOp()
[all …]
/freebsd/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.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/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()
465 if (const auto *SFC = dyn_cast<StackFrameContext>(LC)) in getStackFrame()
467 LC = LC->getParent(); in getStackFrame()
476 bool LocationContext::isParentOf(const LocationContext *LC) const { in isParentOf()
478 const LocationContext *Parent = LC->getParent(); in isParentOf()
482 LC = Parent; in isParentOf()
[all …]
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Core/
H A DMemRegion.cpp380 const LocationContext *LC, in ProfileRegion() argument
385 ID.AddPointer(LC); in ProfileRegion()
391 BlockDataRegion::ProfileRegion(ID, BC, LC, BlockCount, getSuperRegion()); in Profile()
977 getStackOrCaptureRegionForDeclContext(const LocationContext *LC, in getStackOrCaptureRegionForDeclContext() argument
980 while (LC) { in getStackOrCaptureRegionForDeclContext()
981 if (const auto *SFC = dyn_cast<StackFrameContext>(LC)) { in getStackOrCaptureRegionForDeclContext()
985 if (const auto *BC = dyn_cast<BlockInvocationContext>(LC)) { in getStackOrCaptureRegionForDeclContext()
997 LC = LC->getParent(); in getStackOrCaptureRegionForDeclContext()
1003 const LocationContext *LC) { in getVarRegion() argument
1007 const StackFrameContext *SFC = LC->getStackFrame(); in getVarRegion()
[all …]
H A DExprEngine.cpp129 const LocationContext *LC) in ConstructedObjectKey() argument
130 : Impl(Item, LC) {} in ConstructedObjectKey()
322 ProgramStateRef State, const LocationContext *LC, in createTemporaryRegionIfNeeded() argument
330 SVal InitValWithAdjustments = State->getSVal(InitWithAdjustments, LC); in createTemporaryRegionIfNeeded()
386 if (std::optional<SVal> V = getObjectUnderConstruction(State, MT, LC)) { in createTemporaryRegionIfNeeded()
387 State = finishObjectConstruction(State, MT, LC); in createTemporaryRegionIfNeeded()
388 State = State->BindExpr(Result, LC, *V); in createTemporaryRegionIfNeeded()
398 TR = MRMgr.getCXXLifetimeExtendedObjectRegion(Init, VD, LC); in createTemporaryRegionIfNeeded()
402 TR = MRMgr.getCXXTempObjectRegion(Init, LC); in createTemporaryRegionIfNeeded()
405 TR = MRMgr.getCXXTempObjectRegion(Init, LC); in createTemporaryRegionIfNeeded()
[all …]
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.cpp186 void updateLocCtxMap(const PathPieces *Path, const LocationContext *LC) { in updateLocCtxMap() argument
187 assert(Path && LC); in updateLocCtxMap()
188 LCM[Path] = LC; in updateLocCtxMap()
652 getEnclosingStmtLocation(const Stmt *S, const LocationContext *LC, in getEnclosingStmtLocation() argument
657 const SourceManager &SMgr = LC->getDecl()->getASTContext().getSourceManager(); in getEnclosingStmtLocation()
659 while (const Stmt *Parent = getEnclosingParent(S, LC->getParentMap())) { in getEnclosingStmtLocation()
664 return PathDiagnosticLocation(allowNestedContexts ? B : S, SMgr, LC); in getEnclosingStmtLocation()
669 return PathDiagnosticLocation(S, SMgr, LC); in getEnclosingStmtLocation()
674 return PathDiagnosticLocation(Parent, SMgr, LC); in getEnclosingStmtLocation()
676 return PathDiagnosticLocation(S, SMgr, LC); in getEnclosingStmtLocation()
[all …]
H A DPrettyStackTraceLocationContext.h31 PrettyStackTraceLocationContext(const LocationContext *LC) : LCtx(LC) { in PrettyStackTraceLocationContext() argument
/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,
627 const LocationContext *LC);
875 ProgramStateRef State, const LocationContext *LC,
902 const LocationContext *LC, bool HasMoreIteraton);
906 const LocationContext *LC);
910 const LocationContext *LC);
959 const LocationContext *LC, SVal V);
966 const LocationContext *LC);
973 const LocationContext *LC);
979 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()
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeIntegerTypes.cpp2530 RTLIB::Libcall LC = IsPowI ? RTLIB::getPOWI(N->getValueType(0)) in PromoteIntOp_ExpOp() local
2533 if (LC == RTLIB::UNKNOWN_LIBCALL || !TLI.getLibcallName(LC)) { in PromoteIntOp_ExpOp()
2553 DAG, LC, N->getValueType(0), Ops, CallOptions, SDLoc(N), Chain); in PromoteIntOp_ExpOp()
2961 RTLIB::Libcall LC = RTLIB::getOUTLINE_ATOMIC(Opc, order, VT); in ExpandAtomic() local
2965 if (TLI.getLibcallName(LC)) { in ExpandAtomic()
2969 LC = RTLIB::getSYNC(Opc, VT); in ExpandAtomic()
2970 assert(LC != RTLIB::UNKNOWN_LIBCALL && in ExpandAtomic()
2974 return TLI.makeLibCall(DAG, LC, RetVT, Ops, CallOptions, SDLoc(Node), in ExpandAtomic()
3938 RTLIB::Libcall LC = IsSigned ? RTLIB::getFPTOSINT(Op.getValueType(), VT) in ExpandIntRes_FP_TO_XINT() local
3940 assert(LC != RTLIB::UNKNOWN_LIBCALL && "Unexpected fp-to-xint conversion!"); in ExpandIntRes_FP_TO_XINT()
[all …]

123456