/external/llvm-project/llvm/tools/llvm-objcopy/MachO/ |
D | MachOObjcopy.cpp | 27 using LoadCommandPred = std::function<bool(const LoadCommand &LC)>; 30 static bool isLoadCommandWithPayloadString(const LoadCommand &LC) { in isLoadCommandWithPayloadString() argument 33 return LC.MachOLoadCommand.load_command_data.cmd == MachO::LC_RPATH || in isLoadCommandWithPayloadString() 34 LC.MachOLoadCommand.load_command_data.cmd == MachO::LC_ID_DYLIB || in isLoadCommandWithPayloadString() 35 LC.MachOLoadCommand.load_command_data.cmd == MachO::LC_LOAD_DYLIB || in isLoadCommandWithPayloadString() 36 LC.MachOLoadCommand.load_command_data.cmd == MachO::LC_LOAD_WEAK_DYLIB; in isLoadCommandWithPayloadString() 40 static StringRef getPayloadString(const LoadCommand &LC) { in getPayloadString() argument 41 assert(isLoadCommandWithPayloadString(LC) && in getPayloadString() 44 return StringRef(reinterpret_cast<const char *>(LC.Payload.data()), in getPayloadString() 45 LC.Payload.size()) in getPayloadString() [all …]
|
D | Object.cpp | 37 LoadCommand &LC = LoadCommands[Index]; in updateLoadCommandIndexes() local 38 switch (LC.MachOLoadCommand.load_command_data.cmd) { in updateLoadCommandIndexes() 63 [&](const LoadCommand &LC) { return !ToRemove(LC); }); in removeLoadCommands() argument 74 for (LoadCommand &LC : LoadCommands) { in removeSections() 76 std::begin(LC.Sections), std::end(LC.Sections), in removeSections() 78 for (auto I = LC.Sections.begin(), End = It; I != End; ++I) { in removeSections() 82 LC.Sections.erase(It, LC.Sections.end()); in removeSections() 95 for (const LoadCommand &LC : LoadCommands) in removeSections() local 96 for (const std::unique_ptr<Section> &Sec : LC.Sections) in removeSections() 117 for (const LoadCommand &LC : LoadCommands) { in nextAvailableSegmentAddress() local [all …]
|
D | MachOReader.cpp | 120 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 …]
|
D | MachOLayoutBuilder.cpp | 28 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 …]
|
D | MachOWriter.cpp | 122 for (const LoadCommand &LC : O.LoadCommands) in totalSize() local 123 for (const std::unique_ptr<Section> &S : LC.Sections) { in totalSize() 167 for (const LoadCommand &LC : O.LoadCommands) { in writeLoadCommands() local 169 MachO::macho_load_command MLC = LC.MachOLoadCommand; in writeLoadCommands() 177 for (const std::unique_ptr<Section> &Sec : LC.Sections) in writeLoadCommands() 187 for (const std::unique_ptr<Section> &Sec : LC.Sections) in writeLoadCommands() 194 assert(sizeof(MachO::LCStruct) + LC.Payload.size() == \ in writeLoadCommands() 200 if (!LC.Payload.empty()) \ in writeLoadCommands() 201 memcpy(Begin, LC.Payload.data(), LC.Payload.size()); \ in writeLoadCommands() 202 Begin += LC.Payload.size(); \ in writeLoadCommands() [all …]
|
/external/llvm/tools/yaml2obj/ |
D | yaml2macho.cpp | 111 size_t writeLoadCommandData(MachOYAML::LoadCommand &LC, raw_ostream &OS) { in writeLoadCommandData() argument 116 size_t writeLoadCommandData<MachO::segment_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData() argument 119 for (const auto &Sec : LC.Sections) { in writeLoadCommandData() 130 writeLoadCommandData<MachO::segment_command_64>(MachOYAML::LoadCommand &LC, in writeLoadCommandData() argument 133 for (const auto &Sec : LC.Sections) { in writeLoadCommandData() 143 size_t writePayloadString(MachOYAML::LoadCommand &LC, raw_ostream &OS) { in writePayloadString() argument 145 if (!LC.PayloadString.empty()) { in writePayloadString() 146 OS.write(LC.PayloadString.c_str(), LC.PayloadString.length()); in writePayloadString() 147 BytesWritten = LC.PayloadString.length(); in writePayloadString() 153 size_t writeLoadCommandData<MachO::dylib_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData() argument [all …]
|
/external/clang/lib/Analysis/ |
D | ProgramPoint.cpp | 22 const LocationContext *LC, in getProgramPoint() argument 28 return PreStmt(S, LC, tag); in getProgramPoint() 30 return PostStmt(S, LC, tag); in getProgramPoint() 32 return PreLoad(S, LC, tag); in getProgramPoint() 34 return PostLoad(S, LC, tag); in getProgramPoint() 36 return PreStore(S, LC, tag); in getProgramPoint() 38 return PostLValue(S, LC, tag); in getProgramPoint() 40 return PostStmtPurgeDeadSymbols(S, LC, tag); in getProgramPoint() 42 return PreStmtPurgeDeadSymbols(S, LC, tag); in getProgramPoint()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ObjectYAML/ |
D | MachOEmitter.cpp | 108 size_t writeLoadCommandData(MachOYAML::LoadCommand &LC, raw_ostream &OS, in writeLoadCommandData() argument 114 size_t writeLoadCommandData<MachO::segment_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData() argument 118 for (const auto &Sec : LC.Sections) { in writeLoadCommandData() 131 MachOYAML::LoadCommand &LC, raw_ostream &OS, bool IsLittleEndian) { in writeLoadCommandData() argument 133 for (const auto &Sec : LC.Sections) { in writeLoadCommandData() 145 size_t writePayloadString(MachOYAML::LoadCommand &LC, raw_ostream &OS) { in writePayloadString() argument 147 if (!LC.PayloadString.empty()) { in writePayloadString() 148 OS.write(LC.PayloadString.c_str(), LC.PayloadString.length()); in writePayloadString() 149 BytesWritten = LC.PayloadString.length(); in writePayloadString() 155 size_t writeLoadCommandData<MachO::dylib_command>(MachOYAML::LoadCommand &LC, in writeLoadCommandData() argument [all …]
|
/external/llvm-project/llvm/lib/ObjectYAML/ |
D | MachOEmitter.cpp | 119 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 …]
|
/external/clang/lib/StaticAnalyzer/Checkers/ |
D | TraversalChecker.cpp | 80 for (const LocationContext *LC = C.getLocationContext()->getParent(); in checkPreCall() local 81 LC != nullptr; LC = LC->getParent()) in checkPreCall() 97 for (const LocationContext *LC = C.getLocationContext()->getParent(); in checkPostCall() local 98 LC != nullptr; LC = LC->getParent()) in checkPostCall()
|
D | UnreachableCodeChecker.cpp | 60 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() 151 DL = PathDiagnosticLocation::createBegin(S, B.getSourceManager(), LC); in checkEndAnalysis()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
D | TraversalChecker.cpp | 84 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()
|
D | UnreachableCodeChecker.cpp | 59 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()
|
/external/llvm/tools/obj2yaml/ |
D | macho2yaml.cpp | 25 MachOYAML::LoadCommand &LC, 45 memcpy((void *) & (LC.Data.LCStruct##_data), LoadCmd.Ptr, \ 48 MachO::swapStruct(LC.Data.LCStruct##_data); \ 49 EndPtr = processLoadCommandData<MachO::LCStruct>(LC, LoadCmd); \ 108 MachOYAML::LoadCommand &LC, in processLoadCommandData() argument 115 MachOYAML::LoadCommand &LC, in processLoadCommandData() argument 118 LoadCmd, LC.Sections, Obj.isLittleEndian()); in processLoadCommandData() 123 MachOYAML::LoadCommand &LC, in processLoadCommandData() argument 126 LoadCmd, LC.Sections, Obj.isLittleEndian()); in processLoadCommandData() 131 readString(MachOYAML::LoadCommand &LC, in readString() argument [all …]
|
/external/llvm-project/llvm/tools/obj2yaml/ |
D | macho2yaml.cpp | 26 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 …]
|
/external/llvm-project/llvm/test/CodeGen/PowerPC/ |
D | ppc64-toc.ll | 21 ; CHECK: ld {{[0-9]+}}, .LC{{[0-9]+}}@toc(2) 30 ; CHECK: ld {{[0-9]+}}, .LC{{[0-9]+}}@toc(2) 40 ; CHECK: ld {{[0-9]+}}, .LC{{[0-9]+}}@toc(2) 53 ; CHECK: ld {{[0-9]+}}, .LC{{[0-9]+}}@toc(2) 64 ; CHECK: .LC{{[0-9]+}}: 66 ; CHECK-NEXT: .LC{{[0-9]+}}: 68 ; CHECK-NEXT: .LC{{[0-9]+}}: 70 ; CHECK-NEXT: .LC{{[0-9]+}}:
|
D | blockaddress.ll | 14 ; MEDIUM: addis [[R0:[0-9]+]], 2, .LC[[LC0:[0-9]+]]@toc@ha 15 ; MEDIUM: ld 3, .LC[[LC0]]@toc@l([[R0]]) 17 ; MEDIUM: .LC[[LC0]]: 20 ; SMALL: ld 3, .LC[[LC0:[0-9]+]]@toc(2) 22 ; SMALL: .LC[[LC0]]:
|
/external/llvm/test/CodeGen/PowerPC/ |
D | ppc64-toc.ll | 19 ; CHECK: ld {{[0-9]+}}, .LC{{[0-9]+}}@toc(2) 28 ; CHECK: ld {{[0-9]+}}, .LC{{[0-9]+}}@toc(2) 38 ; CHECK: ld {{[0-9]+}}, .LC{{[0-9]+}}@toc(2) 51 ; CHECK: ld {{[0-9]+}}, .LC{{[0-9]+}}@toc(2) 62 ; CHECK: .LC{{[0-9]+}}: 64 ; CHECK-NEXT: .LC{{[0-9]+}}: 66 ; CHECK-NEXT: .LC{{[0-9]+}}: 68 ; CHECK-NEXT: .LC{{[0-9]+}}:
|
D | blockaddress.ll | 14 ; MEDIUM: addis [[R0:[0-9]+]], 2, .LC[[LC0:[0-9]+]]@toc@ha 15 ; MEDIUM: ld 3, .LC[[LC0]]@toc@l([[R0]]) 17 ; MEDIUM: .LC[[LC0]]: 20 ; SMALL: ld 3, .LC[[LC0:[0-9]+]]@toc(2) 22 ; SMALL: .LC[[LC0]]:
|
D | ppcf128-endian.ll | 17 ; CHECK: ld [[REG:[0-9]+]], .LC 29 ; CHECK: ld [[REG:[0-9]+]], .LC 41 ; CHECK: .LCPI[[LC:[0-9]+]]_0: 43 ; CHECK: .LCPI[[LC]]_1: 46 ; CHECK: addi [[REG0:[0-9]+]], {{[0-9]+}}, .LCPI[[LC]]_0 47 ; CHECK: addi [[REG1:[0-9]+]], {{[0-9]+}}, .LCPI[[LC]]_1 58 ; CHECK: ld [[REG:[0-9]+]], .LC 71 ; CHECK: ld [[REG:[0-9]+]], .LC
|
/external/llvm-project/clang/lib/Analysis/ |
D | ProgramPoint.cpp | 23 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()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Core/ |
D | ExprEngine.cpp | 135 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 …]
|
D | MemRegion.cpp | 366 const LocationContext *LC, in ProfileRegion() argument 371 ID.AddPointer(LC); in ProfileRegion() 377 BlockDataRegion::ProfileRegion(ID, BC, LC, BlockCount, getSuperRegion()); in Profile() 899 getStackOrCaptureRegionForDeclContext(const LocationContext *LC, in getStackOrCaptureRegionForDeclContext() argument 902 while (LC) { in getStackOrCaptureRegionForDeclContext() 903 if (const auto *SFC = dyn_cast<StackFrameContext>(LC)) { in getStackOrCaptureRegionForDeclContext() 907 if (const auto *BC = dyn_cast<BlockInvocationContext>(LC)) { in getStackOrCaptureRegionForDeclContext() 921 LC = LC->getParent(); in getStackOrCaptureRegionForDeclContext() 927 const LocationContext *LC) { in getVarRegion() argument 931 const StackFrameContext *SFC = LC->getStackFrame(); in getVarRegion() [all …]
|
/external/llvm-project/llvm/test/tools/llvm-nm/X86/ |
D | dyldinfo.test | 5 # RUN: llvm-nm %p/Inputs/Strip-N.LC_MAIN.exe.macho-x86_64 | FileCheck --check-prefix=LC-MAIN %s 29 # LC-MAIN: 0000000100000f50 t <redacted LC_MAIN> 30 # LC-MAIN: 0000000100000000 T __mh_execute_header 31 # LC-MAIN: U _printf 32 # LC-MAIN: U dyld_stub_binder
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | BugReporter.cpp | 325 const LocationContext *LC; member in __anond14f76690111::PathDiagnosticBuilder 331 R(r), PDC(pdc), NMC(Backmap), LC(r->getErrorNode()->getLocationContext()) in PathDiagnosticBuilder() 343 ParentMap& getParentMap() { return LC->getParentMap(); } in getParentMap() 366 return PathDiagnosticLocation(S, getSourceManager(), LC); in ExecutionContinues() 427 const LocationContext *LC, bool allowNestedContexts) { in getEnclosingStmtLocation() argument 436 return PathDiagnosticLocation(allowNestedContexts ? B : S, SMgr, LC); in getEnclosingStmtLocation() 441 return PathDiagnosticLocation(S, SMgr, LC); in getEnclosingStmtLocation() 446 return PathDiagnosticLocation(Parent, SMgr, LC); in getEnclosingStmtLocation() 448 return PathDiagnosticLocation(S, SMgr, LC); in getEnclosingStmtLocation() 455 return PathDiagnosticLocation(Parent, SMgr, LC); in getEnclosingStmtLocation() [all …]
|