Home
last modified time | relevance | path

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

12345678

/netbsd-src/external/apache2/llvm/dist/llvm/tools/llvm-objcopy/MachO/
H A DMachOObjcopy.cpp30 using LoadCommandPred = std::function<bool(const LoadCommand &LC)>;
33 static bool isLoadCommandWithPayloadString(const LoadCommand &LC) { in isLoadCommandWithPayloadString() argument
36 return LC.MachOLoadCommand.load_command_data.cmd == MachO::LC_RPATH || in isLoadCommandWithPayloadString()
37 LC.MachOLoadCommand.load_command_data.cmd == MachO::LC_ID_DYLIB || in isLoadCommandWithPayloadString()
38 LC.MachOLoadCommand.load_command_data.cmd == MachO::LC_LOAD_DYLIB || in isLoadCommandWithPayloadString()
39 LC.MachOLoadCommand.load_command_data.cmd == MachO::LC_LOAD_WEAK_DYLIB; in isLoadCommandWithPayloadString()
43 static StringRef getPayloadString(const LoadCommand &LC) { in getPayloadString() argument
44 assert(isLoadCommandWithPayloadString(LC) && in getPayloadString()
47 return StringRef(reinterpret_cast<const char *>(LC.Payload.data()), in getPayloadString()
48 LC.Payload.size()) in getPayloadString()
[all …]
H A DObject.cpp35 LoadCommand &LC = LoadCommands[Index]; in updateLoadCommandIndexes() local
36 switch (LC.MachOLoadCommand.load_command_data.cmd) { in updateLoadCommandIndexes()
61 [&](const LoadCommand &LC) { return !ToRemove(LC); }); in removeLoadCommands() argument
72 for (LoadCommand &LC : LoadCommands) { in removeSections()
74 std::begin(LC.Sections), std::end(LC.Sections), in removeSections()
76 for (auto I = LC.Sections.begin(), End = It; I != End; ++I) { in removeSections()
80 LC.Sections.erase(It, LC.Sections.end()); in removeSections()
93 for (const LoadCommand &LC : LoadCommands) in removeSections() local
94 for (const std::unique_ptr<Section> &Sec : LC.Sections) in removeSections()
115 for (const LoadCommand &LC : LoadCommands) { in nextAvailableSegmentAddress() local
[all …]
H A DMachOReader.cpp120 LoadCommand LC; in readLoadCommands() local
129 LC.Sections = std::move(*Sections); in readLoadCommands()
137 LC.Sections = std::move(*Sections); in readLoadCommands()
160 memcpy((void *)&(LC.MachOLoadCommand.LCStruct##_data), LoadCmd.Ptr, \ in readLoadCommands()
163 MachO::swapStruct(LC.MachOLoadCommand.LCStruct##_data); \ in readLoadCommands()
165 LC.Payload = ArrayRef<uint8_t>( \ in readLoadCommands()
173 memcpy((void *)&(LC.MachOLoadCommand.load_command_data), LoadCmd.Ptr, in readLoadCommands()
176 MachO::swapStruct(LC.MachOLoadCommand.load_command_data); in readLoadCommands()
178 LC.Payload = ArrayRef<uint8_t>( in readLoadCommands()
185 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.cpp122 for (const LoadCommand &LC : O.LoadCommands) in totalSize() local
123 for (const std::unique_ptr<Section> &S : LC.Sections) { in totalSize()
168 for (const LoadCommand &LC : O.LoadCommands) { in writeLoadCommands() local
170 MachO::macho_load_command MLC = LC.MachOLoadCommand; in writeLoadCommands()
178 for (const std::unique_ptr<Section> &Sec : LC.Sections) in writeLoadCommands()
188 for (const std::unique_ptr<Section> &Sec : LC.Sections) in writeLoadCommands()
195 assert(sizeof(MachO::LCStruct) + LC.Payload.size() == \ in writeLoadCommands()
201 if (!LC.Payload.empty()) \ in writeLoadCommands()
202 memcpy(Begin, LC.Payload.data(), LC.Payload.size()); \ in writeLoadCommands()
203 Begin += LC.Payload.size(); \ in writeLoadCommands()
[all …]
/netbsd-src/external/apache2/llvm/dist/llvm/lib/ObjectYAML/
H A DMachOEmitter.cpp119 size_t writeLoadCommandData(MachOYAML::LoadCommand &LC, raw_ostream &OS, in writeLoadCommandData() argument
125 size_t writeLoadCommandData<MachO::segment_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData() argument
129 for (const auto &Sec : LC.Sections) { in writeLoadCommandData()
142 MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) { in writeLoadCommandData() argument
144 for (const auto &Sec : LC.Sections) { in writeLoadCommandData()
156 size_t writePayloadString(MachOYAML::LoadCommand &LC, raw_ostream &OS) { in writePayloadString() argument
158 if (!LC.PayloadString.empty()) { in writePayloadString()
159 OS.write(LC.PayloadString.c_str(), LC.PayloadString.length()); in writePayloadString()
160 BytesWritten = LC.PayloadString.length(); in writePayloadString()
166 size_t writeLoadCommandData<MachO::dylib_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData() argument
[all …]
/netbsd-src/external/apache2/llvm/dist/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.cpp59 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 DMIGChecker.cpp147 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 DAnalyzerStatsChecker.cpp49 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()
/netbsd-src/external/apache2/llvm/dist/llvm/tools/obj2yaml/
H A Dmacho2yaml.cpp26 MachOYAML::LoadCommand &LC,
62 memcpy((void *)&(LC.Data.LCStruct##_data), LoadCmd.Ptr, \
65 MachO::swapStruct(LC.Data.LCStruct##_data); \
67 processLoadCommandData<MachO::LCStruct>(LC, LoadCmd, *Y.get())) \
196 MachOYAML::LoadCommand &LC, in processLoadCommandData() argument
205 MachOYAML::LoadCommand &LC, in processLoadCommandData() argument
209 LoadCmd, LC.Sections, Y); in processLoadCommandData()
215 MachOYAML::LoadCommand &LC, in processLoadCommandData() argument
219 LoadCmd, LC.Sections, Y); in processLoadCommandData()
224 readString(MachOYAML::LoadCommand &LC, in readString() argument
[all …]
/netbsd-src/external/apache2/llvm/dist/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 VarDecl *VD = LC.getCapturedVar(); in getSelfDecl()
411 const LocationContext *LC = this; in getStackFrame() local
412 while (LC) { in getStackFrame()
413 if (const auto *SFC = dyn_cast<StackFrameContext>(LC)) in getStackFrame()
415 LC = LC->getParent(); in getStackFrame()
424 bool LocationContext::isParentOf(const LocationContext *LC) const { in isParentOf()
426 const LocationContext *Parent = LC->getParent(); in isParentOf()
430 LC = Parent; in isParentOf()
[all …]
/netbsd-src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Core/
H A DExprEngine.cpp135 const LocationContext *LC) in ConstructedObjectKey() argument
136 : Impl(Item, LC) {} in ConstructedObjectKey()
310 ProgramStateRef State, const LocationContext *LC, in createTemporaryRegionIfNeeded() argument
318 SVal InitValWithAdjustments = State->getSVal(InitWithAdjustments, LC); in createTemporaryRegionIfNeeded()
374 if (Optional<SVal> V = getObjectUnderConstruction(State, MT, LC)) { in createTemporaryRegionIfNeeded()
375 State = finishObjectConstruction(State, MT, LC); in createTemporaryRegionIfNeeded()
376 State = State->BindExpr(Result, LC, *V); in createTemporaryRegionIfNeeded()
385 TR = MRMgr.getCXXTempObjectRegion(Init, LC); in createTemporaryRegionIfNeeded()
389 TR = MRMgr.getCXXTempObjectRegion(Init, LC); in createTemporaryRegionIfNeeded()
408 currBldrCtx->blockCount(), LC, true, in createTemporaryRegionIfNeeded()
[all …]
H A DMemRegion.cpp367 const LocationContext *LC, in ProfileRegion() argument
372 ID.AddPointer(LC); in ProfileRegion()
378 BlockDataRegion::ProfileRegion(ID, BC, LC, BlockCount, getSuperRegion()); in Profile()
893 getStackOrCaptureRegionForDeclContext(const LocationContext *LC, in getStackOrCaptureRegionForDeclContext() argument
896 while (LC) { in getStackOrCaptureRegionForDeclContext()
897 if (const auto *SFC = dyn_cast<StackFrameContext>(LC)) { in getStackOrCaptureRegionForDeclContext()
901 if (const auto *BC = dyn_cast<BlockInvocationContext>(LC)) { in getStackOrCaptureRegionForDeclContext()
915 LC = LC->getParent(); in getStackOrCaptureRegionForDeclContext()
921 const LocationContext *LC) { in getVarRegion() argument
925 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.cpp309 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 DBugReporter.cpp174 void updateLocCtxMap(const PathPieces *Path, const LocationContext *LC) { in updateLocCtxMap() argument
175 assert(Path && LC); in updateLocCtxMap()
176 LCM[Path] = LC; in updateLocCtxMap()
639 getEnclosingStmtLocation(const Stmt *S, const LocationContext *LC, in getEnclosingStmtLocation() argument
644 const SourceManager &SMgr = LC->getDecl()->getASTContext().getSourceManager(); in getEnclosingStmtLocation()
646 while (const Stmt *Parent = getEnclosingParent(S, LC->getParentMap())) { in getEnclosingStmtLocation()
651 return PathDiagnosticLocation(allowNestedContexts ? B : S, SMgr, LC); in getEnclosingStmtLocation()
656 return PathDiagnosticLocation(S, SMgr, LC); in getEnclosingStmtLocation()
661 return PathDiagnosticLocation(Parent, SMgr, LC); in getEnclosingStmtLocation()
663 return PathDiagnosticLocation(S, SMgr, LC); in getEnclosingStmtLocation()
[all …]
H A DPrettyStackTraceLocationContext.h31 PrettyStackTraceLocationContext(const LocationContext *LC) : LCtx(LC) { in PrettyStackTraceLocationContext() argument
/netbsd-src/external/apache2/llvm/dist/llvm/lib/Object/
H A DMachOUniversalWriter.cpp35 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()
/netbsd-src/external/apache2/llvm/dist/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DExprEngine.h290 const Stmt *ReferenceStmt, const LocationContext *LC,
640 const LocationContext *LC);
845 ProgramStateRef State, const LocationContext *LC,
879 const LocationContext *LC, bool HasMoreIteraton);
883 const LocationContext *LC);
887 const LocationContext *LC);
899 const LocationContext *LC, SVal V);
906 const LocationContext *LC);
913 const LocationContext *LC);
919 const LocationContext *LC);
[all …]
H A DProgramState.h229 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 …]
H A DStore.h134 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()
/netbsd-src/external/apache2/llvm/dist/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeDAG.cpp136 SDValue ExpandLibCall(RTLIB::Libcall LC, SDNode *Node, bool isSigned);
1979 SDValue SelectionDAGLegalize::ExpandLibCall(RTLIB::Libcall LC, SDNode *Node, in ExpandLibCall() argument
1992 SDValue Callee = DAG.getExternalSymbol(TLI.getLibcallName(LC), in ExpandLibCall()
2018 .setLibCallee(TLI.getLibcallCallingConv(LC), RetTy, Callee, in ExpandLibCall()
2044 RTLIB::Libcall LC; in ExpandFPLibCall() local
2047 case MVT::f32: LC = Call_F32; break; in ExpandFPLibCall()
2048 case MVT::f64: LC = Call_F64; break; in ExpandFPLibCall()
2049 case MVT::f80: LC = Call_F80; break; in ExpandFPLibCall()
2050 case MVT::f128: LC = Call_F128; break; in ExpandFPLibCall()
2051 case MVT::ppcf128: LC = Call_PPCF128; break; in ExpandFPLibCall()
[all …]
H A DLegalizeIntegerTypes.cpp2231 RTLIB::Libcall LC = RTLIB::getOUTLINE_ATOMIC(Opc, order, VT); in ExpandAtomic() local
2235 if (TLI.getLibcallName(LC)) { in ExpandAtomic()
2239 LC = RTLIB::getSYNC(Opc, VT); in ExpandAtomic()
2240 assert(LC != RTLIB::UNKNOWN_LIBCALL && in ExpandAtomic()
2244 return TLI.makeLibCall(DAG, LC, RetVT, Ops, CallOptions, SDLoc(Node), in ExpandAtomic()
3055 RTLIB::Libcall LC = RTLIB::getFPTOSINT(Op.getValueType(), VT); in ExpandIntRes_FP_TO_SINT() local
3056 assert(LC != RTLIB::UNKNOWN_LIBCALL && "Unexpected fp-to-sint conversion!"); in ExpandIntRes_FP_TO_SINT()
3059 std::pair<SDValue, SDValue> Tmp = TLI.makeLibCall(DAG, LC, VT, Op, in ExpandIntRes_FP_TO_SINT()
3084 RTLIB::Libcall LC = RTLIB::getFPTOUINT(Op.getValueType(), VT); in ExpandIntRes_FP_TO_UINT() local
3085 assert(LC != RTLIB::UNKNOWN_LIBCALL && "Unexpected fp-to-uint conversion!"); in ExpandIntRes_FP_TO_UINT()
[all …]

12345678