Home
last modified time | relevance | path

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

1234567

/openbsd-src/gnu/llvm/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.cpp44 LoadCommand &LC = LoadCommands[Index]; in updateLoadCommandIndexes() local
45 switch (LC.MachOLoadCommand.load_command_data.cmd) { in updateLoadCommandIndexes()
50 if (StringRef(LC.MachOLoadCommand.segment_command_data.segname) == in updateLoadCommandIndexes()
55 if (StringRef(LC.MachOLoadCommand.segment_command_64_data.segname) == in updateLoadCommandIndexes()
95 [&](const LoadCommand &LC) { return !ToRemove(LC); }); in removeLoadCommands() argument
106 for (LoadCommand &LC : LoadCommands) { in removeSections()
108 std::begin(LC.Sections), std::end(LC.Sections), in removeSections()
110 for (auto I = LC.Sections.begin(), End = It; I != End; ++I) { in removeSections()
114 LC.Sections.erase(It, LC.Sections.end()); in removeSections()
127 for (const LoadCommand &LC : LoadCommands) in removeSections() local
[all …]
H A DMachOReader.cpp121 LoadCommand LC; in readLoadCommands() local
138 LC.Sections = std::move(*Sections); in readLoadCommands()
154 LC.Sections = std::move(*Sections); in readLoadCommands()
189 memcpy((void *)&(LC.MachOLoadCommand.LCStruct##_data), LoadCmd.Ptr, \ in readLoadCommands()
192 MachO::swapStruct(LC.MachOLoadCommand.LCStruct##_data); \ in readLoadCommands()
194 LC.Payload = ArrayRef<uint8_t>( \ in readLoadCommands()
202 memcpy((void *)&(LC.MachOLoadCommand.load_command_data), LoadCmd.Ptr, in readLoadCommands()
205 MachO::swapStruct(LC.MachOLoadCommand.load_command_data); in readLoadCommands()
207 LC.Payload = ArrayRef<uint8_t>( in readLoadCommands()
214 O.LoadCommands.push_back(std::move(LC)); in readLoadCommands()
[all …]
H A DMachOLayoutBuilder.cpp27 for (const LoadCommand &LC : O.LoadCommands) { in computeSizeOfCmds() local
28 const MachO::macho_load_command &MLC = LC.MachOLoadCommand; in computeSizeOfCmds()
33 sizeof(MachO::section) * LC.Sections.size(); in computeSizeOfCmds()
37 sizeof(MachO::section_64) * LC.Sections.size(); in computeSizeOfCmds()
44 Size += sizeof(MachO::LCStruct) + LC.Payload.size(); \ in computeSizeOfCmds()
118 for (LoadCommand &LC : O.LoadCommands) { in layoutSegments()
119 auto &MLC = LC.MachOLoadCommand; in layoutSegments()
144 assert(LC.Sections.empty() && "__LINKEDIT segment has sections"); in layoutSegments()
153 for (std::unique_ptr<Section> &Sec : LC.Sections) { in layoutSegments()
193 sizeof(MachO::section) * LC.Sections.size(); in layoutSegments()
[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 …]
/openbsd-src/gnu/llvm/llvm/lib/ObjectYAML/
H A DMachOEmitter.cpp125 size_t writeLoadCommandData(MachOYAML::LoadCommand &LC, raw_ostream &OS, in writeLoadCommandData() argument
131 size_t writeLoadCommandData<MachO::segment_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData() argument
135 for (const auto &Sec : LC.Sections) { in writeLoadCommandData()
148 MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) { in writeLoadCommandData() argument
150 for (const auto &Sec : LC.Sections) { in writeLoadCommandData()
162 size_t writePayloadString(MachOYAML::LoadCommand &LC, raw_ostream &OS) { in writePayloadString() argument
164 if (!LC.Content.empty()) { in writePayloadString()
165 OS.write(LC.Content.c_str(), LC.Content.length()); in writePayloadString()
166 BytesWritten = LC.Content.length(); in writePayloadString()
172 size_t writeLoadCommandData<MachO::dylib_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData() argument
[all …]
/openbsd-src/gnu/llvm/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 …]
/openbsd-src/gnu/llvm/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
65 LC = P.getLocationContext(); in checkEndAnalysis()
66 if (!LC->inTopFrame()) in checkEndAnalysis()
70 D = LC->getAnalysisDeclContext()->getDecl(); in checkEndAnalysis()
74 C = LC->getAnalysisDeclContext()->getUnoptimizedCFG(); in checkEndAnalysis()
76 PM = &LC->getParentMap(); in checkEndAnalysis()
160 DL = PathDiagnosticLocation::createBegin(S, B.getSourceManager(), 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()
H A DAnalyzerStatsChecker.cpp50 const LocationContext *LC = GraphRoot->getLocation().getLocationContext(); in checkEndAnalysis() local
52 const Decl *D = LC->getDecl(); in checkEndAnalysis()
70 C = LC->getCFG(); in checkEndAnalysis()
134 PathDiagnosticLocation::createBegin(CS->getStmt(), SM, LC)); in checkEndAnalysis()
/openbsd-src/gnu/llvm/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 …]
/openbsd-src/gnu/llvm/llvm/tools/obj2yaml/
H A Dmacho2yaml.cpp27 MachOYAML::LoadCommand &LC,
68 memcpy((void *)&(LC.Data.LCStruct##_data), LoadCmd.Ptr, \
71 MachO::swapStruct(LC.Data.LCStruct##_data); \
73 processLoadCommandData<MachO::LCStruct>(LC, LoadCmd, *Y.get())) \
209 MachOYAML::LoadCommand &LC, in processLoadCommandData() argument
218 MachOYAML::LoadCommand &LC, in processLoadCommandData() argument
222 LoadCmd, LC.Sections, Y); in processLoadCommandData()
228 MachOYAML::LoadCommand &LC, in processLoadCommandData() argument
232 LoadCmd, LC.Sections, Y); in processLoadCommandData()
237 readString(MachOYAML::LoadCommand &LC, in readString() argument
[all …]
/openbsd-src/gnu/llvm/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 …]
/openbsd-src/gnu/llvm/clang/lib/StaticAnalyzer/Core/
H A DMemRegion.cpp370 const LocationContext *LC, in ProfileRegion() argument
375 ID.AddPointer(LC); in ProfileRegion()
381 BlockDataRegion::ProfileRegion(ID, BC, LC, BlockCount, getSuperRegion()); in Profile()
937 getStackOrCaptureRegionForDeclContext(const LocationContext *LC, in getStackOrCaptureRegionForDeclContext() argument
940 while (LC) { in getStackOrCaptureRegionForDeclContext()
941 if (const auto *SFC = dyn_cast<StackFrameContext>(LC)) { in getStackOrCaptureRegionForDeclContext()
945 if (const auto *BC = dyn_cast<BlockInvocationContext>(LC)) { in getStackOrCaptureRegionForDeclContext()
959 LC = LC->getParent(); in getStackOrCaptureRegionForDeclContext()
965 const LocationContext *LC) { in getVarRegion() argument
969 const StackFrameContext *SFC = LC->getStackFrame(); in getVarRegion()
[all …]
H A DExprEngine.cpp128 const LocationContext *LC) in ConstructedObjectKey() argument
129 : Impl(Item, LC) {} in ConstructedObjectKey()
321 ProgramStateRef State, const LocationContext *LC, in createTemporaryRegionIfNeeded() argument
329 SVal InitValWithAdjustments = State->getSVal(InitWithAdjustments, LC); in createTemporaryRegionIfNeeded()
385 if (std::optional<SVal> V = getObjectUnderConstruction(State, MT, LC)) { in createTemporaryRegionIfNeeded()
386 State = finishObjectConstruction(State, MT, LC); in createTemporaryRegionIfNeeded()
387 State = State->BindExpr(Result, LC, *V); in createTemporaryRegionIfNeeded()
396 TR = MRMgr.getCXXTempObjectRegion(Init, LC); in createTemporaryRegionIfNeeded()
400 TR = MRMgr.getCXXTempObjectRegion(Init, LC); in createTemporaryRegionIfNeeded()
418 currBldrCtx->blockCount(), LC, true, in createTemporaryRegionIfNeeded()
[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.cpp308 findTopAutosynthesizedParentContext(const LocationContext *LC) { in findTopAutosynthesizedParentContext() argument
309 assert(LC->getAnalysisDeclContext()->isBodyAutosynthesized()); in findTopAutosynthesizedParentContext()
310 const LocationContext *ParentLC = LC->getParent(); in findTopAutosynthesizedParentContext()
313 LC = ParentLC; in findTopAutosynthesizedParentContext()
314 ParentLC = LC->getParent(); in findTopAutosynthesizedParentContext()
317 return LC; in findTopAutosynthesizedParentContext()
324 const LocationContext *LC = getLocationContext(); in getStmtForDiagnostics() local
325 if (LC->getAnalysisDeclContext()->isBodyAutosynthesized()) { in getStmtForDiagnostics()
327 return cast<StackFrameContext>(findTopAutosynthesizedParentContext(LC)) in getStmtForDiagnostics()
H A DBugReporter.cpp173 void updateLocCtxMap(const PathPieces *Path, const LocationContext *LC) { in updateLocCtxMap() argument
174 assert(Path && LC); in updateLocCtxMap()
175 LCM[Path] = LC; in updateLocCtxMap()
641 getEnclosingStmtLocation(const Stmt *S, const LocationContext *LC, in getEnclosingStmtLocation() argument
646 const SourceManager &SMgr = LC->getDecl()->getASTContext().getSourceManager(); in getEnclosingStmtLocation()
648 while (const Stmt *Parent = getEnclosingParent(S, LC->getParentMap())) { in getEnclosingStmtLocation()
653 return PathDiagnosticLocation(allowNestedContexts ? B : S, SMgr, LC); in getEnclosingStmtLocation()
658 return PathDiagnosticLocation(S, SMgr, LC); in getEnclosingStmtLocation()
663 return PathDiagnosticLocation(Parent, SMgr, LC); in getEnclosingStmtLocation()
665 return PathDiagnosticLocation(S, SMgr, LC); in getEnclosingStmtLocation()
[all …]
H A DPrettyStackTraceLocationContext.h31 PrettyStackTraceLocationContext(const LocationContext *LC) : LCtx(LC) { in PrettyStackTraceLocationContext() argument
/openbsd-src/gnu/usr.bin/perl/lib/
H A Dlocale.pm119 my $LC = "LC_" . uc($arg);
121 my $bit = eval "&POSIX::$LC";
132 . " 'perlbug\@perl.org'. $LC=$bit");
/openbsd-src/gnu/llvm/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 countTrailingZeros(Is64Bit ? O.getSegment64LoadCommand(LC).vmaddr in calculateFileAlignment()
58 : O.getSegmentLoadCommand(LC).vmaddr); in calculateFileAlignment()
/openbsd-src/gnu/llvm/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DExprEngine.h293 const Stmt *ReferenceStmt, const LocationContext *LC,
642 const LocationContext *LC);
899 ProgramStateRef State, const LocationContext *LC,
933 const LocationContext *LC, bool HasMoreIteraton);
937 const LocationContext *LC);
941 const LocationContext *LC);
990 const LocationContext *LC, SVal V);
997 const LocationContext *LC);
1004 const LocationContext *LC);
1010 const LocationContext *LC);
[all …]
/openbsd-src/gnu/llvm/llvm/lib/CodeGen/SelectionDAG/
H A DLegalizeIntegerTypes.cpp2208 RTLIB::Libcall LC = RTLIB::getPOWI(N->getValueType(0)); in PromoteIntOp_FPOWI() local
2209 assert(LC != RTLIB::UNKNOWN_LIBCALL && "Unexpected fpowi."); in PromoteIntOp_FPOWI()
2210 if (!TLI.getLibcallName(LC)) { in PromoteIntOp_FPOWI()
2225 DAG, LC, N->getValueType(0), Ops, CallOptions, SDLoc(N), Chain); in PromoteIntOp_FPOWI()
2587 RTLIB::Libcall LC = RTLIB::getOUTLINE_ATOMIC(Opc, order, VT); in ExpandAtomic() local
2591 if (TLI.getLibcallName(LC)) { in ExpandAtomic()
2595 LC = RTLIB::getSYNC(Opc, VT); in ExpandAtomic()
2596 assert(LC != RTLIB::UNKNOWN_LIBCALL && in ExpandAtomic()
2600 return TLI.makeLibCall(DAG, LC, RetVT, Ops, CallOptions, SDLoc(Node), in ExpandAtomic()
3432 RTLIB::Libcall LC = RTLIB::getFPTOSINT(Op.getValueType(), VT); in ExpandIntRes_FP_TO_SINT() local
[all …]

1234567